NOMADIC RiSHI
NOMADIC RiSHI

Reputation: 11

How to use Steeping thread group with runtime controller

I am trying to use a steeping thread group with a runtime controller

Script flow


login 400 times Business Flow -Runtime controller for execution Transaction for the time period like 1 hour logout 400 times


Now Test scenario All Vuser 1 every 05 second duration 1 hour Stop Vuser 1 every 5 second

Steeping thread group I have given a 1-hour duration and in runtime controller also I have given an hour duration

Issue: My test run for 1 hour but logout is not happening.

Thanks in Advance.

Upvotes: 0

Views: 313

Answers (1)

Dmitri T
Dmitri T

Reputation: 168092

Stepping Thread Group doesn't know anything about presence of Runtime Controller(s) inside it, when 1 hour ends it tells threads to stop no matter whether they executed "logout" or not.

Personally I would rather:

  1. Configure the Stepping Thread Group to perform the workload pattern:

    enter image description here

  2. Put "Login" and "Logout" under Once Only Controllers

  3. Put the "Business Flow" under the While Controller with the following condition:

    ${__groovy((vars.get('TESTSTART.MS') as long) < (vars.get('TESTSTART.MS') as long) + 2000000 + 3600000,)}
    

    So it will execute the "Business Flow" for ramp-up period plus 1 hour and then proceed further

Test plan outline:

enter image description here

Upvotes: 0

Related Questions