how can we handle exceptional handling in qtp
Answers were Sorted based on User's Feedback
Answer / siva krishna
We can handle exceptional handling in qtp by using
Recoery Scenarios and the next one is by using "ON ERROR
RESUME NEXT".I think both these are the methods we actually
have in QTP with exceptional handling.Let me know if any
mistakes are there.
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / softwaretester4u
Hi we can handle exception handing through recovery
scenarios ,after creation of recovery scenarios ,call the
settings ,resource tab
Is This Answer Correct ? | 2 Yes | 0 No |
We can handle exceptions siuing below ways
1.On Error Resume Next - Skip the Error and continue the next stpes of execution
2. Recovery Scenarios
Select Resources > Recovery Scenario Manager. Create new Scenario > Specify the Trigger Event > Specify the Recovery Operation > Specify Post-recovery test run options
3. Conditional Statements ( If, ElseIf,Else,Do,While,...)
4.Synchronization Methods (Wait,WaitProperty,Sync,Exist)
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / raveendran
You can handle expeption in your script using If..Then
statement, or you can use .Exist statement, If any know
error message which you fell it occur, you can use
this .exist stmt to close that window.
You can use recovery scenario (.qrs file) record your
recover scenario and makesure that you are loaded that .qrs
filr into your QTP window whenever you run the test, if any
problem occur during run, it use that recovery scenario to
recover from failure.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / denis parker
Scripting related exceptions can be handled in two ways:
1. On Error Resume Next - To Suppress error and proceed the script execution
2. On Error GoTo 0 - To express (or prompt) the error and proceed or stop the script execution based on user selections in the error prompting message box.
Generic Application (outside the scripting)related exceptions can be handled in more ways (but listed here 3 ways):
1. Recovery Scenario
2. Conditional Statements
3. Using "Exist" method
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / saket
We can handle exceptional handling using the VB scripts to
some extent.All procedure which are prone to exception can
be kept in a if-then loop and depending upon the result of
the operation,either proper error message can be displayed
or next procedure can be executed.
Is This Answer Correct ? | 0 Yes | 2 No |
what is synchronization point, synchronization method, wait property method? with examples.. plz explain this in brief
How to handle the exceptions using recovery secnario manager in quicktest professional (qtp)?
What is Unicode Compatibility?
What are the differences between table and db checkpoints?
Why we use QTP ,We can use other tools like WR OrSilktest What r the options in Qtp that WR and Swilktest Does not have.
What is a checkpoint? How many check points are there in qtp?
What is dynamic arrays
I want to do Certification course in QTP. For this I request you to suggest the best Tutorial in PDF format. Hence, if possible, kinldy mail PDF file to my mail-ID: sushmapokhriyal79@gmail.com
in QTP, we have options like (record and play,recording modes(normal,analog,low level),object identification,smart identification,object repository,synchronizing test,transactions,checkpoints(std,bitmap,text,text area,DB,XML,accessibility),regular expression,actions,data driving,parameter,parameterization,data tables,recovery scenario(pop up,object state,test run error,application crash). real time users of QTP, pls say and when and at what point u have used all these options ,in ur concerned project.pls give me explanation in accordance with ur real time project handled. real users pls send some time in the aboue case. if u can send the the reply through allinterview or at ref_it_ref@yahoo.co.in
How to retrieve value (data) from notepad using QTP ?
With out using the task manager,how to close the application using vbscript and what is the statement?
Hi, Where should I get all the test's results If I ran the scripts in Batch run. At the result window I found only last test result. Could any one help me on this?