jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1406874 - in /jmeter/trunk/bin/testfiles: BatchTestLocal.csv BatchTestLocal.jmx BatchTestLocal.xml
Date Thu, 08 Nov 2012 00:29:12 GMT
Author: sebb
Date: Thu Nov  8 00:29:11 2012
New Revision: 1406874

URL: http://svn.apache.org/viewvc?rev=1406874&view=rev
Log:
Add batch tests for JSR223 and BSF

Modified:
    jmeter/trunk/bin/testfiles/BatchTestLocal.csv
    jmeter/trunk/bin/testfiles/BatchTestLocal.jmx
    jmeter/trunk/bin/testfiles/BatchTestLocal.xml

Modified: jmeter/trunk/bin/testfiles/BatchTestLocal.csv
URL: http://svn.apache.org/viewvc/jmeter/trunk/bin/testfiles/BatchTestLocal.csv?rev=1406874&r1=1406873&r2=1406874&view=diff
==============================================================================
--- jmeter/trunk/bin/testfiles/BatchTestLocal.csv (original)
+++ jmeter/trunk/bin/testfiles/BatchTestLocal.csv Thu Nov  8 00:29:11 2012
@@ -106,7 +106,7 @@ Java If once 1,,,Thread Group 1-2,,false
 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,,127746,1,1,file:testfiles/BatchTestLocal.jmx,,1,0
+"HTTP ""Request,",200,OK,Thread Group 2-1,text,true,,132845,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
@@ -129,4 +129,6 @@ CSV_VAR=2,200,OK,CSV Test 6-1,,true,,0,1
 BSH Counter: 1,200,OK,Bug 48943 7-1,text,true,,0,1,1,null,,1,0
 BSH Counter: 2,200,OK,Bug 48943 7-1,text,true,,0,1,1,null,,1,0
 BSH Counter: 3,200,OK,Bug 48943 7-1,text,true,,0,1,1,null,,1,0
-Post 3,200,OK,Post Thread Group 1-1,,true,,0,1,1,null,,1,0
+BSF Sampler,200,OK,BSF/JSR 8-1,text,true,,3,1,1,null,,1,0
+JSR223 Sampler,200,OK,BSF/JSR 8-1,text,true,,3,1,1,null,,1,0
+Post 1,200,OK,Post Thread Group 1-1,,true,,0,1,1,null,,1,0

Modified: jmeter/trunk/bin/testfiles/BatchTestLocal.jmx
URL: http://svn.apache.org/viewvc/jmeter/trunk/bin/testfiles/BatchTestLocal.jmx?rev=1406874&r1=1406873&r2=1406874&view=diff
==============================================================================
--- jmeter/trunk/bin/testfiles/BatchTestLocal.jmx (original)
+++ jmeter/trunk/bin/testfiles/BatchTestLocal.jmx Thu Nov  8 00:29:11 2012
@@ -2221,6 +2221,109 @@ We use this file, which has eol=LF - but
         <stringProp name="filename"></stringProp>
       </ResultCollector>
       <hashTree/>
+      <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="BSF/JSR"
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">1</stringProp>
+        </elementProp>
+        <stringProp name="ThreadGroup.num_threads">1</stringProp>
+        <stringProp name="ThreadGroup.ramp_time">1</stringProp>
+        <longProp name="ThreadGroup.start_time">1352333174000</longProp>
+        <longProp name="ThreadGroup.end_time">1352333174000</longProp>
+        <boolProp name="ThreadGroup.scheduler">false</boolProp>
+        <stringProp name="ThreadGroup.duration"></stringProp>
+        <stringProp name="ThreadGroup.delay"></stringProp>
+      </ThreadGroup>
+      <hashTree>
+        <BSFSampler guiclass="TestBeanGUI" testclass="BSFSampler" testname="BSF Sampler"
enabled="true">
+          <stringProp name="filename"></stringProp>
+          <stringProp name="parameters"></stringProp>
+          <stringProp name="script">12*12</stringProp>
+          <stringProp name="scriptLanguage">beanshell</stringProp>
+        </BSFSampler>
+        <hashTree/>
+        <JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="JSR223
Sampler" enabled="true">
+          <stringProp name="cacheKey"></stringProp>
+          <stringProp name="filename"></stringProp>
+          <stringProp name="parameters"></stringProp>
+          <stringProp name="script">11*11</stringProp>
+          <stringProp name="scriptLanguage">Jexl2</stringProp>
+        </JSR223Sampler>
+        <hashTree/>
+        <ResultCollector guiclass="SimpleDataWriter" testclass="ResultCollector" testname="Write
XML" 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>false</responseData>
+              <samplerData>true</samplerData>
+              <xml>true</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">BatchTestLocal.xml</stringProp>
+        </ResultCollector>
+        <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>false</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/>
+      </hashTree>
     </hashTree>
   </hashTree>
 </jmeterTestPlan>

Modified: jmeter/trunk/bin/testfiles/BatchTestLocal.xml
URL: http://svn.apache.org/viewvc/jmeter/trunk/bin/testfiles/BatchTestLocal.xml?rev=1406874&r1=1406873&r2=1406874&view=diff
==============================================================================
--- jmeter/trunk/bin/testfiles/BatchTestLocal.xml (original)
+++ jmeter/trunk/bin/testfiles/BatchTestLocal.xml Thu Nov  8 00:29:11 2012
@@ -653,7 +653,7 @@
   <responseData class="java.lang.String"/>
   <responseFile class="java.lang.String"></responseFile>
 </sample>
-<httpSample s="true" lb="HTTP &quot;Request," rc="200" rm="OK" tn="Thread Group 2-1"
dt="text" by="127746" sc="1" ec="0" ng="1" na="1">
+<httpSample s="true" lb="HTTP &quot;Request," rc="200" rm="OK" tn="Thread Group 2-1"
dt="text" by="132845" 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>
@@ -770,7 +770,19 @@
   <responseFile class="java.lang.String"></responseFile>
   <samplerData class="java.lang.String">SampleResult.setSampleLabel(&quot;BSH Counter:
3&quot;);</samplerData>
 </sample>
-<sample s="true" lb="Post 3" rc="200" rm="OK" tn="Post Thread Group 1-1" dt="" by="0"
sc="1" ec="0" ng="1" na="1">
+<sample s="true" lb="BSF Sampler" rc="200" rm="OK" tn="BSF/JSR 8-1" dt="text" by="3" 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>
+  <samplerData class="java.lang.String">12*12</samplerData>
+</sample>
+<sample s="true" lb="JSR223 Sampler" rc="200" rm="OK" tn="BSF/JSR 8-1" dt="text" by="3"
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>
+  <samplerData class="java.lang.String">11*11</samplerData>
+</sample>
+<sample s="true" lb="Post 1" rc="200" rm="OK" tn="Post Thread Group 1-1" dt="" by="0"
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>



Mime
View raw message