Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-18925 Moodle 4.5 QA
  3. MDLQA-19369

CLONE - Course subsection exploratory test: As teacher I can backup and restore courses with subsections

XMLWordPrintable

    • Icon: Functional Test Functional Test
    • Icon: Minor Minor
    • Moodle 4.5
    • Moodle 4.5
    • Course
    • None

      This is an exploratory test of a new feature or improvement, so please feel free to try anything you like and not just the test steps!

      We encourage all testers to share their experiences and insights, even if a test has already been assigned. Your contributions are valuable and help improve the overall testing process.

      Setup

      Kindly note that the QA site is now ready for testing the new feature. If you're conducting this test on the QA site, you can skip this setup section.

      1. As admin, go to Site administration > Activity modules > Manage activities and enable Subsection module.
      2. Create a new course with several activities or restore the one attached to this issue
      3. Enrol a student and a teacher in the course.

      Testing

      1. As teacher go to the Gremlins at sections course and turn edit mode on.
      2. Add a new subsection called "Subsection General" using the + icon:
      3. Add some activities to that subsection.
      4. In the More menu, select "Course reuse" and then click on the "Backup" link.
      5. Click the "Next" button to go to the second step of the process (selecting course structure elements).
      6. Confirm the subsections are shown in the correct position of the course structure and it's indented.
      7. Uncheck "Subsection general"
      8. Confirm that both "Subsection general" and "Subsection content" checkboxes are now disabled.
      9. Check again "Subsection general" and uncheck "Subsection content"
      10. Confirm that only the checkboxes from "Subsection content" are now disabled.
      11. Check again "Subsection content" and uncheck the "User data" on "Subsection general"
      12. Confirm  that the "User data" checkboxes from "Subsection content" and "Subsection content" are disabled.
      13. Check again the "User data" on "Subsection general" and uncheck the "User data" from "Subsection content"
      14. Confirm the "User data" from "Subsection content" is disabled.
      15. Check again the "User data" from "Subsection content"
      16. Confirm all subsection elements have the checkboxes enabled.
      17. Click "Jump to the final step" button to execute the backup
      18. If needed, run the instance cron to execute the backup in background.
      19. Confirm that no errors appear.
      20. Click on the continue button once the backup is done.
      21. Confirm the is the backup file in the course backup area.
      22. Go to the "Course reuse" page again but this time click the "Restore" link.
      23. Select the previous backup done and click on "Restore" link.
      24. Click continue to go to the destination step.
      25. Select some category from the "Restore as a new course" and click on continue.
      26. Click the "Next" button to go to the Schema step of the process.
      27. Confirm you can see the subsections without any error.
      28. Uncheck "Subsection general"
      29. Confirm that both "Subsection general" and "Subsection content" checkboxes became disabled.
      30. Check again "Subsection general" and uncheck "Subsection content"
      31. Confirm that only the checkboxes from "Subsection content" are now disabled.
      32. Check again "Subsection content" but now uncheck the "User data" on "Subsection general"
      33. Confirm that the user data checkboxes from "Subsection general" and "Subsection content" are disabled.
      34. Check again the "User data" on "Subsection general" and uncheck the "User data" from "Subsection content"
      35. Confirm the "User data" from "Subsection content" is disabled.
      36. Check again the "User data" from "Subsection content"
      37. Click the "Next" button to go to the review step.
      38. Click on the "Perform restore" button.
      39. If needed, run the instance cron to execute the restore in background
      40. Confirm that no errors appear.
      41. Click on the "Continue" button once the restore is done.
      42. Confirm the new course have the same structure as the original course.
      43. Create a new empty course and navigate to it.
      44. Navigate to the "Course reuse" and then click "Import" option
      45. Select the previous course backup as import data from and click on "Continue".
      46. Click on the "Jump to final step" to execute the import.
      47. Confirm that no errors appear.
      48. Click on the "Continue" button once the import is done.
      49. Confirm the course have the same structure as the original course (Please ignore the original news forum)
      50. Click on the "Subsection general" activity
      51. Confirm you see the subsection activity page with and the activities.

        1. Add subsection to General.png
          Add subsection to General.png
          141 kB
        2. Backup Course.png
          Backup Course.png
          102 kB
        3. Backup Course 2.png
          Backup Course 2.png
          106 kB
        4. Backup successful.png
          Backup successful.png
          70 kB
        5. Import course.png
          Import course.png
          100 kB
        6. Import course 1.png
          Import course 1.png
          52 kB
        7. Import course successful.png
          Import course successful.png
          45 kB
        8. Import course view.png
          Import course view.png
          192 kB
        9. MDLQA-19369.png
          MDLQA-19369.png
          70 kB
        10. MDLQA-19369 1.png
          MDLQA-19369 1.png
          23 kB
        11. Restore course.png
          Restore course.png
          74 kB
        12. Restore course 2.png
          Restore course 2.png
          73 kB
        13. Restore course 3.png
          Restore course 3.png
          44 kB
        14. Restore successful.png
          Restore successful.png
          56 kB

            Conway Carol
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.