# Tests

> Tests in Uspacy training courses: five question types, a question bank with random selection, weights, attempts, a passing threshold and answer review.

Source: https://auspex.company/en/docs/lms/tests/

A test is a separate course step. Administrators and HR add it in the builder, and employees take it in
**My learning**. The result of the course depends on the test if the **By test score** criterion is selected in the
course settings (see [Courses and the builder](https://auspex.company/en/docs/lms/courses/#course-settings)). If a course has several tests, the course is
passed when every test in its enabled lessons is passed.

## How to add a test

1. In the course builder, open a lesson and click **+ Test**. Enter the **Test title** and click **Add**.
2. Select the test step on the left. The editor opens on the right: the step title, the **Test** block with settings and
   the question bank.
3. Add questions with the **+** button: it sits between the questions, so a new question can be inserted anywhere.
   Choose the **Question type**.
4. Fill in the question and the options and click **Save options**.

A test without questions will not start, and a course with such a test will not be published.

## Test settings

| Setting | What it does |
|---|---|
| **Passing score, %** | the share of correct answers required to pass |
| **Attempts** | how many times an employee can take the test |
| **Questions per attempt** | how many questions from the bank go into one attempt; the module picks them at random each time. Empty — all questions of the bank |
| **Shuffle questions** | each attempt shows the questions in a different order |
| **Shuffle answer options** | the order of options inside a question differs every time |
| **Show correct answers after submitting** | right after the attempt, the employee sees the «Answer review»: where they made mistakes and which answer is correct |
| **Credit when attempts run out** | when the attempts are used up, the test is credited even without the passing score, and the assignment does not become «Failed» (see [below](https://auspex.company/en/docs/lms/tests/#when-attempts-run-out)) |

## Question types

| Type | What the employee does | How to set the correct answer |
|---|---|---|
| **Single choice** | picks one answer | mark one correct option |
| **Multiple choice** | picks all correct answers | mark all correct options |
| **Matching** | matches the left column with the right one | fill in the pairs: left label — right label; the **+ Pair** button adds a pair |
| **Ordering** | puts the items in the correct order | the order of the list in the editor is the correct sequence; you can change it with the arrows |
| **Text answer** | types the answer as text | fill in **Expected answer**. Upper and lower case and extra spaces are ignored |

Each question has **Question text**, a **Hint (optional)** that the employee sees under the question, and a **Weight** —
how many points a correct answer gives. You can add an image (PNG, JPG, WEBP or GIF) to the question and to each option;
an option image can be added after the options are saved.

Points are awarded on an all-or-nothing basis: a question answered partly correctly gives no points. The attempt
percentage is the sum of points for correct answers out of the sum of the weights of all questions in the attempt.

## How an employee takes a test

1. On the test step, the employee sees «Ready?», how many attempts they have left and the pass score. They click
   **Start attempt**.
2. Above the questions, they see how many answers they have given, for example «Answered 3 of 5».
3. At the end — **Finish test**. If some questions have no answer, the module asks again: «Unanswered questions: … Finish
   the test?»
4. The result appears right away: «Test passed» or «Test not passed», the score and the pass score. If there are
   attempts left, the **Try again** button appears.

If the employee leaves the test in the middle of an attempt, the module warns that the answers on the screen will be
lost. The attempt itself stays open: next time the test opens on it. An attempt counts only once it is finished.

A passed test is not taken again: on the step, the employee can review their attempt.

## When attempts run out

The module says «No attempts left (… of …)». What happens to the course depends on the success criterion:

- **By test score** — without the **Credit when attempts run out** switch, the assignment becomes «Failed», even if the
  course’s other tests are passed. With the switch, the test is credited: once the course’s other tests are credited too,
  the assignment becomes «Passed».
- **By course progress** — without the switch, the test step stays incomplete. With the switch, the step is credited and
  counts towards the course completion percentage.

If an employee needs another attempt, increase **Attempts** in the test: an assignment with the «Failed» status goes back to
«In progress» at once, and the employee can take the test again. If you turn on **Credit when attempts run out** after the
attempts have run out, the test is credited to those whose attempts are already used up.
