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

    • Type: New Feature
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.6
    • Component/s: Performance
    • Labels:
    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-41399_master

      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

              Assignee:
              dmonllao David Monllaó
              Reporter:
              dmonllao David Monllaó
              Peer reviewer:
              Frédéric Massart
              Integrator:
              Dan Poltawski
              Tester:
              Ankit Agarwal
              Participants:
              Component watchers:
              Matteo Scaramuccia, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                18/Nov/13