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

We have 10 rows in datatable at runtime we get error at 3rd row ? what is the procedure for continuing same test from 4th row on wards?

10 Answers  


What is the difference between Datadriven and Parameterization?

8 Answers   Ordain Solutions,


Now it appears to be more than enough... I have learn entire QTP, I did whatever I could do but still facing lots of problem and those problems could be removed only after working in professional atmosphere. But still unable to expose myself as professionaly. It is becoming panic, It has been two years I am in manual testing and looking for the change but all the recruiters ask for QTP, but my problem is I don't have working experience with QTP. Kindly suggest me I really need effective suggestions. I dont have more caliber to work with present organization cause of salary reasons...boo.. hooo...hooo. My email address is alkaa.dugaal@gmail.com

0 Answers  


we have one text box and one list box(list box appear in same page or another page) what ever the text enter in text box that must be displyed in list box as first one. for example if we enter 10 in text box that is the 1st item in list box . after that we enter 11 then 11 is the 1st item and 10 is 2nd item. the maximum limit of list box is 10 items. if we enter 11th item the 10th item is deleted and llth one is add as 1st one and 9th one goes to 10th position

3 Answers   Covansys,


Can you give me the code to calculate the total number of Links using the child object in the web page..? is there any other way to calculate number of links with out using the Child objects.??

2 Answers   DST Global Solutions,






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  


how to merge object repositories in qtp for n different applications

1 Answers  


How will u declare a variable to access multiple actions? a)Dim b)Global c)Public d)Private

1 Answers  


How to Analyze the Checpoint results with Standard Checpoint ?

1 Answers  


what is meant by automation tool?

1 Answers  


Hello Everyone, I have a problem. QTP is capturing no action on a particular page in the application that I am trying to automate. But on the same side its working fine on other pages of the same application. Can someone please help me understand the reason behind this inconsistency.

1 Answers  


I want to learn QTP Online, where can I get quality training?

15 Answers   CSC,


Categories