How to retrieve test result summary from a test result window using dp? - 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 retrieve test result summary from a test result window using dp? (/Thread-How-to-retrieve-test-result-summary-from-a-test-result-window-using-dp) |
How to retrieve test result summary from a test result window using dp? - jyotikrushna - 09-23-2011 Hi, I stucked at one place of my scripting. The issue is like " When we open Test Result window after complete of test execution, the left pane of the window displays the test results of all the steps and the right pane displays the "Test Result Summary". I want to fetch the whole information presents under "Test Results summary" using descriptive programming. Please remember, I am not saying to export the test result. If we check the result.xml file under results folder it will display the details for all steps that I made for the script but not the Test Results summary. I only need the Test Results Summary." Thanks in advance. RE: How to retrieve test result summary from a test result window using dp? - guin.anirban - 09-27-2011 During run time you need to export the result description to QTP datatable and build up some logic to take the Pass/Fail/Warning/Done counts. And at the end of execution you extract result to HTML or XLS file. RE: How to retrieve test result summary from a test result window using dp? - jyotikrushna - 09-27-2011 Hi Anirban, Thanks for your reply. I have followed another way to retrieve: 1. Write "regedit" under run, then go to HKEy_LOCAL_MACHINE ->Software->Mercury Interactive->Quicktest professional-> logger->Media->Log 2. Then change the value for "Active" under "Log" from 0 to 1. 3. Now execute your automation script and go to the corresponding Result folder for that script. You can see a folder named as "Log" present there. 4. Go to that "Log" folder, now you can find a html file named as "LogFile.html". Open that file, it will display whole test results and their summary. At the bottom of that LogFile html page, you can find a webelement named as "Executionassed" or "Execution Failed" depends on the status. here in this way no need to export the test result. Again thanks for your reply RE: How to retrieve test result summary from a test result window using dp? - rajpes - 09-30-2011 jyotikrushna, that is a good trick, i will update the tips and tricks thread |