i am entering wrong data or wrong password in a text box and
click on submit button .i am getting a popup window with a
message Please enter the correct password or data .How can i
handle this situation by using QTP.

Answer Posted / saravanaraja

Use the following code:

systemutil.CloseProcessByWndTitle

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to creating an output value using quicktest professional (qtp)?

753


what is the advantages and disadvantages of using functions instead of re usable actions

1631


Describe how Smart Identification is used

1864


Consider one application is open, clicking one menu will open another application in another browser. QTP does not catch the URL of the second browser(second application). can we capture it ?

1675


Explain in brief about the qtp automation object model (aom).

722






I need Major Help with a Script I recorded in QTP 9.5. I am recording scripts for a Web-based application(s) I have all the URLs for each application in Excel spreadhsheet so that QTP can pull that particular application from the spreadsheet and run it. The problem is QTP isn't recognizing one particular URL so when I hit run in QTP to run this script it opens the internet Explorer but isn't open the URL I have in the Excel spreadsheet. I've retyped the URL and still QTP won't open this Particular one for some reason. The site its self is working fine but for whatever reason QTP won't open it. How do I resolve this? I have a deadline of next Friday the 7th to complete this task so please help me in any way you can. Thanks in advance

1885


Hoe can we do retesting using functions please give the code for it using login page

1730


Will down time for server and content maintenance/upgrades be allowed? how much?

818


How can I change object description or check point values in qtp?

732


If you giving priority as p0, as a developer if I give priority as p2, What happens In user defined function ?

804


What are the different properties of an web object

1608


How to use reporter.report event in qtp ?

761


i'm using the qtp to test to vb appliction,i wanted to get the new application's title.i didn't want to use the winAPI to get it ,i 'd like to know whether a QTP function can do it. Eg: SystemUtil.Run "C:\Program Files\.....","","","" 'run an application, and misure the application is activating,then how to get the hwn wihtout using windowns api

1728


What is a data driven test in qtp?

757


There is an excel file of 1 to 100 sheets how you will iterate through it?

735