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 can i check items sorted or not in a weblist ? Give me the script for this...
How to use output values in qtp ?
HOw to add the recovery file at runtime to the test file .
What are the technologies supported by qtp?
What is the significance of “action 0” in qtp?
Plz Explain AUTOMATION REFERENCE MODEL?
what is test scheduleling?
How to create a standard checkpoint ?
How do you convert manual test cases to automated test cases?
Explain quicktest professional (qtp) testing process?
In Test Directory, What are the contents in test case designing? if you prepare in excel sheet how u use thrw Test Directory?
What is the qtp testing process?
Mention what are the different types of recording modes in qtp? Which will be used when?
what is description object?
distinguish between old version and new version QTP features.