07-20-2009, 03:50 PM
Is there a way we can capture QTP's "result" and "Details" for each step, so that it can be passed onto an excel? Appreciate all your help... thanks
How to capture QTPs results for each step
|
07-20-2009, 03:50 PM
Is there a way we can capture QTP's "result" and "Details" for each step, so that it can be passed onto an excel? Appreciate all your help... thanks
07-24-2009, 07:44 PM
Couldn't you just say...
Code: If ..("Window"). ..("Screen"). ..("Field"). = "desired result" Then I've used this simple 'if' statement to do something similar to what you want. The other way I can think of is to use QC to run the test from. QC will store the results and the details it used to pass/fail that test for each step. I hope this helped.
09-02-2009, 08:07 PM
yeah, i've done that... But sometimes the framework we build, or what I've built, is not so foolproof... so i jus wanna capture QTP's results too and check if my framework is in sync... once things are stramlined i wudn need it anyway... so if anyone has an answer, pls help
09-02-2009, 08:20 PM
If your requirement is to pass the values to an external excel sheet then you will have to exploit the Excel COM object.
Code: Set oExcel = CreateObject("Excel.Application") This would write in the 1st row, 4th column provided that is your results column. If you want to write it for all the tests please iterate through a For loop and use the counter in place of the row.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
09-08-2009, 03:14 PM
Basanth,
I do not want write my own 'Pass' or Fail result based on conditions.... I want to capture QTP's results; the one that u see at the end of a run, wherein each step would have Pass, Done, Fail, Warning... Let me give an instance where the user and QTP can vary... I'm a novice, and while writing a click function, all i wrote was if obeject.exist then object.click result="pass" else result="fail" Now, I've made the mistake of not checkin if the object is enabled.. so when i run this script, I wud get a Pass result (as programmed) where as QTP will fail the click event as the object is disabled... Now, all i wanna do is capture this QTP's result; here "FAIL".... Also, reporter.RunStatus is not what I want, cos that gives me the overall Run status... I want the status for every action performed.... Any help? |
« Next Oldest | Next Newest »
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
QTP does not record the first step of open filight reservation application. | Blossoms | 9 | 17,758 |
07-20-2015, 05:50 PM Last Post: AJAJ |
|
step by step report | shipu | 0 | 2,160 |
08-06-2014, 02:21 AM Last Post: shipu |
|
which is the final step of automation in QTP? | Ramadas | 6 | 3,912 |
10-29-2013, 04:31 PM Last Post: Sathiya |
|
QTP is not recording the first step of opening Flight reservation app | srinanduri | 2 | 3,173 |
08-06-2013, 09:59 PM Last Post: srinanduri |
|
How to continue test after it fails a step | sqadri | 4 | 4,571 |
01-20-2012, 10:02 PM Last Post: sqadri |