Bug 47647 - Once Only Controller changes behavour inside another controller
Summary: Once Only Controller changes behavour inside another controller
Status: RESOLVED DUPLICATE of bug 39509
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: 2.3.3
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-05 05:08 UTC by Gary Turner (Circle Computers)
Modified: 2009-08-05 05:47 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gary Turner (Circle Computers) 2009-08-05 05:08:14 UTC
The attached code example provides a simple example tests for the once only controller, possibly simulating a HTTP test where a login is required on the first loop by each thread.

The test would look like this:

Test Plan
+--Thread Group 
   +--Once Only Controller
      +--Task (e.g. Login)
   +--Task (repeated)
+--View Results Tree

In this construction the test plan operates as expected showing a single Login Task in the results tree for each thread, followed by multiple tasks from the repeated test section.

The attached file meets the structure above.

However if you now highlight the Once Only Controller and the repeated Task then select insert parent, adding a simple controller as hte parent the test results change.

Test Plan
+--Thread Group 
   +--Simple Controller
      +--Once Only Controller
         +--Task (e.g. Login)
      +--Task (repeated)
+--View Results Tree

Under the the new structure the test seems to repeat the Once Only Task twice for each thread.

I can see no logic behind this behaviour.
Comment 1 Milamber 2009-08-05 05:47:51 UTC
This bug are resolved in JMeter 2.3.4

*** This bug has been marked as a duplicate of bug 39509 ***
Comment 2 The ASF infrastructure team 2022-09-24 20:37:43 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2266