Skip to content

Conceiving the scenario of a classic test case

The minimum goal of each test is to verify the expected result specified by a requirement. To reach this goal, you must conceive a test scenario. This scenario is composed of a series of actions to carry out in the tested tool to verify its expected behavior. In Squash TM, you can manage the test scenario of a classic test case in the anchor "Prerequisites and test steps".

Prerequisites and test steps of a classic test case

The anchor "Prerequisites and test steps" Ancre Prérequis et pas de test of a Classic test case contains two parts:

  • A prerequisite

In this field you can find the test's preconditions, such as the details of the actions to perform or the conditions to be met before beginning the execution of the test steps.

  • Test steps

Test steps are a series of steps. They are composed of two fields: an "Action" field, which contains the instructions for the actions to realize; and of an "Expected results" field, which contains the expected behaviors of the tool.

Prérequis et pas de test

The fields Prerequisites, Action, and Expected Result are rich text fields in which you can add formatting, tables, URLs, and/or images.

Focus

We highly encourage you not to copy and paste images in the different rich text fields within Squash TM. To learn how to add images in the fields Prerequisites, Action, and Expected Result, please visit the page Inserting an image in a rich field

When hovering on the test steps, an icon bar appears on the top right of the block. Using these icons allows you:

  • to add Ajouter a test step (will directly be added under the selected test step);
  • to delete Supprimer a test step;
  • to copy Copier and paste Ajouter a test step;
  • to link requirements;
  • to call a test case;
  • to show details of the test step;
  • to add an attachment. You can also directly drag and drop an attachment on the test step.

Barre d'icônes d'un pas de test

If the test step contains custom fields, attachments or linked requirements, these items are displayed under the Action and Expected Result fields.

The button Boutons loupe allows you to minimize the display and to have an overall view of the redacted test steps. The button Boutons loupe allows you to expand the test steps display. To reduce or maximize the display of the prerequisite or test step, use the following arrows: Réduire and Etendre.

Info

Prérequis et pas de test

Info

To copy/paste or delete several test steps at once, select all the test steps you want to delete by clicking on their postion number using Ctrl + click then click on the corresponding button.

Reordering test steps

To reorder one or several test steps:

  1. Select the test steps in order by clicking on their position number using Ctrl + click;
  2. Click on the two dotted vertical lines before one of the position numbers;
  3. Drag and drop to the destination location.

Déplacer des pas de test

Info

To make reordering test steps easier, we recommend that you use reduced display.

In full view, you can also move a test step one notch up or down using the arrows Remonter le pas de test and Descendre le pas de test which appears when you hover on the test step.

Linking a requirement to a test step

Linking a requirement to a test step allows you to obtain a more precise requirement coverage by the tests.


There are two ways to link a requirement to a test step:

  • Using the option "Linking requirements":

    1. Click on the button Plus which appears when you hover on a test step;
    2. Select the option "Linking requirements".
    3. The requirements repository tree appears on the right and allows you to link requirements to test steps by using drag and drop.
  • Using the option "Test steps details":

    1. Click on the button Plus;
    2. Select the option "Test steps details";
    3. On the "Test steps details" page, click on the button Ajouter or Rechercher to add requirements to the table "Requirements verified by this test case";
    4. When a requirement is linked to the test case, the "Step" case is checked by default. This indicates that the requirement is also linked to the test step.

Once the requirement is linked to the test step, it appears in several locations:

  • in the test step, after the fields "Action" and "Expected Result";

Pas de test avec exigence associée

  • in the table "Requirements verified by this test case" of the test case with its assigned number in the column "Verified by";

Table 'Exigences vérifiées par ce cas de test'

The test case linked to the requirement appears in the requirement's table "Test case verifying this requirement".

Table 'Exigences vérifiées par ce cas de test'

Conceiving a test step by viewing requirements

You can create, modify, and delete a test case's steps by viewing its linked requirements on the same page:

  1. Click on the button Plus by hovering on the test step;
  2. Select the option "Test step details";
  3. The page "Test Step Details" appears with a viewing space of the linked requirements on the left, and the test step's information on the right;
  4. Click on the button > to view the requirements' details.

The fields "Action" and "Expected result" can be edited. You can add a test step using the button Add and delete it with the button Supprimer.

Détails du pas de test