DataBlock Variants enable you to specify alternate patterns for a DataBlock. The Variants can be used on input Signals (alternate stimuli) or output Signals (alternate expected responses). Usually Variants are associated with tags, which are used to select which Variant is active. One Variant is the default, which is active if no tags are active.
To create a Variant, right-click in a DataBlock and select DataBlock->Create Variant.
Click OK to display the Variants. To display this window after it has been closed, right-click in the DataBlock and select DataBlock->Variants.
You can edit the Variant patterns in the window using the mouse or Accept Results (for response Signals only).
To change the default Variant, right-click in the Variant and select Variant->Set as Default.
After a test has been run, select DataBlock->Variants to display the all Variant DataBlocks with the actual results from the currently selected TestCase. If you select Accept Results (
|
Standard DataBlocks are indicated by a green line at the bottom of the Signal display. Variant DataBlocks are indicated by a green dashed line. When you move the mouse over a DataBlock with Variants in a TestCase, a red line is displayed at the top and a dotted red line is displayed at the bottom. To view the Variants, double-click on the dotted line or right-click in the DataBlock and select DataBlock->Variants.
|
When the Any Variant option is selected, the DataBlock passes if the actual results match the pattern in any of the specified Variants. When the Active Variant option is selected, the test fails unless the actual results match the active Variant (as controlled by tags and defaults). To set the option, right-click on the Variant DataBlock in the TestCase, and select DataBlock->Properties, then select the Variants tab:
|
Related Topics: