HomeSUPPORT QUESTIONS

Need help with StresStimulus? Start here.

Using different credentials on different iteration Messages in this topic - RSS

Unregistered User
Unregistered User
Posts: 514


1/29/2021
Unregistered User
Unregistered User
Posts: 514
I want to execute 3 times (3 iterations) of only 1 test case, and I want in each iteration the test case steps to be executed by the different credentials (each time from the next row) in Authentication section.
For example:
First execution of test case to be done by row1 credentials from Authentication section.
Second execution of test case to be done by row2 credentials from Authentication section.
Third execution of test case to be done by row3 credentials from Authentication section.

My configuration:
I have 3 rows in Authentication section and VU-to-row mapping=By VU number;
In Load pattern I put Number of VU: 3, Steady Load;
In Test duration I put: Number of iterations, 1 max iterations Per VU;

It is a simple test pattern that I was able to configure before, but now with the configuration above I get 3 times executed the test case with always the same credentials from the same row from Authentication section. For example, I get 3 iterations done by row3 credentials from Authentication section.

Where is my mistake?
0 link
George @StresStimulus
George @StresStimulus
Administrator
Posts: 566


3/26/2021
George @StresStimulus
George @StresStimulus
Administrator
Posts: 566
It sounds like now you need to change a single VU’s server authentication credentials on different iteration.
In server authentication, the credentials are stored on the connections level, so you would need to close the connection and reopen it with new credentials on every next iteration.
It can be accomplished by using a Reset Connection object (described http://support.stresstimulus.com/display/doc53/Reset+connections)

First, you would need to add the Reset-connections object to the very end of your test case.










Then in your Authentication section set the VU-to-Row mapping = On-Demand


0 link






Copyright © 2024 Stimulus Technology