Difference between revisions of "OtfFirstSteps"

From emotive
Jump to navigation Jump to search
Line 95: Line 95:
  
 
<syntaxhighlight lang="cpp">
 
<syntaxhighlight lang="cpp">
InOutParameterDeclaration1 = StringUtil.StringConcatenate({"ProductionDate: ", ToString(Day1), "-", ToString(Month1), "-", ToString(Year1)});
+
InOutParameterDeclaration1 = StringUtil.StringConcatenate({"ProductionDate: ", ToString(Day1), "-", ToString(Month1), "-", ToString(Year1)});</syntaxhighlight>
}</syntaxhighlight>
 
  
 
==The sequence project is done, now start with a simple player==
 
==The sequence project is done, now start with a simple player==

Revision as of 11:53, 19 October 2018

In this section, we would like to step-by-step help you get started in the Open Test Framework. We assume that the OTF is already installed and activated.

First steps as Text

Here you can find the First steps as Text.


Open OTF and create new project

FirstStepsPage1.png

Insert an Assignment-Activity

FirstStepsPage2.png


Adjust activity settings

FirstStepsPage3.png


Create a new variable

FirstStepsPage4.png

Insert a ConfirmDialog-Activity of HMI Extension

FirstStepsPage5.png


Adjust activity settings

FirstStepsPage6.png


Execute your first procedure and look at the Variable trace window

FirstStepsPage7.png



Adjust settings for ECU communication


Exclamation.png Important: Please note that this is only possible if a diagnostic runtime system (MVCI-Server) is installed at the PC!

If no MVCI-Server is installed, you can ignore the following steps.


FirstStepsPage8.png


Insert an ExecuteDiagService-Activity of DiagCom Extension

FirstStepsPage9.png


Adjust Request/Response parameter settings

FirstStepsPage10.png


Bind Response parameters to new created OTX variables

FirstStepsPage11.png


Execute the procedure and look at the Communication trace window

FirstStepsPage12.png


Create a procedure parameter for input and output

FirstStepsPage13a.png


Add new activity via OTL editor

For experts only! Also the graphical designer can be used. OTL-Editor and designer are fully synchronized.

FirstStepsPage14.png


Please input the following code after the last row in code editor, see picture. You will be supported bny the auto complete feature of the editor.

InOutParameterDeclaration1 = StringUtil.StringConcatenate({"ProductionDate: ", ToString(Day1), "-", ToString(Month1), "-", ToString(Year1)});

The sequence project is done, now start with a simple player

FirstStepsPage15.png

Create a player project to execute it in stand alone OTP

FirstStepsPage16.png

A monitor will be created

FirstStepsPage17.png

The monitor consits of an adjustable table layout with different panels which contain the controls.

Create controls and bind to procedures and parameters

FirstStepsPage18.png

Start the player, select the ODX database, done!

FirstStepsPage19.png