Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 interviews will be on QTP?

1915


What are the different recording modes?

948


Why do we use breakpoints in QTP?

1024


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

983


Is it possible to merge two object repository files in qtp?

1147


How to customize qtp?

1001


What is the difference between per-action and shared?

1097


when u script reveiwing in which area u more concentrates?

1856


What r the different filters in defect in quality center

3719


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

2661


what is the hierarchy to use properties in descriptive programming

1956


How will you check a web application for broken links using qtp?

989


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

999


Hi all can any one give me roles and responsibilities for QTP (not WINRUNNER)

3670


If object is not recognized by qtp but the object is standard object what is your approach?

983