Manipulate the contents of a test

How to manipulate the contents of a test.

After you create a test or open an existing test, you can manipulate its contents in the test editor. The test editor displays the test and its phases to the right of the Test Factory tree.

Add test actions

Add an action to a test by clicking it in the Actions palette, which is the horizontal toolbar that is located above the test editor.

The selected action is inserted below the currently selected phase or action.

Alternatively, you can add actions from the test editor menu by right-clicking the phase or step after which you want to insert an action. Actions are available by group under the New menu item.

A screen image that shows the expansion of the NewGeneral menu options.

Edit test actions

Edit a test action by double-clicking it in the test editor, or by right-clicking and selecting Open from the action’s menu. If the Action Editor is enabled, you can edit test actions inline, underneath or to the right of the test editor (see The Action Editor).

The details of individual test actions are described in Actions.

Restriction: While you are editing a test, any iProcess actions are shown without their Identity and Procedure list. These details are displayed only when you edit the iProcess step.

Delete test actions

Delete a test action by selecting Delete from the action’s menu, or by selecting the action and pressing the Delete key.

Rename test actions

When you are working in the Business View, you can rename a test’s label or any of the actions in its various phases. You can name the test and any wanted test actions in a way that can be easily understood by other users.

To rename an action, select Rename from its menu or select the action and press F2.

Change a test action’s type

When you are working in a test, you can change any existing messaging actions, except Unsubscribe, to another type of messaging action.

To change an existing action, right-click the action and select the new action type under Change Action Type in the action’s menu.

Note: When you change an action’s type, the existing transport and message content is retained.

Cut/copy/paste test actions

You can cut, copy, and paste test actions can be by using the action’s menu. When you paste, the action that is pasted is inserted below the phase or action that is selected.

Move test actions

You can reorder test actions by moving them up or down the list of existing actions. You can move a test action by selecting Move Up or Move Down from the action’s menu, or you can drag an action and drop it into a new position within the test.

When you are using drag and drop, you can select multiple test actions (sequential or non-sequential) and move them to a new position within the test.

Note: When you move an action by using the menu, you cannot move it out of its current test phase.

Enable or disable test actions

By default, every test action is enabled in a test when it is first added. However, you can disable a test action in order to skip its execution within the test without having to remove it.

To change the state of test actions, select them, right-click any of the actions, then select the wanted state (Enable or Disable) from the menu. To select multiple actions, use Shift or Ctrl. If all the selected actions are in one state, then only the opposite state is available in the menu (for example, if all actions are enabled, then only Disable appears in the menu). If the selected actions are currently in a mixture of states, then both the Enable and Disable options are available.

If you are using the docked action editor, you can toggle the state of the selected test action by using the Enabled check box in the editor.

Partial screen image, showing the Enabled check box.
Note: When a test action is disabled in a test, its result in the console is reported as "skipped."

Save messages as requirements

Save messaging test actions (for example, Publish or Subscribe) as requirements by dragging them from an open test and dropping them into a valid branch within the tree in the Requirements or Test Factory perspective. The contents of the message (that is, header options, transport, and so on) in the selected action is reproduced in the new message. The new message is named according to the description of the action that created it.

In the example below, the Publish action was dragged into the "Op" operation. The resulting message was then named according to the Publish action’s description.

A screen image as described in the preceding paragraph.

Feedback