Mayank
Mayank

Reputation: 65

I want to schedule task at particular time using JMeter

I want to schedule JMeter so that it will run a test thread automatically after every 1 or 2 hrs.

Upvotes: 3

Views: 11776

Answers (2)

vikas
vikas

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

enter image description here

Hope that will help full for you

Upvotes: 2

Dmitri T
Dmitri T

Reputation: 168122

There are at least 2 options:

  1. 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:

  2. 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

Related Questions