Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

Load test with token at specific interval

Options
sravuru
sravuru Posts: 1

I have a scenario where we need to use token in the API load test and this security token is valid for only 15-20 min. We need to hit token only once in every 15- 20 min. Is there a way i can use this logic in the load test.

Comments

  • Sergei
    Sergei Posts: 34
    Options

    If you need to configure Load Test to execute a single test in 15 or 20 minutes or any configurable interval while your other load test tests are running you can do that with the following steps: add a new profile to the Load Test project, set the delay value in the profile to the desired number of minutes (15-20 or whatever your number is). Switch your Scenario Type to "Direct Profiles", set the number of VU of the new profile to 1 and set the Randomization to None. This profile will run the tests assigned to the profile once every N minutes you configured. Note that your Load Test scenario including the rest of the profiles will have to run in the "Direct Profiles" mode with no randomization.