cancel
Showing results for 
Search instead for 
Did you mean: 

GUI Test running in a loop how to break the loop for a specific case not matching criteria

Highlighted
sb1
Occasional Contributor

GUI Test running in a loop how to break the loop for a specific case not matching criteria

Hi Folks,

 

I am new to testing. Am running a sample GUI testcase with a login screen in which i am running a dataloop of 50 userids and passwords.

 

I am not using any coding for this purpose. I recorded a testcase with correct login id and password and logging into the system and then logging out to end the case.

 

For some userids, the passwords are set wrong deliberately. My requirement is to break the dataloop and go the next userid as soon as the incorrect password is entered and login button is pressed.

 

What is happening currently is that once the incorrect password is entered and login button is pressed, the testcase waits for couple of minutes before marking the case as failed and then proceeds to the next item in the data loop. I want to match the error message displayed on the screen and skip the wait time and break the loop and proceed to the next id. Is it possible to do this without coding?

 

Much appreciated, if someone can guide me.

1 REPLY 1
Community Hero

Re: GUI Test running in a loop how to break the loop for a specific case not matching criteria

These cases It is better to use scripting instead of Keyword test.

 

Why is waiting? It is waiting for logout to display as recorded to do it.

 

How you are doing data loop, Share some screenshots to help you better


Thanks
Shankar R

LinkedIn | CG-VAK Software | Bitbucket | shankarr.75@gmail.com

“You must expect great things from you, before you can do them”


Extension Available

New Here?
Join us and watch the welcome video:
Join the Online Event to Win