Have 2 JSR223 sampler with beanshell scripts, 1 at the beginning to star
timer and 1 at the end of the thread group to calculate the time taken to
complete the current iteration.
Not sure if this is what you are looking for.
|Thread Group - A
|
JSR223 startTimer
.
.
.
.
Other actual Test Sampler
.
JSR223 calculateIterationTimeSampler
/****In the JSR223 start timer sampler add the following piece of code:
*****************/
import java.util.Date;
vars.putObject("threadStartTime", new Date());
log.info("threadStartTime"+vars.getObject("threadStartTime"));
/****In the JSR223 calculateIterationTimeSampler add the following piece of
code: *****************/
import java.util.Date;
import java.lang.Integer;
Date threadStartTime = vars.getObject("threadStartTime");
if( threadStartTime != null){
Date currentTime = new Date();
long timeTakenByCurrentIteration = currentTime.getTime() -
threadStartTime.getTime();
log.info("timeTakenByCurrentIteration in milliseconds =
"+timeTakenByCurrentIteration);
}
Thanks
Chaitanya M Bhatt
http://www.performancecompetence.com
On Sat, Apr 4, 2015 at 10:59 PM, Bob <[email protected]> wrote:
> Hi,
>
> How I can measure JMeter script speed degradation? Let's say in Test Plan
> there are 10 samplers and I added "Response Assertion" to all samplers. For
> sure after adding assertions whole test plan running estimate time will
> increase. How I can measure such degradation? As CI I use Jenkins. Thanks!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>