-
Junior Member
Storing Output values
Hey,
I am using "Insert Text Output" method to store output value into a datatable. When the test is executed I can see the output values in the Test Results window under "Run Time Data Table". However, the Data table of the test is empty
I want to use Datatable. Export or Exportsheet to store the output values into an Excel sheet. I unable to do so since the data table is blank.
Can anyone pls help me in getting the output values
Thank You.
-
Moderator
Re: Storing Output values
This is a very simple code that will allow you to store values in an Excel Worksheet:
Save the two output values in "FOutputValue" and "SOutputValue" and use the following code:
(Pre-req: Create a dummy file named dummy.xls in the root folder)
Set ExcelAppl=CreateObject("Excel.Application")
Set WrkBook=ExcelAppl.Workbooks.Open("C:\dummy.xls")
Set sheetPrimary=WrkBook.Activesheet
sheetPrimary.Cells(1,1)=""&FOutputValue
sheetPrimary.Cells(1,2)=""&SOutputValue
WrkBook.Save
ExcelAppl.Quit
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules