Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-41399

Add an option to tool/generator/maketestcourse to generate a fixed data set

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Fixed
    • Critical
    • 2.6
    • 2.6
    • Performance
    • MOODLE_26_STABLE
    • MOODLE_26_STABLE
    • MDL-41399_master
    • Hide
      • Unit tests passes
      1. Run vendor/bin/phpunit tool_generator_maketestcourse_testcase admin/tool/generator/tests/maketestcourse_test.php
      • New courses are properly created
      1. Run php admin/tool/generator/cli/maketestcourse.php with --size="S" and without --fixeddataset option
      2. The new course activities SHOULD be spread accross multiple course sections
      3. Run php admin/tool/generator/cli/maketestcourse.php with --size="S" with --fixeddataset option
      4. The new course activities SHOULD be created in the first topic section
      5. Go to the new course's forum
      6. You SHOULD see that both the number of the discussion and the number of the user that started it are always incrementing
      Show
      Unit tests passes Run vendor/bin/phpunit tool_generator_maketestcourse_testcase admin/tool/generator/tests/maketestcourse_test.php New courses are properly created Run php admin/tool/generator/cli/maketestcourse.php with --size="S" and without --fixeddataset option The new course activities SHOULD be spread accross multiple course sections Run php admin/tool/generator/cli/maketestcourse.php with --size="S" with --fixeddataset option The new course activities SHOULD be created in the first topic section Go to the new course's forum You SHOULD see that both the number of the discussion and the number of the user that started it are always incrementing

    Description

      The new tool_generator course generator creates the generated activities in random sections and selects random users to add forum discussions and posts. If we are going to use this courses to run performance tests we need the same dataset (depending on the size of course)

      We can add a new --fixeddataset argument and refactor get_random_section and get_random_user. There is no need to change the get_random_binary as it is only data with a fixed size.

      Attachments

        Issue Links

          Activity

            People

              dmonllao David Monllaó
              dmonllao David Monllaó
              Frédéric Massart Frédéric Massart
              Dan Poltawski Dan Poltawski
              Ankit Agarwal Ankit Agarwal
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Clockify

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.