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 / bfakruddin
Hello Folks,
Dimple provided nice answer... validation should be done on
password field... when we provide wrong input... popup gets
rise then check it is poped up or not... if it is rised
then pass the test case else... password field accepts
wrong password too...
Code is here,
res=dialog("correct password").getroproperty("enabled")
if (res=true) Then
reporter.reporteven micpass,"password validation done"
...
...
Then
dialog("correct password").webbutton("OK").click
Thanks & regards
Baba Fakruddin.D
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
how interviews will be on QTP?
What are the different recording modes?
Why do we use breakpoints in QTP?
How can I change object description or check point values in qtp?
Is it possible to merge two object repository files in qtp?
How to customize qtp?
What is the difference between per-action and shared?
when u script reveiwing in which area u more concentrates?
What r the different filters in defect in quality center
I used child objects to get the no of weblist present in the weblist.now i need to select the items present in each weblist ?How to do so
what is the hierarchy to use properties in descriptive programming
How will you check a web application for broken links using qtp?
What is the significance of “action 0” in qtp?
Hi all can any one give me roles and responsibilities for QTP (not WINRUNNER)
If object is not recognized by qtp but the object is standard object what is your approach?