The Accept Results feature enables you to easily capture the Actual response for an output Signal in a TestCase, and make it the Expected response. The Accept Results action can operate on a Range, a DataBlock, a Variant DataBlock, a Signal, or all selected Signals. If you right-click on a Range, a DataBlock, or the name of a Signal you see the Accept Result action in the menu list. The Accept Results toolbar button can also be used. To accept results for all Signals in a job, right-click on the job in the Scenario viewer. Whenever you change a TestCase, using Accept Results or otherwise, you should save the changes so your test is repeatable.
For an example, see the Viewing Signals and Plot Lines video demonstration.
The behavior of the Accept Results command depends on the Pass/Fail Algorithm selected in the Signal Properties:
When you Accept Results, the times of the Expected Transitions are set to the next earlier time that corresponds to an integer multiple of the Test Resolution. So if the Test Resolution is 10ms and an Actual Transition occurs at 23ms, the Expected Transition is established at 20ms. See the discussion on Test Resolution in Test Execution Control for the reasoning behind this. |
For Signals that use the Discrete Algorithm, when you Accept Results, the times of the Expected Transitions are set to the times of the Actual Transitions. |
Once you select Accept Results, the Pass/Fail analysis is rerun on that Signal. In most cases the failures disappear, but there are a couple of exceptions: •If the placement of the Expected Transition moves outside the Time Tolerance window relative to the Actual Transition, then the test will still fail. You need to increase the Time Tolerance, or reduce the Test Resolution. •If there is more than one Transition that would be set to the same time, then the Accept Results does not complete. You are prompted to reduce the Test Resolution or abort the Accept Results attempt. •For message Signals, if the Require Periodic Transitions option is selected, the Accept Results does not complete. See Periodic Signals. To specify an expected response pattern, turn off the periodicity checking option. |
![]() No Data Area (Square Gray Dots) on MsgHazard·Value2 Signal If an actual response pattern has no value, it is marked with square gray dots (null data). If you select Accept Results, the new Expected Pattern has a blank area, where no transitions are expected. ![]() After Accept Results and Rewind |
A TestCase may be repeated, for example, if it is listed more than once in a Scenario or if the Run Count is greater than one. When you Accept Results, the actual response pattern is converted to the expected response. A TestCase has the same expected response in all uses (Jobs) in the project, however the actual results may differ between Jobs. When you Accept Results, the actual response for the currently selected Job is converted to the expected response for all Jobs that use the TestCase. Save the changes so your test is repeatable. |