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

Exploratory testing for ordering question type

    XMLWordPrintable

Details

    Description

      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!

      Please try different browsers, screen resolutions and languages (RTL and LTR)

      Run the test with the browser developer console open and look for any errors.

      Setup

      • Course with at least one teacher and one student.
      • Quiz activity in the course with unlimited attempts allowed.

      General test

      1. As a teacher, go to the quiz activity in the course.
      2. Try adding a new question to the quiz.
        • confirm you see the 'Ordering' question type in the list of available question types.
      3. Select to add a 'Ordering' question, configure it as follows and later save the changes:
        Setting Value
        Question name Number sorting
        Question text Sort the numbers in ascending order
        Draggable item 1 1
        Draggable item 2 3
        Draggable item 3 5
        Draggable item 4 7
        Draggable item 5 9
      4. As a student, go to the course and start a new quiz attempt.
        • confirm the ordering question has the items presented in a vertical layout and each item is draggable.
      5. Sort the items in the following order: 5, 9, 7, 1, 3. Finish the attempt, then Submit the attempt.
        • confirm you see a preview of your answers (items are not draggable) while all items are marked red, indicating incorrect answers.
        • confirm you see a feedback area where it's stated that the answer is incorrect, including additional information such as the grading type used, scores for each item and a preview of the correct answer.
      6. Re-attempt the quiz, but now sort the items in the following order: 5, 3, 9, 7, 1. Finish the attempt, then Submit the attempt.
        • confirm you see a preview of your answer (items are not draggable) where items 5, 9 and 1 are marked red, indicating an incorrect answer and items 3 and 7 are marked green, indicating a correct answer (order).
        • confirm you see a feedback area where it's stated that the answer is partially correct, including additional information such as the grading type used, scores for each item and a preview of the correct answer (order).
      7. Re-attempt the quiz once again, and now, drag the items in the following order: 1, 3, 5, 7, 9. Finish the attempt, then Submit the attempt
        • confirm you see a preview of your answer (items are not draggable) where all items are marked green, indicating a correct answer.
        • confirm you see a feedback area where it's stated that the answer is correct without any additional information.
      • As a teacher, modify the settings of the ordering question and set different options such as:
        • Different items layout.
        • Showing only a subset of items.
        • Set different grading types.
        • Set to hide the grading details.
        • Set different numbering styles.
        • Different draggable items (e.g. use HTML format and add images & multimedia)
        • etc.
      • Repeat the testing steps 4-7 and confirm each time the draggable options, preview of the answer and feedback are correctly displayed based on the configured options.

      Backup & restore test

      1. As a teacher go to the quiz and create a backup of the activity using the default backup configuration settings.
        • confirm a backup of the activity was successfully created.
      2. Restore the activity backup into the same course using the default restore configuration settings.
        • confirm the activity was successfully restored.
      3. Go to the question area of the restored quiz activity.
        • confirm the ordering question exists.
        • confirm the settings from the ordering question from the original quiz are also applied to the ordering question of the restored quiz activity. 

      Upgrade test

      1. On a 4.3 Moodle instance, install the ordering question type plugin (https://moodle.org/plugins/qtype_ordering)
      2. Create a course with a quiz activity.
      3. In the quiz activity, create a few ordering questions with the following settings:
        Setting Question 1 Question 2 Question 3
        Question name Objects Words Numbers
        Question text Sort the objects from smallest to largest Sort the words in alphabetical order Sort the numbers in ascending order
        Layout of items Vertical Horizontal Vertical
        Item selection type Select a continuous subset of items Select a random subset of items Select all items
        Size of subset 3 All  
        Grading type Absolute position Relative to correct position Relative to both the previous and next items
        Grading details Show Hide Show
        Number the choices a., b., c., ... 1., 2., 3, ... No numbering
        Draggable item 1 pen apple 1
        Draggable item 2 chair boat 3
        Draggable item 3 car cat 5
        Draggable item 4 plane dog 7
        Draggable item 5     9
      4. Upgrade to latest version following the upgrading process (https://docs.moodle.org/403/en/Upgrading)
      5. Go to the Questions area of the quiz activity in the course.
        • confirm the questions are still present.
      6. Go to the settings page of the "Objects" question.
        • confirm the question's configuration remained the same after the upgrade.
        • confirm the setting 'Size of subset' is represented by a numerical input field.
      7. Go back to the Questions area and now go to the settings page of the "Words" question.
        • confirm the setting 'Size of subset' is represented by a numerical input field and is set to 4.
        • confirm the rest of the question's configuration remained the same after the upgrade.
      8. Go back to the Questions area and now go to the settings page of the "Numbers" question.
        • confirm the question's configuration remained the same after the upgrade.
      9. Attempt the quiz and answer the questions.
        • confirm the questions and feedback are still correctly displayed based on their configuration.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:

                Clockify

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