TDL bridging the gap between specifications and testing Dr. Gusztáv Adamis Dr. GyÖrgy réthy Ericsson Hungary Test Solutions and Competence Center
Contents Problem definition TDL - the new ETSI test language Role of TDL in testing Activities on TDL Ericsson Modeling Days 2016 Ericsson AB 2016 2016-09-13 Page 2
Test Development Manual workflow Requirement and System specification Feature description, IW Description etc. Ericsson Modeling Days 2016 Ericsson AB 2016 2016-09-13 Page 3
Test Development Manual workflow Test design Done at the test execution language level Test cases API (product specific) Test Framework Test tool (IDE, execution environment) Ericsson Modeling Days 2016 Ericsson AB 2016 2016-09-13 Page 4
Abstraction Gap Requirement management/ system specification Test design/execution Test cases Test Framework Ericsson Modeling Days 2016 Ericsson AB 2016 2016-09-13 Page 5
Test Development MBT workflow Orig FSM public void reselec.on(string p_legid) { vg_sip_parameters.withoutringing = true; mgcfdialog = new SIPCallTerm(mgcfOut, mgcfin); mgcfdialog.legid = "mgcf1"; mgcfdialog.teardown = false; mgcfdialog.start("mgcf1"); if (vg_e_params.mgcf2behavior == "serviceunavailable") mgcfdialog.finalresp = 503; } Test harness in destination language, e.g. Ericsson Modeling Days 2016 Ericsson AB 2016 2016-09-13 Page 6
The Abstraction Gap MBT requires knowledge on Modeling level Programming level Ericsson Modeling Days 2016 Ericsson AB 2016 2016-09-13 Page 7
We need a language that Can describe the test cases Both generated and manually designed at the abstraction level of the model Can be used also by nonprogrammers Enables incremental development Standardised From system specification to test case design level Can be used by different tools Has a graphical representation TDL Test Description Language Ericsson Modeling Days 2016 Ericsson AB 2016 2016-09-13 Page 8
TDL Meta-model Well-defined language constructs UML MOF-based description OCL constraints Makes it possible to develop different domainspecific concrete syntaxes Ericsson Modeling Days 2016 Ericsson AB 2016 2016-09-13 Page 9
Structure of TDL Test Data TDL meta-model Time, Timers Foundation Data Time Test Configuration Test Configuration Test Behaviour Test Behaviour Test Description Test Behaviour Elements Test Objective Including test-specific constructs, like alternative default verdict Test Objectives Ericsson Modeling Days 2016 Ericsson AB 2016 2016-09-13 Page 10
TDL Graphical Syntax Standardised by ETSI Similar approach to UML SD But new symbols to new constructs Graphical symbols Formal description of the contained text Ericsson Modeling Days 2016 Ericsson AB 2016 2016-09-13 Page 11
TDL Graphical Syntax Data Specification Ericsson Modeling Days 2016 Ericsson AB 2016 2016-09-13 Page 12
TDL Graphical Syntax Test Configuration Ericsson Modeling Days 2016 Ericsson AB 2016 2016-09-13 Page 13
TDL Graphical Syntax Test Behaviour Ericsson Modeling Days 2016 Ericsson AB 2016 2016-09-13 Page 14
Transfer Syntax Goals: Interoperability between tools Interoperability between different concrete syntaxes XMI (XML Metadata Interchange) To serialize the meta-model Syntactical check possible Ericsson Modeling Days 2016 Ericsson AB 2016 2016-09-13 Page 15
Incremental Design UE Network Connection Establishment Data Transfer Ericsson Modeling Days 2016 Ericsson AB 2016 2016-09-13 Page 16
Incremental Design UE Network Request Accept Data Transfer Ericsson Modeling Days 2016 Ericsson AB 2016 2016-09-13 Page 17
Incremental Design UE Network Request (ID:=1, Type:=Voice) Accept (ID:=1) Data Transfer Ericsson Modeling Days 2016 Ericsson AB 2016 2016-09-13 Page 18
Incremental Design UE Network Request (ID:=1, Type:=Voice) Accept (ID:=1) Deny Data Transfer Ericsson Modeling Days 2016 Ericsson AB 2016 2016-09-13 Page 19
Incremental Design UE Network Data Resource Mapping TTCN_Data ResourceURI Data.ttcn Request (ID:=1, Type:=Voice) Accept (ID:=1) Deny Data Transfer Ericsson Modeling Days 2016 Ericsson AB 2016 2016-09-13 Page 20
Incremental Design UE Node 1 Node 2 Data Resource Mapping TTCN_Data ResourceURI Data.ttcn Request (ID:=1, Type:=Voice) Accept (ID:=1) Deny Request (Type:=Voice) OK NOK Data Transfer Ericsson Modeling Days 2016 Ericsson AB 2016 2016-09-13 Page 21
TDL in Test development http://tdl.etsi.org/index.php/about/introduction Ericsson Modeling Days 2016 Ericsson AB 2016 2016-09-13 Page 22
Activities on TDL At ETSI: Latest versions of TDL standards are published in 05/2016 See more at http://tdl.etsi.org Tool Prototypes (will be open sourced) Reference TDL-GR viewer TDL XMI -> TDL GR Papyrus-based TDL editor TDL -> UML mapping Ericsson Modeling Days 2016 Ericsson AB 2016 2016-09-13 Page 23
Activities on TDL At Ericsson TCC: Participation in all ETSI TDL activities Language development projects (STFs Specialized Task Force) TB MTS (approving the TDL standards and TDL STF requests) TDL Steering Group Prototype TDL GR editor integrated into Intuitive tool Working on TDL -> TTCN-3 M2M transformation With cooperation of Budapest University of Technology and Economics - Mapping of TDL to TTCN-3 - Prototype tool - The coming new ETSI STF will standardize the mapping Ericsson Modeling Days 2016 Ericsson AB 2016 2016-09-13 Page 24
Ericsson Modeling Days 2016 Ericsson AB 2016 2016-09-13 Page 25 and
Ericsson Modeling Days 2016 Ericsson AB 2016 2016-09-13 Page 26