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 we can import data from database?

1272


What is method name to compare two XML files.

2026


Where you are storing your script?

1140


please post the interview questions for QA position in FACTSET

4490


How to capture all the data of a webtable, weblist and combolist using QTP?

3381


Where is the Bitmap checkpoint information stored?

2360


Through array we can execute the testcase how ? give me example

1952


How to capture a window in QTP?

2029


can anyone tell me what to say in interview when interviewer asks about "tell me about your framework in your project"?

2111


How will you find the current time of the remote machine using QTP script?

1110


When should I use smart identification?

1198


can any body clearly explain about keyword driven framework .give me the explanation for files what ever you use in this frame work?

2169


What are the key points to create a framework in QTP for oracle forms?

2309


How to check bitmap output value?

1246


Does QTP record on Objects created on XWindows Environment?

2259