Forum Discussion

JacekSalamandra's avatar
JacekSalamandra
Regular Visitor
6 years ago

Run Loadtest automatic start

Hi

I have to run load test by clicking the green arrow "Run this load test".

Is it a possibility tu run Load test automatically by invoking in groovy sprint or with all the rest test cases in test suite?

1 Reply

  • You can start load tests using a groovy script.

    If you have, for example, such a project structure click me.

    You can use this script to start the load test:

     

    log.info("start")
    
    runner = context.testCase.testSuite.getTestCaseByName("TestCase").getLoadTestByName("LoadTest").run()
    runner.waitUntilFinished()
    
    log.info(runner.getTimeTaken() + "ms")
    log.info("done")