Hi,
One option would be (I am not a programmer):
Add a 'User Defined Variables' (Add>Config Element>User Defined Variables)
to your thread Group with the variable:
name = responseTime
value = 0
Add a JSR223 PostProcessor (Add>Post Processor>JSR223 PostProcessor) as a
child of the request that is looping
Set the language of this PostProcessor to 'java' and use the following
script:
overallTime = Long.parseLong(vars.get("responseTime"));
long currentResponseTime=prev.getTime();
totalTime = overallTime + currentResponseTime;
vars.put("responseTime", ""+totalTime);
You should remove the values mentioned in my previous posts from the Name
field in the 'Request checking file has been uploaded '
After the While Controller add a 'Debug Sampler' with this in the name
field:
ThreadNum = ${__threadNum} - Loop Number = ${loopCounter} -
OverallResponseTime = ${responseTime}
So your test plan would look something like this:
Test Plan
+Thread Group
++User Defined Variables
++While Controller
+++Counter
+++Request checking file has been uploaded
++++JSR223 PostProcessor
++Debug Sampler
let me know how it goes
ZK
--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]