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 |
How will internal and external links be validated and updated? how often?
Hi This is tanya actually im facing problem in Qtp actully some time QTP doesnot recoznise the recorded object due to which script is going to fail.so can you tell me how we can handle this situation and i have another concerened issue is that at the time of run New errors comes every time so how we can handle this sitauation how we can add Recovery scenarios to the script.some time application runs successfully and some time it produces new error thats why i am facing lot of problem please give me the sugeestion as soon as possible.
How does you pass optional arguments in qtp?
is the institute MindQ laid by Mr.Nageswar rao.. heard alot about Nageswar rao...can you briefly let me know about the Nageswar rao inst. and MinQ...THANX IN ADVANCE
Tell me the situations where we will use Data Driven?
how to write code for to select all the checkboxs in the gmail i wrote code for my question but it didn't works any body suggest what wrong my code my code is Set chkboxDesc=Description.Create() chkboxDesc("type").value="chekbox" Set chboxcollection=Browser("name:=Gmail .*").Page("title:=Gmail .*").ChildObjects(chkboxDesc) For i=0 To chboxcollection.count-1 chboxcollection(i).set "ON" Next i was getting general run time error pls help me i am in learing stage
what are the areas that cannot be tested using an automated tool? list a few
How does Parameterization and Data-Driving relate to each other in QTP?
Can we record a video in qtp recording??
How will you set a unique four digit number in an edit field in QTP?
How to upload excel files into Quality Center using QTP Script and how to delete excel files from Quality?
how to count the word "IS" is repeated in the application using DP
3 Answers DST Global Solutions,