Author: sebb Date: Mon Nov 17 06:24:56 2008 New Revision: 718247 URL: http://svn.apache.org/viewvc?rev=718247&view=rev Log: Test User Parameters
Modified: jakarta/jmeter/trunk/bin/testfiles/BatchTestLocal.csv jakarta/jmeter/trunk/bin/testfiles/BatchTestLocal.jmx jakarta/jmeter/trunk/bin/testfiles/BatchTestLocal.xml Modified: jakarta/jmeter/trunk/bin/testfiles/BatchTestLocal.csv URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/bin/testfiles/BatchTestLocal.csv?rev=718247&r1=718246&r2=718247&view=diff ============================================================================== --- jakarta/jmeter/trunk/bin/testfiles/BatchTestLocal.csv (original) +++ jakarta/jmeter/trunk/bin/testfiles/BatchTestLocal.csv Mon Nov 17 06:24:56 2008 @@ -105,8 +105,9 @@ Java If once 2,200,OK,Thread Group 1-2,,true,,0,1,1,null,,1,0 Java If all 1,,,Thread Group 1-2,,false,,0,1,1,null,,1,1 Java OK,200,OK,Thread Group 1-2,,true,,0,1,1,null,,1,0 -"HTTP ""Request,",200,OK,Thread Group 2-1,text,true,,65373,1,1,file:testfiles/BatchTestLocal.jmx,,1,0 +"HTTP ""Request,",200,OK,Thread Group 2-1,text,true,,73007,1,1,file:testfiles/BatchTestLocal.jmx,,1,0 1 1,200,OK,Thread Group 2-1,,true,,0,1,1,null,,1,0 2 2,200,OK,Thread Group 2-1,,true,,0,1,1,null,,1,0 3 3,200,OK,Thread Group 2-1,,true,,0,1,1,null,,1,0 0 4,200,OK,Thread Group 2-1,,true,,0,1,1,null,,1,0 +NAME USER1,200,OK,Thread Group 3-1,,true,,0,1,1,null,,1,0 Modified: jakarta/jmeter/trunk/bin/testfiles/BatchTestLocal.jmx URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/bin/testfiles/BatchTestLocal.jmx?rev=718247&r1=718246&r2=718247&view=diff ============================================================================== --- jakarta/jmeter/trunk/bin/testfiles/BatchTestLocal.jmx (original) +++ jakarta/jmeter/trunk/bin/testfiles/BatchTestLocal.jmx Mon Nov 17 06:24:56 2008 @@ -148,7 +148,7 @@ <hashTree/> <IfController guiclass="IfControllerPanel" testclass="IfController" testname="If Controller" enabled="true"> <stringProp name="IfController.condition">${__StringFromFile(testfiles/BatchTestLocal.txt)} > 2</stringProp> - <stringProp name="IfController.evaluateAll">false</stringProp> + <boolProp name="IfController.evaluateAll">false</boolProp> </IfController> <hashTree> <JavaSampler guiclass="JavaTestSamplerGui" testclass="JavaSampler" testname="If Test" enabled="true"> @@ -424,7 +424,7 @@ <hashTree> <IfController guiclass="IfControllerPanel" testclass="IfController" testname="If once" enabled="true"> <stringProp name="IfController.condition">${JMeterThread.last_sample_ok}</stringProp> - <stringProp name="IfController.evaluateAll">false</stringProp> + <boolProp name="IfController.evaluateAll">false</boolProp> </IfController> <hashTree> <JavaSampler guiclass="JavaTestSamplerGui" testclass="JavaSampler" testname="Java If once 1" enabled="true"> @@ -526,7 +526,7 @@ </hashTree> <IfController guiclass="IfControllerPanel" testclass="IfController" testname="If all" enabled="true"> <stringProp name="IfController.condition">${JMeterThread.last_sample_ok}</stringProp> - <stringProp name="IfController.evaluateAll">true</stringProp> + <boolProp name="IfController.evaluateAll">true</boolProp> </IfController> <hashTree> <JavaSampler guiclass="JavaTestSamplerGui" testclass="JavaSampler" testname="Java If all 1" enabled="true"> @@ -762,7 +762,7 @@ <stringProp name="HTTPSampler.FILE_NAME"></stringProp> <stringProp name="HTTPSampler.FILE_FIELD"></stringProp> <stringProp name="HTTPSampler.mimetype"></stringProp> - <stringProp name="HTTPSampler.monitor">false</stringProp> + <boolProp name="HTTPSampler.monitor">false</boolProp> <stringProp name="HTTPSampler.embedded_url_re"></stringProp> <stringProp name="TestPlan.comments">N.B. The file that is loaded must have a fixed size, so HTML won't do as it will be different on Unix and Windows. We use this file, which has eol=LF - but of course any changes need to be reflected in the expected test data.</stringProp> @@ -1080,6 +1080,149 @@ </hashTree> </hashTree> </hashTree> + <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Thread Group" enabled="true"> + <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">1</stringProp> + </elementProp> + <stringProp name="ThreadGroup.num_threads">1</stringProp> + <stringProp name="ThreadGroup.ramp_time">1</stringProp> + <longProp name="ThreadGroup.start_time">1226668173000</longProp> + <longProp name="ThreadGroup.end_time">1226668173000</longProp> + <boolProp name="ThreadGroup.scheduler">false</boolProp> + <stringProp name="ThreadGroup.on_sample_error">continue</stringProp> + <stringProp name="ThreadGroup.duration"></stringProp> + <stringProp name="ThreadGroup.delay"></stringProp> + </ThreadGroup> + <hashTree> + <UserParameters guiclass="UserParametersGui" testclass="UserParameters" testname="User Parameters" enabled="true"> + <collectionProp name="UserParameters.names"> + <stringProp name="2388619">NAME</stringProp> + </collectionProp> + <collectionProp name="UserParameters.thread_values"> + <collectionProp name="81040869"> + <stringProp name="81040838">USER1</stringProp> + </collectionProp> + </collectionProp> + <boolProp name="UserParameters.per_iteration">false</boolProp> + </UserParameters> + <hashTree/> + <JavaSampler guiclass="JavaTestSamplerGui" testclass="JavaSampler" testname="Java Request" enabled="true"> + <elementProp name="arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" enabled="true"> + <collectionProp name="Arguments.arguments"> + <elementProp name="Sleep_Time" elementType="Argument"> + <stringProp name="Argument.name">Sleep_Time</stringProp> + <stringProp name="Argument.value">100</stringProp> + <stringProp name="Argument.metadata">=</stringProp> + </elementProp> + <elementProp name="Sleep_Mask" elementType="Argument"> + <stringProp name="Argument.name">Sleep_Mask</stringProp> + <stringProp name="Argument.value">0xFF</stringProp> + <stringProp name="Argument.metadata">=</stringProp> + </elementProp> + <elementProp name="Label" elementType="Argument"> + <stringProp name="Argument.name">Label</stringProp> + <stringProp name="Argument.value">NAME ${NAME}</stringProp> + <stringProp name="Argument.metadata">=</stringProp> + </elementProp> + <elementProp name="ResponseCode" elementType="Argument"> + <stringProp name="Argument.name">ResponseCode</stringProp> + <stringProp name="Argument.value">200</stringProp> + <stringProp name="Argument.metadata">=</stringProp> + </elementProp> + <elementProp name="ResponseMessage" elementType="Argument"> + <stringProp name="Argument.name">ResponseMessage</stringProp> + <stringProp name="Argument.value">OK</stringProp> + <stringProp name="Argument.metadata">=</stringProp> + </elementProp> + <elementProp name="Status" elementType="Argument"> + <stringProp name="Argument.name">Status</stringProp> + <stringProp name="Argument.value">OK</stringProp> + <stringProp name="Argument.metadata">=</stringProp> + </elementProp> + <elementProp name="SamplerData" elementType="Argument"> + <stringProp name="Argument.name">SamplerData</stringProp> + <stringProp name="Argument.value"></stringProp> + <stringProp name="Argument.metadata">=</stringProp> + </elementProp> + <elementProp name="ResultData" elementType="Argument"> + <stringProp name="Argument.name">ResultData</stringProp> + <stringProp name="Argument.value"></stringProp> + <stringProp name="Argument.metadata">=</stringProp> + </elementProp> + </collectionProp> + </elementProp> + <stringProp name="classname">org.apache.jmeter.protocol.java.test.JavaTest</stringProp> + </JavaSampler> + <hashTree/> + <ResultCollector guiclass="SimpleDataWriter" testclass="ResultCollector" testname="Write CSV" enabled="true"> + <boolProp name="ResultCollector.error_logging">false</boolProp> + <objProp> + <name>saveConfig</name> + <value class="SampleSaveConfiguration"> + <time>false</time> + <latency>false</latency> + <timestamp>false</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>true</responseData> + <samplerData>true</samplerData> + <xml>false</xml> + <fieldNames>true</fieldNames> + <responseHeaders>true</responseHeaders> + <requestHeaders>true</requestHeaders> + <responseDataOnError>false</responseDataOnError> + <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage> + <assertionsResultsToSave>0</assertionsResultsToSave> + <bytes>true</bytes> + <url>true</url> + <fileName>true</fileName> + <threadCounts>true</threadCounts> + <sampleCount>true</sampleCount> + </value> + </objProp> + <stringProp name="filename">${__P(CSVFILE)}</stringProp> + </ResultCollector> + <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>false</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> + </value> + </objProp> + <stringProp name="filename"></stringProp> + </ResultCollector> + <hashTree/> + </hashTree> </hashTree> </hashTree> </jmeterTestPlan> Modified: jakarta/jmeter/trunk/bin/testfiles/BatchTestLocal.xml URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/bin/testfiles/BatchTestLocal.xml?rev=718247&r1=718246&r2=718247&view=diff ============================================================================== --- jakarta/jmeter/trunk/bin/testfiles/BatchTestLocal.xml (original) +++ jakarta/jmeter/trunk/bin/testfiles/BatchTestLocal.xml Mon Nov 17 06:24:56 2008 @@ -648,7 +648,7 @@ <responseData class="java.lang.String"/> <responseFile class="java.lang.String"></responseFile> </sample> -<httpSample s="true" lb="HTTP "Request," rc="200" rm="OK" tn="Thread Group 2-1" dt="text" by="65373" sc="1" ec="0" ng="1" na="1"> +<httpSample s="true" lb="HTTP "Request," rc="200" rm="OK" tn="Thread Group 2-1" dt="text" by="73007" sc="1" ec="0" ng="1" na="1"> <responseHeader class="java.lang.String"></responseHeader> <requestHeader class="java.lang.String"></requestHeader> <responseFile class="java.lang.String"></responseFile> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]