jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Luu <manga...@gmail.com>
Subject Counter bug or test plan setup incorrectly?
Date Wed, 05 Oct 2011 21:49:20 GMT
Hello,

I'm using counter via variable method than the counter element. But counter
increments by 2 instead of 1 at runtime. Wonder if is bug or if my setup has
issue. Here's more details

first HTTP request sampler followed by regex extractor that does global
match (-1), with single group per match ($1$). Then...

While loop controller with condition of:

${__javaScript( ${__counter(TRUE,cnt)} <= 10 )}

and inside while loop, have samplers that reference the counter (as needed)
like this:

${__V(regExMatchVar_${cnt})}

This works, and loop does end, but remaining issue is that counter is
incrementing by 2 instead of 1, per the docs. Counter does start at 1
though.

I get the same "increment by 2" behavior if I substitute counter function
with intSum and a user defined variable "cnt"

${__javaScript( ${__intSum(${cnt},1,cnt)} <= 10 )}

test plan setup:

test plan
 thread group
  (user defined vars - if using this method for counter, otherwise,
not exist here)
  http request defaults
  http sampler
   response assertion
   regex extractor (matches 1+ matches, we expect 10+)
  while loop controller
    http sampler 1
    will have more samplers, but I debug/test with one for now
    test action with delay of 1 sec
  save responses to a file
  view results tree
  view results in table
  aggregate report

note that some items may be disabled like some of the reporting/view
result options.

Regards,

David

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message