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
How we can import data from database?
What is method name to compare two XML files.
Where you are storing your script?
please post the interview questions for QA position in FACTSET
How to capture all the data of a webtable, weblist and combolist using QTP?
Where is the Bitmap checkpoint information stored?
Through array we can execute the testcase how ? give me example
How to capture a window in QTP?
can anyone tell me what to say in interview when interviewer asks about "tell me about your framework in your project"?
How will you find the current time of the remote machine using QTP script?
When should I use smart identification?
can any body clearly explain about keyword driven framework .give me the explanation for files what ever you use in this frame work?
What are the key points to create a framework in QTP for oracle forms?
How to check bitmap output value?
Does QTP record on Objects created on XWindows Environment?