Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-1 Moodle QA testing
  3. MDLQA-14743

As an admin I want to backup my course including or excluding the content bank and restore in a different Moodle instance

XMLWordPrintable

    • Icon: Functional Test Functional Test
    • Icon: Minor Minor
    • None
    • Original - DO NOT REPORT TEST RESULTS HERE
    • Content bank, H5P
    • None

      Setup

      This test requires admin access in two Moodle sites.

      1. Log in as an admin in one Moodle instance
      2. Create a course named C1
      3. Go to Content bank link in C1 course  (link is in the More option in the secondary navigation).
      4. Click 'Upload' button to create a new content
      5. Upload helloworld.h5p file and Save changes

      Backup and restore INCLUDING content bank

      1. Go to C1 course homepage
      2. Go to 'Course reuse' option (link is in the More option in the secondary navigation).
      3. Confirm 'Include content bank content' options is checked
      4. Click on 'Jump to final step'
      5. Confirm the backup file is successfully created and click Continue
      6. Download the new *.mbz back file
      7. Log in as an admin in a different empty Moodle instance
      8. Go to Site administration > Courses > Restore course
      9. Import the backup file downloaded in step 11 and click on 'Restore'
      10. Confirm 'Include content bank content' is checked.
      11. Click on 'Continue'
      12. Select a category and click in Continue in 'Restore as a new course' section
      13. Confirm 'Include content bank content' is checked.
      14. Click on 'Next'
      15. Click on 'Next' using default settings
      16. Click on 'Perform restore'
      17. Confirm the course is restored successfully and click in 'Continue'
      18. Go to Content bank link in the new course  (link is in the More option in the secondary navigation).
      19. Confirm 'helloworld.h5p' content is there
      20. Click on 'helloworld.h5p' content
      21. Confirm the image of the Earth is shown and there's no error

      Backup and restore EXCLUDING content bank

      1. Repeat the test above, but this time uncheck 'Include content bank content' option during the course backup (step 3)
      2. On step 10 confirm the 'Include content bank content' is not checked.
      3. Go to Content bank link in the new course  (link is in the More option in the secondary navigation).
      4. Confirm the content bank is empty

            Unassigned Unassigned
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

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