PUSH TestCompletedEvent object

Represents a test completed by a user. The event contains a reference to both the test and the testee.

Fields

Field Type Description
eventId
required
String The unique ID of the event.
eventType
required
String The type of the event (TEST_COMPLETED).
id
required
String A reference to the test attempt.
started
required
Date/time The start time of the test, expressed as an ISO 8601 date/time stamp.

Example: 2016-03-29T15:33:33Z.
completed
required
Date/time The end time of the test, expressed as an ISO 8601 date/time stamp.

Example: 2016-03-29T15:33:48Z.
score
required
PUSH Score The achieved score, including possible transformed scores.
test
required
PUSH Test A reference to the test definition. This identifies the test itself, and not the individual attempts. It will be the same for all testees.
user
included for regular test attempts
PUSH User Represents the testee account. Includes third party IDs where available and appropriate.
ticket
included for anonymous test attempts
PUSH Ticket Represents ticket that was used to complete the (anonymous) test.

Example

Below is an example of a regular test taken by a user of the Drillster platform. It contains a reference to the user account.

{
  "eventId": "ed5c3c37-511b-454e-be1f-282d781e2526",
  "eventType": "TEST_COMPLETED",
  "id": "qpynjYetO5Ti7sHOsSERVg",
  "started": "2016-03-29T15:33:33Z",
  "completed": "2016-03-29T15:33:48Z",
  "score": {
    "percentage": 100,
    "transformations": [
      {
        "id": "pass-at-seventy-percent",
        "passed": true,
        "result": "you passed"
      }
    ]
  },
  "test": {
    "id": "On7tRw6J9hYCrRF1G7hqtQ"
  },
  "user": {
    "emailAddress": "jane@example.com",
    "id": "hs50JqogSRiKSC18ivnOmw",
    "name": "Jane Doe",
    "thirdPartyIds": [
      {
        "id": "abc123",
        "thirdParty": "EXAMPLE"
      }
    ]
  }
}

This is an example of an anonymous test, which is taken on the basis of a pre-obtained test ticket:

{
  "id": "qpynjYetO5Ti7sHOsSERVg",
  "started": "2016-03-29T15:33:33Z",
  "completed": "2016-03-29T15:33:48Z",
  "score": {
    "percentage": 100,
    "transformations": [
      {
        "id": "pass-at-seventy-percent",
        "passed": true,
        "result": "you passed"
      }
    ]
  },
  "test": {
    "id": "On7tRw6J9hYCrRF1G7hqtQ"
  },
  "ticket": {
    "id": "U5etV0MI6Ozi6nb7ZdMf4q",
    "emailAddress": "john@example.com",
    "name": "John Doe",
    "reference": "t00042"
  }
}