Professional Documents
Culture Documents
Return IP-address Local N/W client Local DNS Main Test Component System Under Test
Tester Client
(www.xyz.com,A)
SUT DNS
(www.xyz.com, 24.25.27.29,A)
Pass
Local DNS Main Test Component Parallel Test Component 3 Remote DNS System Under Test
Extended Scenario.
PTC 1
CLIENT
SUT
DNS
PTC 2
ROOT NS
PTC 3
REMOTE DNS
answer(ns.xyz.com, xyz.com)
query(www.xyz.com)
answer(www.xyz.com, 24.25.27.29 )
answer(www.xyz.com, 24.25.27.29 ))
Pass
type component MTC { port Cpport cp_client, port Cpport cp_root, port Cpport cp_ns
MTC
cp_root
CP_Msg }
CP_Msg
cp_ns
pt_client
MTC
cp_root
Root
pt_root cp_mtc pt_root
T S I SUT
pt_ns
Ns
cp_ns pt_ns cp_mtc
TestCase
testcase Testcase3() runs on MTC system TSI { var Client ClientComp ; var Root RootComp; var Ns NSComp; ClientComp := Client .create; RootComp := Root.create; NSComp := Ns.create; connect(RootComp: cp_mtc, mtc: cp_root); connect(NSComp: cp_mtc, mtc: cp_ns); connect(ClientComp: cp_mtc, mtc: cp_client); map(RootComp: pt_root, system:pt_root); map(NSComp: pt_ns, system:pt_ns); map(ClientComp: pt_client, system:pt_client);
TestCase-Contd..
RootComp.start (RootBehaviour()); NSComp.start (NSBehaviour()); ClientComp.start(ClientBehaviour()); all component.done; // block until ClientComp is done unmap(RootComp: pt_root, system:pt_root); unmap(NSComp: pt_ns, system:pt_ns); unmap(ClientComp: pt_client, system:pt_client); disconnect(RootComp: cp_mtc, mtc:cp_root); disconnect(NSComp: cp_mtc, mtc:cp_ns); disconnect(ClientComp: cp_mtc, mtc:cp_client); setverdict(pass); }
TTCN-3 Executable
TTCN-3 Tutorial
Message flow
TTCN-3 Test System
TTCN-3 Executable Internal Communication TCI Test Control
MTC
Logging
PTC
TRI
PTC
Codecs
SUT Adapter
Platform Adapter
A test involves execution of many parallel test components Dynamic instantiation of components and communication links
User Interface Error reporting Test Execution Tracking Logging Parameter Resolving TE provides: Entry points to TE towrds TM Start/Stop test case startt/stop control TM <->TE Standard Deriven (TCI) EX: tciStartTestCase() tciStartTestCaseStarted() tciLog() tciStopTestCase()
CH
Test Executable
CD
Suite Adapter
Platform Adptr
EnCoding/Decoding Intenal TTCN3 to bitString towards SUT and ViceVersa
TTCN-3 Cornerstones
Necessary interfaces
Test System User TTCN-3 programme
Test Management (TM) CoDec (CD) Type and Value Implem. Timer and external functions implementation
Port implementation
TTCN-3 Cornerstones
Necessary Interfaces
Test System User Test Management (TM)
Component Handling (CH)
CoDec (CD)
TTCN-3 Introduction
Conformance testing Interoperability testing Service, function and feature testing Performance testing Stress, robustness and load testing Real-time testing Regression testing
20
ES 201 873-5
TTCN-3 Runtime Interface (TRI)
ES 201 873-6
TTCN-3 Control Interfaces (TCI)
TTCN-3 Tutorial
21
d i g i t a l d i g i t a l
1 2 3 4 5 6 7 8 9 * 8 #
1 4 7 *
2 5 8 8
3 6 9 #
1 4 7 *
2 5 8 8
3 6 9 #
TTCN-3 Tutorial
22