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 |
Hi Friends, Iam Beginner in QTP and i want to Try the software QTP. I checked the mercury site for QTP Trial version and i found QTP 9.0. The thing is that it supports windows 2000,Xp but not windows 98.And Iam using Windows 98 onlu and it's not possible for me to upgrade to windows 2000. Pls. guide me how to get the trial version of QTP which supports windows 98 Operating System The version may be 6.5 is ok for me.Thanks in Advance
An object is created, i dont know the methods available for that object, i want to find methods available for that object and use the required method. How i can do this???
Explain the concept of Output values in Quick Test Professional?
where is the bitmap checkpoint be saved
HI I want to know the detials of QTP certifications such as syllabus, study Materil etc. Can any provide me all these details?? my mail ID is krishnuvk@yahoo.com
Hi all , I am new at QTP I want a sample script to check validation messages(For java script or VB script) for login page with for web based application.. Any one can Help. I have to complete it in two days I need urgent help.. Ex. if I want to check mail.yahoo.com 1 > If user doed not exist it display "Username does not exist" 2> if invalid Uname and password then it display" Invalid Uname or pass" 3> Loing Sucssessfully. I want to check this types of application by using data table to give values of username and password.. Thanks
What is method name to compare two XML files.
wht is the difference between action and functio?
WHAT AREV THE STEPS BETWEEN TEST cASE AND Script generation?
How to get line numbers in your editor in expert view?
Difference between image checkpoint and bitmap checkpoint
Where is the resultset of a sqlquery (which is fired by rsobj.open sqlquery,xxxx,xxxx) stored ?