You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by se...@apache.org on 2013/07/11 00:54:07 UTC

svn commit: r1502041 - in /jmeter/trunk/bin/templates: BeanShellSampler.jmx templates.xml

Author: sebb
Date: Wed Jul 10 22:54:07 2013
New Revision: 1502041

URL: http://svn.apache.org/r1502041
Log:
Simplify BeanShell template; add more description

Modified:
    jmeter/trunk/bin/templates/BeanShellSampler.jmx
    jmeter/trunk/bin/templates/templates.xml

Modified: jmeter/trunk/bin/templates/BeanShellSampler.jmx
URL: http://svn.apache.org/viewvc/jmeter/trunk/bin/templates/BeanShellSampler.jmx?rev=1502041&r1=1502040&r2=1502041&view=diff
==============================================================================
--- jmeter/trunk/bin/templates/BeanShellSampler.jmx (original)
+++ jmeter/trunk/bin/templates/BeanShellSampler.jmx Wed Jul 10 22:54:07 2013
@@ -1,23 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<jmeterTestPlan version="1.2" properties="2.5" jmeter="2.10-SNAPSHOT.20130709">
+<jmeterTestPlan version="1.2" properties="2.5" jmeter="2.10-SNAPSHOT.20130710">
   <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">1</stringProp>
-      </elementProp>
-      <stringProp name="ThreadGroup.num_threads">1</stringProp>
-      <stringProp name="ThreadGroup.ramp_time">1</stringProp>
-      <longProp name="ThreadGroup.start_time">1373389499000</longProp>
-      <longProp name="ThreadGroup.end_time">1373389499000</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="BeanShell Sampler" enabled="true">
-        <stringProp name="BeanShellSampler.query">// A simple script
+    <BeanShellSampler guiclass="BeanShellSamplerGui" testclass="BeanShellSampler" testname="BeanShell Sampler" enabled="true">
+      <stringProp name="BeanShellSampler.query">// A simple script
 log.info(&quot;Example&quot;);
 
 type = bsh.args[0];
@@ -33,43 +18,10 @@ if (&quot;1&quot;.equals(type)) {
 	IsSuccess = false;
 }
 return Parameters;</stringProp>
-        <stringProp name="BeanShellSampler.filename"></stringProp>
-        <stringProp name="BeanShellSampler.parameters">2 OK</stringProp>
-        <boolProp name="BeanShellSampler.resetInterpreter">false</boolProp>
-      </BeanShellSampler>
-      <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>
+      <stringProp name="BeanShellSampler.filename"></stringProp>
+      <stringProp name="BeanShellSampler.parameters">2 OK</stringProp>
+      <boolProp name="BeanShellSampler.resetInterpreter">false</boolProp>
+    </BeanShellSampler>
+    <hashTree/>
   </hashTree>
 </jmeterTestPlan>

Modified: jmeter/trunk/bin/templates/templates.xml
URL: http://svn.apache.org/viewvc/jmeter/trunk/bin/templates/templates.xml?rev=1502041&r1=1502040&r2=1502041&view=diff
==============================================================================
--- jmeter/trunk/bin/templates/templates.xml (original)
+++ jmeter/trunk/bin/templates/templates.xml Wed Jul 10 22:54:07 2013
@@ -64,7 +64,15 @@
         <name>BeanShell Sampler</name>
         <fileName>BeanShellSampler.jmx</fileName>
         <description><![CDATA[
-        <h1>BeanShell Sampler with View Results Tree Listener</h1>
+        <h1>Sample BeanShell Sampler</h1>
+        <h2>Overview</h2>
+        This is a sample BeanShell sampler which shows how to use some of its features.
+        <br/>
+        Please select a suitable location in the tree - e.g. Thread Group or WorkBench - before merging.
+        <h2>Useful links</h2>
+            <ul>
+                <li><a href="http://jmeter.apache.org/usermanual/component_reference.html#BeanShell_Sampler" >http://jmeter.apache.org/usermanual/component_reference.html#BeanShell_Sampler</a></li>
+            </ul>
         ]]></description>
     </template>
 </templates>
\ No newline at end of file