You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2021/09/20 04:20:08 UTC

[Bug 65583] New: While Controller not getting execute when use more than twice in Test Plan

https://bz.apache.org/bugzilla/show_bug.cgi?id=65583

            Bug ID: 65583
           Summary: While Controller not getting execute when use more
                    than twice in Test Plan
           Product: JMeter
           Version: 5.2.1
          Hardware: PC
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: Main
          Assignee: issues@jmeter.apache.org
          Reporter: solanki.madan89@gmail.com
  Target Milestone: JMETER_5.5

Created attachment 38038
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=38038&action=edit
While Controller not getting execute when use more than twice in Test Plan

Test Objective:Loop http sampler unless response contains a specified string
"Success"

Problem Description:Using While controller and regular expression extractor to
implement the test object but observed I can only use this logic only twice in
my test plan.

When I use while controller with same logic 3rd time(for 3rd different
sampler), it do not execute sampler even the condition is true and as a result
my scripting is blocked, I cannot execute my test and really feeling low that
JMeter doesn't support such simple functionality.

I am a JMeter user from last 10 yrs.

Please help here for immediate resolution.I have attached screenshot for the
while controller block I am using.

While controller condition used is
${__javascript("${status}".indexOf("SUCCESS") == -1,)}

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 65583] While Controller not getting execute when use more than twice in Test Plan

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65583

orimarko <or...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |orimarko@gmail.com

--- Comment #2 from orimarko <or...@gmail.com> ---
You can use ${__groovy(vars.get("status").indexOf("SUCCESS") == -1)} to get the
results you want. 

See also https://jmeter.apache.org/usermanual/best-practices.html#jsr223

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 65583] While Controller not getting execute when use more than twice in Test Plan

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65583

Felix Schumacher <fe...@internetallee.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO
                 OS|                            |All

--- Comment #1 from Felix Schumacher <fe...@internetallee.de> ---
Can you provide a minimal test plan, that exhibits this behaviour?

-- 
You are receiving this mail because:
You are the assignee for the bug.