Unanswered question

How can I get a container to only run on the first and/or last iteration of a script execution

For instance: I want Login to only happen on the 1st iteration and Logout to happen on the Last Iteration.

Todd F.
Todd F.

Todd F.

Level
0
10 / 100
points

Answers

Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

Currently with NeoLoad 3.2.xx, the only way to achieve that is to insert your transactions within a loop or while logical action.

Your virtual user will login, iterate a multiple times and logout.

In our next version 4.0 coming soon, this behavior will be the default one. You will have an Init, Actions and End containers. The Init and End container will only be played once whereas you can iterate on the Actions one.

That is to say that if you put your login container inside Init and logout container inside End, the login and logout will only happen once.

Todd F.
Todd F.

Todd F.

Level
0
10 / 100
points

That is what I needed. I just wanted to make sure that was the best approach. Thank you