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

Essay question option to allow only attachments, no text input

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.3, 2.6.1
    • Fix Version/s: 2.7
    • Component/s: Questions, Quiz
    • Labels:
    • Testing Instructions:
      Hide

      Before each of the sets of instructions below, you should create a quiz with only a single essay question. You should use that same question for each of the subsequent tests.

      For each of the tests below, assume the settings as follows unless instructed otherwise:

      Response format: "HTML Editor"
      Require text: "Require the student to enter text"
      Allow attachments: "3"
      Require attachments: "Attachments are optional".

      Prior Behavior (test for regression)
      -----------------
      1. Save the question with the options above.
      2. Preview the quiz, and click "next" without submitting a response. Verify that the question shows up as "not yet answered" in the provided table.
      3. Go back to the question, and attach a single file. Click next; and verify that the question shows up as "not yet answered".
      3. Go back to the question, and enter text in the HTML window. Click next; and verify that the question shows up as "answer saved".

      Require Text
      -----------------
      1. Edit the question; and change "require text" to "text input is optional".
      2. Start a new quiz preview, and click "next" without submitting a response. Verify that the question shows up as "not yet answered" in the provided table.
      3. Go back to the question, and attach a single file. Click next; and verify that the question shows up as "answer saved".

      Require Attachments with Optional Text
      -----------------
      1. Edit the question; change "require text" to "text input is optional", and "require attachments" to '2'.
      2. Start a new quiz preview, and click "next" without submitting a response. Verify that the question shows up as "not yet answered" in the provided table.
      3. Go back to the question, and attach a single file. Click next; and verify that the question shows up as "not yet answered".
      4. Go back to the question, and attach a second file. Click next; and verify that the question shows up as "answer saved".

      Require Attachments with Required Text
      -----------------
      1. Edit the question; leave "require text" as "Require the student to enter text", and "require attachments" to '1'.
      2. Start a new quiz preview. Attach a single file, and click "next". Verify that the question shows up as "not yet answered" in the provided table.
      3. Go back to the question, and enter some text into the editor. Click next; and verify that the question shows up as "answer saved".

      No Inline Text
      -----------------
      1. Edit the question; change "Response format" to "No inline response", and "require attachments" to '1'.
      2. Start a new quiz preview. Verify that no text editor is displayed.
      3. Click "next" without submitting a response. Verify that the question shows up as "not yet answered" in the provided table.
      4. Go back to the question, and attach a single file. Click next; and verify that the question shows up as "answer saved".

      Backup/Restore
      -------------------
      1. Back up the previously created quiz; be sure to include the question bank.
      2. Delete the quiz, and delete the question from the question bank.
      3. Restore the quiz. Be sure that "response format" retains its value of "no inline response", and "require attachments" retains its value of '1'.

      Show
      Before each of the sets of instructions below, you should create a quiz with only a single essay question. You should use that same question for each of the subsequent tests. For each of the tests below, assume the settings as follows unless instructed otherwise: Response format: "HTML Editor" Require text: "Require the student to enter text" Allow attachments: "3" Require attachments: "Attachments are optional". Prior Behavior (test for regression) ----------------- 1. Save the question with the options above. 2. Preview the quiz, and click "next" without submitting a response. Verify that the question shows up as "not yet answered" in the provided table. 3. Go back to the question, and attach a single file. Click next; and verify that the question shows up as "not yet answered". 3. Go back to the question, and enter text in the HTML window. Click next; and verify that the question shows up as "answer saved". Require Text ----------------- 1. Edit the question; and change "require text" to "text input is optional". 2. Start a new quiz preview, and click "next" without submitting a response. Verify that the question shows up as "not yet answered" in the provided table. 3. Go back to the question, and attach a single file. Click next; and verify that the question shows up as "answer saved". Require Attachments with Optional Text ----------------- 1. Edit the question; change "require text" to "text input is optional", and "require attachments" to '2'. 2. Start a new quiz preview, and click "next" without submitting a response. Verify that the question shows up as "not yet answered" in the provided table. 3. Go back to the question, and attach a single file. Click next; and verify that the question shows up as "not yet answered". 4. Go back to the question, and attach a second file. Click next; and verify that the question shows up as "answer saved". Require Attachments with Required Text ----------------- 1. Edit the question; leave "require text" as "Require the student to enter text", and "require attachments" to '1'. 2. Start a new quiz preview. Attach a single file, and click "next". Verify that the question shows up as "not yet answered" in the provided table. 3. Go back to the question, and enter some text into the editor. Click next; and verify that the question shows up as "answer saved". No Inline Text ----------------- 1. Edit the question; change "Response format" to "No inline response", and "require attachments" to '1'. 2. Start a new quiz preview. Verify that no text editor is displayed. 3. Click "next" without submitting a response. Verify that the question shows up as "not yet answered" in the provided table. 4. Go back to the question, and attach a single file. Click next; and verify that the question shows up as "answer saved". Backup/Restore ------------------- 1. Back up the previously created quiz; be sure to include the question bank. 2. Delete the quiz, and delete the question from the question bank. 3. Restore the quiz. Be sure that "response format" retains its value of "no inline response", and "require attachments" retains its value of '1'.
    • Affected Branches:
      MOODLE_24_STABLE, MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-39756-essay

      Description

      When an Essay question is set up to allow attachments, and a student uploads the attachment but does not write anything in the text field, the question is marked as unanswered.

      Steps to reproduce
      ==================
      1. Create a new essay question. Set "Allow attachments" to 1.
      2. Create a new quiz, and add the essay question to it.
      3. Log on as student and attempt the quiz. Upload a file to the essay question but do not enter any text in the field.
      4. Click 'Next' to go to the submission page.

      Expected result
      ===============
      The question has been completed, so it should say so in the summary table, and the icon in the quiz navigation block should be green.

      Actual result
      ===============
      Question is labelled "Not yet answered" in the summary table, and the icon in the quiz navigation block is pink.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                4 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  12/May/14