Author: pmouawad Date: Tue Oct 18 11:38:40 2016 New Revision: 1765417 URL: http://svn.apache.org/viewvc?rev=1765417&view=rev Log: Add a Template that uses Groovy
Added: jmeter/trunk/bin/templates/GroovyJSR223Sampler.jmx Modified: jmeter/trunk/bin/templates/templates.xml Added: jmeter/trunk/bin/templates/GroovyJSR223Sampler.jmx URL: http://svn.apache.org/viewvc/jmeter/trunk/bin/templates/GroovyJSR223Sampler.jmx?rev=1765417&view=auto ============================================================================== --- jmeter/trunk/bin/templates/GroovyJSR223Sampler.jmx (added) +++ jmeter/trunk/bin/templates/GroovyJSR223Sampler.jmx Tue Oct 18 11:38:40 2016 @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<jmeterTestPlan version="1.2" properties="3.1" jmeter="3.1-SNAPSHOT.20161018"> + <hashTree> + <JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="JSR223Sampler using Groovy" enabled="true"> + <stringProp name="TestPlan.comments">JSR223 Sampler using Groovy</stringProp> + <stringProp name="cacheKey">cea2f0e3-d38e-4ea4-bf26-efa6bcb3d07f</stringProp> + <stringProp name="filename"></stringProp> + <stringProp name="parameters"></stringProp> + <stringProp name="script">def variable = vars["varName"]; +log.info("Example"); + +vars.put("newVar", "a computed value");</stringProp> + <stringProp name="scriptLanguage">groovy</stringProp> + </JSR223Sampler> + <hashTree/> + </hashTree> +</jmeterTestPlan> Modified: jmeter/trunk/bin/templates/templates.xml URL: http://svn.apache.org/viewvc/jmeter/trunk/bin/templates/templates.xml?rev=1765417&r1=1765416&r2=1765417&view=diff ============================================================================== --- jmeter/trunk/bin/templates/templates.xml (original) +++ jmeter/trunk/bin/templates/templates.xml Tue Oct 18 11:38:40 2016 @@ -84,6 +84,22 @@ ]]></description> </template> <template isTestPlan="false"> + <name>JSR223 Sampler using Groovy</name> + <fileName>GroovyJSR223Sampler.jmx</fileName> + <description><![CDATA[ + <h1>Sample JSR223 Sampler using Groovy</h1> + <h2>Overview</h2> + This is a sample JSR223 sampler which shows how to use some of its features with Apache Groovy language + <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#JSR223_Sampler" >JSR223 Sampler</a></li> + <li><a href="http://groovy-lang.org/documentation.html" >Apache Groovy</a></li> + </ul> + ]]></description> + </template> + <template isTestPlan="false"> <name>BeanShell Sampler</name> <fileName>BeanShellSampler.jmx</fileName> <description><![CDATA[