Results 1 to 2 of 2

Thread: Storing Output values

  1. #1
    Junior Member
    Join Date
    Dec 2007
    Answers
    5

    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.


  2. #2

    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
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact