-
Functional Test
-
Minor
-
Moodle 3.2
-
None
Setup
- Login as admin.
- Navigate to Site administration ► Competencies ► Competency frameworks. (If you don't see Competency frameworks, go to Competencies settings and tick Enable competencies.)
- Click Add new competency framework
- Enter CF1 for Name.
- Enter cf1 for Id number
- Click Configure scales
- Tick any Scale value for the Default.
- Tick one or more Scale values for Proficient.
- Click Close
- Click Save changes
- On CF1's Competencies page, click on CF1 in the competencies tree (the one below the Search field) and on the right panel, click Add competency.
- Enter C1 for Name.
- Enter c1 for Id number.
- Click Save changes.
- Repeat the above process to create competencies C2 and C3.
- Create a course and enrol some students.
- Under Course administration, click Competencies.
- Click Add competencies to course.
- Select C1 and C2 then click Add.
- Back on the Course competencies page, click C1 to go to the user competency in course page.
- On the user competency in course page, click Rate.
- Selecting a Rating and click Rate.
- Do this for the other users and other competencies by selecting a user in Jump to user and/or Jump to competency selectors in the right panel.
Backup with competencies included
- Under TC1's Course administration, click Backup.
- Check the Backup settings. Confirm that:
- Include competencies is shown and is checked.
- Click Next to go to the Schema settings step, then click Next again to go to the Confirmation and review step.
- Enter BackupWithCompetencies.mbz for the Filename.
- Check the Backup settings. Confirm that:
- Include competencies is shown and is checked.
- Click Perform backup
- Confirm that the backup process finishes successfully.
- You may also opt to download the backup file.
Restore with competencies included
- Under TC1's Course administration, click Restore.
- If you have downloaded BackupWithCompetencies.mbz, you may drag and drop it to the File picker under the Import a backup file section then click restore; or Click Restore for BackupWithCompetencies.mbz in the Course backup area section.
- Check the backup settings. Confirm that:
- Include competencies is shown and is checked.
- Select Restore the as a new course then click Continue
- On the Settings step, check the Restore settings. Confirm that:
- Include competencies is shown and is checked.
- Click Next to proceed to the Schema step and enter TC2 for the Course short name field.
- Then click Next again to proceed to the review step.
- On the Review step, check the Backup settings. Confirm that:
- Include competencies is shown and is checked.
- Click Perform restore.
- Confirm that the course is restored successfully.
- Click Continue to get redirected to TC2.
- Under Course administration, click Competencies.
- Confirm that C1 and C2 are listed in the course competencies list.
- Click on C1 to go to the user competency in course page.
- Select the user that was previously rated using the Jump to user selector field.
- Confirm that the rating has been preserved.
Restore not including competencies
- Repeat the above restore steps, but this time when you arrive to the Settings step, uncheck Include competencies and proceed as usual.
- On the Review step, check the Backup settings. Confirm that:
- Include competencies is shown and is NOT checked.
- Perform the restore.
- Confirm that the course is restored successfully.
- Navigate to the restored course.
- Under Course administration, click Competencies.
- Confirm that the course competencies list is empty.
Backup with competencies not included
- Backup TC1, but this time uncheck Include competencies on the first step.
- On the Confirmation and review step, enter BackupWithoutCompetencies.mbz for the Filename.
- Check the Backup settings. Confirm that:
- Include competencies is shown and is NOT checked.
- Click Perform backup
- Confirm that the backup process finishes successfully.
- You may also opt to download the backup file.
Restore with competencies not included
- Under TC1's Course administration, click Restore.
- If you have downloaded BackupWithoutCompetencies.mbz, you may drag and drop it to the File picker under the Import a backup file section then click restore; or Click Restore for BackupWithoutCompetencies.mbz in the Course backup area section.
- Check the backup settings. Confirm that:
- Include competencies is shown and is NOT checked.
- Select Restore into an existing course and tick Delete the contents of the existing course and then restore and tick TC2, then click Continue
- On the Settings step, check the Restore settings. Confirm that:
- Include competencies is shown and is NOT checked.
- Click Next to proceed to the Schema step and enter TC2 for the Course short name field.
- Then click Next again to proceed to the review step.
- On the Review step, check the Backup settings. Confirm that:
- Include competencies is shown and is NOT checked.
- Click Perform restore.
- Confirm that the course is restored successfully.
- Click Continue to get redirected to TC2.
- Under Course administration, click Competencies.
- Confirm that the course competencies list is empty.
Backup with competencies disabled.
- Navigate to Site administration ► Competencies ► Competency settings.
- Uncheck Enable competencies.
- Click Save changes.
- Navigate back to the course.
- Under TC1’s Course administration, click Backup
- Confirm that Include competencies is NOT shown
- On the Confirmation and review step, enter BackupWithCompetenciesDisabled.mbz for the Filename.
- Check the Backup settings. Confirm that:
- Include competencies is NOT shown
- Click Perform backup
- Confirm that the backup process finishes successfully.
- You may also opt to download the backup file.
Restore backup with competencies disabled
- Navigate to Site administration ► Competencies ► Competency settings.
- Mark Enable competencies as checked.
- Click Save changes.
- Under TC1's Course administration, click Restore.
- If you have downloaded BackupWithCompetenciesDisabled.mbz, you may drag and drop it to the File picker under the Import a backup file section then click restore; or Click Restore for BackupWithoutCompetencies.mbz in the Course backup area section.
- Check the backup settings. Confirm that:
- Include competencies is shown and is NOT checked.
- Select Restore into an existing course and tick Delete the contents of the existing course and then restore and tick TC2, then click Continue
- On the Settings step, check the Restore settings. Confirm that:
- Include competencies is shown and is NOT checked.
- Click Next to proceed to the Schema step and enter TC2 for the Course short name field.
- Then click Next again to proceed to the review step.
- On the Review step, check the Backup settings. Confirm that:
- Include competencies is shown and is NOT checked.
- Click Perform restore.
- Confirm that the course is restored successfully.
- Click Continue to get redirected to TC2.
- Under Course administration, click Competencies.
- Confirm that the course competencies list is empty.
Restore backup that contains competencies with competencies disabled.
- Navigate to Site administration ► Competencies ► Competency settings and disable competencies.
- Restore BackupWithCompetencies.mbz into TC2.
- In the Confirm step, confirm that:
- Include competencies is shown and checked
- In the Settings step, confirm that:
- Include competencies is NOT shown
- In the Review step, confirm that:
- Include competencies is NOT shown
- After performing the restore, confirm that:
- The course is restored successfully.
- Navigate to Site administration ► Competencies ► Competency settings and enable competencies.
- Under TC2's Course administration, click Competencies.
- Confirm that the course competencies list is empty.
- Testing discovered
-
MDL-57063 Coding error while course backup when competencies are disabled.
- Closed