+44 (0)2 0718 39207
info@enovationsolutions.co.uk
  • Client Support
  • FR
  • IE
EnovationEnovationEnovationEnovation
+44 (0)2 0718 39207
  • WHAT WE DO
    • OUR SERVICES
      • Consultancy
      • Content Creation
      • Build & Design
      • Training
      • Hosting
      • Support & Maintenance
    • OUR SOLUTIONS
      • Moodle
      • Moodle Workplace
      • The LMS Totara Learn
      • Aura Talent
  • WHO WE ARE
    • About Enovation
    • Careers
  • CASE STUDIES
    • Smyths Toys
    • Tata Chemicals Europe
    • Courts Service of Ireland
    • OpenJaw
    • New College Lanarkshire
  • OUR PARTNERS
    • 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

    • alt=LMS info graphic outlining the aspects of a learning management system

      LMS for Retail Success

      Emma Cronin | Blog, News | 7 August, 2019

      Retail is a notoriously unpredictable industry that is dictated by its seasonal changes, trends and high staff turnover. When retailers equip their staff members with the necessary training and knowledge and skills cost-effectively, without interrupting their busy schedules, a culture of empowerment and encouragement is created. By introducing a cost-effective and customisable LMS, retail businesses are given the power to stay ahead of the curve.

    • 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

    • Avatar
      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

    • 25 August, 2019
      Comments Off on 5 Signs Your LMS Isn’t Working

      5 Signs Your LMS Isn’t Working

    • 14 August, 2019
      Comments Off on Digital Content for Learner Engagement

      Digital Content for Learner Engagement

    • alt=LMS info graphic outlining the aspects of a learning management system
      7 August, 2019
      Comments Off on LMS for Retail Success

      LMS for Retail Success

    • alt=Concentrated female working on an eLearning course
      23 July, 2019
      Comments Off on Collaborative e-Learning

      Collaborative e-Learning

    Archives

    • 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 to get our insights direct to your inbox

      Enovation Square

      Enovation Solutions Ltd.,
      T: +44 (0) 2071839207

      Partners & Certifications

      Totara Partner Logo

      Latest Insights

      • 5 Signs Your LMS Isn’t Working

        At Enovation, we want to add value to your company with an effective learning management solution. This article will outline some telltale signs your current software isn’t working for you and what you should be looking for from your future LMS to ensure success.

        25 August, 2019
      • Digital Content for Learner Engagement

        Whatever stage of the eLearning journey you and your business are on, we can help you to bring your project to a successful conclusion. Few companies can offer the breadth of expertise across project management, technology, instructional design, content authoring and learning and development that our team can. Choosing us as your partner will ensure that your eLearning project is a success.

        14 August, 2019
      • alt=LMS info graphic outlining the aspects of a learning management system

        LMS for Retail Success

        Retail is a notoriously unpredictable industry that is dictated by its seasonal changes, trends and high staff turnover. When retailers equip their staff members with the necessary training and knowledge and skills cost-effectively, without interrupting their busy schedules, a culture of empowerment and encouragement is created. By introducing a cost-effective and customisable LMS, retail businesses are given the power to stay ahead of the curve.

        7 August, 2019

      Latest Tweets

      Tweets by @EnovationIRE
      • Legal Information
      © 2021 Enovation Your eLearning Partner
      • WHAT WE DO
        • OUR SERVICES
          • Consultancy
          • Content Creation
          • Build & Design
          • Training
          • Hosting
          • Support & Maintenance
        • OUR SOLUTIONS
          • Moodle
          • Moodle Workplace
          • The LMS Totara Learn
          • Aura Talent
      • WHO WE ARE
        • About Enovation
        • Careers
      • CASE STUDIES
        • Smyths Toys
        • Tata Chemicals Europe
        • Courts Service of Ireland
        • OpenJaw
        • New College Lanarkshire
      • OUR PARTNERS
        • IntelliBoard
        • BigBlueButton
      • INSIGHTS
      • CONTACT US
      Enovation
      +44 (0)2 0718 39207