0

We have received 20 jmeter test plans, each testing one endpoint, which we need to run as part of AzureDevops pipeline. On some tests we need to pass parameters and others we don't.

My idea was to create a powershell script called from a pipeline that loops through the directories and runs a test, waits until finished and then runs the next test. When we develop a new endpoint we just create a new test plan and save it in the appropriate folder and the powershell script will include it next time we loop through tests.

Reading about Jmeter, it seems like the correct way run tests in sequence, is to create one Testplan that with all the tests, with Thread Groups and then set the plan to run consecutively. I could rewrite all the tests be in one file, but then adding new tests would involve editing the test plan instead of just dropping new test file in our tests directory.

My question then is, how to create extendable jmeter test plans?

1 Answer 1

1

Your solution with powershell makes sense.

Another idea is to use JMeter Maven Plugin which automatically runs all the scripts it finds under src/test/jmeter folder relative to pom.xml file.

You can also pass parameters via Maven pom.xml file.

More information: How to Use the JMeter Maven Plugin

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.