1 (800) 474-9640
[email protected]
  • Client Support
  • EN
  • FR
  • PL
EnovationEnovationEnovationEnovation
1 (800) 474-9640
  • WHAT WE DO
    • OUR SERVICES
      • Consultancy
      • Training
      • Hosting
      • Content Creation
      • Build & Design
      • Support & Maintenance
    • OUR SOLUTIONS
      • Totara’s Talent Experience Platform
        • Totara Learn
        • Totara Engage
        • Totara Perform
      • Aura Talent
      • Moodle
      • Moodle Workplace
  • WHO WE ARE
    • About Enovation
    • O Enovation
  • CASE STUDIES
    • UDG Healthcare
    • Mercury Engineering
    • Tata Chemicals Europe
    • Aer Lingus
    • Sagemcom
    • HVACRedu
  • OUR PARTNERS
    • Microsoft Teams
    • IntelliBoard
    • BigBlueButton
  • #KeepLearningStrong
  • INSIGHTS
  • CONTACT US
    • Skontaktuj się z nami

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

      Stephen McGuinness | 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

    • Wiodący Partner Premium Moodle, Enovation Rozszerza Działalność na Polskę
      16 February, 2022
      Comments Off on Wiodący Partner Premium Moodle, Enovation Rozszerza Działalność na Polskę

      Wiodący Partner Premium Moodle, Enovation Rozszerza Działalność na Polskę

    • 28 June, 2021
      Comments Off on Hybrid Work: Performance Appraisal

      Hybrid Work: Performance Appraisal

    • 28 June, 2021
      Comments Off on Hybrid Work: Training in the age of Hybrid Work

      Hybrid Work: Training in the age of Hybrid Work

    • 9 June, 2021
      Comments Off on Hybrid Working: The Future of Work

      Hybrid Working: The Future of Work

    Archives

    • February 2022
    • June 2021
    • May 2021
    • April 2021
    • March 2021
    • February 2021
    • January 2021
    • December 2020
    • October 2020
    • September 2020
    • July 2020
    • June 2020
    • May 2020
    • April 2020
    • March 2020
    • February 2020
    • January 2020
    • November 2019
    • October 2019
    • September 2019
    • August 2019
    • July 2019
    • June 2019
    • May 2019
    • March 2019
    • January 2019
    • December 2018
    • October 2018
    • September 2018
    • July 2018
    • June 2018
    • May 2018
    • April 2018
    • March 2018
    • February 2018
    • January 2018
    • 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
    • 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 for our newsletter today to receive free hints and tips straight to your inbox.

      Enovation Square

      Enovation Solutions Ltd.,
      T: +1 800-474-9640

      Partners & Certifications

      Totara Partner Logo

      Latest Insights

      • Wiodący Partner Premium Moodle, Enovation Rozszerza Działalność na Polskę

        Wiodący Partner Premium Moodle, Enovation Rozszerza Działalność na Polskę

        Enovation jest wielokrotnie nagradzanym i certyfikowanym dostawcą usług Moodle w Irlandii oraz

        16 February, 2022
      • Hybrid Work: Performance Appraisal

        Managers say that some of the challenges of remote and hybrid work

        28 June, 2021
      • Hybrid Work: Training in the age of Hybrid Work

        The rising popularity of hybrid work has most HR and L&D departments

        28 June, 2021

      Latest Tweets

      Tweets by @EnovationUSA
      • Legal Information
      © 2022 Enovation Your eLearning Partner
      • WHAT WE DO
        • OUR SERVICES
          • Consultancy
          • Training
          • Hosting
          • Content Creation
          • Build & Design
          • Support & Maintenance
        • OUR SOLUTIONS
          • Totara’s Talent Experience Platform
            • Totara Learn
            • Totara Engage
            • Totara Perform
          • Aura Talent
          • Moodle
          • Moodle Workplace
      • WHO WE ARE
        • About Enovation
        • O Enovation
      • CASE STUDIES
        • UDG Healthcare
        • Mercury Engineering
        • Tata Chemicals Europe
        • Aer Lingus
        • Sagemcom
        • HVACRedu
      • OUR PARTNERS
        • Microsoft Teams
        • IntelliBoard
        • BigBlueButton
      • #KeepLearningStrong
      • INSIGHTS
      • CONTACT US
        • Skontaktuj się z nami
      Enovation
      1 (800) 474-9640