0

I want to run cyclical tests in jmeter. I want them to run every day and than run for 10 minutes (every day for 10 minutes). How to do it?

2 Answers2

1

There are many ways to answer your (a bit too broad) question. Here are some insights that could help:

  • to launch a JMeter test that last 10 minutes, you have to configure a job in JMeter with such a duration. Then you have to lear how to launch it via command line instead of via the graphical interface (see this answer for example)

  • to launch your JMeter test every day, you can use a Continuous Integration tool like Jenkins. In this tool, you will be able to create some jobs with a specific schedule (every day in your case) and a specific task (launch my JMeter test via command line)

Laurent Bristiel
  • 6,819
  • 34
  • 52
1
  1. For running test for 10 minutes there are following options:

    • In the Thread Group tick "Specify Thead lifetime" and put 600 into "Duration" field:

      enter image description here

    • Or use Runtime Controller which allows setting how long its children are allowed to run

      enter image description here

  2. With regards to running the test every day, you can go for:

    • Windows Task Scheduler
    • Linux/Unix crontab
    • MacOS launchd
    • or you can put the JMeter job under the orchestration of a Continuous Integration server, any of them can run specified job on the schedule or basing on various different triggers, tracks job status (successful or failed), some of them provide performance trends
Dmitri T
  • 159,985
  • 5
  • 83
  • 133