ASF Bugzilla – Attachment 23737 Details for
Bug 39509
Once-only controller running twice
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposal patch
new_patch_39509.txt (text/plain), 917 bytes, created by
Milamber
on 2009-05-31 14:55:12 UTC
(
hide
)
Description:
Proposal patch
Filename:
MIME Type:
Creator:
Milamber
Created:
2009-05-31 14:55:12 UTC
Size:
917 bytes
patch
obsolete
>Index: /Workspaces-JMeter/Jmeter/src/components/org/apache/jmeter/control/OnceOnlyController.java >=================================================================== >--- /Workspaces-JMeter/Jmeter/src/components/org/apache/jmeter/control/OnceOnlyController.java (revision 779726) >+++ /Workspaces-JMeter/Jmeter/src/components/org/apache/jmeter/control/OnceOnlyController.java (working copy) >@@ -39,7 +39,12 @@ > * @see LoopIterationListener#iterationStart(LoopIterationEvent) > */ > public void iterationStart(LoopIterationEvent event) { >- if (event.getIteration() == 1) { >+ int numIteration = 1; >+ // Bug 39509: iteration to 0 for all controller which not LoopController (and TG) >+ if (!(event.getSource() instanceof LoopController)) { >+ numIteration = 0; >+ } >+ if (event.getIteration() == numIteration) { > reInitialize(); > } > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 39509
:
20179
|
20192
|
21233
|
23634
|
23635
|
23636
| 23737 |
23738