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

Pre-populated answer (template) in essay questions

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.5
    • 1.8.1, 2.3.4, 2.4.1
    • Questions
    • MOODLE_18_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
    • MOODLE_25_STABLE
    • Hide

      Test upgrade

      • Test that new fields responsetemplate and responsetemplateformat are correctly created in the qtype_essay_options table and that these fields are correctly populated with empty string and 1 for existing essay questions.
      • Test that existing essay questions continue to work as before and that the answer field is empty when attempt starts.

      Test new functionalities

      • Edit an existing essay question and put some text in the response template field. Verify that for new attempts the text is displayed in the answer field when the attempt is started.
      • Create a new essay question with some text in the response template field. Verify that the text is displayed in the answer field when the attempt is started.
      • Try to include some HTML formatting in the response template when creating/editing an essay question selecting HTML Editor as response format and verify the text is correctly displayed during attempt in the answer editor
      • Verify that the filepicker is not available for the response template when creating/editing an essay question

      Test correct behaviour during attempts

      • Create a quiz with 2 questions (each question on a separate page) : first question is a non essay question and second question is an essay question with some text in the response template.
      • Attempt the quiz as a student and submit without going to the second page. Verify that on the summary page the question is marked as not yet answered. After clicking on submit all and finish verify that for the student when you review your attempt the answer to the essay question is blank and that the attempt has been automatically graded. Then login as a teacher and verify that the essay question is not marked as needing grading.
      • Attempt the quiz as a student and go on each page, verify that on page 2 the essay question is correctly displayed with the response template in the answer field, but don't change anything. Verify that on the summary page the essay question is marked as not yet answered. After clicking on submit all and finish verify that for the student when you review your attempt the answer to the essay question is blank and the attempt has been automatically graded. Then login as a teacher and verify that the essay question is not marked as needing grading.
      • Attempt the quiz as a student and completely change the answer to the essay question. Verify that you new response has been submitted as response to the essay question and that when the student review this attempt it is marked as not yet graded. Then login as a teacher and verify that the attempt is marked as needing manual grading.
      • Attempt the quiz and modify slightly the text of the template in the answer field of the essay question. Verify that your modification has been saved correctly when you change page and return to the essay question page. Verify that it has also been submitted as answer to the essay question when the attempt is submitted and that when you login as a teacher the attempt is marked as needing manual grading.

      Import/Export

      Try to import an old (exported before this issue is integrated) Moodle XML file with essay questions. Verify the responsetemplate and responsetemplateformat are correctly populated by empty string and 1 and that no error or warning is displayed during import.
      Export a category with some essay questions (both with nothing in responseformat and with some content in responseformat) using Moodle XML format. Verify that the new informations are present in the XML.
      Import these questions in another category and verify that responsetemplate is correctly imported and no error or warning is displayed during import.

      Backup/Restore

      Create a quiz with all questions from a category containing essay questions (both with nothing in responseformat and with some content in responseformat) verify that no information is lost when the backup is restored.
      Try to restore an 1.9 course backup with some essay questions and verify that essay questions are correctly restored with empty string as responsetemplate and 1 as responsetemplateformat.

      Show
      Test upgrade Test that new fields responsetemplate and responsetemplateformat are correctly created in the qtype_essay_options table and that these fields are correctly populated with empty string and 1 for existing essay questions. Test that existing essay questions continue to work as before and that the answer field is empty when attempt starts. Test new functionalities Edit an existing essay question and put some text in the response template field. Verify that for new attempts the text is displayed in the answer field when the attempt is started. Create a new essay question with some text in the response template field. Verify that the text is displayed in the answer field when the attempt is started. Try to include some HTML formatting in the response template when creating/editing an essay question selecting HTML Editor as response format and verify the text is correctly displayed during attempt in the answer editor Verify that the filepicker is not available for the response template when creating/editing an essay question Test correct behaviour during attempts Create a quiz with 2 questions (each question on a separate page) : first question is a non essay question and second question is an essay question with some text in the response template. Attempt the quiz as a student and submit without going to the second page. Verify that on the summary page the question is marked as not yet answered. After clicking on submit all and finish verify that for the student when you review your attempt the answer to the essay question is blank and that the attempt has been automatically graded. Then login as a teacher and verify that the essay question is not marked as needing grading. Attempt the quiz as a student and go on each page, verify that on page 2 the essay question is correctly displayed with the response template in the answer field, but don't change anything. Verify that on the summary page the essay question is marked as not yet answered. After clicking on submit all and finish verify that for the student when you review your attempt the answer to the essay question is blank and the attempt has been automatically graded. Then login as a teacher and verify that the essay question is not marked as needing grading. Attempt the quiz as a student and completely change the answer to the essay question. Verify that you new response has been submitted as response to the essay question and that when the student review this attempt it is marked as not yet graded. Then login as a teacher and verify that the attempt is marked as needing manual grading. Attempt the quiz and modify slightly the text of the template in the answer field of the essay question. Verify that your modification has been saved correctly when you change page and return to the essay question page. Verify that it has also been submitted as answer to the essay question when the attempt is submitted and that when you login as a teacher the attempt is marked as needing manual grading. Import/Export Try to import an old (exported before this issue is integrated) Moodle XML file with essay questions. Verify the responsetemplate and responsetemplateformat are correctly populated by empty string and 1 and that no error or warning is displayed during import. Export a category with some essay questions (both with nothing in responseformat and with some content in responseformat) using Moodle XML format. Verify that the new informations are present in the XML. Import these questions in another category and verify that responsetemplate is correctly imported and no error or warning is displayed during import. Backup/Restore Create a quiz with all questions from a category containing essay questions (both with nothing in responseformat and with some content in responseformat) verify that no information is lost when the backup is restored. Try to restore an 1.9 course backup with some essay questions and verify that essay questions are correctly restored with empty string as responsetemplate and 1 as responsetemplateformat.

      A pre-populated essay question allows teachers to pre-populate the "Answer" area of the essay question (i.e., the html area in which the student types) with arbitrary html. For example, the teacher could insert an empty table that students fill in.

      This could be a new feature of the existing Essay question type or an altogether new question type.

      There have been numerous requests for special question types (e.g., for accounting) that would be satisfied by this simple feature.

            jmvedrine Jean-Michel Vedrine
            jisner John Isner
            Tim Hunt Tim Hunt
            Damyon Wiese Damyon Wiese
            Mark Nelson Mark Nelson
            Votes:
            16 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved:

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