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

qtype_multichoice_single response import/export for testing broken

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.7.3
    • 2.7.2, 2.8
    • Questions
    • MOODLE_27_STABLE, MOODLE_28_STABLE
    • MOODLE_27_STABLE
    • Hide

      These methods are only used for testing, so you could decide that the new unit test is sufficient testing.

      However, if you really want to test this properly:

      1. Install https://github.com/jamiepratt/moodle-quiz_simulate
      2. Create a quiz.
      3. Add a multiple choice question where the Choice contain HTML tags. E.g. when you view source in Atto the choice looks like '<p>A</p>'.
      4. Attempt this quiz as a student.
      5. Use the Simulate report to export the attempts at this quiz.
      6. Delete all the attempts at the quiz.
      7. Re-import the attept you exported, and verify that the response to the multiple choice question has been imported correctly.
      Show
      These methods are only used for testing, so you could decide that the new unit test is sufficient testing. However, if you really want to test this properly: Install https://github.com/jamiepratt/moodle-quiz_simulate Create a quiz. Add a multiple choice question where the Choice contain HTML tags. E.g. when you view source in Atto the choice looks like '<p>A</p>'. Attempt this quiz as a student. Use the Simulate report to export the attempts at this quiz. Delete all the attempts at the quiz. Re-import the attept you exported, and verify that the response to the multiple choice question has been imported correctly.

      prepare_simulated_post_data does a clean_param, but get_student_response_values_for_simulation does not, so things do not match as they should.

            timhunt Tim Hunt
            timhunt Tim Hunt
            John Okely John Okely
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Frédéric Massart Frédéric Massart
            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.