2.1 TestResult object

A TestResult object, with details about the test itself, the achieved score, and the individual given answers and corrections.

Example

{
  "userId": "QMzpkEyivVvEvcM3Kopy3zCRTwA",
  "subject": "Japanese",
  "style": "MULTIPLE_CHOICE",
  "score" : {
    "percentage" : 0,
    "transformations" : [{
      "id": "seventy-percent-grade-points",
      "result": "0"
    }]
  },
  "started": "2013-09-10T14:56:07Z",
  "completed": "2013-09-10T14:56:12Z",
  "size" : 4,
  "correctlyAnswered" : 0,
  "progress" : 1.0,
  "includedColumnNames" : [ "Hiragana" ],
  "drills" : [ {
    "drill" : {
      "id": "rCiRiK6gzUupEAmP2RAE1g",
      "name": "Hiragana",
      "subject": "Japanese",
      "type": "DRILL"
    },
    "score" : {
      "percentage" : 0,
      "transformations" : [{
        "id": "seventy-percent-grade-points",
        "result": "0"
      }]
    }
  } ],
  "questions" : [ {
    "answered" : true,
    "correct" : false,
    "questionColumn": "Hiragana",
    "question": "ゃ",
    "answerColumn": "Rōmaji",
    "givenAnswer": "ya",
    "correctAnswer": "wo"
  }, {
    "answered" : true,
    "correct" : false,
    "questionColumn": "Hiragana",
    "question": "え",
    "answerColumn": "Rōmaji",
    "givenAnswer": "ho",
    "correctAnswer": "e"
  }, {
    "answered" : true,
    "correct" : false,
    "questionColumn": "Rōmaji",
    "question": "so",
    "answerColumn": "Hiragana",
    "givenAnswer": "ぜ",
    "correctAnswer": "そ"
  }, {
    "answered" : true,
    "correct" : false,
    "questionColumn": "Rōmaji",
    "question": "nu",
    "answerColumn": "Hiragana",
    "givenAnswer": "お",
    "correctAnswer": "ぬ"
  } ]
}

Fields

Field Type Description
userId
required
String The user making this test. In case of an anonymous test, this is the ticket.

Example value: QMzpkEyivVvEvcM3Kopy3zCRTwA
subject
required
String The subject this test.

Example value: Japanese
style
required
String constant The question style of the test.

Example value: MULTIPLE_CHOICE
score
optional
2.1 Score object The achieved score, expressed as a percentage, including optional transformations.
started
required
Date/time The start time of the test, expressed as an ISO 8601 date/time stamp.

Example value: 2013-09-10T14:56:07Z
completed
required
Date/time The end time of the test, expressed as an ISO 8601 date/time stamp.

Example value: 2013-09-10T14:56:12Z
size
required
Integer The number of questions contained in the test.

Example value: 4
correctlyAnswered
required
Integer The number of questions that were answered correctly.

Example value: 4
progress
required
Floating point How far the test has been completed, expressed as a fraction. The progress will be 0.0 if no questions have been answered yet, and 1.0 if all questions have been answered.

Example value: 1.0
includedColumnNames
required
List of strings The names of the unknown columns included as questions in this test.

Example value: [ "Hiragana" ]
drills
required
List of 2.1 TestResultDrill objects Details about the drills used as a source for this test, plus the achieved score for each drill.
questions
optional
List of 2.1 TestQuestion objects A transcript of the questions asked, answers given and evaluation of each answer.
timeLimit
optional
ISO8601 Duration If specified, the user must finish the test within this time. The time is measured from the moment that the first question is presented. All questions that are not answered before this time limit are considered incorrect.

Example value: PT20M30S