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

Is any limitation to xml checkpoints?

0 Answers  


I have written some script in QTP and i added those objects in Object Repository. All written script has been executed successfully. After few days when i tried to execute the same script i got error message "objects not found in Object Repositiry". How can we solve this issue?

3 Answers  


In qtp,how to interact tool & application build?

1 Answers  


suppose u have two send buttons(same width,height,font) on an application write a descriptive programming

1 Answers  


What is Object Spy?

7 Answers   JKH, Ordain Solutions,






how can we perform web datatable operations on webpages(Like rowcount,col count,cell data)?

2 Answers   Syntel,


What are the common defects found in your project? (in qtp interview)

0 Answers   TCS,


By default Action1 runs first in QTP. Is it possible to start the run with Action2?

9 Answers   Virtusa,


Tell me the situations where we will use Data Driven?

2 Answers  


When The Low Level Recording is Used in QTP

17 Answers  


we r conduction testing on a project USING QTP, regarding that project the object repository is full ? Till that project having objects that r not recognised by repository, then what wil you do? How we wil recogine remailning objects? Is it possible to maintain another shared(or)peraction repository? what is the maximum capcity of object repository? How the technical people decide this much object repository is enoughf for this project?

7 Answers   AppLabs, CGI,


There is an built in window application in qtp9.1,i.e.Flight4.0.i want to implement the recovery maneger on it.How can i do this?

0 Answers  


Categories