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

An administrator can bulk create and delete courses via csv

    XMLWordPrintable

    Details

    • Type: Functional Test
    • Status: Open
    • Priority: Major
    • Affects Version/s: Master copy - DO NOT REPORT TEST RESULTS HERE
    • Fix Version/s: None
    • Labels:
      None

      Description

      This test requires the Moodle site to have

      1. At least two categories
        • Miscellaneous (id=1) and
        • Test Category (id=2)
      2. csv file with fields: shortname,fullname,summary,category and include at least two courses in both categories. Use the "Category ID number" in the category field. If desired, there is a sample csv file attached here which may be used for testing purposes.

      Test

      1. Log in as admin and navigate to Administration>Site administration>Courses>Upload courses.
      2. Upload your csv file into the General box, leaving all other settings as default. Click to preview.
      3. In Default course values, change the format to Social format and upload.
      4. Verify the message says the correct number of courses were created and click Continue.
      5. Navigate to Administration>Site administration>Courses>Manage courses and categories. Click on the name of Miscellaneous and verify the courses have been added to the correct category.
      6. Click on one course and verify its description displays and it has been set to Social format.
      7. Repeat with "Test Category" and a different course.
      8. Edit the csv file to include the field: delete and enter 1 next to one course in "Miscellaneous" and one course in "Test Category". Repeat step 3,changing import options to 'Only update exisiting courses' 'Update with csv data only' and 'Allow deletes = Yes'
      9. Click Preview and then click Upload courses, verifying the message says the two chosen courses have been deleted.
      10. Repeat steps 5 and 7, verifying the chosen course in each category has actually been deleted.

        Attachments

          Activity

            People

            • Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: