Posts: 32
Threads: 20
Joined: Mar 2011
Reputation:
0
01-06-2012, 10:14 AM
Hi Folks,
Yesterday I atteneded one interview in that he asked question like I have a web page in that I have webtable, How to get webtable data and use that data generate HTML report so please any one give me an idea on above question.
Posts: 107
Threads: 9
Joined: Apr 2011
Reputation:
0
01-06-2012, 10:46 AM
I am not sure if i have understood correctly...
You will be able to get WebTable HTML source code using WebTable().GetRoProperty("outerhtml")
Store it in a variable and write it in your html report. it will give the snapshot of webtable in ur result...
Posts: 323
Threads: 8
Joined: Nov 2011
Reputation:
4
01-06-2012, 02:06 PM
(This post was last modified: 01-06-2012, 02:09 PM by vinod123.)
i also faced the problem real time in my company. To get HTML report there is registry modification of qtp registries. HKEY_LOCAL_MACHINE\SOFTWARE\Mercury Interactive\QuickTest Professional\Logger\Media\Log Change the active DWORD from 0 to 1. What ever is running in qtp script it will generate HTML report at the time of result and it will save it folder name LOG in Results folder
For Eg: F:\Automation Projects\VFS\Res1\Log
Posts: 323
Threads: 8
Joined: Nov 2011
Reputation:
4
06-18-2014, 04:57 PM
Why you want to write a script while you are getting html report with small registry tweak so instead of writing the script do the registry tweak
Posts: 18
Threads: 12
Joined: Sep 2014
Reputation:
0
04-10-2015, 01:59 PM
Hi ,
If you are using UFT there is a settings in Options
Tools>>Options>>Run Sessions>>Click on 'Configure' You get an Popup 'Configure Automatic Export of Run Results' using these settings you can export you r results to HTML format