# Reading results

> What a completed test returns, what each level means, and which one to record.

Source: https://lernexa.com/docs/developers/language-test/results

A test's `result` is `null` until its `status` is `completed`, and set from then on. Then it holds:

```json
"result": {
  "overall": { "level": "B1", "band": "High", "text": "B1 High" },
  "placement": null,
  "levelText": "B1 High",
  "sections": [
    { "skill": "Use of language", "level": { "level": "B1", "band": "High", "text": "B1 High" } },
    { "skill": "Reading", "level": { "level": "B1", "band": "Mid-High", "text": "B1 Mid-High" } },
    { "skill": "Listening", "level": { "level": "B2", "band": "Low", "text": "B2 Low" } }
  ],
  "recordUrl": "https://language-test.lernexa.com/records/3ba05396-6af8-4da7-8faf-1779b25ae5d1"
}
```

## Which level to record

**Use `levelText`.** It is always set, never longer than 20 characters, and already decides between
the others:

1. the **placement**, when someone at your school confirmed the level or chose another on the
   test's page,
2. else the **overall** level the test found,
3. else `Not enough evidence`, when Use of language had too few answers to give a level. That exact
   text is the only `levelText` that is not a level: check for it if you want to treat it apart.

`overall` and `placement` are also there separately, with `level` and `band` apart, if you want to
store them in fields of their own.

## Levels and bands

A level is a CEFR level, `A1` to `C2`, and one of four sub-bands: `Low`, `Mid-Low`, `Mid-High`,
`High`. `text` puts them together, `B1 Mid-High` at the longest (11 characters).

The overall level weights Use of language 70%, Reading 15% and Listening 15%. Writing, when a test
covers it, has a level of its own and does not move the overall one. A section's `level` is `null`
when it had too few answers to say. The levels are indicative guidance for placement, not a
certified exam result.

## The record

`recordUrl` is the candidate's public record: their levels, overall and for each section, and
nothing else, no answers. It is safe to send to a teacher or an agent, and it is the page behind
the QR code on the candidate's PDF.

## Getting the result

- **Be told:** a [webhook](https://lernexa.com/docs/developers/language-test/webhooks) posts the test the moment it
  is completed, and again if your staff change the level.
- **Ask:** `GET /tests/{externalId}` returns the test as it is now, at any time.

## Status

| `status`      | Meaning                                               |
| ------------- | ----------------------------------------------------- |
| `invited`     | Created. The candidate has not started.               |
| `in progress` | Started, not finished. The candidate can carry on later from the same link. |
| `completed`   | Every section done. `result` is set.                  |
