Micro Focus QTP (UFT) Forums
How to programmatically export/save the result to html - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: How to programmatically export/save the result to html (/Thread-How-to-programmatically-export-save-the-result-to-html)



How to programmatically export/save the result to html - ConstantChange - 02-25-2008

Hi!

I could not find any info on that in the help, guess I was to stupid or impatient?

I aim to run my Tests without user interaction, so when my tests finish I need them store their result as html somewhere on a server - programmatically.
Ahm, but how can I do that??

(Please note, I dont mean the DataTable here, but the Result thingi created by the Reporter)


Thanks a lot!
CC


RE: How to programmatically export/save the result to html - ConstantChange - 02-27-2008

sorry to bump this, but currently I am in a total disbelief that this is not possible. I searched all the help and everything, and the ResultDir environment property or the ReportPath reporter property are read only - and thats the only information I get.

But there must be a way to set the output path of the reporter programmatically!

Please help, this is ridiculous!

Thanks!!!


RE: How to programmatically export/save the result to html - nofearslamdunk - 03-12-2008

If i m not wrong, I suppose ur question is to 'Create a HTML file' that will hold all your results of the test script rite ??

If so, it can be done through some user defined functions. Currently for my project, my client has demanded the same and I have been able to do it. If so, confirm me and I can help u out Smile


RE: How to programmatically export/save the result to html - dookied2 - 03-13-2008

I would like to do something similar, but I would also like to include the Active Screens as well.

Has anyone done this?

Any help would be appreciated.


RE: How to programmatically export/save the result to html - Usman Muzaffar - 02-25-2009

Brother i assume you are able to run test with the help of external script, if so then do the following, it will do all what you required. If you could not run the test through script uptill now then tell me I can help you from scratch.

"hkey_local_machine\software\mercury interactive/quicktest progessional/logger/media/log" there will be a ACTIVE key, set the value to 1. Now if you navigate to your test result folder you will find a log folder in it(run a test and check it). Here will lie the html version of your TEST result. Now in the second step force the qtp to save the result at a specified location, you can do it by doing the following:

Code:
Set qtResultsOpt = CreateObject("QuickTest.RunResultsOptions")
qtResultsOpt.ResultsLocation ="give the path of the folder where you want to save this test result"
qtResultsOpt.test.run

Always Ready and happy to help!!!