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 2015/04/02 15:20:16 UTC

[Bug 57787] New: Only Once Controller will execute more than once if include controller fails

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

            Bug ID: 57787
           Summary: Only Once Controller will execute more than once if
                    include controller fails
           Product: JMeter
           Version: 2.12
          Hardware: PC
            Status: NEW
          Severity: major
          Priority: P2
         Component: Main
          Assignee: issues@jmeter.apache.org
          Reporter: stanoev.nikolay@gmail.com

Only once controller should be executed only once (per thread) if it is under
Thread Group element. This works fine if you do not use include controller in
the JMX file. But if you use include controller and some of the iterations fail
then the only once controller will be executed one more time in the next
iteration. You can see a simple example below.

Test Plan 
-> Thread Group ( 1 thread / 10 iterations) 
    -> Only Once Controller
        -> HTTP request
    -> Module Controller ( Refer the test fragment below with include
controller)
    -> HTTP request ( make it fail)

-> Test Fragment
    -> Include Controller ( refer a JMX file with one test fragment and a
single HTTP request)

If you run a test like the one above Only Once Controller will be executed 10
times because there are 10 iterations and due to last step every iteration will
fail. 

Case N2:
Test Plan 
-> Thread Group ( 1 thread / 10 iterations) 
    -> Only Once Controller
        -> HTTP request
    -> Module Controller 
    -> HTTP request ( make it fail)

-> Test Fragment
    -> Copy / paste the request from Include Controller. (DO NOT USE INCLUDE
CONTROLLER IN THIS STEP)

In this case Only Once controller will execute only once.


As you can see the only difference in both Test Plans is that in the first one
I use Include Controller and in the second one that controller is not used.

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

[Bug 57787] Only Once Controller will execute more than once if include controller fails

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

--- Comment #1 from Nikolay Stanoev <st...@gmail.com> ---
Created attachment 32629
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=32629&action=edit
In the example.zip you can find two files which can be used to reproduce the
problem

Hello,

I have created an example which can be used in order to reproduce the problem.
While I was creating it I saw that there are some changes in the initial
example which I gave and the behavior is consistent ( it does not matter
whether the Include Controller is used or not).

So it seems that Only Once Controller is executed every time when it is under
IF Controller and some of the actions in that controller fails. You can see the
attached files in order to reproduce the problem. 

Is this expected behavior?

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

[Bug 57787] Only Once Controller will execute more than once if include controller fails

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

Nikolay Stanoev <st...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All
                 CC|                            |stanoev.nikolay@gmail.com

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

[Bug 57787] Only Once Controller will execute more than once if it is part of IF Controller and it fails

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

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |p.mouawad@ubik-ingenierie.c
                   |                            |om

--- Comment #2 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Hi,
In fact this is a known bug, as per changes
(http://jmeter.apache.org/changes.html):
The Once Only controller behaves correctly under a Thread Group or Loop
Controller, but otherwise its behaviour is not consistent (or clearly
specified).

So I don't know if it should be fixed.

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

[Bug 57787] Only Once Controller will execute more than once if it is part of IF Controller and it fails

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

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Hardware|PC                          |All
            Version|2.12                        |2.9

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

[Bug 57787] Only Once Controller will execute more than once if it is part of IF Controller and it fails

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

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|major                       |normal

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

[Bug 57787] The Once Only controller behaves correctly under a Thread Group or Loop Controller, but otherwise its behaviour is not consistent (or clearly specified)

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

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|2.9                         |2.5
            Summary|Only Once Controller will   |The Once Only controller
                   |execute more than once if   |behaves correctly under a
                   |it is part of IF Controller |Thread Group or Loop
                   |and it fails                |Controller, but otherwise
                   |                            |its behaviour is not
                   |                            |consistent (or clearly
                   |                            |specified)

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

[Bug 57787] Only Once Controller will execute more than once if it is part of IF Controller and it fails

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

Nikolay Stanoev <st...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Only Once Controller will   |Only Once Controller will
                   |execute more than once if   |execute more than once if
                   |include controller fails    |it is part of IF Controller
                   |                            |and it fails

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