+353 (0)1 602 4784
info@enovation.ie
  • Client Support
  • FR
  • PL
EnovationEnovationEnovationEnovation
+353 (0)1 602 4784
  • WHAT WE DO
    • OUR SERVICES
      • Consultancy
      • eLearning Content
      • Build & Design
      • Training
      • Moodle Educator Certification Program (MEC)
      • Hosting
      • Support & Maintenance
    • OUR SOLUTIONS
      • Aura Talent
      • Aura Perform
      • Moodle
      • Moodle Workplace
      • Totara’s Talent Experience Platform
        • Totara Learn
        • Totara Engage
        • Totara Perform
      • Mahara
  • WHO WE ARE
    • About Enovation
    • Careers
  • CASE STUDIES
  • OUR PARTNERS
    • Microsoft Teams
    • IntelliBoard
    • BigBlueButton
  • INSIGHTS
  • CONTACT US

Generate random test data in Moodle 2

    Home Blog Generate random test data in Moodle 2

    Generate random test data in Moodle 2

    Tomek Muras | Blog, News | 17 February, 2011

    Would you like to test Moodle 2 performance? Or maybe you are interested in checking Moodle’s scalability? Sure, it works fast with the few courses you have created – but how will it look when you have hundreds of courses and thousands of users?

    In either case, you will need to fill your Moodle installation with sample data. Doing this manually may take a long time – fortunately Moodle 2 comes with a generator script.

    We had a quick look at the generator script here, at Enovation and it turned out that the script is not really usable. It was developed for an old version of Moodle (see CONTRIB-490) and has not been fully updated for the latest Moodle 2 release.

    But fear not – we have fixed the issues and submitted the code to back to Moodle 🙂 Although at the time of writing the fixes may not be merged with Moodle yet, you can get the most recent, working version of generator by downloading generator.php and putting it into the admin directory. Some code in the question types needed fixing as well, so you will also need to apply the patch from MDL-25796.

    Please vote in Moodle Tracker on issues MDL-25796 and MDL-16177 if you are interested in having the fixes pushed into the main Moodle code soon!

    Using the generator is very straight-forward; in the simplest case the default settings will work just fine – so simply go to http://<your_moodle_url>/admin/generate.php and press “Generate data!” button. It will create:

    • New courses
    • Sections and modules within the course
    • Grades
    • Full module data, including forum posts, questions, chat messages, etc
    • New users (it will also assign users to course

    The recording below shows the generator in action.

    Happy testing!

    Next Previous
    Moodle2, performance

    Related Post

    • Moodle development – IDs, coursemodules and contexts

      Tomek Muras | Blog, News | 18 May, 2012

      Introduction In this blog entry, I’d like to go through some basic concepts of the Moodle architecture. We will look at very common but sometimes confusing parts of Moodle: instance IDs, contexts and coursemodules. ToRead more

    • Moodle 2.0 File Storage

      Audrey Colmer | Blog, News | 3 January, 2011

      One of the major re-engineering efforts undertaken for Moodle 2.0 was a complete redesign of the Moodle file storage system. This article compares the Moodle 1.9 and Moodle 2.0 file storage methods.

    • Creating simple filter in Moodle 2

      Tomek Muras | Blog, News | 8 December, 2010

      Filters in Moodle are pluggable elements that can convert an output text to some other text. This is currently used for the functionality like: replacing text based emoticons with images (emoticon filter) generating images forRead more

    • Whats new in Moodle 2.0

      Mark Melia | Blog, News | 5 December, 2010

      Moodle 2.0, the long awaited next generation of Moodle was released on the 24th of November to much aclaim. In this blog post I am going to have a quick look at some of theRead more

    • Nachiket Kate May 31, 2016 at 12:56 pm

      I am using bitnami ubuntu-moodle virtual machine for setting up moodle. After successfully setting up moodle instance using that VM, I wanted to generate sample data in moodle so I used your generator.php.
      I kept it in admin directory and when I hit I get url not found or can’t locate this page message.

      When I run it from cli as php generator.php, I get “generator_cli may not inherit final class (Generator)” error message. I have less knowledge in php so couldn’t resolve it on my own but it looks like generator class is not declared final or const in php script which surprises me.

      Any help from you guys would be helpful. Thanks in advance.

    NextPrevious

    Latest Insights

    • 26 July, 2022
      Comments Off on Not quite ready for OKRs?

      Not quite ready for OKRs?

    • 27 June, 2022
      Comments Off on #ILC2022 with EASL and Enovation

      #ILC2022 with EASL and Enovation

    • 16 June, 2022
      Comments Off on Webinar: Transforming Teaching & Learning through Microsoft 365 & Enovation on Moodle

      Webinar: Transforming Teaching & Learning through Microsoft 365 & Enovation on Moodle

    • 8 June, 2022
      Comments Off on Webinar with OpenSesame: The Strategic Role of Learning and Development in DEI

      Webinar with OpenSesame: The Strategic Role of Learning and Development in DEI

    Archives

    • July 2022
    • June 2022
    • May 2022
    • April 2022
    • March 2022
    • February 2022
    • January 2022
    • December 2021
    • November 2021
    • October 2021
    • September 2021
    • August 2021
    • July 2021
    • June 2021
    • May 2021
    • April 2021
    • March 2021
    • February 2021
    • January 2021
    • December 2020
    • November 2020
    • October 2020
    • September 2020
    • August 2020
    • July 2020
    • June 2020
    • May 2020
    • April 2020
    • March 2020
    • January 2020
    • November 2019
    • October 2019
    • September 2019
    • August 2019
    • July 2019
    • June 2019
    • May 2019
    • March 2019
    • February 2019
    • January 2019
    • December 2018
    • November 2018
    • October 2018
    • September 2018
    • August 2018
    • July 2018
    • June 2018
    • May 2018
    • April 2018
    • March 2018
    • February 2018
    • January 2018
    • December 2017
    • November 2017
    • October 2017
    • September 2017
    • August 2017
    • July 2017
    • June 2017
    • May 2017
    • April 2017
    • March 2017
    • January 2017
    • November 2016
    • October 2016
    • June 2016
    • March 2016
    • February 2016
    • January 2016
    • December 2015
    • November 2015
    • October 2015
    • September 2015
    • July 2015
    • June 2015
    • May 2015
    • March 2015
    • February 2015
    • January 2015
    • December 2014
    • November 2014
    • September 2014
    • June 2014
    • May 2014
    • January 2014
    • August 2013
    • April 2013
    • March 2013
    • February 2013
    • January 2013
    • September 2012
    • July 2012
    • May 2012
    • April 2012
    • February 2012
    • December 2011
    • November 2011
    • June 2011
    • May 2011
    • April 2011
    • March 2011
    • February 2011
    • January 2011
    • December 2010

    Sign-up to get our insights direct to your inbox

      Enovation Square

      Enovation Solutions Ltd.,
      The Friary,
      Bow Street,
      Dublin, D07 X680,
      T: +353 (0) 1 602 4784

      Partners, Awards & Certifications

      Moodle Partner Logo

      Latest Insights

      • Not quite ready for OKRs?

        Consider using the simpler MSC framework deployed using Enovation’s Aura Perform solution

        26 July, 2022
      • #ILC2022 with EASL and Enovation

        International Liver Congress™ 2022 EASL’s International Liver Congress™ in London was a

        27 June, 2022
      • Webinar: Transforming Teaching & Learning through Microsoft 365 & Enovation on Moodle

        Join Enovation and Microsoft Education for a webinar on how your tools

        16 June, 2022

      Latest Tweets

      Tweets by @EnovationIRE
      • Legal Information
      © 2022 Enovation Your eLearning Partner
      • WHAT WE DO
        • OUR SERVICES
          • Consultancy
          • eLearning Content
          • Build & Design
          • Training
          • Moodle Educator Certification Program (MEC)
          • Hosting
          • Support & Maintenance
        • OUR SOLUTIONS
          • Aura Talent
          • Aura Perform
          • Moodle
          • Moodle Workplace
          • Totara’s Talent Experience Platform
            • Totara Learn
            • Totara Engage
            • Totara Perform
          • Mahara
      • WHO WE ARE
        • About Enovation
        • Careers
      • CASE STUDIES
      • OUR PARTNERS
        • Microsoft Teams
        • IntelliBoard
        • BigBlueButton
      • INSIGHTS
      • CONTACT US
      Enovation
      +353 (0)1 602 4784