TTCN-3
TTCN-3 (Testing and Test Control Notation version 3) is a strongly typed testing language used in conformance testing of communicating systems. TTCN-3 is written by ETSI in the ES 201 873 series, and standardized by ITU-T in the Z.160 Series. TTCN-3 has its own data types and can be combined with ASN.1, IDL, and XML type definitions. Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.
TTCN-3 (Testing and Test Control Notation version 3) is a strongly typed testing language used in conformance testing of communicating systems. TTCN-3 is written by ETSI in the ES 201 873 series, and standardized by ITU-T in the Z.160 Series. TTCN-3 has its own data types and can be combined with ASN.1, IDL, and XML type definitions. module TestSystem { // Define a subtype of integer type integer myNewType (0..50) // Declare Request struct type with 2 fields type record Request { myNewType param1, charstring param2 } // Declare Answer struct type with one field type record Answer { myNewType param1 } // Declare a message-based communication port type port cEnv_type message { out Request; in Answer; } // Declare the component on which the test case will run type component sSystem { port cEnv_type cEnv; } // The templates define outgoing parameter values // and verify incoming parameter values template Request Good_Req := {param1 := 42, param2 := "hello !" }; template Answer All_is_OK := {param1 := 0}; // Define testcase1 that will run on sSystem component testcase testcase1() runs on sSystem { // Send Request message with (42, "hello !") as parameters cEnv.send(Good_Req); // An alternative for the 2 possible answers alt { // Do we receive Answer with 0 as parameter []cEnv.receive(All_is_OK) { // Pass verdict ! setverdict(pass) } // Or do we receive something else []cEnv.receive { // Fail verdict setverdict(fail) } } } // Control part chains test cases execution automatically control { var verdicttype verdict1; verdict1 := execute(testcase1()); } } Video introduction to TTCN-3 on YouTube TTCN-3 Quick Reference Card List of TTCN-3 tools Exporting of Use Case Map models (ITU-T Z.151) to TTCN-3 (ITU-T Z.161) A history of TTCN at ITU-T
Cite this
"TTCN-3". 1789930696. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1375913762 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy