Hi,
its not possible to chart counters in jmeter but could be done easily in
Excel
Another possibility would be to have a ramp up for your test i.e (10 seconds
before each thread starts (this is because you need time for the last thread
to end): so if you are running with 10 threads, have a ramp up of 100
seconds)
In your regEx extractor have the refernceName as:
RespondingMachine_${__threadNum}
then have a beanshell post processor to output to the console (or you could
change it to write to an external file)with something like:
import org.apache.jmeter.threads.JMeterContextService;
import org.apache.jmeter.samplers.*;
import org.apache.jmeter.control.*;
currentVar= "RespondingMachine_"+${__threadNum}+"_matchNr";
totalThreads=JMeterContextService.getTotalThreads();
if (${__threadNum} == totalThreads){ // this is to check if it is the last
thread, hence the reason for the ramp up at the start of the test (not
perfect I know)
int totalMatchNr;
int i;
for (i = 1; i <= totalThreads; i++) {
totalMatchNr=totalMatchNr+Integer.decode(vars.get(currentVar));
}
print("Number Of Matches = "+totalMatchNr);
}
Maybe someone knows of a more elegant solution to determine if the test has
ended
Just some ideas for you anyway!
HTH
ZK
--
View this message in context:
http://jmeter.512774.n5.nabble.com/Display-User-Variable-in-Results-tp5719555p5719570.html
Sent from the JMeter - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]