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

What is the recovery scenario in qtp?

986


what is impact analysis on regression testing?

2433


any body plz send health care domain project to me with explanation any two modules on that project. mail_id: ranjith_99reddy@yahoo.co.in

3834


What is the use of Debug Viewer?

1891


when a test case is written how u test using qtp

2075


what is Property......End Property loop? how to write sript for it in QTP

2332


How to explain a banking project in interview as a test engineer???

3067


Analyzing the checpoint results?

978


Hi All, I need code for how to execute qtp scripts from excell sheet

1861


What are the check points can be inserted without recording?

1015


How many types of run modes are there in qtp?

976


Hi, how can we check or avoid the memory leakage in QTP9.2?

2035


Is it possible to switch between recording modes during a test creation?

986


wht type of User defined functions or Java Releated functions Do we write in VB scripting

1736


When do go for loop condition in test?

1039