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?
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?