_ivanovich_
9 years agoFrequent Contributor
How to add assertion in login request in datasource loop
Hi,
i have a very simple login request with a datasource (10 invalid usernames and passwords) and a datasourceloop
so the login request is executed 10 times.
After the execution is finished, i see all request in green but i used an invalid password, they should be in red
How can i add assertion in each login request
Thank you
You'll want to add an assertion to the step where the login information is validated. Adding a DataSource loop and unchecking the "Abort on Error" selection in the Test Case Options will ensure that your test will run through all iterations of data.
There are many types of assertions available that may suit your needs. For more information on assertions, please see the following doccuments: