Subversion-Projekte lars-tiefland.ci

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
776 lars 1
<!doctype html>
2
<title>CodeMirror: TTCN-CFG mode</title>
3
<meta charset="utf-8" />
4
<link rel=stylesheet href="../../doc/docs.css">
5
<link rel="stylesheet" href="../../lib/codemirror.css">
6
<script src="../../lib/codemirror.js"></script>
7
<script src="ttcn-cfg.js"></script>
8
<style type="text/css">
9
    .CodeMirror {
10
        border-top: 1px solid black;
11
        border-bottom: 1px solid black;
12
    }
13
</style>
14
<div id=nav>
15
    <a href="http://codemirror.net">
16
        <h1>CodeMirror</h1>
17
        <img id=logo src="../../doc/logo.png"> </a>
18
    <ul>
19
        <li>
20
            <a href="../../index.html">Home</a>
21
            <li>
22
                <a href="../../doc/manual.html">Manual</a>
23
                <li>
24
                    <a href="https://github.com/codemirror/codemirror">Code</a>
25
    </ul>
26
    <ul>
27
        <li>
28
            <a href="../index.html">Language modes</a>
29
            <li>
30
                <a class=active href="http://en.wikipedia.org/wiki/TTCN">TTCN-CFG</a>
31
    </ul>
32
</div>
33
<article>
34
    <h2>TTCN-CFG example</h2>
35
    <div>
36
        <textarea id="ttcn-cfg-code"> [MODULE_PARAMETERS] # This section shall contain the values of all parameters that are defined in your TTCN-3 modules. [LOGGING] # In this section you can specify the name of the log file and the classes of events # you want to log into the file
37
            or display on console (standard error). LogFile := "logs/%e.%h-%r.%s" FileMask := LOG_ALL | DEBUG | MATCHING ConsoleMask := ERROR | WARNING | TESTCASE | STATISTICS | PORTEVENT LogSourceInfo := Yes AppendFile := No TimeStampFormat := DateTime
38
            LogEventTypes := Yes SourceInfoFormat := Single LogEntityName := Yes [TESTPORT_PARAMETERS] # In this section you can specify parameters that are passed to Test Ports. [DEFINE] # In this section you can create macro definitions, # that can
39
            be used in other configuration file sections except [INCLUDE]. [INCLUDE] # To use configuration settings given in other configuration files, # the configuration files just need to be listed in this section, with their full or relative pathnames.
40
            [EXTERNAL_COMMANDS] # This section can define external commands (shell scripts) to be executed by the ETS # whenever a control part or test case is started or terminated. BeginTestCase := "" EndTestCase := "" BeginControlPart := "" EndControlPart
41
            := "" [EXECUTE] # In this section you can specify what parts of your test suite you want to execute. [GROUPS] # In this section you can specify groups of hosts. These groups can be used inside the # [COMPONENTS] section to restrict the creation
42
            of certain PTCs to a given set of hosts. [COMPONENTS] # This section consists of rules restricting the location of created PTCs. [MAIN_CONTROLLER] # The options herein control the behavior of MC. TCPPort := 0 KillTimer := 10.0 NumHCs := 0
43
            LocalAddress := </textarea>
44
    </div>
45
    <script>
46
        var ttcnEditor = CodeMirror.fromTextArea(document.getElementById("ttcn-cfg-code"),
47
        {
48
            lineNumbers: true,
49
            matchBrackets: true,
50
            mode: "text/x-ttcn-cfg"
51
        });
52
        ttcnEditor.setSize(600, 860);
53
        var mac = CodeMirror.keyMap.default == CodeMirror.keyMap.macDefault;
54
        CodeMirror.keyMap.default[(mac ? "Cmd" : "Ctrl") + "-Space"] = "autocomplete";
55
    </script>
56
    <br/>
57
    <p>
58
        <strong>Language:</strong> Testing and Test Control Notation - Configuration files (
59
        <a href="http://en.wikipedia.org/wiki/TTCN">TTCN-CFG</a>) </p>
60
    <p>
61
        <strong>MIME types defined:</strong> <code>text/x-ttcn-cfg</code>.</p>
62
    <br/>
63
    <p>The development of this mode has been sponsored by
64
        <a href="http://www.ericsson.com/">Ericsson </a>.</p>
65
    <p>Coded by Asmelash Tsegay Gebretsadkan </p>
66
</article>