Run a process with ScenarioBuilder without logging in and out for each iteration of the process.

In real life scenarios, a user performs several actions in an application after logging in and before  logout.  So in our tests, we may want to log in once, repeat several iterations of a process, and then log out. 

You can do this in ScenarioBuilder by dividing your scenario into separate scripts like this:

1. Login

2. Process (for example: "order entry", or "create task", or "look up name")

3. Logout.

And using the "Skip if" property as described below:

 

Example:

Screenshot_4-11

First, select the step for the login process and go to its properties.

Next, click on ...|ellipsis button to open "Skip If" property.

In the "Conditional Expression Editor" window, type:

%_iteration% > 1

and click "OK".

This indicates that this step will only be executed in the first iteration and will be skipped for the next iterations.

Then go to the properties of the logout process and open the "Skip If" property.

And type:

%_isLastIteration% == FAILURE

and click "OK".

This indicates that this step will only be executed in the last iteration and will be skipped for the previous iterations.

Your scenario should look like below screenshot:

Screenshot_3-12

Finally, save your changes and play your scenario.