Hi,
I have created two test cases: 1 for login and 1 for logout. Login test case is test data driven; for that i have created two variable: username and password.
I added both login and logout in a test suite and used data binding for login test case.
When i run the test case with one set of username and password then execution happens fine but when i have multiple sets of login credentials, say 2 then the execution happens as:
- Login Test case (with 1st set of data)
- Login Test case (with 2nd set of data)
- Logout
I want to have operations as reusable methods and then use them in test suite as per flow. So if i want to login, logout for one set of user and then move on to next set of user, what should be the best approach in here.
Please refer screenshot of the test suite for the configs.