O'Reilly logo

JMeter Cookbook by Bayo Erinle

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using User Defined Variables (UDV)

User Defined Variables (UDVs) are a great way to make test scripts more dynamic and robust. They allow you to define an initial set of variables, which can then be referenced in your test plans. When used with JMeter functions such as __P(), they provide a means to update initially defined values from the command line without needing to modify the test script. Features such as this allow you to record a script against one environment (for example, a development environment) and then run it against a different environment (for example, Functional Test, UAT, and STAGE) at a later time. Also, UDVs allow you to extract common elements within your test plan into a centralized location, which makes your scripts a ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required