jMeter

jmeter get thread loop count

We can use the getIteration() function to get the thread loop count in properties and also in shell

in property

in shell

 

  Like
By bm on May 9, 2016 | jMeter | A comment?

jMeter get current directory

 

1 Like
By bm on May 5, 2016 | jMeter | A comment?

jMeter foreach controller

BeanShell Sampler

1

ForEach Controller

2

HTTP Request

3

 

View Results Tree, csv input file and result

 

5

 

1 Like
By bm on | jMeter | A comment?

jMeter get current Thread Number

In shell we can use

In properties

 

  Like
By bm on May 4, 2016 | jMeter | A comment?

jMeter get current UNIX time stamp

In config we can use this

In Shell we can use the default java function

 

 

online tool for converting time : http://www.epochconverter.com/

4 Likes
By bm on May 2, 2016 | jMeter | A comment?

How to use simple JSON with jMeter

Copy past json-simple.jar file in to jmeter lib folder (you can download jar file from http://www.java2s.com/Code/Jar/j/Downloadjsonsimple11jar.htm)

Example JSON

Shell

 

Iterating through JSON Object

 

Iterating through JSON Array

 

1 Like
By bm on April 29, 2016 | jMeter | A comment?