JMeter variable transmission between different thread groups (pro-test ok)

JMeter components are scoped, and often a regular expression variable extractor, without the use of a variable parameter in order, all you need to set variables thread assembly

JMeter helper function provides a function to set a global variable property function, implemented in the user-defined variables similar variables added.

__setProperty: setting a dynamic attribute JMeter

Return Original Value of property (default false)? : Whether to return the function result, the default is no, fill if true, then returns

For example: regular expressions to extract the value of the variable

 Use BeanShell PostProcessor set of global variables

 Meaning that the variable $ {old_variable} is set to get a global variable, and a new name to be referenced new_variable

2 in the thread group _p function to call jmeter properties, getting a property value, so that cross-thread group, the parameter value is passed.

Note: $ {__ P (new_variable,)} behind a comma do not forget, this variable is referenced success.

 

 

Source: https://www.cnblogs.com/wysk/p/7890884.html

Guess you like

Origin www.cnblogs.com/kaibindirver/p/11410126.html