Debian Codegraph @

help/info/control.html

raw symbols SCIP
1 <!--
2 Copyright (c) 2000-2021 Ericsson Telecom AB
3 All rights reserved. This program and the accompanying materials
4 are made available under the terms of the Eclipse Public License v2.0
5 which accompanies this distribution, and is available at
6 https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
7
8 Contributors:
9 Baji, Laszlo
10 Balasko, Jeno
11 Farkas, Laszlo
12 Feher, Csaba
13 Szabados, Kristof
14 -->
15 <html>
16 <head>
17 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
18 <meta http-equiv="Content-Language" content="en-us">
19 <title>control</title>
20 </head>
21 <body bgcolor="#DAD3C5" vlink="#0094D2" link="#003258">
22 <table align="left" border="0" cellspacing="0" cellpadding="0" valign=top>
23 <tr>
24 <td width=105 height=40><a href="https://projects.eclipse.org/projects/tools.titan"><img src="../images/titan_transparent.gif" border=0 width=105 height=40 align="left" alt="Titan"></a></td>
25 </tr>
26 </table>
27 <table border="0" align="right" cellpadding="0" cellspacing="0">
28 <tr>
29 <td><a href="../titan_main.html" alt="contents"><img border="0" src="../images/ao.jpg" width="53" height="40"></a></td>
30 <td><a href="../titan_index.html" alt="index"><img border="0" src="../images/up.jpg" width="53" height="40"></a></td>
31 <td><a href="continue.html" alt="previous"><img border="0" src="../images/left.jpg" width="53" height="40"></a></td>
32 <td><a href="create.html" alt="next"><img border="0" src="../images/right.jpg" width="53" height="40"></a></td>
33 </tr>
34 </table>
35 <p><br clear="all">
36 </p>
37 <hr>
38 <h1>control</h1>
39 <hr align="left" width="75%">
40 <p>The module control part may contain local definitions and describes the execution order (possibly repetitive) of the actual test cases.
41 <p>Related keywords:</p>
42 <ul>
43 <li><a href="execute.html"><b><font face="Courier New" color="#003258" size="4">execute</font></b></a></li>
44 <li><a href="with.html"><b><font face="Courier New" color="#003258" size="4">with</font></b></a></li>
45 </ul>
46 <hr align="left" width="50%">
47 <div align="center">
48 <center>
49 <table border="0" width="90%" bgcolor="#FFB599" cellpadding="4">
50 <tr>
51 <td width="100%">
52 <h3 align="center"><font face="Courier New" color="#003258" size="5"><b>control {</b></font>&nbsp; [ <i>local_definitions</i> ]&nbsp;<i>control_statements</i> <font face="Courier New"
53 color="#003258" size="5"><b>}</b></font>&nbsp; [ <font face="Courier New" color="#003258" size="5"><b>with </b></font><i>attributes</i> ]</h3>
54 </td>
55 </tr>
56 </table>
57 </center>
58 </div>
59 <ul>
60 <li>
61 <p>The <font face="Courier New" color="#003258" size="4"><b>control</b></font> keyword introduces the module control part.</p>
62 </li>
63 <li>
64 <p>the optional <i>local_definitions</i> part may contain variable, constant and timer definitions.</p>
65 </li>
66 <li>
67 <p>the <i>control_statements</i> state the execution order of the test cases (cf. the keyword <a href="execute.html"><b><font face="Courier New">execute</font></b></a>).</p>
68 </li>
69 <li>
70 <p><i>attributes:</i> see the keyword <b><font face="Courier New"><a href="with.html">with</a></font></b> for details.</p>
71 </li>
72 </ul>
73 <hr align="left" width="50%">
74 <p><a name="parametrized">Example</a>
75 <p><font face="Courier New">control { var boolean vl_mistni;&nbsp;<br>
76 &nbsp;&nbsp;&nbsp;execute( tc_pad1());&nbsp;<br>
77 &nbsp;&nbsp;&nbsp;execute( tc_pad2());<br>
78 }</font><br>
79 <p>The module Principal declared here has an integer module parameter (tsp_vypinac), an enumerated type (Examplg) defined in the module definitions part. The control part contains the execution of
80 the test case tc_prov.</p>
81 <hr align="left" width="25%">
82 <hr align="left" width="25%">
83 <p><a HREF="BNF.html#modulecontrolpart">BNF definition</a> of control</p>
84 </body>
85 </html>