2.0 TestResult object
A TestResult object, with details about the test itself, the achieved score, and the individual given answers and corrections.
Example
{
"subject": "Japanese",
"style": "MULTIPLE_CHOICE",
"score": 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": 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 |
---|---|---|
subject required |
String | The subject this test. Example value: Japanese |
style required |
String | The question style of the test. Example value: MULTIPLE_CHOICE |
score required |
Integer | The achieved score, expressed as a percentage. Example value: 100 |
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.0 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.0 TestQuestion objects | A transscript of the questions asked, answers given and evaluation of each answer. |