cancel
Showing results for 
Search instead for 
Did you mean: 

Run Loadtest automatic start

Regular Visitor

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 1
Highlighted
Contributor

Re: Run Loadtest automatic start

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")

 

 

 

New Here?
Join us and watch the welcome video:
API Testing Mistake #2
APITestingMistake#2
Top Kudoed Authors