TTCN

1 program Added 2026-03-06T10:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: TTCN-2, Tree and Tabular Combined Notation, Testing and Test Control Notation
Provenance: commit 814f5c6a3c · authored 2026-03-06T01:57:20+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

4 sources · pl_id: pl/ttcn
LLM (this repo) · 1PldbWikipediaWikidata · Q2007031

Related languages

TTCN-2 (0.55)TTCN-3 (0.46)PCN (0.15)TACPOL (0.14)Portable Game Notation (0.12)

LLM-contributed programs

Simple Echo Test Suite

Provenance: commit 814f5c6a3c · authored 2026-03-06T01:57:20+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.ttcn · added: 2026-03-06T10:00:00Z
module SimpleTest {
    /* TTCN Test Suite: Simple Echo Test
     * Tests a basic echo protocol using ASN.1-defined messages
     */

    type record EchoRequest {
        integer id,
        charstring message
    }

    type record EchoResponse {
        integer id,
        charstring message,
        boolean success
    }

    type port EchoPort message {
        out EchoRequest;
        in EchoResponse
    }

    type component EchoMTC {
        port EchoPort P
    }

    testcase TC_BasicEcho() runs on EchoMTC {
        var EchoRequest req := { id := 1, message := "Hello" };
        var EchoResponse resp;
        timer T := 10.0;

        P.send(req);
        T.start;

        alt {
            [] P.receive(EchoResponse : { id := 1, message := "Hello", success := true }) -> value resp {
                log("Echo success: ", resp.message);
                setverdict(pass)
            }
            [] P.receive {
                setverdict(fail, "Unexpected response")
            }
            [] T.timeout {
                setverdict(fail, "Timeout waiting for echo response")
            }
        }
    }

    control {
        execute(TC_BasicEcho())
    }
}

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

Tell us where to find evidence about TTCN (mapped to pl/ttcn). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/TTCN/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← TSX TTCN-2 →