Note: You are currently viewing documentation for Moodle 4.0. Up-to-date documentation for the latest stable version of Moodle may be available here: JMeter test plan generator.

JMeter test plan generator

From MoodleDocs

The JMeter test plan generator allows you to run performance tests over a Moodle course, it works along with https://github.com/moodlehq/moodle-performance-comparison, you can find more info about how to use it in https://github.com/moodlehq/moodle-performance-comparison/blob/master/README.md

Requirements

This tool is for developer use only and should not be used on a live site. It is disabled unless you set the debugging option to DEVELOPER.

Finding the generator tool

The tool can be found in:

  • Web interface
    • The Site Administration block -> Development -> Make JMeter test plan
  • CLI
    • admin/tool/generator/cli/maketestplan.php

Usage

cd /moodle/dirroot
php admin/tool/generator/cli/maketestplan.php --size=S --shortname="course_short_name"

Options

  • Course shortname: Shortname of the test plan's target course (required)
  • Size: Size of the test plan to create XS, S, M, L, XL, or XXL options (required)
  • By pass check: Bypasses the developer-mode check (be careful!)
  • Update users password: Updates the target course users password

For more help:

php admin/tool/generator/cli/maketestplan.php --help