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 2014/06/16 15:37:52 UTC

[Bug 56630] New: Module Controller does not work properly in included script

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

            Bug ID: 56630
           Summary: Module Controller does not work properly in included
                    script
           Product: JMeter
           Version: 2.11
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
          Assignee: issues@jmeter.apache.org
          Reporter: pics@tut.by

Module Controller does not work when it's used in a script that included with
Include Controller.

Steps to reproduce:
1. Create two scripts:
Main script

TestPlan
|--Thread-Group
|    |--Debug Sampler1
|    |--Include Controller <Second script>
|    |--Debug Sampler2
|--View Results Tree

Second script
TestPlan
|--Test Fragment
     |--Simple Controller
     |    |--Debug Sampler3
     |--Module Controller <TestPlan > Test Fragment > Simple Controller>
2. Run Main script
3. See Results Tree for results

Actual Results:
Debug Sampler1
Debug Sampler3
Debug Sampler2

Expected Results:
Debug Sampler1
Debug Sampler3
Debug Sampler3
Debug Sampler2



BR,
Alexei

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

[Bug 56630] Module Controller does not work properly in included script

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

--- Comment #7 from Alexei <pi...@tut.by> ---
Hi Philippe,

Have you had a chance to look into test plans?

BR,
Alexei

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

[Bug 56630] Module Controller does not work properly in included script

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

--- Comment #6 from Alexei <pi...@tut.by> ---
Created attachment 31797
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=31797&action=edit
Included script without Test Fragment

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

[Bug 56630] Module Controller does not work properly in included script

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

--- Comment #8 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Yes, I reproduced issue.
Still looking at fix.

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

[Bug 56630] Module Controller does not work properly in included script

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |p.mouawad@ubik-ingenierie.c
                   |                            |om
         Resolution|---                         |DUPLICATE

--- Comment #1 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
As per new documentation of trunk:
jmeter/docs/usermanual/component_reference.html#Test_Fragment

"When using Test Fragment with Module Controller , ensure you disable the Test
Fragment to avoid the execution of Test Fragment itself. "


So this is by feature and result is fine.

*** This bug has been marked as a duplicate of bug 55740 ***

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

[Bug 56630] Module Controller does not work properly in included script

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |NEEDINFO

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

[Bug 56630] Module Controller does not work properly in included script

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

Alexei <pi...@tut.by> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

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

[Bug 56630] Module Controller does not work properly in included script

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

--- Comment #5 from Alexei <pi...@tut.by> ---
Created attachment 31796
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=31796&action=edit
Included script with Test Fragment

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

[Bug 56630] Module Controller does not work properly in included script

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

--- Comment #4 from Alexei <pi...@tut.by> ---
Created attachment 31795
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=31795&action=edit
Main test plan

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

[Bug 56630] Module Controller does not work properly in included script

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

Alexei <pi...@tut.by> changed:

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

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

[Bug 56630] Module Controller does not work properly in included script

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

Alexei <pi...@tut.by> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|DUPLICATE                   |---

--- Comment #2 from Alexei <pi...@tut.by> ---
The issue is not in "Test Fragment". As per
jmeter/docs/usermanual/component_reference.html#Include_Controller i have to
use it:
The include controller is designed to use an external jmx file. To use it,
create a Test Fragment 
underneath the Test Plan and add any desired samplers, controllers etc. below
it.
Then save the Test Plan.  The file is now ready to be included as part of other
Test Plans.

You may also want to modify "Second script" to avoid using "Test Fragment":

Second script
TestPlan
|--Simple Controller1
     |--Simple Controller2
     |    |--Debug Sampler3
     |--Module Controller <TestPlan > Test Fragment > Simple Controller2>

But actual result is the same.

The issue makes using Module Controller in script included with Include
Controller impossible.

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

[Bug 56630] Module Controller does not work properly in included script

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

--- Comment #9 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Issue is located in IncludeController#loadIncludedElements.
JMeter does not find reference as it has a root the includer not the included.

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

[Bug 56630] Module Controller does not work properly in included script

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

--- Comment #3 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Can you attach the 2 sample test plans using Debug Sampler ?

Thank you

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