There are 2 ways you can pass properties
1. pass by command line options
2. pass by using properties files.

To pass properties using command line options:

The flag to set a property is -JpropertyName The function to read a property is ${__P(propertyName)}

To pass properties using .properties file

Define a property in JMeter.properties file (i have defined a test property in the screenshot below)
enter image description here

To read the property you can use __Property function

for example ${__property(testproperty,value,)} this statement reads the property named testproperty and stores it in JMeter variable “value”

enter image description here

You can also read properties from external file. For more info on reading properties from external files read this article

For more info on JMeter command line options follow this link



Source link https://sqa.stackexchange.com/questions/35123/--and---in-jmeter

LEAVE A REPLY

Please enter your comment!
Please enter your name here