How can we disable popup blocker? (I think it means when
we get a pop up
messge(its error) how we wil disable that one with out
interrupting normal
process)
Answers were Sorted based on User's Feedback
Answer / godisgr8
In QTP, we can use Recovery Scenario's to handle exceptions
like this Pop-up messages;
Trigger->Pop-up message box
Recovery->U instruct QTP how to deal(ex)Click the OK button
Post-Recovery->How to Proceed further (ex)Run the next test
iteration
We can use the recovery scenario file to other scripts too.
They will be of file extension rs.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / francis
Use can use the vbscript cmd in the script
On error resume next
or use can use the below one
File->Settings->Run(tab)->Select the option proceed to next
Step
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / jenny
Ideas:
A program can deal with an exception in one of three ways:
– ignore it
– handle it where it occurs
– handle it an another place in the program
If you do not see the pop up message and if the err can be
ignore it,
Then make a code to Write the err to a error log;
Proceed to next step.
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / pramod k sirotia
Hi, Prasann.p
First of All, I would like to ask to M.hemakumar, Godisgr8
and Jenny that you all are very intellient becuase you know
Advance "Recovery Scenarios" feature of QTP.
But my dear fried do not misguide to someone if you don't
know the exact answer of query. Please read once carefully
to Ques. it's not Covers any of your recovery scenariors.
If you guys say right then let me know how to Handle to
Popup blocker Off by QTP. As you says in Recvoery part "U
instruct QTP how to deal(ex)Click the OK button"
but kind for your information i would like to say you that
if you click oK button by QTP then that message will go
away but your Popup bloker will not be off.
So As per my best knowledge please consider this Code to
handle this situation.
'When we get a pop up messge(its error))
If Browser("Browser").Page("XYZ").GetRoProperty
("innerhtml").exist
Then
Reocord Go to Browser then Click Tools-> Popup Blocker ->
Turn off.
remaining Script
End If
Next Codes.
Hope you will get your problesm out.
If you are not satisfied call or Contact me at:
pramod.sirotia@gmail.com
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / m.hemakumar
Navigation:
File->Settings->Run(tab)->Select the option proceed to next
Step
| Is This Answer Correct ? | 3 Yes | 7 No |
Can I compare two DataBases using QTP ?
How you used DDT in QTP?
Hi All Below is my script which i made for lgin into Flight.exe. SystemUtil.Run "C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe","","C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\","open" Dialog("Login").WinEdit("Agent Name:").Set DataTable ("p_Text", dtGlobalSheet) Dialog("Login").WinEdit("Agent Name:").Type micTab Dialog("Login").WinEdit("Password:").SetSecure DataTable ("p_Text1", dtGlobalSheet) Dialog("Login").WinButton("OK").Click If Dialog("Login").Dialog("Flight Reservations").WinButton ("OK").exist Then Dialog("Login").Dialog("Flight Reservations").WinButton ("OK").Click datatable.Value(3)= "Incorrect password. Please try again" Dialog("Login").WinButton("CANCEL").Click elseif Dialog("Login").Dialog("Flight Reservations").WinButton("OK").exist Then Dialog("Login").Dialog("Flight Reservations").WinButton("OK").Click datatable.Value(3)="Please enter agent name" Dialog ("Login").WinButton("CANCEL").Click elseif Dialog("Login").Dialog("Flight Reservations").WinButton("OK").exist then Dialog("Login").Dialog("Flight Reservations").WinButton("OK").Click datatable.Value(3)= "Please enter password" Dialog("Login").WinButton ("CANCEL").Click else Window("Flight Reservation").Move 309,146 datatable.ExportSheet "C:\Raj\Result.xls" ,1 Window("Flight Reservation").Close End If I want to capture the Message string from Dialog("Login").Dialog("Flight Reservations" Also pls let me know if this is the right way to do the script for login. Pls provide some script for login Flight.exe Thanks in advance Raj Dhiman
Which property will you use to check the object state? (Exist)
anybody wants to learn QTP with realtime implementations and complete framwork contact to this mail id ciraaj@gmail.com
How do you test the different ads displayed in the Inbox home page of Yahoo. Once u login Yahoo mail, in inbox page there will a banner, where different ads are scrolling, how do you test that using qtp?
suppose u have two send buttons(same width,height,font) on an application write a descriptive programming
What do you mean by iteration?
In key word driven framework,we will rename the logical names of objects,why?
What is the difference between shared and local object repository?
I am a new tester that needs to create an automatic script involving security questions. On a webpage I need to select a security question(which are random) from a drop down menu, and then input the answer as the last word from the security question. I have the script set-up to automatically select the first security question from the drop down. The problem I am having is trying to insert the security answer. How do I insert the security answer based on the selection from the security question?
what are the main differences between keyword driven frame work and data driven frame work?