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

Automate large site generation for testing

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.6
    • 2.6
    • Performance
    • MOODLE_26_STABLE
    • MOODLE_26_STABLE
    • MDL-41402_master
    • Hide
      1. Run the courses generator to ensure there are no regressions
        1. cd /moodle/dirroot
        2. *php admin/tool/generator/cli/maketestcourse.php --size="S" --shortname="whatever_1"
        3. A new course with shortname whatever_1 SHOULD be created and you SHOULD see quite a few outputs in the CLI
        4. Run maketestcourse.php (same command as described above) but now with the --quiet option and changing the --shortname option's value
        5. A new course with shortname "whateveryouused" SHOULD be created and you SHOULD NOT see outputs in the CLI
        6. Use the web interface to create a new course accessing admin/tool/generator/maketestcourse.php being logged as an admin (or Site administration -> Development -> Make test course)
        7. A new course SHOULD be created and you SHOULD NOT see any error
      1. Run the site generator
        1. cd /moodle/dirroot/
        2. php admin/tool/generator/cli/maketestsite.php --size="XS"
        3. There SHOULD be 3 new courses, two with name Test course: XS and another one with name Test course: S
        4. Check the new Test course: S course's contents, the page activities SHOULD be spread across all sections or most of them (is random)
        5. php admin/tool/generator/cli/maketestsite.php --size="XS" --fixeddataset
        6. There SHOULD be 3 new courses, two with name Test course: XS and another one with name Test course: S
        7. Check the new Test course: S course's contents, the page activities SHOULD be in the first topic's section
        8. php admin/tool/generator/cli/maketestsite.php --size="XS" --quiet
        9. You SHOULD NOT see any output in the CLI
        10. There SHOULD be 3 new courses, two with name Test course: XS and another one with name Test course: S
        11. php admin/tool/generator/cli/maketestsite.php --size="S"
        12. There SHOULD be 12 new courses, 8 with name Test course: XS and 4 with name Test course: S
      Show
      Run the courses generator to ensure there are no regressions cd /moodle/dirroot *php admin/tool/generator/cli/maketestcourse.php --size="S" --shortname="whatever_1" A new course with shortname whatever_1 SHOULD be created and you SHOULD see quite a few outputs in the CLI Run maketestcourse.php (same command as described above) but now with the --quiet option and changing the --shortname option's value A new course with shortname "whateveryouused" SHOULD be created and you SHOULD NOT see outputs in the CLI Use the web interface to create a new course accessing admin/tool/generator/maketestcourse.php being logged as an admin (or Site administration -> Development -> Make test course) A new course SHOULD be created and you SHOULD NOT see any error Run the site generator cd /moodle/dirroot/ php admin/tool/generator/cli/maketestsite.php --size="XS" There SHOULD be 3 new courses, two with name Test course: XS and another one with name Test course: S Check the new Test course: S course's contents, the page activities SHOULD be spread across all sections or most of them (is random) php admin/tool/generator/cli/maketestsite.php --size="XS" --fixeddataset There SHOULD be 3 new courses, two with name Test course: XS and another one with name Test course: S Check the new Test course: S course's contents, the page activities SHOULD be in the first topic's section php admin/tool/generator/cli/maketestsite.php --size="XS" --quiet You SHOULD NOT see any output in the CLI There SHOULD be 3 new courses, two with name Test course: XS and another one with name Test course: S php admin/tool/generator/cli/maketestsite.php --size="S" There SHOULD be 12 new courses, 8 with name Test course: XS and 4 with name Test course: S

    Description

      Following MDL-38197 which generates a test course we can generate a big test site with many courses, users, enrolments and module instances

      Attachments

        Issue Links

          Activity

            People

              dmonllao David Monllaó
              dmonllao David Monllaó
              Frédéric Massart Frédéric Massart
              Dan Poltawski Dan Poltawski
              Adrian Greeve Adrian Greeve
              Matteo Scaramuccia, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                18/Nov/13