-
Notifications
You must be signed in to change notification settings - Fork 5
4. Testing Parameters
If you want to test the correct functionality of the plugin or want to see the user interface for group formation results, then it would take a lot of time to create course participants and their answers to plugin questionnaires manually. With the URL-Parameters this is done in seconds.
For savetly reasons the URL-Parameters described in the following only work, if Moodle is set to DEBUG mode.
As Admin click Site Administration > Development > Debugging
and enable DEVELOPER
level. See Moodle documentation or example image.
For all supported functionality, first view the instance of group formation activity you want to manipulate. You will see the overview with summary of current status, similar to this image.
The in the URL is the ID of your current group formation acitivity instance.
URL: <your-moodle-URL>/mod/groupformation/analysis_view.php?id=<ID>&do_show=analysis&create_users=<AMOUNT>&create_answers=1
- This will create number of new user accounts in your Moodle with a static password and these users will be added as members to the current course and the current group formation instance (which has the ID ).
- Additionally by 'create_answers=1` random answers to all questions of the corresponding participant questionnaire are generated and stored in the database.
- Note: We recommend not to create more than 50 users per URL request. Due to timeout settings for your PHP environment you risk otherwise that the script might need to long to finish and will be interrupted.
URL: <your-moodle-URL>/mod/groupformation/analysis_view.php?id=<ID>&do_show=analysis&create_users=<AMOUNT>&create_answers=0
- As above, this will create number of new user accounts as members of your course and group formation activity.
- By 'create_answers=0` these users will have not filled any questionaaires. This is sometimes useful for testing options that ommit users with incomplete answers from the group formation.
URL: <your-moodle-URL>/mod/groupformation/analysis_view.php?id=<ID>&do_show=analysis&delete_users=1
- With
delete_users=1
ALL users that were generated for any groupformation activity are removed from Moodle and thus from their courses and group formation activities. This function only deletes user accounts that were created by A. or B. Thus no real accounts could be affected. - Usually you call the URL for removals after your testing to cleanup.