Please explain me in detail! How to handle runtime errors
in QTP useing recovery senario or with out scenario
Answers were Sorted based on User's Feedback
Answer / sathish reddy
Hi friends
We can also Stop the error by using below lines
MsgBox ("Error # " & CStr(Err.Number) & " " &
Err.Description)'this lines given the error number and
Description
Err.Clear 'this will clear the Error
| Is This Answer Correct ? | 4 Yes | 0 No |
Let me explain with out recovery scenario,
we can handle exeptions like pop windows by using IF
ELSE statements.
for example..
if window("XXXX").dialog("XXXX").exist then
window("XXXX").dialog("XXXX").winbutton("text:=XXXX").click
window(("XXXX)).winbutton("XXXX").click
else
<put remaining script here>
end if
and also by using methods like "on error resume next,
err.number, err.raise, err.information" methods.
if any queries on this..
nanda.dreddy@gmail.com
| Is This Answer Correct ? | 4 Yes | 2 No |
Answer / sesha sai shivanaresh
There are 4 trigger events during which a recovery scenario
should be activated. They are
A pop up window appears in an opened application during the
test run.
A property of an object changes its state or value.
A step in the test does not run successfully.
An open application fails during the test run.
These triggers are considered as exceptions and more
details regarding how to use Recovery Manager is given in
the QTP User Guide. Since there is hardly any space to put
up snapshots
| Is This Answer Correct ? | 3 Yes | 2 No |
Answer / pramod mallick
and also...
If any un-expected popup window appears
Then we can close all popup windows by using kill process
by window name. There is a QTP Utility function to kill the
window by process. We can use this also.
| Is This Answer Correct ? | 1 Yes | 1 No |
What does VBS file contain?
hello, i just started searching for a job on QA ,need QTP software full version.plz can any body help me...my email id is padma_ub@yahoo.com.thanks in advance.
qtp script for recording and running the application.need script for short cut keys like f3,f4 etc.how to write script for recording?
tell me about framework types and most used framework in real time. types of output value in details. diff between wr and qtp in detail.
What is API
Deal All, Recently i face one interview question in one company. str="test12@#3456" In This i want to print like special character and numeric ,word in one script please tell me how to write the code for this Thanks Balaji
If there r 1000 test scripts that were written. If a change to any functionality is to be made then how can we know in which script is this functionality existing.
Hi,How to write regular expression for inbox(10) {here 10 is changing while playback}.tell me the pettern.
How to delete an object from the object repository?
How to call the userdefined functions to script? If i am stored 'add()' function in Library functions folder. i want to cal that function in my script.
What is CMMP and CMMH?
After creating testcases, how do you start testing in QTP? what methodology will follow?
7 Answers Actran, American Well,