The Test Sequence Editor enables you to define and modify test sequences for Test Sequence and Test Assessment blocks. To open the Test Sequence Editor, double-click a Test Sequence or Test Assessment block.
A test sequence consists of test steps arranged in a hierarchy. Test steps can contain
transitions that define how a test progresses in response to the simulation. Test steps can
also have a
When decomposition that uses logic similar to an
if-elseif-else statement. By default:
New Test Sequence blocks contain two standard transition test steps.
New Test Assessment blocks contain a
decomposition test step with two sub-steps.
For more information, see Transition Types.
To define a test sequence:
Add test steps, as described in Manage Test Steps.
In the Step cell, define outputs and assessments.
To add a transition from a test step:
Point to the Transition cell and click Add transition.
In the Transition cell, define the conditions for exiting the step.
In the Next Step cell, select the next test step from the drop-down list.
To define a step with a
Right-click a test step and select When decomposition. The step displays the icon .
Add sub-steps, as described in Manage Test Steps.
In the Step cell of each sub-step, enter the
when operator, followed by a condition. Do not add a
condition to the last sub-step.
To define multiple test sequences in a single Test Sequence block, use scenarios. In the left pane of the Test Sequence Editor, click Scenarios, then click Use Scenarios. The existing test steps and transitions are moved into a scenario tab named Scenario_1. Add more scenarios to define more test sequences. For more information on Test Sequence scenarios, see Use Test Sequence Scenarios in the Test Sequence Editor and Test Manager.
In the Test Sequence Editor, you can add and delete test steps to your test sequence. You can also reorder the test steps and change their position in the hierarchy.
To add a test step, right-click an existing step and select Add step before or Add step after.
To add a test step in a lower hierarchy level, right-click the parent step and select Add sub-step.
To delete a test step, right-click the step and select Delete step. If the test sequence contains only one test step, you cannot delete it. You can delete its contents by selecting Erase last step content.
To copy a test step, right-click the area to the left of the step name and select Copy step. Alternatively, select the test step and use the shortcut Ctrl+C.
To cut a test step, right-click the area to the left of the step name and select Cut step. Alternatively, select the test step and use the shortcut Ctrl+X.
To paste a test step, right-click the area to the left of a step name and select Paste step, then:
Paste before step
Paste after step
Alternatively, select the test step and use the shortcut Ctrl+V.
To reorder the test steps in a test sequence:
Point to a test step. The icon appears to the left of the step name.
Click and drag the icon to reorder the test step.
You can reorder test steps within the same hierarchy level. When you move a test step, sub-steps move with the test step.
To reorder step transitions within the same test step, click and drag a transition number to reorder the transition. The corresponding next step moves with the transition.
To move a test step to a lower level in the hierarchy, right-click the step and select Indent step. You can only indent a test step when the preceding step is at the same hierarchy level. You cannot indent the first test step in a sequence or the first step in a hierarchy group.
To move a test step to a higher level in the hierarchy, right-click the step and select Outdent step. You can only move the last step in a hierarchy group to a higher level in the hierarchy.
In the Symbols sidebar of the Test Sequence Editor, you add, edit, or delete symbols in the Test Sequence block. You can access these symbols from test steps at any hierarchy level. To show or hide the Symbols sidebar, click the Symbols Sidebar button on the Test Sequence Editor toolbar.
To add a data symbol, point to the node for a symbol type and click an add symbol button. Available options and additional setup steps depend on the symbol type.
|Symbol Type||Description||Procedure for Adding Symbol|
Options for input entries include:
Options for output entries include:
Local data entries are available only inside the Test Sequence block in which they are defined.
Constants are read-only data entries available only inside the Test Sequence block in which they are defined.
Parameters are available inside and outside the Test Sequence block.
|Data Store Memory|
Data Store Memory entries are available inside and outside the Test Sequence block.
To edit a data symbol, point to the name of the symbol and click Edit.
To delete a data symbol, point to the name of the symbol and click Delete.
You can find and replace text in Test Sequence actions, transitions, and descriptions by using the Find & Replace tool in the Test Sequence Editor.
To open the Find & Replace tool, click the icon in the toolbar.
In the Find what field, enter the text you want to locate.
In the Replace with field, enter the updated text.
To locate the text, click Find Next or Find Previous.
To replace the old text with the updated text, click Replace.
When running a search, the Find & Replace tool searches descriptions only if the description column is open.
The Test Sequence Editor changes the syntax automatically for:
Duplicate test step names. For example, if
step_1 exists, and you change another step name to
step_1, the step name you change automatically changes to
Increment and decrement operations, such as
a--. For example,
is changed to
Assignment operations, such as
a/=expr. For example,
a+=b is changed to
Evaluation operations, such as
!a. For example,
a!=b is changed to
Explicit casts for literal constant assignments. For
y is defined as type
y=1 is changed to