Skip to content

Parameterize script tunables and example properties files#2

Open
djones6 wants to merge 5 commits into
acmeair:masterfrom
djones6:master
Open

Parameterize script tunables and example properties files#2
djones6 wants to merge 5 commits into
acmeair:masterfrom
djones6:master

Conversation

@djones6

@djones6 djones6 commented Feb 15, 2017

Copy link
Copy Markdown

The AcmeAir.jmx script has a number of tunables which are currently hard-coded. This PR converts those to parameters with default values. The effect is that you can do this:

jmeter -t AcmeAir.jmx -JTHREADS=10 -JDURATION=60 -JHOSTNAME=myserver -JPORT=9080 -JCONTEXT_ROOT=/

I've provided example user.properties and system.properties files which can be passed to JMeter as follows: -q user.properties -S system.properties. These can be used instead of or in combination with the command-line overrides.

The user.properties contains the same default values as the original AcmeAir.jmx script. Users could make multiple variants of user.properties for testing different backends or load levels.

The system.properties provides another method to set the usePureIDs property required for Node.js. Arguably there's no benefit to specifying the system properties file instead of the property itself, but it provides a point to add further customization.

Overall this means that it is no longer necessary to modify the AcmeAir.jmx script or jmeter.properties.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant