How the exception handling can be done using QTP
Answers were Sorted based on User's Feedback
Answer / mukesh
QTP provides Recovery Scenario manager for exception
handing..its open a wizard u just go through that wizard
step by step and save ur recovery scenario for that current
test or for all.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / mogal
Exception Handling is done in QTP by using
1.Recovery scenorios(Resources-->Recovery scenario Manager-->)
a.Triggered Event
b.Recovery operation
c.post recovery operation
2.synchronization methods(wait,wait property,exists like methods etc)
3. conditional statements( if,for,while etc)
4. on error resume next and on error goto 0.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / ycy
If u don't want use Recovery scenario
You create the exception steps as an reusabel action and u
call that action whereever u need to handle the exception
in the script.
Is This Answer Correct ? | 1 Yes | 1 No |
Answer / rafi
Using recovery scenario we can handle all types of
exception handling
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sreeprasad
It can be done Using the Recovery Scenario Manager which
provides a wizard that gudies you through the process of
defining a recovery scenario. FYI.. The wizard could be
accesed in QTP> Tools-> Recovery Scenario Manager .......
Is This Answer Correct ? | 1 Yes | 3 No |
What is object state in trigger events,in recovery scenario.write a script to handle this.
Have you done batch testing in qtp? If yes how you are doing?
i have two questions for regular expression :- Q1. I have date pattern eg-29/11/2011 29-11-2011 29.11.2011 Que- if any separator is there between date,month and year pattern should match else it should not match eg- pattern should not match in case of 2911-2011 Q2. let say i have a string and there is a number in between of that string eg.-Amount 30002.234 successfully credited to your account . now i have to match this pattern in such a way that even if decimal is not there pattern should match ,how i will do this using regular expression
can we run the scripts of QTP8.2 in QTP7.0?
I have 14 itmes in a drop down that are associated with an account And these items change with different accounts I want to be able to define it by and index number or any other id so if I enter 2 in my Global excel sheet it selects the 2nd item from the drop down - is this possible?
how to call multiple scripts in QTP at a time
Give a comment on Regular Expressions using QTP?
How to add a page checkpoint to your test?
If you are using descriptive programming and you have two objects with the same name, so you are identiying them by name and index, how can you avoid errors if a third object with the same name is added at the begining of the page?
How to capture a window in QTP?
what are the different kinds of frameworks in automation?
1. What is diffrence between Analog Recording And Lomlevel Recording ?