in jmeter script i'm using property function i.e. ${__p(varname,2)} specify variable value @ run time.
when executing script cmd -- can specify property value using -jvarname (i.e. -jvarname=5) , remote execution can specify value using -gvarname (i.e. -gvarname=5) cmd.
now i'm trying run jmeter script using ant build
, it's working fine on single pc. (i.e. runremote="false") when try execute remotely on multiple pc (i.e. runremote="true") doesn't take values provided in property tag (i.e.<property name="varname" value="5"/>
) there way provide global property ant.?? cmd using argument -g .
<target name="jmeter" depends="start"> <taskdef name="jmeter" classname="org.programmerplanet.ant.taskdefs.jmeter.jmetertask"> </taskdef> <jmeter jmeterhome="${jmeter_home}" resultlog="${report.output.location}/report/${property.file}/${start_time}/jmetersummeryresults.jtl" runremote="true"> <testplans dir="../jmeter" includes="*.jmx" /> <property name="users" value="${thread.users}" /> <property name="site_id" value="${site.id}" /> <property name="folder_id" value="${folder.id}" /> <property name="file_path" value="${file.upload.path}" /> </jmeter>
there remote
attribute needs set true
.
<property name="varname" value="5" remote="true"/>
Comments
Post a Comment