5
votes

I create some features/functions from first Thread Group and put them into a JMeter Property:

props.put("FUNCTIONS", new function());

Then I would like to call those features/functions in WebDriver Sampler of the other Thread Groups.

In normal way (BSF, Beanshell or JSR223), just using:

props.get("FUNCTIONS")

But how to do this in WebDriver Sampler?

There is the same question related to vars here :

Could anyone please help me?

Thanks in advance.

1

1 Answers

4
votes

A little bit weird to hear such a question from someone who is familiar with Beanshell, however here you go:

Something like:

var props = org.apache.jmeter.util.JMeterUtils.getJMeterProperties()

will provide you read/write access to JMeter Properties.

References: