Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DRY for JMeter tests

Is there a way to modularize JMeter tests.

I have recorded several use cases for our application. Each of them is in a separate thread group in the same test plan. To control the workflow I wrote some primitives (e.g. postprocessor elements) that are used in many of these thread groups.

Is there a way not to copy these elements into each thread group but to use some kind of referencing within the same test plan? What would also be helpful is a way to reference elements from a different file.

Does anybody have any solutions or workarounds. I guess I am not the only one trying to follow the DRY principle...

like image 348
jens Avatar asked Sep 03 '09 07:09

jens


People also ask

How can you reduce resource requirements for JMeter?

16.7 Reducing resource requirementsDon't use "View Results Tree" or "View Results in Table" listeners during the load test, use them only during scripting phase to debug your scripts. Rather than using lots of similar samplers, use the same sampler in a loop, and use variables (CSV Data Set) to vary the sample.


1 Answers

I think this post from Atlassian describes what you're after using Module controllers. I've not tried it myself yet, but have it on my list of things to do :)

http://blogs.atlassian.com/developer/2008/10/performance_testing_with_jmete.html

Jared

like image 91
JaredQ Avatar answered Oct 11 '22 15:10

JaredQ