I am trying to create a script to test a login window. My login window has following fields:
3. "Login" Button.
I created a data sheet with 3 to 4 invalid test data and at last valid test data. Now, I am trying to run the script but have stuck in looping part. It enters an invalid data, throws error and then open a new window to enter another one, while I want to execute all these data on a single window. And when it gets valid data, It should be logged in. I don't know how to create this scenario.
A lot depends on what your AUT does when an invalid entry is made. If it displays a pop-up notice that the ID or PW was not accepted, and you expect it to do that, then grab that pop-up and put it into your repository with a "Checkpoint" and then script to find it. If you do not find it that is a bug in the app. If you do, script to remove it and re insert your data. Also as Argh said, attach or insert your code in your post please.
Success is the ability to go from one failure to another with no loss of enthusiasm.
~ Winston Churchill ~