How to access JMeter Context variables when using JMeter API
JMeter API can be used to write JMeter scripts in a programmatic manner. Specially when some test cases written on Java need to be executed as a load script, JMeter API can be utilized.
Here, though my target is not to explain how to use JMeter API, adding the following sample code since it needed me to explain how to read and write to the JMeter context.
First, you need to set up JMeter environment and JMeter Test Plan programmatically. Please refer to…