Micro Focus QTP (UFT) Forums
Can I have output values stay after the test is done - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Can I have output values stay after the test is done (/Thread-Can-I-have-output-values-stay-after-the-test-is-done)



Can I have output values stay after the test is done - lmclennan - 08-26-2011

Can I have output values stay after the test is done?

Our software has two environments, #1 Production, #2 Development

We like to make sure the values on Development match the "known good" values on Production. I can manually run these "test cases" in production and put the known good values in the cells that the checkpoint looks in when it tests Development. This is a little time consuming so I thought I could run the test in Production and have it output the known good values to the datasheet. It does this perfectly but the values get cleared out once the test is complete and I cannot use them. What I want is to get them to stay even after the test is complete.

Any help would be appreciated


RE: Can I have output values stay after the test is done - luth - 08-26-2011

Hi,

The QTP fills the datatable in runtime with all the values you've make it save. This datatable is nothing more than an excel file, which is saved in the result folder, inside the test folder:

..\YourTest\ResXXX\Report\Default.xls

If you open the corresponding excel file you'll find all the values that the test has been collecting while in runtime.

If this doesn't work, maybe you should change the way the values are saved in the datatable. A possibility is to have the "object" that has the property value you want, saved in you OR and save the property value directly to the datatable:
Code:
dataTable("cellName",yourSheet) = Browser("Browser").Page("Page").WebElement("yourElement").GetROProperty("yourPropertyValue")

This way you'll have that value saved for sure in the excel Default.xls in the result folder.

Hope this could help you.
Luth