There are several cases where a recording test stimuli and/or test responses can be useful. Some cases include:
•Recording the stimuli made by a person using the Interactive Panel.
•Capturing test data created by a test executed on other test equipment, so that the tests can be played back as an MxVDev TestCase.
•Recording responses during a test so they can be played back as test stimuli into a subsystem.
Recording of Probes is not supported.
A typical case: You have an Interactive Panel loaded and you are able to send stimuli from the Interactive Panel to the SUT and see the responses displayed in the in the Interactive Panel.
We will examine this case step by step by setting up a recording session in the Turn Door sample project. First, to get to the point where you are ready to record:
1.Open the Turn Door sample project.
2.For auto-recording, set Enable Auto-Record in the Project Settings. See Auto-Record.
3.Load the Scenario called InteractiveTestScenario.mxs
4.Create a new Interactive Test Panel and add just two Signals:
•Stimulus - L_front_door_ajar
•Response - Dome_lamp_out
5.On the Simulation toolbar, select RTClock. (The tortoise should be displayed - this is important for SIL or MIL or the test will run too fast.)
6.Again on the Simulation toolbar, click the Run button (you will see time advance on the status bar).
7.Now when you open and close the door (using the L_front_door_ajar radio buttons on the Interactive Panel) you will see the dome lamp intensity change.
If you followed the steps above, you are now in a situation now where you can start recording:
1.Create a new regular TestCase (give it a TestCase Duration long enough for your recording - 60 seconds will do).
2.Add the Signals that you want to record (just add the same two signals for now).
Tip: Hold down the shift key and use the mouse to drag and drop the signals from the Interactive Panel into your TestCase.
3.Click somewhere on the Test case to ensure it has the focus, then on the TestCase Toolbar click the Enable/Disable Recording button (). You will see a red Recording Button () appear on the TestCase.
4.Click the Recording Button once. You will see it flash to show that recording is armed.
5.Click the Run button for the Scenario. Now any changes to the Signals in the TestCase will be recorded.
6.Once you have finished recording click the Recording Button once more to stop recording.
Auto-Record is a feature that allows you to record signals automatically while running a Scenario or Regression Test. The signals to be recorded are specified in a CSV file. See Auto-Record Project Setting.
For example, if
Scenario1 has inputs A, B, C and outputs D, E, F, and
Scenario2 has inputs A, B, G and outputs D, H, J.
You can set up Auto-Record to record Signals B, G, E, J as each Scenario runs (either stand alone or as part of a regression).
For each Scenario that is run, you get one new recorded TestCase. If you use the optional Template Scenario, the new TestCase is added to the TestCases in the template to create a new Scenario. The TestCase and optional new Scenario are given the same name as the run Scenario, and saved in the folder specified in the Auto-Record settings. The default folder is /AutoRecordOut.
Turn off Auto-Recording when finished so as not to overwrite the results.
The Auto-Record settings are found under Project Settings‑>AutoRecord.