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


Please Help Members By Posting Answers For Below Questions

How can i check items sorted or not in a weblist ? Give me the script for this...

1580


How to use output values in qtp ?

558


HOw to add the recovery file at runtime to the test file .

1543


What are the technologies supported by qtp?

567


What is the significance of “action 0” in qtp?

575






Plz Explain AUTOMATION REFERENCE MODEL?

1684


what is test scheduleling?

2017


How to create a standard checkpoint ?

561


How do you convert manual test cases to automated test cases?

583


Explain quicktest professional (qtp) testing process?

539


In Test Directory, What are the contents in test case designing? if you prepare in excel sheet how u use thrw Test Directory?

1510


What is the qtp testing process?

600


Mention what are the different types of recording modes in qtp? Which will be used when?

564


what is description object?

1602


distinguish between old version and new version QTP features.

1865