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
What is the recovery scenario in qtp?
what is impact analysis on regression testing?
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
What is the use of Debug Viewer?
when a test case is written how u test using qtp
what is Property......End Property loop? how to write sript for it in QTP
How to explain a banking project in interview as a test engineer???
Analyzing the checpoint results?
Hi All, I need code for how to execute qtp scripts from excell sheet
What are the check points can be inserted without recording?
How many types of run modes are there in qtp?
Hi, how can we check or avoid the memory leakage in QTP9.2?
Is it possible to switch between recording modes during a test creation?
wht type of User defined functions or Java Releated functions Do we write in VB scripting
When do go for loop condition in test?