Reputation: 290
How can we run multiple jmeter scripts from command line.I have following scripts test1.jmx test2.jmx test3.jmx
Now if i want to pass threads and loop from command line,How can i do that?I know for one script, we can use syntax as follows THREADS ${__P("threads", 25)} but how can we do that for multiple scripts
Upvotes: 0
Views: 1685
Reputation: 709
Use JMeter integrated with Apache Ant through the JMeter Ant Task
For instance, you can configure your execution like this
The key is the line where you specify multiple test plans:
testplans dir="/path/to/your/test" includes="*.jmx"
Look the way to pass properties:
property name="loop" value="10"
property name="threads" value="50"
property name="ramp" value="100"
you read properties from your testplan using the sintax:
${__P([property],[defaultvalue])}.
In this case you will have:
Upvotes: 1