In my previous post I linked to some basic JMeter test plans, as I was just getting comfortable with JMeter. Sine then, I've found a way to make the scripts more maintainable by using user defined variables. Here's the link to a simple script that uses variables.
The syntax for referencing a variable in JMeter is ${VARIABLE_NAME}.
What I like to do is add a user defined variables config element to the top of the test plan and put all the settings in there I'd like to tweak. For example, URL's, timeouts, etc. All in one place at the top of the script. This makes it easy to tune scripts, e.g. to test different pages, to tweak the number of users, etc.
The syntax for referencing a variable in JMeter is ${VARIABLE_NAME}.
What I like to do is add a user defined variables config element to the top of the test plan and put all the settings in there I'd like to tweak. For example, URL's, timeouts, etc. All in one place at the top of the script. This makes it easy to tune scripts, e.g. to test different pages, to tweak the number of users, etc.
Comments
Post a Comment