Editing TestCases

TestCases can only be used if they contain TestSteps with TestStepValues. The controls of an object to be tested can be steered with these TestSteps. The elements or even subordinate elements must be checked out for the current user to be able to edit TestCases, TestCase folders and TestSteps in multi-user mode.

The chapters below will describe all the options and properties that are possible for TestCases.

Properties

Description

Any text can be specified for this property. The entered information is also displayed as a tooltip.

The information that is stored here does not have any effect on automated steering.

Revision

Revision number automatically generated by Tosca. Each Checkin or Checkout process increments this number.

TestCaseWorkState

Describes the state of the TestCase. Newly created TestCases have the state PLANNED. TestCases that were created by instantiating a template inherit the state of the template. The following values are available and can be arbitrarily selected:

TestCase state

Status

Description

COMPLETED

The TestCase is completed.

PLANNED

This TestCase is planned.

IN_WORK

The TestCase is currently in progress.

ExecutionEntries inherit the TestCaseWorkState of the linked TestCases (see chapter "Create an ExecutionList").

Pausable

Specifies whether manual TestSteps can be paused (see chapter "Execute manual tests"). The value of this property can be overwritten by the values of subordinated TestStep folders or TestSteps.

Options

Create Folder

Creates a TestCase folder. This folder allows a tree view to be structured and TestCases to be grouped accordingly.

Create TestCase

This option creates a TestCase at the end of the hierarchy.

  1. Select the folder, where the new TestCase should be created.

  2. Select the option Create TestCase from the context menu. You can also left-click on the folder and select Create Object->TestCase from the dynamic menu TestCases.

  1. Tosca Commander™ creates a new TestCase at the desired position and automatically offers to rename it. You can either assign a new name to the TestCase or you can use the default name <New TestCase> by pressing Enter.

Create TestCase (after this)

Creates a new TestCase directly after the selected TestCase.

  1. Select the TestCase after which a new TestCase should be created.

  2. From the context menu of the TestCase, select the option Create TestCase (after this). You can also left-click on the TestCase and select Create Object->TestCase (after this) from the dynamic menu TestCases.

  1. Tosca Commander™ creates a new TestCase at the required position and automatically offers to rename it. You can either assign a new name to the TestCase or you can use the default name <New TestCase> by pressing Enter.

Create Duplicate (after this)

Creates a duplicate of the selected TestCase beneath this TestCase.

  1. Select the TestCase to be duplicated.

  2. From the context menu of the TestCase, select the option Create Duplicate (after this). You can also left-click on the TestCase and select Create Object->Duplicate (after this) from the dynamic menu TestCases.

  3. Tosca Commander™ duplicates the TestCase and all the objects beneath and automatically offers to rename them. You can either assign a new name to the TestCase or you can use the default name <TestCase name>_1 by pressing Enter.

Create Manual TestStep

Creates a manual TestStep (see chapter "Working with manual TestCases").

Create Test configuration parameter

Creates a test configuration parameter for the selected TestCase (see chapter "Create test configuration parameters ").

Attach File

Add file attachments (see chapter "Add attachments").

Convert to Template

Converts a TestCase into a TestCaseTemplate (see chapter "Working with TestCase templates").

Run in ScratchBook

Executes the selected TestCase(s) in ScratchBook (see chapter "Run tests in the ScratchBook").

Reinstantiate TestCase

This option generates the TestCase again from the template and is available to TestCases which are located in a TemplateInstance (see chapter "Creating TemplateInstances").

Multiple, already instantiated TestCases can be selected and reinstantiated via Shift + Click or Ctrl + Click.

Reset test configuration parameter

This menu entry is available as soon as one or more parameters have been specified for the selected object. This option allows any test configuration parameters to be deleted (see chapter "Create test configuration parameters ").

Deleting TestCases

  1. Select the TestCase(s) to be deleted.

  2. Click on Delete in the context menu or the dynamic menu TestCases, or press the Del key.

  3. If the TestCase or the TestCases are used in one or more ExecutionLists, the following warning message will appear:

TestCase is used in ExecutionLists

  1. To delete the TestCase(s), click on OK.

  2. Press Cancel if you do not want to delete the TestCase(s).

If TestCases that are used in ExecutionLists are deleted, the ExecutionEntries remain without any TestCase references.

ExecutionEntries without TestCases

Converting TestSteps into TestCases

If one or more TestSteps are dragged and dropped onto TestCase folders, they are converted into concrete TestCases. The new TestCases are named according to the corresponding TestStep. If a TestStep folder with one or more subordinate TestSteps is dragged and dropped onto a TestCase folder, the TestStep folder is converted into a TestCase.

  1. Select one or more TestSteps (TestStep folders) to be converted.

  2. Drag them onto the required TestCase folder and drop them there.