Create a test unit

In this topic, you learn how to create a test unit. A unit is the smallest testable part of a code and may include several pieces.

Prerequisites

  • There are no prerequisites.

Procedure

  1. In the Cockpit, go to Testing and select Test Unit.

  2. Select Add.

    Result: The Test unit window opens. You start in the General tab.

  3. Enter a Name and Description for the test unit.

  4. Go to the Steps tab.

  5. Select + Add to add a new step to your unit.

    Result: The configuration pane opens.

  6. Enter a Name for the step and select Manual Testing as Type.

  7. Enter the URL of the test unit artifact.

  8. In Test Procedure, write the steps that are necessary to fulfill the test., for example, which data is needed for the test and which actions you need to perform.

  9. In Expected Result, write the expected result if the test is successful.

  10. Select Save.

Results

  • You have created a test unit.