ASF Bugzilla – Attachment 20178 Details for
Bug 40851
- Loop controller with 0 iterations, stops evaluating the iterations field
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Suggested patch
patch_for_40851.patch (text/plain), 1.09 KB, created by
Alf Hogemark
on 2007-05-11 05:55:18 UTC
(
hide
)
Description:
Suggested patch
Filename:
MIME Type:
Creator:
Alf Hogemark
Created:
2007-05-11 05:55:18 UTC
Size:
1.09 KB
patch
obsolete
>Index: C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/core/org/apache/jmeter/control/LoopController.java >=================================================================== >--- C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/core/org/apache/jmeter/control/LoopController.java (revision 536755) >+++ C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/core/org/apache/jmeter/control/LoopController.java (working copy) >@@ -78,17 +78,19 @@ > return getPropertyAsBoolean(CONTINUE_FOREVER); > } > >- /* >- * (non-Javadoc) >- * >- * @see org.apache.jmeter.control.Controller#isDone() >- */ >- public boolean isDone() { >- if (getLoops() != 0) { >- return super.isDone(); >- } >- return true; >- } >+ /* >+ * (non-Javadoc) >+ * >+ * @see org.apache.jmeter.control.Controller#next() >+ */ >+ public Sampler next() { >+ if(endOfLoop()) { >+ return null; >+ } >+ else { >+ return super.next(); >+ } >+ } > > private boolean endOfLoop() { > return (getLoops() > -1) && loopCount >= getLoops();
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 40851
:
20177
| 20178