ASF Bugzilla – Attachment 31381 Details for
Bug 56243
Foreach works incorrectly with indexes on subsequent iterations
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Simple test plan demonstrating the bug
JMeter_ForEach_bug.jmx (text/plain), 5.77 KB, created by
Vladimir Ryabtsev
on 2014-03-11 09:02:37 UTC
(
hide
)
Description:
Simple test plan demonstrating the bug
Filename:
MIME Type:
Creator:
Vladimir Ryabtsev
Created:
2014-03-11 09:02:37 UTC
Size:
5.77 KB
patch
obsolete
><?xml version="1.0" encoding="UTF-8"?> ><jmeterTestPlan version="1.2" properties="2.6" jmeter="2.11 r1554548"> > <hashTree> > <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan" enabled="true"> > <stringProp name="TestPlan.comments"></stringProp> > <boolProp name="TestPlan.functional_mode">false</boolProp> > <boolProp name="TestPlan.serialize_threadgroups">false</boolProp> > <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> > <collectionProp name="Arguments.arguments"/> > </elementProp> > <stringProp name="TestPlan.user_define_classpath"></stringProp> > </TestPlan> > <hashTree> > <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Thread Group" enabled="true"> > <stringProp name="ThreadGroup.on_sample_error">continue</stringProp> > <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true"> > <boolProp name="LoopController.continue_forever">false</boolProp> > <stringProp name="LoopController.loops">3</stringProp> > </elementProp> > <stringProp name="ThreadGroup.num_threads">1</stringProp> > <stringProp name="ThreadGroup.ramp_time">1</stringProp> > <longProp name="ThreadGroup.start_time">1392112911000</longProp> > <longProp name="ThreadGroup.end_time">1392112911000</longProp> > <boolProp name="ThreadGroup.scheduler">false</boolProp> > <stringProp name="ThreadGroup.duration"></stringProp> > <stringProp name="ThreadGroup.delay"></stringProp> > </ThreadGroup> > <hashTree> > <BeanShellSampler guiclass="BeanShellSamplerGui" testclass="BeanShellSampler" testname="Starting iteration" enabled="true"> > <stringProp name="BeanShellSampler.query">vars.put("my_var", "-----123--456--------------------789---");</stringProp> > <stringProp name="BeanShellSampler.filename"></stringProp> > <stringProp name="BeanShellSampler.parameters"></stringProp> > <boolProp name="BeanShellSampler.resetInterpreter">false</boolProp> > </BeanShellSampler> > <hashTree/> > <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="Regular Expression Extractor" enabled="true"> > <stringProp name="RegexExtractor.useHeaders">false</stringProp> > <stringProp name="RegexExtractor.refname">number</stringProp> > <stringProp name="RegexExtractor.regex">\d+</stringProp> > <stringProp name="RegexExtractor.template">$0$</stringProp> > <stringProp name="RegexExtractor.default"></stringProp> > <stringProp name="RegexExtractor.match_number">-1</stringProp> > <stringProp name="Sample.scope">variable</stringProp> > <stringProp name="Scope.variable">my_var</stringProp> > </RegexExtractor> > <hashTree/> > <DebugSampler guiclass="TestBeanGUI" testclass="DebugSampler" testname="Debug RE" enabled="true"> > <boolProp name="displayJMeterProperties">false</boolProp> > <boolProp name="displayJMeterVariables">true</boolProp> > <boolProp name="displaySystemProperties">false</boolProp> > </DebugSampler> > <hashTree/> > <ForeachController guiclass="ForeachControlPanel" testclass="ForeachController" testname="ForEach Controller" enabled="true"> > <stringProp name="ForeachController.inputVal">number</stringProp> > <stringProp name="ForeachController.returnVal">current_number</stringProp> > <boolProp name="ForeachController.useSeparator">true</boolProp> > <stringProp name="ForeachController.startIndex">0</stringProp> > <stringProp name="ForeachController.endIndex">1</stringProp> > </ForeachController> > <hashTree> > <DebugSampler guiclass="TestBeanGUI" testclass="DebugSampler" testname="Debug in ForEach!!!" enabled="true"> > <boolProp name="displayJMeterProperties">false</boolProp> > <boolProp name="displayJMeterVariables">true</boolProp> > <boolProp name="displaySystemProperties">false</boolProp> > </DebugSampler> > <hashTree/> > </hashTree> > <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true"> > <boolProp name="ResultCollector.error_logging">false</boolProp> > <objProp> > <name>saveConfig</name> > <value class="SampleSaveConfiguration"> > <time>true</time> > <latency>true</latency> > <timestamp>true</timestamp> > <success>true</success> > <label>true</label> > <code>true</code> > <message>true</message> > <threadName>true</threadName> > <dataType>true</dataType> > <encoding>false</encoding> > <assertions>true</assertions> > <subresults>true</subresults> > <responseData>false</responseData> > <samplerData>false</samplerData> > <xml>false</xml> > <fieldNames>false</fieldNames> > <responseHeaders>false</responseHeaders> > <requestHeaders>false</requestHeaders> > <responseDataOnError>false</responseDataOnError> > <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage> > <assertionsResultsToSave>0</assertionsResultsToSave> > <bytes>true</bytes> > </value> > </objProp> > <stringProp name="filename"></stringProp> > </ResultCollector> > <hashTree/> > </hashTree> > </hashTree> > </hashTree> ></jmeterTestPlan>
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 Raw
Actions:
View
Attachments on
bug 56243
: 31381