Ask a Question

How to setup the test in ReadyAPI to avoid multiple logins to the application in a LoadUI scenario.

New Contributor

How to setup the test in ReadyAPI to avoid multiple logins to the application in a LoadUI scenario.

When running my load test if I have my login and logout inside of a test case and then run as a load scenario, it will trigger many logins and logout request in a load test.


The script has the following steps.








There is a token that gets passed to Action1, Action2, Action3, and Logout.

How do I setup the test case or scenario in loadUI, so that I only need to run Login once and then loop through Action1 - Action3 before Logout at the end.



Champion Level 3


you can put the login and action steps into two separate test cases:

  • Login Test Case
  • Action Test Case 


Then, you can:

  • execute the Login test case manually and thus set up the authorization data.
  • execute a load test with the Action Test Case.

This doesn't work as I am trying to simulate different users logging in for each VU I am running.

Quang Tran
Test Automation Lead


The information contained in this email may be privileged, confidential, and protected from disclosure. If you are not the intended recipient, or an employee, or an agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this email in error, please notify the sender immediately by replying to this email and you must delete this email from your computer.

@quangtran, so the test case could be designed the following way:

  • login
  • data source
  • activities
  • data source loop
  • logout


The activities would be repeated multiple times and login/logout just once.

How do you loop based on the duration of the load test?

If I setup the loop as a data source loop, it will complete as soon as the steps are completed which can be quite fast. Some of the calls are sub seconds and let's say I loop 10 times, it will finish really fast.

Is there some way to control how long the loop goes based on the load scenario? If it was 20min the loop should run for 20min and if it is 30min then it should loop for 30min.

Showing results for 
Search instead for 
Did you mean: