"HTML Report" - 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 Interview Questions (https://www.learnqtp.com/forums/Forum-UFT-QTP-Interview-Questions) +--- Thread: "HTML Report" (/Thread-HTML-Report) |
"HTML Report" - suresz449 - 01-06-2012 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. RE: "HTML Report" - vIns - 01-06-2012 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... RE: "HTML Report" - vinod123 - 01-06-2012 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 RE: "HTML Report" - ravi.gajul - 01-07-2012 For doing so you are expected to have basic html skills.If you already have, then you may write the html code in a text file and save as .html file.Get the cell data from webtable(use getcelldata method) and write it accordingly. For your easy reference see the below code. Code: Set fso=CreateObject("Scripting.FileSystemObject") RE: "HTML Report" - vinod123 - 06-18-2014 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 RE: "HTML Report" - Tarik Sheth - 06-18-2014 Vinod123, Question in context is not about getting result report in html, the question is display the content of the web table in html and generate. Ravi.gajul has correctly replied, we have to use file system object to write the content in the html way. use proper formatting as well to display the content in aligned way. Below is what I tried and working- Code: Set fso = CreateObject("Scripting.FileSystemObject") RE: "HTML Report" - Naresh - 04-10-2015 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 |