mirror of
https://github.com/apache/activemq.git
synced 2025-02-06 10:09:28 +00:00
73187ab013
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@395652 13f79535-47bb-0310-9956-ffa450edef68
26 lines
634 B
Plaintext
26 lines
634 B
Plaintext
// Sample BeanShell Assertion initialisation file
|
|
|
|
//print("Initialisation started");
|
|
|
|
import org.apache.jmeter.util.JMeterUtils;
|
|
|
|
i = j = k = 0; // for counters
|
|
|
|
getprop(p){// get a JMeter property
|
|
return JMeterUtils.getPropDefault(p,"");
|
|
}
|
|
|
|
getprop(p,d){// get a JMeter property with default
|
|
return JMeterUtils.getPropDefault(p,d);
|
|
}
|
|
|
|
setprop(p,v){// set a JMeter property
|
|
JMeterUtils.getJMeterProperties().setProperty(p, v);
|
|
}
|
|
|
|
// Assertions can use the following methods on the Response object:
|
|
// SampleResult.setStopThread(true)
|
|
// SampleResult.setStopTest(true)
|
|
|
|
//print("Initialisation complete");
|