I'm demoing QTP. I've searched the forums for help with the following but came up empty. I'm hoping someone with experience with QTP can help a newbie.
I've recorded a simple test that will check login usernames and passwords. I've been able to parameterize my list of logins. I was also able to add in a text checkpoint to make sure the text "Invalid Login" is not displayed.
I have 2 problems I'm stuck on:
1. If I have a login that is invalid how do I get QTP to write that invalid login and password to the results output?
2. and how do I resume checking by moving on to the next login and password record in my data table?
Currently my test stops when it comes to an invalid login. I want to test all of my logins and have output that shows me the logins that failed.
Ok...When you type invalid login, what you can see on that screen? some thing like "The network login id entered does not exist" catch this string( it can be displayed in webelement/webtable).then write this condition.
If Browser(B).Page(P).webelement(w).exists(3) Then
If x="The network login id entered does not exist" Then
Reporter.reportevent micFail,"Login","Login failed :" &x
ElseIF do a condition for validating home page of that app