Test course generator: Difference between revisions
No edit summary |
|||
Line 19: | Line 19: | ||
* The 'M' course size (100 sections) is similar to a typical course at a large institution. This is useful for testing performance under normal conditions. | * The 'M' course size (100 sections) is similar to a typical course at a large institution. This is useful for testing performance under normal conditions. | ||
* The 'XL' course is very large and is suitable for testing reliability under extreme conditions. | * The 'XL' course is very large and is suitable for testing reliability under extreme conditions. | ||
=== Options === | |||
* Shortname: The course shortname (required) | |||
* Size: The size of the generated site. Accepted values: XS, S, M, L, XL, or XXL (required) | |||
== CLI version == | == CLI version == |
Revision as of 04:40, 14 October 2013
(This in only available from 2.5.2+ (Build: 20131004) onwards)
If you want a large course for testing performance or reliability of a feature (where its behaviour might depend on the size of a course), you can generate standard-sized test courses using the generator tool.
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 is in the administration menu under Development / Make test course.
Using the tool
To use the tool, select a size and type a shortname. The shortname should be one that is not in use. (If you type one that's in use, it will tell you.)
The tool shows an estimate of how large the created course will be and how long it will take to create. These are rough estimates.
- The 'M' course size (100 sections) is similar to a typical course at a large institution. This is useful for testing performance under normal conditions.
- The 'XL' course is very large and is suitable for testing reliability under extreme conditions.
Options
- Shortname: The course shortname (required)
- Size: The size of the generated site. Accepted values: XS, S, M, L, XL, or XXL (required)
CLI version
You can run the tool from the command-line using:
php admin/tool/generator/cli/maketestcourse.php
This will show command-line options.