Forum Discussion

jeremy_weber's avatar
jeremy_weber
New Contributor
16 years ago

LoadTests ordering

Is it possible to have create a load test that does the following:

TestCase1 - execute for a X number of seconds...

then

TestCase 2....

etc...

Currently it seems the behavior for a load test is to execute all the testcases simultaneously.

1 Reply

  • omatzura's avatar
    omatzura
    Super Contributor
    Hi!

    I suspect you mean TestStep when writing TestCase!? (since a LoadTest can not run more than one TestCase at once)

    A loadtest executes the underlying TestCase as configured; the contained TestSteps are run in the same order as if the TestCase would have been run "alone". There is no way currently to run the first Step for X secs and the second Step for Y secs, to achieve this you would have to create seperate TestCases and LoadTests for the two requests and then create a third TestCase with only a Groovy Script that would act as a "controller" and start the two LoadTests after eachother.

    Hope that makes sense :-)

    regards!

    /Ole
    eviware.com