Reputation: 65
I want to schedule JMeter so that it will run a test thread automatically after every 1 or 2 hrs.
Upvotes: 3
Views: 11776
Reputation: 506
You can schedule your test with the help of windows Task Scheduler
1. Create a batch file write below code,do required modification
D:
cd Software\apache-jmeter-2.13\apache-jmeter-2.13\bin
jmeter -n -t D:\test.jmx -l D:\results.jtl
2.open Task Scheduler, create a task, add the batch file path and schedule
your task on the base your requirement
Hope that will help full for you
Upvotes: 2
Reputation: 168122
There are at least 2 options:
JMeter test can be run in command-line non-GUI mode like:
jmeter -n -t /path/to/testplan.jmx -l /path/to/results.jtl
If you put above line into a shell script file should be able to use your operating system scheduling mechanism to run it as you need:
You can set Loop Count to "Forever" on Thread Group level and put a Constant Timer to sleep desired number of time between test iterations.
Upvotes: 4