counter - Jmeter : Increment count of user variable for n user(thread) and n request -


i have jmeter test following scenario:

thread (5 in number)   -> counter x (x value 0, increment 1 till 10)   -> req1 uses x   -> req2 uses x 

now want achieve that, each user , each request value of x should increment without overlapping/repeating i.e if run 5 user * 2 runs = 10 request, value of x each request should 1 10 without repetition.

but above approach not work each user counter start 0 duplicate x in request made,

user1 -> req1 x = 0,  user1 -> req2 x = 1 user2 -> req1 x = 0 user2 -> req2 x = 1 

i tried use user defined variable : bean shell pre-process still same issue. ${__intsum(${x},1,x)} not solve issue. tried ${__counter(true,x)} not solve issue.

jmeter counter default not give duplicate value - gets incremented automatically each user & each iteration.

uncheck 'track counter independently each user' check box.

enter image description here

edit:

if requirement increase counter each request inside thread-group, not possible counter. can use jmeter properties that.

check here - http://jmeter.apache.org/usermanual/best-practices.html - sharing variables.


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -