Debian Codegraph @

help/info/execute.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 Szabados, Kristof
13 -->
14 <html>
15 <head>
16 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
17 <meta http-equiv="Content-Language" content="en-us">
18 <title>execute</title>
19 </head>
20 <body bgcolor="#DAD3C5" vlink="#0094D2" link="#003258">
21 <table align="left" border="0" cellspacing="0" cellpadding="0" valign=top>
22 <tr>
23 <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>
24 </tr>
25 </table>
26 <table border="0" align="right" cellpadding="0" cellspacing="0">
27 <tr>
28 <td><a href="../titan_main.html" alt="contents"><img border="0" src="../images/ao.jpg" width="53" height="40"></a></td>
29 <td><a href="../titan_index.html" alt="index"><img border="0" src="../images/up.jpg" width="53" height="40"></a></td>
30 <td><a href="exception.html" alt="previous"><img border="0" src="../images/left.jpg" width="53" height="40"></a></td>
31 <td><a href="extension.html" alt="next"><img border="0" src="../images/right.jpg" width="53" height="40"></a></td>
32 </tr>
33 </table>
34 <p><br clear="all">
35 </p>
36 <hr>
37 <h1>execute</h1>
38 <hr align="left" width="75%">
39 <p>The keyword is used to execute a test case.
40 <ul>
41 <li>As the result of the execution of a test case, a test case verdict of either <a href="none.html"><b><font face="Courier New" color="#003258" size="4">none</font></b></a>, <a
42 href="pass.html"><b><font face="Courier New" color="#003258" size="4">pass</font></b></a>, <a href="inconc.html"><b><font face="Courier New" color="#003258" size="4">inconc</font></b></a>, <a
43 href="fail.html"><b><font face="Courier New" color="#003258" size="4">fail</font></b></a> or <a href="error.html"><b><font face="Courier New" color="#003258" size="4">error</font></b></a> is
44 returned</li>
45 <li>Optionally, the execution time may be supervised. If the test case does not end within this duration, the result of the test case execution will be an error verdict.</li>
46 </ul>
47 <p>Related keywords:</p>
48 <ul>
49 <li><a href="testcase.html"><b><font face="Courier New" color="#003258" size="4">testcase</font></b></a></li>
50 <li><a href="verdicttype.html"><b><font face="Courier New" color="#003258" size="4">verdicttype</font></b></a></li>
51 </ul>
52 <hr align="left" width="50%">
53 <div align="center">
54 <center>
55 <table border="0" width="90%" bgcolor="#FFB599" cellpadding="4">
56 <tr>
57 <td width="100%">
58 <h3 align="center"><font face="Courier New" color="#003258" size="5"><b>execute(</b></font> <i>test_case_identifier</i> [<font face="Courier New" color="#003258" size="5"><b>,</b></font><i>timer_value</i>
59 ] <font face="Courier New" color="#003258" size="5"><b>);</b></font></h3>
60 </td>
61 </tr>
62 </table>
63 </center>
64 </div>
65 <ul>
66 <li>
67 <p><i>test_case_identifier</i> is the&nbsp;name used to refer to the test case to be executed. It is suggested that the name begin with tc_</p>
68 </li>
69 <li>
70 <p><i>timer value</i> is the optional <a href="float.html">float</a>ing point value stating the execution time limit in seconds.</p>
71 </li>
72 </ul>
73 <hr align="left" width="50%">
74 <p>Example 1:
75 <p><font face="Courier New">execute(tc_TestCaseName());</font>
76 <p>The test case called tc_TestCaseName is executed. The test case has no parameters. Execution time supervision is not started.</p>
77 <p>Example 2:
78 <p><font face="Courier New">vl_doom := execute(tc_SecondTestCaseName(), 5E-3);</font>
79 <p>The test case called tc_SecondTestCaseName is executed. The result (verdict) is stored in the variable vl_doom . Execution time limit is set to 5 milliseconds.</p>
80 <hr align="left" width="25%">
81 <hr align="left" width="25%">
82 <p><a HREF="BNF.html#testcaseinstance">BNF definition</a> of <font face="Courier New"> execute</font></p>
83 </body>
84 </html>