View RSS Feed

JMeter

Using Variables to parameterise tests

Rate this Entry
by , 04-27-2012 at 07:29 PM (1666 Views)
Variables don't have to vary - they can be defined once, and if left alone, will not change value. So you can use them as short-hand for expressions that appear frequently in a test plan. Or for items which are constant during a run, but which may vary between runs. For example, the name of a host, or the number of threads in a thread group.

When deciding how to structure a Test Plan, make a note of which items are constant for the run, but which may change between runs. Decide on some variable names for these - perhaps use a naming convention such as prefixing them with C_ or K_ or using uppercase only to distinguish them from variables that need to change during the test. Also consider which items need to be local to a thread - for example counters or values extracted with the Regular Expression Post-Processor. You may wish to use a different naming convention for these.

Submit "Using Variables to parameterise tests" to Facebook Submit "Using Variables to parameterise tests" to Digg Submit "Using Variables to parameterise tests" to del.icio.us Submit "Using Variables to parameterise tests" to StumbleUpon Submit "Using Variables to parameterise tests" to Google

Categories
Tutorial

Comments

  1. doWhile's Avatar
    • |
    • permalink
    Any reason each one of your posts is a direct, plagiarized copy from another website?