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

prepare_simulated_post_data should pass through question behaviour vars with correct prefix

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.6
    • Component/s: Questions
    • Labels:

      Description

      For simulating questions which allow multiple tries we need to be able to read behaviour vars for each slot from csv file of simulated response data.

      I think the behaviour vars should be specified in the csv file something like in this example :

      quizattempt firstname lastname responses.1.1.answer responses.1.2.answer responses.1.-submit responses.1.-tryagain finished
      1 Juniper Jones Pussy-cat 0 1 0 0
      1 Juniper Jones Pussy-cat 0 0 1 0
      1 Juniper Jones Owl 0 1 0 1

      Where there is a multianswer question in slot 1. The 'finished' column applies to the whole attempt, although in this case there is only one slot.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jamiesensei Jamie Pratt
                Reporter:
                jamiesensei Jamie Pratt
                Peer reviewer:
                Tim Hunt
                Integrator:
                Sam Hemelryk
                Tester:
                Sam Hemelryk
                Participants:
                Component watchers:
                Tim Hunt, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  18/Nov/13