-
Functional Test
-
Minor
-
None
-
Original - DO NOT REPORT TEST RESULTS HERE
-
None
Prerequisites
- Create a course with subsections and activities within the subsections.
- Create a second, empty course.
- Enrol a teacher on both courses.
Testing instructions
- As a teacher go to the main course page then Course reuse page.
- Go to the backup link.
- Click the "Next" button to go to the second step of the process (selecting course structure elements).
- Confirm the subsections are shown in the correct position of the course structure and indented.
- Uncheck "Subsection general".
- Validate that both "Subsection general" and "Subsection content" checkboxes became disabled.
- Check again "Subsection general" and uncheck "Subsection content".
- Validate that only the checkboxes from "Subsection content" are now disabled.
- Check again "Subsection content". Now uncheck the user data on "Subsection general".
- Validate that the user data checkboxes from "Subsection content" and "Subsection content" are disabled.
- Check again the user data on "Subsection general" and uncheck the user data from "Subsection content".
- Validate the user data from "Subsection content" is disabled.
- Check again the user data from "Subsection content".
- Validate all subsection elements have the checkboxes enabled.
- Click "Next".
- Click "Perform backup" button.
- If needed, run the instance cron to execute the backup in background.
- Validate no errors appear.
- Click on the continue button once the backup is done.
- Validate the backup file in the course backup area.
- Download the backup file.
- Go to the Course reuse > restore.
- Select the previous backup done and click on restore link.
- Click continue to go to the destination step.
- Select some category from the "Restore as a new course" and click on continue.
- Click the "Next" button to go to the Shcema step of the process.
- Confirm you can see the subsections without any error.
- Uncheck "Subsection general".
- Validate that both "Subsection general" and "Subsection content" checkboxes became disabled.
- Check again "Subsection general" and uncheck "Subsection content".
- Validate that only the checkboxes from "Subsection content" are now disabled.
- Check again "Subsection content". Now uncheck the user data on "Subsection general".
- Validate that the user data checkboxes from "Subsection general" and "Subsection content" are disabled.
- Check again the user data on "Subsection general" and uncheck the user data from "Subsection content".
- Validate the user data from "Subsection content" is disabled.
- Check again the user data from "Subsection content".
- Click the "Next" button to go to the review step.
- Click on the Perform restore button.
- If needed, run the instance cron to execute the restore in background.
- Validate no errors appear.
- Click on the continue button once the restore is done.
- Validate the new course have the same structure as the original course.
- Access the second, empty course.
- Navigate to the "Course reuse --> import" option in the tertiary navigation.
- Select the previous course backup as import data from and click on continue.
- Click continue to go to the destination step.
- Under Restore into an existing course, click on "Delete the contents of the existing course and then restore" then select a course to restore into.
- Restore the course.
- If needed, run the instance cron to execute the backup in background.
- Validate no errors appear.
- Click on the continue button once the import is done.
- Validate the course have the same structure as the original course.
- Click on the "Subsection general" activity
- Validate you see the subsection activity page with and the activities.