HomeSUPPORT QUESTIONS

Need help with StresStimulus? Start here.

1 VU per Test Case in Sequential Order Messages in this topic - RSS

mwatte
mwatte
Posts: 10


3/5/2020
mwatte
mwatte
Posts: 10
I am a novice load tester. I have 3 test cases that I'd like to run in sequential order (not concurrently) with a different user per test case. I created a Test Case Group with 3 test cases.


VU distribution = 3
Mix Weight = 1

It seems like all 3 users are just going to the first test case and the remaining test cases aren't even getting executed.

How can I achieve running 3 test cases in sequential order using a different user for each one or even if that's possible?
0 link
George @StresStimulus
George @StresStimulus
Administrator
Posts: 555


3/6/2020
George @StresStimulus
George @StresStimulus
Administrator
Posts: 555
TC Groups are designed to emulate situations where a single user executes several TC one after another like a single scenario consisting of sequential steps. In effect, a TC Group becomes a composite user scenario, and as such, cannot be broken down between several VUs by design.

It looks like you want to run 3 different test cases (TC1, TC2, TC3) by 3 different virtual users (VU1, VU2, VU3) respectively, and having TC executed at different times (sequentially). To satisfy this requirement, you do not need to create the TC Group. Delete the TC Group so you can work with individual TC.
Let’s use an example when TC1 takes 30 seconds maximum to complete and TC2 takes 50 seconds maximum to complete. Use one of the following approaches:

  1. Select a step load pattern (http://support.stresstimulus.com/display/doc51/Step+Load) with the following properties: Start VU: 1; Step VU increase: 1; Max VU: 3. Set Step duration to the longest of the TC1 and TC2 duration (50 seconds In our example). When you start the test, VU1 starts TC1 and completes it. After that in 20 seconds, VU2 starts TC2 and completes it. Then VU3 starts TC3 and completes it.

  2. Add a delay object (http://support.stresstimulus.com/display/doc51/Delay) to the beginning of TC2 that is equal to the time it takes to execute TC1 (30 seconds). Also, add a delay to the beginning of TC3 that is equal to the time it takes to execute TC1 + TC2 (80 seconds). Then run the test with a steady load (http://support.stresstimulus.com/display/doc51/Steady+Load) with 3 VU. TC will be executed sequentially.
0 link
mwatte
mwatte
Posts: 10


3/10/2020
mwatte
mwatte
Posts: 10
This was helpful. Thank you.
0 link






Copyright © 2024 Stimulus Technology