Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on Storing Output values within the QTP forums, part of the Software Testing category; 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 ...
|
|||||||
|
|||
|
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. |
| Sponsored Links |
|
|||
|
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 |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| First output value is getting overwritten by second output | Geek_Guest | QTP | 2 | 01-05-2008 04:40 AM |
| Storing folders of automation | aarruunnaa | Testing Issues | 1 | 12-26-2007 10:52 AM |
| How to output values, then make it input? | grandview | QTP | 0 | 10-24-2007 08:46 PM |
| Storing form variables in a session | neelim | Java | 2 | 09-18-2007 01:37 PM |
| Storing data in db without iterating | Samudyatha | C# | 1 | 07-31-2007 10:25 AM |