Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-17385 Moodle 4.2 QA
  3. MDLQA-17905

CLONE - A teacher can export database presets

XMLWordPrintable

      Setup

      1. Login as teacher and go to a course.
      2. Add a database activity (with the default configuration).
      3. Create one field (it can be from any type and have any name).
      4. Access the database activity and go to the "Templates" tab.
      5. Click the "Publish preset on this site" option from Actions menu.
      6. Give a valid name and a description and save the new preset.
      7. Click the "Save as preset" button again.
      8. Give it a valid name (different from the previous one), leave the description empty and save the new preset.

      Testing scenario 1. Export saved preset with description

      1. Access the database activity and go to the "Presets" tab.
      2. Open the Action menu for the Saved preset with description and select "Export".
      3. Check a .zip file is downloaded.
      4. Extract the .zip file and check it contains several files (a few template HTMLs, CSS, JS...). 
      5. Open preset.xml.
      6. Check it contains a description element which should contain the preset description.

      Testing scenario 2. Export saved preset without description

      1. Access the database activity and go to the "Presets" tab.
      2. Open the Action menu for the Saved preset without description and select "Export".
      3. Check a .zip file is downloaded.
      4. Extract the .zip file and check it contains several files (a few template HTMLs, CSS, JS...). 
      5. Open preset.xml.
      6. Check it contains a description element (which should be empty).

      Testing scenario 3. Export preset keeps working as expected

      1. Access the database activity and go to the "Templates" tab.
      2. Click the "Export preset" option from the Actions menu.
      3. Check a .zip file is downloaded.
      4. Extract the .zip file and check it contains several files (a few template HTMLs, CSS, JS...). 
      5. Open preset.xml.
      6. Check it contains a description element (which should be empty).

        1. 2_testingscenario3_step6.jpg
          2_testingscenario3_step6.jpg
          130 kB
        2. 2_testingscenario3_step4.jpg
          2_testingscenario3_step4.jpg
          91 kB
        3. 2_testingscenario3_step2.jpg
          2_testingscenario3_step2.jpg
          291 kB
        4. 2_testingscenario2_step5.jpg
          2_testingscenario2_step5.jpg
          134 kB
        5. 2_testingscenario2_step4.jpg
          2_testingscenario2_step4.jpg
          93 kB
        6. 2_testingscenario2_step2.jpg
          2_testingscenario2_step2.jpg
          296 kB
        7. 2_testingscenario1_step6.jpg
          2_testingscenario1_step6.jpg
          143 kB
        8. 2_testingscenario1_step4.jpg
          2_testingscenario1_step4.jpg
          103 kB
        9. 2_testingscenario1_step2.jpg
          2_testingscenario1_step2.jpg
          332 kB
        10. 1_setup_Step8.jpg
          1_setup_Step8.jpg
          115 kB
        11. 1_setup_Step6.jpg
          1_setup_Step6.jpg
          115 kB
        12. 1_setup_Step5.jpg
          1_setup_Step5.jpg
          298 kB
        13. 1_setup_Step3.jpg
          1_setup_Step3.jpg
          217 kB
        14. 1_setup_Step2.jpg
          1_setup_Step2.jpg
          179 kB

            c.prudhomme Clement Prudhomme
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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