Test site generator: Difference between revisions
No edit summary |
Mary Cooch (talk | contribs) (from 3.5) |
||
Line 19: | Line 19: | ||
=== Options === | === Options === | ||
{| class="wikitable" border="1" | |||
|- | |||
! Option | |||
! Description | |||
|- | |||
| --size | |||
| Size of the generated site, this value affects the number of courses and their size. Accepted values: XS, S, M, L, XL, or XXL (required) | |||
|- | |||
| --fixeddataset | |||
| Use a fixed data set instead of randomly generated data | |||
|- | |||
| --filesizelimit | |||
| Limits the size of the generated files to the specified bytes | |||
|- | |||
| --bypasscheck | |||
| Bypasses the developer-mode check (be careful!) | |||
|- | |||
| --quiet | |||
| Do not show any output | |||
|} | |||
For more help: | For more help: | ||
php admin/tool/generator/cli/maketestsite.php --help | php admin/tool/generator/cli/maketestsite.php --help |
Latest revision as of 10:16, 5 December 2018
(This in only available from 2.5.2+ (Build: 20131004) onwards)
The test site generator adds a set of courses, users and enrolments between them, in fact is using the Test course generator to generate the courses. It does not install a moodle site nor changes it's settings, only populates it. It's execution is not restricted to one, every time you run it new courses will be added.
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
This tool is only available through CLI (command line interface)
Usage
cd /moodle/dirroot php admin/tool/generator/cli/maketestsite.php --size=S
Options
Option | Description |
---|---|
--size | Size of the generated site, this value affects the number of courses and their size. Accepted values: XS, S, M, L, XL, or XXL (required) |
--fixeddataset | Use a fixed data set instead of randomly generated data |
--filesizelimit | Limits the size of the generated files to the specified bytes |
--bypasscheck | Bypasses the developer-mode check (be careful!) |
--quiet | Do not show any output |
For more help:
php admin/tool/generator/cli/maketestsite.php --help