Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Differences Between: [Versions 310 and 403] [Versions 311 and 403] [Versions 39 and 403] [Versions 400 and 403] [Versions 401 and 403]

   1  <?php
   2  // This file is part of Moodle - http://moodle.org/
   3  //
   4  // Moodle is free software: you can redistribute it and/or modify
   5  // it under the terms of the GNU General Public License as published by
   6  // the Free Software Foundation, either version 3 of the License, or
   7  // (at your option) any later version.
   8  //
   9  // Moodle is distributed in the hope that it will be useful,
  10  // but WITHOUT ANY WARRANTY; without even the implied warranty of
  11  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12  // GNU General Public License for more details.
  13  //
  14  // You should have received a copy of the GNU General Public License
  15  // along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
  16  
  17  /**
  18   * Language strings.
  19   *
  20   * @package tool_generator
  21   * @copyright 2013 The Open University
  22   * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  23   */
  24  
  25  $string['bigfile'] = 'Big file {$a}';
  26  $string['courseexplanation'] = 'This tool creates standard test courses that include many
  27  sections, activities, and files.
  28  
  29  This is intended to provide a standardised measure for checking the reliability
  30  and performance of various system components (such as backup and restore).
  31  
  32  This test is important because there have been many cases previously where,
  33  faced with real-life use cases (e.g. a course with 1,000 activities), the system
  34  does not work.
  35  
  36  Courses created using this feature can occupy a large amount of database and
  37  filesystem space (tens of gigabytes). You will need to delete the courses
  38  (and wait for various cleanup runs) to release this space again.
  39  
  40  **Do not use this feature on a live system**. Use only on a developer server.
  41  (To avoid accidental use, this feature is disabled unless you have also selected
  42  DEVELOPER debugging level.)';
  43  
  44  $string['coursesize_0'] = 'XS (~10KB; create in ~1 second)';
  45  $string['coursesize_1'] = 'S (~10MB; create in ~30 seconds)';
  46  $string['coursesize_2'] = 'M (~100MB; create in ~2 minutes)';
  47  $string['coursesize_3'] = 'L (~1GB; create in ~30 minutes)';
  48  $string['coursesize_4'] = 'XL (~10GB; create in ~2 hours)';
  49  $string['coursesize_5'] = 'XXL (~20GB; create in ~4 hours)';
  50  $string['additionalmodules'] = 'Additional activities';
  51  $string['additionalmodules_help'] = 'Select more activities that implement the course_backend_generator_create_activity function to include in the test course.';
  52  $string['coursewithoutusers'] = 'The selected course has no users';
  53  $string['createcourse'] = 'Create course';
  54  $string['createtestplan'] = 'Create test plan';
  55  $string['creating'] = 'Creating course';
  56  $string['done'] = 'done ({$a}s)';
  57  $string['downloadtestplan'] = 'Download test plan';
  58  $string['downloadusersfile'] = 'Download users file';
  59  $string['error_nocourses'] = 'There are no courses to generate the test plan';
  60  $string['error_noforumdiscussions'] = 'The selected course does not contain forum discussions';
  61  $string['error_noforuminstances'] = 'The selected course does not contain forum module instances';
  62  $string['error_noforumreplies'] = 'The selected course does not contain forum replies';
  63  $string['error_nonexistingcourse'] = 'The specified course does not exist';
  64  $string['error_nopageinstances'] = 'The selected course does not contain page module instances';
  65  $string['error_notdebugging'] = 'Not available on this server because debugging is not set to DEVELOPER';
  66  $string['error_nouserspassword'] = 'You need to set $CFG->tool_generator_users_password in config.php to generate the test plan';
  67  $string['fullname'] = 'Test course: {$a->size}';
  68  $string['maketestcourse'] = 'Make test course';
  69  $string['maketestplan'] = 'Make JMeter test plan';
  70  $string['notenoughusers'] = 'The selected course does not have enough users';
  71  $string['pluginname'] = 'Development data generator';
  72  $string['progress_checkaccounts'] = 'Checking user accounts ({$a})';
  73  $string['progress_coursecompleted'] = 'Course completed ({$a}s)';
  74  $string['progress_createaccounts'] = 'Creating user accounts ({$a->from} - {$a->to})';
  75  $string['progress_createassignments'] = 'Creating assignments ({$a})';
  76  $string['progress_createbigfiles'] = 'Creating big files ({$a})';
  77  $string['progress_createcourse'] = 'Creating course {$a}';
  78  $string['progress_createforum'] = 'Creating forum ({$a} posts)';
  79  $string['progress_createpages'] = 'Creating pages ({$a})';
  80  $string['progress_createsmallfiles'] = 'Creating small files ({$a})';
  81  $string['progress_enrol'] = 'Enrolling users into course ({$a})';
  82  $string['progress_sitecompleted'] = 'Site completed ({$a}s)';
  83  $string['shortsize_0'] = 'XS';
  84  $string['shortsize_1'] = 'S';
  85  $string['shortsize_2'] = 'M';
  86  $string['shortsize_3'] = 'L';
  87  $string['shortsize_4'] = 'XL';
  88  $string['shortsize_5'] = 'XXL';
  89  $string['sitesize_0'] = 'XS (~10MB; 3 courses, created in ~30 seconds)';
  90  $string['sitesize_1'] = 'S (~50MB; 8 courses, created in ~2 minutes)';
  91  $string['sitesize_2'] = 'M (~200MB; 73 courses, created in ~10 minutes)';
  92  $string['sitesize_3'] = 'L (~1\'5GB; 277 courses, created in ~1\'5 hours)';
  93  $string['sitesize_4'] = 'XL (~10GB; 1065 courses, created in ~5 hours)';
  94  $string['sitesize_5'] = 'XXL (~20GB; 4177 courses, created in ~10 hours)';
  95  $string['size'] = 'Size of course';
  96  $string['smallfiles'] = 'Small files';
  97  $string['targetcourse'] = 'Test target course';
  98  $string['testplanexplanation'] = 'This tool creates a JMeter test plan file along with the user credentials file.
  99  
 100  This test plan is designed to work along with {$a}, which makes easier to run the test plan in a specific Moodle environment, gathers information about the runs and compares the results, so you will need to download it and use it\'s test_runner.sh script or follow the installation and usage instructions.
 101  
 102  You need to set a password for the course users in config.php (e.g. $CFG->tool_generator_users_password = \'moodle\';). There is no default value for this password to prevent unintended usages of the tool. You need to use the update passwords option in case your course users have other passwords or they were generated by tool_generator but without setting a $CFG->tool_generator_users_password value.
 103  
 104  It is part of tool_generator so it works well with the courses generated by the courses and the site generators, it can
 105  also be used with any course that contains, at least:
 106  
 107  * Enough enrolled users (depends on the test plan size you select) with the password reset to \'moodle\'
 108  * A page module instance
 109  * A forum module instance with at least one discussion and one reply
 110  
 111  You might want to consider your servers capacity when running large test plans as the amount to load generated by JMeter
 112  can be specially big. The ramp up period has been adjusted according to the number of threads (users) to reduce this kind
 113  of issues but the load is still huge.
 114  
 115  **Do not run the test plan on a live system**. This feature only creates the files to feed JMeter so is not dangerous by
 116  itself, but you should **NEVER** run this test plan in a production site.
 117  
 118  ';
 119  $string['testplansize_0'] = 'XS ({$a->users} users, {$a->loops} loops and {$a->rampup} rampup period)';
 120  $string['testplansize_1'] = 'S ({$a->users} users, {$a->loops} loops and {$a->rampup} rampup period)';
 121  $string['testplansize_2'] = 'M ({$a->users} users, {$a->loops} loops and {$a->rampup} rampup period)';
 122  $string['testplansize_3'] = 'L ({$a->users} users, {$a->loops} loops and {$a->rampup} rampup period)';
 123  $string['testplansize_4'] = 'XL ({$a->users} users, {$a->loops} loops and {$a->rampup} rampup period)';
 124  $string['testplansize_5'] = 'XXL ({$a->users} users, {$a->loops} loops and {$a->rampup} rampup period)';
 125  $string['updateuserspassword'] = 'Update course users password';
 126  $string['updateuserspassword_help'] = 'JMeter needs to login as the course users, you can set the users password using $CFG->tool_generator_users_password in config.php; this setting updates the course user\'s password according to $CFG->tool_generator_users_password. It can be useful in case you are using a course not generated by tool_generator or $CFG->tool_generator_users_password was not set when you created the test courses.';
 127  $string['privacy:metadata'] = 'The Development data generator plugin does not store any personal data.';