Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to write scripts with error handling mechanism
#1
Not Solved
Hi Guys,
I've to write automation script for web based application which will be run on IE, Chrome and FF. Can you help me with error handling code. For ex. if i want to capture screenshot of error and have it continue to next function. Can someone please give ideas on what i could do and how could i do it so any time i've errors, i can quickly and efficiently debug them?

Your replies are very much appreciated.

Thanks
Reply
#2
Not Solved
whenever u want to capture a screen shot of error, then write a function when u recieve any error and use Desktop.capture.
for next line you can use On error Resume Next
Reply
#3
Not Solved
Thanks Ankur!

But how can i do that if i've multiple actions in my script ?? Do i've to write that code for every action or there's a more dynamic way to do this ?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to write reports from scripts into excel anushreebehura 1 2,059 10-04-2016, 09:29 PM
Last Post: venkatesh9032
  Taking screenshots during Error handling arpan 0 1,572 11-05-2013, 11:57 PM
Last Post: arpan
  Dialog box error while QTP scripts run from VM Desktop rahuldps 2 4,513 11-14-2011, 01:47 PM
Last Post: ravi.gajul
  Secure QTP Code and Error Handling Scenario. knarravu 0 4,066 11-02-2010, 12:40 AM
Last Post: knarravu
  Version error - Convert QTP 9.5 scripts to QTP 9.2 shriqtp 6 5,374 09-02-2009, 11:03 PM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 1 Guest(s)