use of org.apache.jmeter.threads.JMeterVariables in project jmeter by apache.
the class TestTimeShiftFunction method setUp.
@Before
public void setUp() {
jmctx = JMeterContextService.getContext();
vars = new JMeterVariables();
jmctx.setVariables(vars);
jmctx.setPreviousResult(result);
result = new SampleResult();
function = new TimeShift();
}
use of org.apache.jmeter.threads.JMeterVariables in project jmeter by apache.
the class VariableTest method setUp.
@Before
public void setUp() {
jmctx = JMeterContextService.getContext();
jmctx.setVariables(new JMeterVariables());
vars = jmctx.getVariables();
}
use of org.apache.jmeter.threads.JMeterVariables in project jmeter by apache.
the class TestRegexFunction method setUp.
@Before
public void setUp() {
variable = new RegexFunction();
result = new SampleResult();
jmctx = JMeterContextService.getContext();
String data = "<company-xmlext-query-ret><row>" + "<value field=\"RetCode\">" + "LIS_OK</value><value" + " field=\"RetCodeExtension\"></value>" + "<value field=\"alias\"></value><value" + " field=\"positioncount\"></value>" + "<value field=\"invalidpincount\">0</value><value" + " field=\"pinposition1\">1</value><value" + " field=\"pinpositionvalue1\"></value><value" + " field=\"pinposition2\">5</value><value" + " field=\"pinpositionvalue2\"></value><value" + " field=\"pinposition3\">6</value><value" + " field=\"pinpositionvalue3\"></value>" + "</row></company-xmlext-query-ret>";
result.setResponseData(data, null);
vars = new JMeterVariables();
String data2 = "The quick brown fox jumped over the lazy dog 123 times";
vars.put(INPUT_VARIABLE_NAME, data2);
jmctx.setVariables(vars);
jmctx.setPreviousResult(result);
}
use of org.apache.jmeter.threads.JMeterVariables in project jmeter by apache.
the class TestSamplerNameFunction method setUp.
@Before
public void setUp() {
jmctx = JMeterContextService.getContext();
vars = new JMeterVariables();
jmctx.setVariables(vars);
jmctx.setPreviousResult(result);
params = new LinkedList<>();
result = new SampleResult();
variable = new SamplerName();
}
use of org.apache.jmeter.threads.JMeterVariables in project jmeter by apache.
the class TestJavascriptFunction method setUp.
@Before
public void setUp() {
function = new JavaScript();
result = new SampleResult();
jmctx = JMeterContextService.getContext();
String data = "The quick brown fox";
result.setResponseData(data, null);
vars = new JMeterVariables();
jmctx.setVariables(vars);
jmctx.setPreviousResult(result);
params = new LinkedList<>();
}
Aggregations