I have been using JSR223 sampler for some java code but now I am implementing Java Request sampler. The JSR223 code cannot directly work in the Java Request sampler. There are some changes needs to be made. For e.g. in JSR223 the code is:
props.put("p_driver", driver);
object = props.get("p_driver").getJsonObject(dbser, dbn, wfid);
Here the driver is an object of type Driver (a utility class that we have written.
I want to create a property of type Object and keep the driver object in it. Also I want to get and set different properties through Java. I know we can use:
JMeterContextService.getContext().getCurrentSampler().getProperties("p_driver");
But there is very less clarity on how jmeter variables and jmeter properties can work in a Java Request Sampler.
