本文整理了Java中org.apache.jmeter.threads.JMeterVariables.getIteration()
方法的一些代码示例,展示了JMeterVariables.getIteration()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JMeterVariables.getIteration()
方法的具体详情如下:
包路径:org.apache.jmeter.threads.JMeterVariables
类名称:JMeterVariables
方法名:getIteration
暂无
代码示例来源:origin: org.apache.jmeter/ApacheJMeter_core
@Override
public int getIteration() {
return variables.getIteration();
}
代码示例来源:origin: kg.apc/jmeter-plugins-standard
@Override
public synchronized String execute(SampleResult previousResult, Sampler currentSampler)
throws InvalidVariableException {
return String.valueOf(getVariables().getIteration());
}
代码示例来源:origin: undera/jmeter-plugins
@Override
public synchronized String execute(SampleResult previousResult, Sampler currentSampler)
throws InvalidVariableException {
return String.valueOf(getVariables().getIteration());
}
代码示例来源:origin: org.apache.jmeter/ApacheJMeter_core
void notifyTestListeners() {
threadVars.incIteration();
for (TestIterationListener listener : testIterationStartListeners) {
listener.testIterationStart(new LoopIterationEvent(threadGroupLoopController, threadVars.getIteration()));
if (listener instanceof TestElement) {
((TestElement) listener).recoverRunningVersion();
}
}
}
代码示例来源:origin: org.apache.jmeter/ApacheJMeter_components
long current = perTheadNumber.get().longValue();
if(isResetOnThreadGroupIteration()) {
int iteration = variables.getIteration();
Long lastIterationNumber = perTheadLastIterationNumber.get();
if(iteration != lastIterationNumber.longValue()) {
代码示例来源:origin: org.apache.jmeter/ApacheJMeter_core
/**
* Executes the function (and caches the value for the duration of the test
* iteration) if the property is a running version. Otherwise, the raw
* string representation of the function is provided.
*
* @see JMeterProperty#getStringValue()
*/
@Override
public String getStringValue() {
JMeterContext ctx = JMeterContextService.getContext();// Expensive, so
// do
// once
if (!isRunningVersion() /*|| !ctx.isSamplingStarted()*/) {
log.debug("Not running version, return raw function string");
return function.getRawParameters();
}
if(!ctx.isSamplingStarted()) {
return function.execute();
}
log.debug("Running version, executing function");
int iter = ctx.getVariables() != null ? ctx.getVariables().getIteration() : -1;
if (iter < testIteration) {
testIteration = -1;
}
if (iter > testIteration || cacheValue == null) {
testIteration = iter;
cacheValue = function.execute();
}
return cacheValue;
}
内容来源于网络,如有侵权,请联系作者删除!