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 click Test Unit.

  2. Click Add.

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

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

  4. Navigate to the Steps tab.

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

    Result: The configuration pane opens.

    test unit
  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.

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

  10. Click Save.

Results

  • You have created a test unit.