Home
Categories
Dictionary
Download
Project Details
Changes Log
Who We Are
FAQ
License

Record and replay a Scenario



This tutorial explains how to record and replay a scenario in the editor Embedded Server.

Start the embedded Server

First look at the Editor Embedded Server tutorial to open the Embedded Server. At the end of this tutorial, the Client window has the following configuration:
embedClient2

Record a scenario

We will record a scenario. Look at the toolbar for the Scenario Plugin:
embedClientToolbar
  • newScenario : Select the file on which the scenario will be recorded
  • startRecord : Start the recording
Now you can send messages from the Client to the Server. Apply the Client tutorial to send several messages from the Client to the Server.


Now Stop the recording:
  • newScenario : Select the file on which the scenario will be recorded
  • stopRecord Stop the Recording

The XML file corrsponding to the scenario has been saved.

Replay a scenario

First manually set back the fill color of the Triangle_1 widget to white so as to go back to the initial configuration of the widgets[1]
Again see the Client tutorial to see how to do it
. This is not part of the replay, but it is necessary to be able to see that the replay is really doing something.

Now look again at the toolbar for the Scenario Plugin:
  • openScenario : Open the file on which the scenario has been recorded
  • scenarioPlay : Play the recording
The Server window will change according to what happened in the recording. At the end, if you changed the color from white to green, you will see again the following display:
clientTutorialTriangle4

Notes

  1. ^ Again see the Client tutorial to see how to do it

See also


Categories: editor | tutorials | user

Copyright 2016-2017 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v2 licence