What is action required by QTP if a popup message is coming
in exsisting script and now it is not coming.
The script is having code to deal with popup message now
when we run the script now the popup i snot coming
according to new build, instead of changing the code what
we can do?

Answers were Sorted based on User's Feedback



What is action required by QTP if a popup message is coming in exsisting script and now it is not ..

Answer / ranga

Make it that step as Optional.

Is This Answer Correct ?    4 Yes 0 No

What is action required by QTP if a popup message is coming in exsisting script and now it is not ..

Answer / rentalavdml

Hi kishore,
We have one more option for this instead of recovery
scenario u can try with Window("tilte:= ").Exists then
click

In this case if the window exists it clicks on OK if not
script passes .

Is This Answer Correct ?    4 Yes 1 No

What is action required by QTP if a popup message is coming in exsisting script and now it is not ..

Answer / kumar

Hi,

consider we have 10 steps in this script.

we are expecting a popup after the 5 th step
the use the IF condition as (Answer1).like..

step 1
step 2
step 3
step 4
step 5

If popup.exists then

<statements to read the message ....>
Else
<send the error message to the report that popup is
not displayed and fail the test and exit from the test>

End If

step 6
step 7
.
.
.
.
.

Is This Answer Correct ?    3 Yes 0 No

What is action required by QTP if a popup message is coming in exsisting script and now it is not ..

Answer / rk

What Ranga said is right...
we can use OptionalStep.Window("').Dialog("").WinButton("OK").Click

what this will do is..if that pop up exists then it will click OK else it will skip that step.
It will wait for default time as we specify in ObjectSyncTime in settings.
If any one needs more info..then contact me @krish.ram20@yahoo.com

Is This Answer Correct ?    2 Yes 0 No

What is action required by QTP if a popup message is coming in exsisting script and now it is not ..

Answer / vineela

Kishore
thanks for the answer, we can use recoveries when there is
an extra popup is coming.
My question is if popup message is missing then when we are
running the script then how can we handle it
Thanks in advance

Is This Answer Correct ?    1 Yes 0 No

What is action required by QTP if a popup message is coming in exsisting script and now it is not ..

Answer / rentalavdml

Hi Kishore,
one more thing instead of changing the code( if recovery
already exists) you can remove the recovery scenario if it
exists .

Is This Answer Correct ?    1 Yes 0 No

What is action required by QTP if a popup message is coming in exsisting script and now it is not ..

Answer / kishore

We can use Recovery scenarios to handle the POP UP

OR write the code to handle the pop up un IF condition.

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More QTP Interview Questions

Anybody wants to learn QTP with realtime implementations and complete framework desiging plz contact to this mail id ciraaj@gmail.com

1 Answers  


Hi. GetRoProperty and OUTPUT Value Both are same purpose or not? plz explain in deatil with example?

5 Answers  


i did B.Tech cse and i secured 76%. instead of siting at home ... i would like to do some course. can u suggest me in this.

1 Answers  


What type of error u will get if u have not installed java add in in java project? what is the error name ?

1 Answers   Verizon,


how to invoke the web application through script in qtp

11 Answers   IBM,


Why use Regular Expressions?

1 Answers  


Is there any vbscript in QTP for Data Driven Test instead of using the option provided by QTP?

2 Answers  


if there is two login button in your page, how you know that this login button is correct for login .

2 Answers  


How do you configure QTP AND Test director?

0 Answers  


Can any one brief some detail on how the shared and action object repository utilized/implemented in a real time project. I already know how to make shared object repositor by saving OR as .tsr extension..I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thanks

0 Answers  


What exactly is the difference among all the three recording modes.

5 Answers   Accenture,


How to identify the objects using descriptive programming when the object property values are same, i mean in a page 10 objects are there i want to click the 6th object but all the object property values are same? using descriptive programming

2 Answers   Genpact,


Categories