Please any on explain usage of "on error resume next","On
error goto 0" with sample code....Thankyou.........
when a tester is asked to execute 100 scripts in a short
time..(the server will be down in another 10 min)..how he
has to run those scripts?

Answers were Sorted based on User's Feedback



Please any on explain usage of "on error resume next","On error goto 0" with sa..

Answer / ganesh kumar

"on error resume next" is to resume the QTP to the next
line,next action when an error occurs while executing the
Test Script

Is This Answer Correct ?    4 Yes 2 No

Please any on explain usage of "on error resume next","On error goto 0" with sa..

Answer / aiswaryan

On error resume next - If any error occured in the function
then qtp will skip that error and start from the line next
to that and report the error in the result.
On error go to 100 - goto 100th line.
If the scripts are independent to each other, then you can
execute the scripts even if it stops in 10th script, in
later you can continue testing with that.

Is This Answer Correct ?    3 Yes 4 No

Post New Answer

More QTP Interview Questions

Can a function return a dictionary object?

2 Answers   CG, Semantic Space,


hi i have one issue while automating the script using QTP i want scrool down .i cannot do even using scrool down methqad is not working .the object will take WebElement plz is there any code help me

3 Answers  


If an application name is changing frequently i.e while recording it has name “Window1” and then while running its “Windows2” in this case how does QTP handle?

7 Answers   Covansys,


What are the advantages of QTP over WinRunner?

5 Answers   CTS,


assume i have few url link how will i dynamically call then using descriptive programming?

0 Answers   BirlaSoft,






you are recording on "WINDOW 1", say it has a link if you click on that, that leads you to "WINDOW 2". If you do any manipulations on "WINDOW 2" that are automatically updated in to "WINDOW 1". But "WINDOW 1" is currently invisible. But the updations in "WINDOW 1" must also be recorded as a script in QTP. The best Example is if you update your resume in JOB STREET portal it actually happens in other window, but the previous window is automatically updated. Now does QTP help you in this types of situations? Any body can answer this question. please..... Siva

0 Answers   Covansys,


Can launch two instances of qtp on the same machine?

0 Answers  


Hello Everybody, Please tell me the concept of recovery management in QTP by giving any practical example of it. Thanks, Gaytri

7 Answers  


How will u find that how many List boxes( and check boxes) are present in one particular window

8 Answers  


Please have a look at this: a = Browser("Travel Boutique Online").Page("Travel Boutique Online_2").webelement("innerhtml:=2622").getroproperty("y") a=a+9 msgbox a Browser("Travel Boutique Online").Page("Travel Boutique Online_2").image("alt:=check","y:=a").click Now please let me explain. As clear from code I am trying to enter value of variable 'a' as Property y. But each time QTP AND MY SYSTEM stops responding when this line is execcuted. But When i enter some number in place of 'a' in the last line. it works fine. Please let me know what I am doing wrong at time of entering the variable in last line. Thanks a lot

3 Answers  


How can we automate Capthca on registration or any contest forms ? Is it possile to Automate Webpages with Falsh using QTP..?

1 Answers  


how to merge 2 object repositories in qtp 9.0.what is use of merge and y merge is used?

1 Answers  


Categories