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 2012/10/16 15:00:49 UTC

[Bug 54014] New: Child nodes within an IF Controller not being executed unless there's a Sampler among them

https://issues.apache.org/bugzilla/show_bug.cgi?id=54014

          Priority: P2
            Bug ID: 54014
          Assignee: issues@jmeter.apache.org
           Summary: Child nodes within an IF Controller not being executed
                    unless there's a Sampler among them
          Severity: normal
    Classification: Unclassified
                OS: Linux
          Reporter: argos83@gmail.com
          Hardware: PC
            Status: NEW
           Version: 2.8
         Component: Main
           Product: JMeter

I Have a test structure like the following:

+ Test Plan
++ Thread Group
...
+++ Web Service(SOAP) Request
...
+++ If Controller
++++ Response Assertion

So, I want to the execute the assertion only if certain condition is satisfied.
However the assertion is never executed. The condition of the If Controller is
fine (I've even tried hardcoding it to be always true).

But if I add a dummy sampler within the If Controller both, the assertion and
the sampler, are executed when the if condition is satisfied. I.e:

+++ If Controller
++++ Dummy Sampler
++++ Response Assertion

I've tried other kind of components besides assertion (e.g. Timers) and none of
them will never be executed unless there's a sampler.

Is this working as designed?

I think is pretty useful to execute an assertion or a timer depending on a
condition, and I dont fancy workarounding it by executing some kind of dummy
request.

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

[Bug 54014] Child nodes within an IF Controller not being executed unless there's a Sampler among them

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

Sebb <se...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #1 from Sebb <se...@apache.org> ---
This is fundamental to how JMeter works.

Assertions etc. are only executed in the context of a Sampler.

For other such issues, please ask on the JMeter user list; Bugzilla is not a
support forum.

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