Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-68597

Add optional min/max word count limits to Essay question type

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 3.11
    • 3.11
    • Questions
    • MOODLE_311_STABLE
    • MOODLE_311_STABLE
    • Hide
      1. Create a course
      2. Go to Question bank
      3. Start creating an essay question
      4. Do the generic question setting (Question name, Question text, ...)
      5. Under Response options, change Require text menu to 'Text input is optional'
      6. Verify that the 'Minimum word limit' and 'Maximum word limit' fields become hidden.
      7. Under Response options, change Require text menu to 'Require the student to enter text'
      8. Verify that the 'Minimum word limit' and 'Maximum word limit' fields re-appear.
      9. Do some exploratory testing trying to enter invalid values, and verify that the form validation rejects them.
      10. Set a sensible minimum and maximum and then save the question.
      11. Preview the question you just created.
      12. Enter a response which is too short then click 'Save'.
      13. Verify that the question now displays a red message telling you to write more.
      14. Verify the question state to the left of the quetion is shown as 'Incomplete answer'.
      15. Enter a response which is too long then click 'Save'.
      16. Verify that the question now displays a red message telling you to write less.
      17. Verify the question state is shown as 'Incomplete answer'.
      18. Input an answer of the right lenght and click 'Save'.
      19. *Verify that there is now no message, and the question state is 'Answer saved'.
      20. Close the preview window.
      21. Backup and restore the course you created for this test.
      22. Go to the question bank in the restored course and edit the question.
      23. Verify the Minimum/Maximum word limit settings are correct.
      Show
      Create a course Go to Question bank Start creating an essay question Do the generic question setting (Question name, Question text, ...) Under Response options, change Require text menu to 'Text input is optional' Verify that the 'Minimum word limit' and 'Maximum word limit' fields become hidden. Under Response options, change Require text menu to 'Require the student to enter text' Verify that the 'Minimum word limit' and 'Maximum word limit' fields re-appear. Do some exploratory testing trying to enter invalid values, and verify that the form validation rejects them. Set a sensible minimum and maximum and then save the question. Preview the question you just created. Enter a response which is too short then click 'Save'. Verify that the question now displays a red message telling you to write more. Verify the question state to the left of the quetion is shown as 'Incomplete answer'. Enter a response which is too long then click 'Save'. Verify that the question now displays a red message telling you to write less. Verify the question state is shown as 'Incomplete answer'. Input an answer of the right lenght and click 'Save'. *Verify that there is now no message, and the question state is 'Answer saved'. Close the preview window. Backup and restore the course you created for this test. Go to the question bank in the restored course and edit the question. Verify the Minimum/Maximum word limit settings are correct.

      Essay question authors like to restrict the number of words in online essays.
      We add two fields (int) for recording min/max number of words to the qtype_essay_options table.
      So that the question author can determine the min and max number of words for a given essay.

            mkassaei Mahmoud Kassaei
            mkassaei Mahmoud Kassaei
            Tim Hunt Tim Hunt
            Adrian Greeve Adrian Greeve
            Janelle Barcega Janelle Barcega
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 2 hours, 3 minutes
                1d 2h 3m

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