Testing and Modeling With TDL
Testing and Modeling With TDL
Testing and Modeling With TDL
What is TDL?
Why TDL?
• Test Description Language
Final draft ETSI ES 203 119-1 V1.2.0 (2015-04)
Methods for
ETSI STANDARD Testin
The Test Desc g and Specification
Met
Part 4: Struc hod s for Tes
ription Lang (MTS);
Methodstured
The
for Testing ting
andand uage
Specification (MTS);
Test
Tes Objec
t Des Specific(TDL) ;
criptive
The Test Description Spec
Language TS);
atio
ificati
TestingPar
forAbstract and tion
Specific
t 2: Langua (TDL);
ation(M on n(Exte
(MTnsion
S); )
Parts 1: (TDL); geSemantics
Generation
ES 203 119-3 V1.1.0 -2 V1.1.0 (2015-0
(2015-04)
Final draft ETSI 4)
ETSI STANDARD
ETSI STANDA
RD
ETSI STANDARD
Methods for
ETSI STANDARD Testing and
The Test Descriptio
Method Specificati
Part 4: Structured s for Testingn Language on (MTS);
MethodsTheforTest
Testing
Test andand
Objective Specifi (TDL);
Specification (MTS);
Descrip Specificati
cation
The Test Description
Part 2: Language
tion Langua (TDL);
on (Extension
(MTS);
Part 1: Abstract Syntax Graphi
and Associated ge (TDL); )
cal Syntax Semantics
(MTS);
and Specification
Methods for Testing Language (TDL);
The Test Description Format
Part 3: Exchange
Standards !
Visualisation
Documentation ITS
Interoperability Conformance
46
2
What is TDL?
• Scenario-based approach
• Standardised at ETSI by TC MTS
• STF 454 (2013)
• STF 476 (2014)
!
3
What is TDL?
• Design, documentation,
ETSI ES 203 119-1 V1.3.1 (2016-09)
representation?
• ease development and review ETSI STANDARD
• improve productivity and quality Methods for Testing and Specification (MTS);
The Test Description Language (TDL);
Part 1: Abstract Syntax and Associated Semantics
4
MBT Workflow Manual Workflow
TDL
Adaptation
5
What is TDL?
• Scenario-based?
ETSI ES 203 119-1 V1.3.1 (2016-09)
• derive and automate tests Methods for Testing and Specification (MTS);
The Test Description Language (TDL);
Part 1: Abstract Syntax and Associated Semantics
6
What is TDL?
• Standardised?
ETSI ES 203 119-1 V1.3.1 (2016-09)
• canonical reference
• stable documentation ETSI STANDARD
7
What is TDL?
• Contributions from:
ETSI ES 203 119-1 V1.3.1 (2016-09)
8
What is TDL?
ETSI ES 203 119-2 V1.2.1 (2016-09)
Part 2: GR
ETSI STANDARD Graphical
Methods for Testing and Specification (MTS);
The Test Description Language (TDL);
Syntax
Part 2: Graphical Syntax
ETSI ES 203 119-1 V1.3.1 (2016-09) ETSI ES 203 119-3 V1.2.1 (2016-09)
Part 3: XF
Part 1: MM ETSI STANDARD ETSI STANDARD Exchange
Meta-Model Methods for Testing and Specification (MTS); Methods for Testing and Specification(MTS);
Format
and Semantics
The Test Description Language (TDL); The Test Description Language (TDL);
Part 1: Abstract Syntax and Associated Semantics Part 3: Exchange Format
Part 4: TO
ETSI STANDARD Structured
Methods for Testing and Specification (MTS);
Test Objective
Specification
!
The Test Description Language (TDL);
Part 4: Structured Test Objective Specification (Extension)
9
What is TDL?
ETSI ES 203 119-1 V1.3.1 (2016-09)
ETSI STANDARD
User-defined syntax
!
ETSI STANDARD
TDL P2: GR
TDL P4: TO
TDL P3: XF
Methods for Testing and Specification (MTS);
The Test Description Language (TDL);
Part 2: Graphical Syntax
ETSI STANDARD
TDL P1: MM
ETSI ES 203 119-4 V1.2.1 (2016-09)
ETSI STANDARD
10
What is TDL?
ETSI ES 203 119-1 V1.3.1 (2016-09)
ETSI STANDARD
User-defined syntax
!
ETSI STANDARD
TDL P2: GR
TDL P4: TO
TDL P3: XF
Methods for Testing and Specification (MTS);
The Test Description Language (TDL);
Part 2: Graphical Syntax
ETSI STANDARD
TDL P1: MM
ETSI ES 203 119-4 V1.2.1 (2016-09)
ETSI STANDARD
11
Semantics
Generalization
ETSI STANDARD
User-defined syntax
Properties !
TDL P2: GR
TDL P4: TO
TDL P3: XF
shall adhere to the 'DataType's that are allowed to be e
Methods for Testing and Specification (MTS);
The Test Description Language (TDL);
Part 2: Graphical Syntax
Constraints
ETSI STANDARD
8.2.2 GateInstance
The Test Description Language (TDL);
Part 3: Exchange Format
Semantics
TDLAP1: MM
ETSI ES 203 119-4 V1.2.1 (2016-09)
Generalization
• NamedElement
12
Into the lower empty compartment the elements of the TestCon
6.4.2 GateType
What is TDL? Concrete Graphical Notation
Formal Description
User-defined syntax
!
ETSI STANDARD
TDL P2: GR
TDL P4: TO
TDL P3: XF
Methods for Testing and Specification (MTS);
The Test Description Language (TDL);
Part 2: Graphical Syntax
Comments
ETSI STANDARD
TDL P1: MM
ETSI ES 203 119-4 V1.2.1 (2016-09)
ETSI STANDARD
ETSI
The Test Description Language (TDL);
Part 4: Structured Test Objective Specification (Extension)
Radio
Data Type: Message, Signal
13
What is TDL? Part 1: MM
• Test data
• Test configuration ETSI STANDARD
ETSI ES 203 119-2 V1.2.1 (2016-09)
ETSI STANDARD
• Test behaviour Methods for Testing and Specification (MTS); Methods for Testing and Specification (MTS);
The Test Description Language (TDL);
Part 2: Graphical Syntax
• Test objectives
ETSI ES 203 119-3 V1.2.1 (2016-09)
ETSI STANDARD
14
What is TDL? Part 1: MM
Annex B (informative):
Examples of a TDL Concrete Syntax
• Test data
B.1 Introduction
The applicability of the TDL meta-model that is described in the main part of the present document depends on the
availability of TDL concrete syntaxes that implement the meta-model (abstract syntax). Such a TDL concrete syntax
can then be used by end users to write TDL specifications. Though a concrete syntax will be based on the TDL meta-
model, it can implement only parts of the meta-model if certain TDL features are not necessary to handle a user's needs.
This annex illustrates an example of a possible TDL concrete syntax in a textual format that supports all features of the
• Test configuration
TDL meta-model, called "TDLan". Three examples are outlined below - two examples translated from existing test
descriptions taken from [i.2] and [i.3], as well as an example illustrating some of the TDL data parameterization and
mapping concepts. The examples are accompanied by a complete reference description of the textual syntax of TDLan ETSI ES 203 119-2 V1.2.1 (2016-09)
ETSI STANDARD
given in EBNF.
• Test behaviour
This example describes one possible way to translate clause 7.1.3.1 from TS 136 523-1 [i.2] into the proposed TDL
Methods for Testing and Specification (MTS);
textual syntax, by mapping the concepts from the representation in the source document to the corresponding concepts
Methods for Testing and Specification (MTS);
The Test Description Language (TDL);
in the TDL meta-model by means of the proposed textual syntax. The example has been enriched with additional Part 2: Graphical Syntax
• Test objectives
Action preCondition : "Pre-test Conditions:
RRC Connection Reconfiguration" ;
Action preamble : "Preamble:
The generic procedure to get UE in test state Loopback
Activated (State 4) according to TS 36.508 clause 4.5
is executed, with all the parameters as specified in the
procedure except that the RLC SDU size is set to return no
data in uplink.
(reference corresponding behaviour once implemented" ;
//User-defined verdicts
ETSI ES 203 119-3 V1.2.1 (2016-09)
• Time
//Alternatively the predefined verdicts may be used as well
Verdict PASS ;
Verdict FAIL ;
ETSI STANDARD
15
What is TDL? Part 1: MM ETSI ES 203 119-2 V1.2.1 (2016-09)
ETSI STANDARD
Annex B (informative):
Examples of a TDL Concrete Syntax
Methods for Testing and Specification (MTS);
• Test data
B.1 Introduction The Test Description Language (TDL);
Part 2: Graphical Syntax
The applicability of the TDL meta-model that is described in the main part of the present document depends on the
availability of TDL concrete syntaxes that implement the meta-model (abstract syntax). Such a TDL concrete syntax
can then be used by end users to write TDL specifications. Though a concrete syntax will be based on the TDL meta-
model, it can implement only parts of the meta-model if certain TDL features are not necessary to handle a user's needs.
This annex illustrates an example of a possible TDL concrete syntax in a textual format that supports all features of the
• Test configuration
TDL meta-model, called "TDLan". Three examples are outlined below - two examples translated from existing test
descriptions taken from [i.2] and [i.3], as well as an example illustrating some of the TDL data parameterization and
mapping concepts. The examples are accompanied by a complete reference description of the textual syntax of TDLan
ETSI STANDARD
given in EBNF.
• Test behaviour
This example describes one possible way to translate clause 7.1.3.1 from TS 136 523-1 [i.2] into the proposed TDL
Methods for Testing and Specification (MTS);
textual syntax, by mapping the concepts from the representation in the source document to the corresponding concepts
in the TDL meta-model by means of the proposed textual syntax. The example has been enriched with additional
The Test Description Language (TDL);
information, such as explicit data definitions and test configuration details for completeness where applicable.
Part
//Translated from1: Abstract
[i.2], Syntax and Associated Semantics
Section 7.1.3.1
TDLan Specification Layer_2_DL_SCH_Data_Transfer {
//Procedures carried out by a component of a test configuration
//or an actor during test execution
• Test objectives
Action preCondition : "Pre-test Conditions:
RRC Connection Reconfiguration" ;
Action preamble : "Preamble:
The generic procedure to get UE in test state Loopback
Activated (State 4) according to TS 36.508 clause 4.5
is executed, with all the parameters as specified in the
procedure except that the RLC SDU size is set to return no
data in uplink.
(reference corresponding behaviour once implemented" ;
//User-defined verdicts
ETSI ES 203 119-3 V1.2.1 (2016-09)
• Time
//Alternatively the predefined verdicts may be used as well
Verdict PASS ;
Verdict FAIL ;
ETSI STANDARD
16
What is TDL? Part 1: MM
Annex B (informative):
Examples of a TDL Concrete Syntax
• Test data
B.1 Introduction
The applicability of the TDL meta-model that is described in the main part of the present document depends on the
availability of TDL concrete syntaxes that implement the meta-model (abstract syntax). Such a TDL concrete syntax
can then be used by end users to write TDL specifications. Though a concrete syntax will be based on the TDL meta-
model, it can implement only parts of the meta-model if certain TDL features are not necessary to handle a user's needs.
This annex illustrates an example of a possible TDL concrete syntax in a textual format that supports all features of the
• Test configuration
TDL meta-model, called "TDLan". Three examples are outlined below - two examples translated from existing test
descriptions taken from [i.2] and [i.3], as well as an example illustrating some of the TDL data parameterization and
mapping concepts. The examples are accompanied by a complete reference description of the textual syntax of TDLan ETSI ES 203 119-2 V1.2.1 (2016-09)
ETSI STANDARD
given in EBNF.
• Test behaviour
This example describes one possible way to translate clause 7.1.3.1 from TS 136 523-1 [i.2] into the proposed TDL
Methods for Testing and Specification (MTS);
textual syntax, by mapping the concepts from the representation in the source document to the corresponding concepts
Methods for Testing and Specification (MTS);
The Test Description Language (TDL);
in the TDL meta-model by means of the proposed textual syntax. The example has been enriched with additional Part 2: Graphical Syntax
• Test objectives
Action preCondition : "Pre-test Conditions:
RRC Connection Reconfiguration" ;
Action preamble : "Preamble:
The generic procedure to get UE in test state Loopback
Activated (State 4) according to TS 36.508 clause 4.5
is executed, with all the parameters as specified in the
procedure except that the RLC SDU size is set to return no
data in uplink.
(reference corresponding behaviour once implemented" ;
//User-defined verdicts
ETSI ES 203 119-3 V1.2.1 (2016-09)
• Time
//Alternatively the predefined verdicts may be used as well
Verdict PASS ;
Verdict FAIL ;
ETSI STANDARD
17
What is TDL? Part 1: MM
• Test data
ETSI ES 203 119-1 V1.3.1 (2016-09)
ETSI STANDARD
• composed by using parameters Methods for Testing and Specification (MTS); Methods for Testing and Specification (MTS);
The Test Description Language (TDL);
Part 2: Graphical Syntax
ETSI STANDARD
18
What is TDL? Part 1: MM
ET
Type Login; Test Design
Login correct;
Login incorrect;
19
What is TDL? Part 1: MM
ET
Type Login;
Login correct;
Login incorrect;
20
What is TDL? Part 1: MM
ET
Type Login;
Login correct;
Login incorrect;
21
What is TDL? Part 1: MM
• Test configuration
ETSI ES 203 119-1 V1.3.1 (2016-09)
• component roles
22
What is TDL? Part 1: MM
ET
Gate Type gt accepts Login, Response;
Test Configuration tc {
create Tester tester of type ct;
Pa
create SUT sut of type ct;
connect tester.g to sut.g;
}
23
What is TDL? Part 1: MM
• Test behaviour
ETSI ES 203 119-1 V1.3.1 (2016-09)
24
What is TDL? Part 1: MM
ET
Test Description td (p of type Login)
uses configuration tc {
tester.g sends incorrect to sut.g;
alternatively {
sut.g sends failure to tester.g with { ETSI STAND
test objectives : tp;
};
set verdict to pass;
Pa
} or {
sut.g sends success to tester.g;
set verdict to fail;
}
}
25
What is TDL? Part 1: MM
• Test objectives
ETSI ES 203 119-1 V1.3.1 (2016-09)
• may be attached to
• behaviour (atomic or compound) ETSI STANDARD
26
What is TDL? Part 1: MM
ET
Test Objective tp {
description : "ensure that
when incorrect login is provided
a failure response is sent";
}
ETSI STAND
Test Description td (p of type Login)
uses configuration tc {
tester.g sends incorrect to sut.g; Pa
alternatively {
sut.g sends failure to tester.g with {
test objectives : tp;
};
set verdict to pass;
} or {
sut.g sends success to tester.g;
set verdict to fail;
}
} !
27
What is TDL? Part 2: GR
ETSI ES 203 119-1 V1.3.1 (2016-09)
• Graphical languages
ETSI ES 203 119-2 V1.2.1 (2016-09)
ETSI STANDARD
ETSI STANDARD
28
What is TDL? Part 2: GR
ETSI ES 203 119-1 V1.3.1 (2016-09)
ETSI STANDARD
29
What is TDL? Part 2: GR
ETSI ES 203 119-1 V1.3.1 (2016-09)
timer: TIMERLISTLABEL
!
ETSI STANDARD
GATELABEL
Methods for Testing and Specification (MTS);
context: ComponentType The Test Description Language (TDL);
Part 2: Graphical Syntax
…
ETSI STANDARD
ETSI STANDARD
30
ETSI ES 203 119-1 V1.3.1 (2016-09)
ETSI STANDARD
ETSI STANDARD
ETSI STANDARD
31
What is TDL? Part 3: XF
ETSI ES 203 119-1 V1.3.1 (2016-09)
ETSI STANDARD
• Exchange among MOF tools Methods for Testing and Specification(MTS); Methods for Testing and Specification (MTS);
The Test Description Language (TDL);
Part 2: Graphical Syntax
• XMI concerns
• complex, many options
ETSI STANDARD
32
What is TDL? Part 3: XF
ETSI ES 203 119-1 V1.3.1 (2016-09)
ETSI STANDARD
ETSI STANDARD
33
What is TDL? Part 3: XF
ETSI ES 203 119-1 V1.3.1 (2016-09)
• two-step validation
!
ETSI STANDARD
• semantics: MOF model validation Methods for Testing and Specification(MTS); Methods for Testing and Specification (MTS);
The Test Description Language (TDL);
Part 2: Graphical Syntax
ETSI STANDARD
34
What is TDL? Part 3: XF
ETSI ES 203 119-1 V1.3.1 (2016-09)
ETSI STANDARD
Methods for Testing and Specification(MTS); Methods for Testing and Specification (MTS);
The Test Description Language (TDL);
Part 2: Graphical Syntax
<xsd:complexType name="ComponentInstance">
<xsd:complexContent>
<xsd:extension base="tdl:Element">
<xsd:choice maxOccurs="unbounded" minOccurs="0">
<xsd:element name="gateInstance" type="tdl:GateInstance"/>
<xsd:element name="variable" type="tdl:Variable"/>
</xsd:choice> ETSI ES 203 119-4 V1.2.1 (2016-09)
</xsd:extension>
Methods for Testing and Specification (MTS);
The Test Description Language (TDL);
Part 4: Structured Test Objective Specification (Extension)
</xsd:complexContent>
</xsd:complexType>
35
What is TDL? Part 3: XF
ETSI ES 203 119-1 V1.3.1 (2016-09)
ETSI STANDARD
Methods for Testing and Specification(MTS); Methods for Testing and Specification (MTS);
The Test Description Language (TDL);
Part 2: Graphical Syntax
ETSI STANDARD
36
What is TDL? Part 4: TO
ETSI ES 203 119-1 V1.3.1 (2016-09)
• Based on TPLan
ETSI ES 203 119-4 V1.2.1 (2016-09)
ETSI STANDARD
ETSI STANDARD
• integrate and unify test
Methods for Testing and Specification (MTS); Methods for Testing and Specification (MTS);
The Test Description Language (TDL);
Part 2: Graphical Syntax
ETSI STANDARD
37
What is TDL? Part 4: TO
ETSI ES 203 119-1 V1.3.1 (2016-09)
Identification of Requirements
!
Methods for Testing and Specification (MTS); Methods for Testing and Specification (MTS);
The Test Description Language (TDL);
Part 2: Graphical Syntax
Validation
38
What is TDL? Part 4: TO
ETSI ES 203 119-1 V1.3.1 (2016-09)
Identification of Requirements
!
Methods for Testing and Specification (MTS); Methods for Testing and Specification (MTS);
The Test Description Language (TDL);
Part 2: Graphical Syntax
Validation
39
What is TDL? Part 4: TO
ETSI ES 203 119-1 V1.3.1 (2016-09)
Identification of Requirements
!
Methods for Testing and Specification (MTS); Methods for Testing and Specification (MTS);
The Test Description Language (TDL);
Part 2: Graphical Syntax
Validation
40
What is TDL? Part 4: TO
ETSI ES 203 119-1 V1.3.1 (2016-09)
the IUT entity having reached an initial_state Methods for Testing and Specification (MTS); Methods for Testing and Specification (MTS);
The Test Description Language (TDL);
Part 2: Graphical Syntax
when {
the door entity is closed
}
then {
the IUT entity sends a new CAM message
containing DoorOpen TaggedValue;
}
}
}
41
What is TDL?
ETSI ES 203 119-1 V1.3.1 (2016-09) ETSI ES 203 119-2 V1.2.1 (2016-09)
Methods for Testing and Specification (MTS); Methods for Testing and Specification (MTS);
The Test Description Language (TDL); The Test Description Language (TDL);
Part 1: Abstract Syntax and Associated Semantics Part 2: Graphical Syntax
ETSI ES 203 119-3 V1.2.1 (2016-09) ETSI ES 203 119-4 V1.2.1 (2016-09)
Methods for Testing and Specification(MTS); Methods for Testing and Specification (MTS);
The Test Description Language (TDL); The Test Description Language (TDL);
Part 3: Exchange Format Part 4: Structured Test Objective Specification (Extension)
42
What is TDL?
ETSI ES 203 119-1 V1.3.1 (2016-09) ETSI ES 203 119-2 V1.2.1 (2016-09)
Methods for Testing and Specification (MTS); Methods for Testing and Specification (MTS);
The Test Description Language (TDL); The Test Description Language (TDL);
Part 1: Abstract Syntax and Associated Semantics Part 2: Graphical Syntax
ETSI ES 203 119-3 V1.2.1 (2016-09) ETSI ES 203 119-4 V1.2.1 (2016-09)
Methods for Testing and Specification(MTS); Methods for Testing and Specification (MTS);
The Test Description Language (TDL); The Test Description Language (TDL);
Part 3: Exchange Format Part 4: Structured Test Objective Specification (Extension)
43
ETSI ES 20
ETSI ES 3 119-4 V1.2.1 (2016-09
ETSI ES 203 203 1V1.3.1
119-1 19-2) (2016-09) )
ETSI STAND
ARD
ETSI STA
NDA RD
ETSI STANDARD
Methods fo
ETSI STANDARD r Testi
The o st De ng and Specification
M
Part 4: Stru ethTe ds for sc
Tesription Lang (MTS);
ctu
Methods Tre
edTTe
hfor Testing tiand
ng an uage
Specification (MTS);
es st
t DOb
esjec tive dSpSpecific(TDL );
The Test Description crip ec(MT
Language
tio
cificat
n ion S);
ificatiaton
ion(E(M
(TDL);
Pand
ar
Testing Syntax Spe L an xte
Tns
S);ion)
Metho
Part forAbstract
ds 1:
tion Lanandguaphge
ical(TDgL);
t 2: Gra Associated uageSemantics
(TDL);
The Tes t Des crip S yn tax
han ge For ma t
Part 3: Exc
44
ETSI ES 20
ETSI ES 3 119-4 V1.2.1 (2016-09
ETSI ES 203 203 1V1.3.1
119-1 19-2) (2016-09) )
ETSI STAND
ARD
ETSI STA
NDA RD
ETSI STANDARD
Methods fo
ETSI STANDARD r Testi
The o st De ng and Specification
M
Part 4: Stru ethTe ds for sc
Tesription Lang (MTS);
ctu
Methods Tre
edTTe
hfor Testing tiand
ng an uage
Specification (MTS);
es st
t DOb
esjec tive dSpSpecific(TDL );
The Test Description crip ec(MT
Language
tio
cificat
n ion S);
ificatiaton
ion(E(M
(TDL);
Pand
ar
Testing Syntax Spe L an xte
Tns
S);ion)
Metho
Part forAbstract
ds 1:
tion Lanandguaphge
ical(TDgL);
t 2: Gra Associated uageSemantics
(TDL);
The Tes t Des crip S yn tax
han ge For ma t
Part 3: Exc
45
Why TDL?
• Model-based Testing
• modelling features to describe and generate abstract tests
• Test automation ETSI ES 20
ETSI ES 3 119-4 V1.2.1 (2016-09
ETSI ES 203 203 1V1.3.1
119-1 )
19-2) (2016-09)
ES 20 3 119-3 V1.2.1 (2016-09 V1.2.1 (2
ETSI
ETSI STAND
ARD
ETSI STA
Methods fo
ETSI STANDARD r Testi
The o st De ng and Specification
M
Part 4: Stru ethTe ds for sc
Tesription Lang (MTS);
ctu
Methods Tre
edTTe
hfor Testing tiand
ng an uage
Specification (MTS);
es st
t DOb
esjec tive dSpSpecific(TDL );
The Test Description crip ec(MT
Language
tio
cificat
n ion S);
ificatiaton
ion(E(M
(TDL);
Pand
ar
Testing Syntax Spe L an xte
Tns
S);ion)
Metho
Part forAbstract
ds 1:
tion Lanandguaphge
ical(TDgL);
t 2: Gra Associated uageSemantics
(TDL);
Tes t Des crip S yn ta
• Agile Development
The ge For ma t x
Part 3: Exc han
46
Why TDL?
• For users
• separate test specification from test implementation
• amenable to tool-supported verification ETSI ES 20
ETSI ES 3 119-4 V1.2.1 (2016-09
ETSI ES 203 203 1V1.3.1
119-1 19-2) (2016-09) )
• adjustable to stakeholders
ES 20 3 119-3 V1.2.1 (2016-09 V1.2.1 (2
ETSI 016-09
ETSI STAND
ARD
Methods fo
ETSI STANDARD r Testi
The o st De ng and Specification
M
Part 4: Stru ethTe ds for sc
Tesription Lang (MTS);
ctu
Methods Tre
edTTe
hfor Testing tiand
ng an uage
Specification (MTS);
es st
t DOb
esjec tive dSpSpecific(TDL );
The Test Description crip ec(MT
Language
tio
cificat
n ion S);
ificatiaton
ion(E(M
(TDL);
Pand
ar
Testing Syntax Spe L an xte
Tns
S);ion)
forAbstract
ds 1: (TDgL);
t 2: Gra Associated uageSemantics
ETSI ES 20
ETSI ES 3 119-4 V1.2.1 (2016-09
ETSI ES 203 203 1V1.3.1
119-1 19-2) (2016-09) )
ETSI STAND
ARD
ETSI STA
NDA RD
ETSI STANDARD
Methods fo
ETSI STANDARD r Testi
The o st De ng and Specification
M
Part 4: Stru ethTe ds for sc
Tesription Lang (MTS);
ctu
Methods Tre
edTTe
hfor Testing tiand
ng an uage
Specification (MTS);
es st
t DOb
esjec tive dSpSpecific(TDL );
The Test Description crip ec(MT
Language
tio
cificat
n ion S);
ificatiaton
ion(E(M
(TDL);
Pand
ar
Testing Syntax Spe L an xte
Tns
S);ion)
Metho
Part forAbstract
ds 1:
tion Lanandguaphge
ical(TDgL);
t 2: Gra Associated uageSemantics
(TDL);
The Tes t Des crip S yn tax
han ge For ma t
Part 3: Exc
• Proof by implementation
ETSI ES 20
ETSI ES 3 119-4 V1.2.1 (2016-09
ETSI ES 203 203 1V1.3.1
119-1 19-2) (2016-09) )
ETSI STAND
ARD
ETSI STA
NDA RD
ETSI STANDARD
Methods fo
ETSI STANDARD r Testi
The o st De ng and Specification
M
Part 4: Stru ethTe ds for sc
Tesription Lang (MTS);
ctu
Methods Tre
edTTe
hfor Testing tiand
ng an uage
Specification (MTS);
es st
t DOb
esjec tive dSpSpecific(TDL );
The Test Description crip ec(MT
Language
tio
cificat
n ion S);
ificatiaton
ion(E(M
(TDL);
Pand
ar
Testing Syntax Spe L an xte
Tns
S);ion)
Metho
Part forAbstract
ds 1:
tion Lanandguaphge
ical(TDgL);
t 2: Gra Associated uageSemantics
(TDL);
The Tes t Des crip S yn tax
han ge For ma t
Part 3: Exc
• tool-specific implementations
ES 20 3 119-3 V1.2.1 (2016-09 V1.2.1 (2
ETSI 016-09
ETSI STAND
ARD
Methods fo
ETSI STANDARD r Testi
The o st De ng and Specification
M
Part 4: Stru ethTe ds for sc
Tesription Lang (MTS);
ctu
Methods Tre
edTTe
hfor Testing tiand
ng an uage
Specification (MTS);
es st
t DOb
esjec tive dSpSpecific(TDL );
The Test Description crip ec(MT
Language
tio
cificat
n ion S);
ificatiaton
ion(E(M
(TDL);
Pand
ar
Testing Syntax Spe L an xte
Tns
S);ion)
forAbstract
ds 1: (TDgL);
t 2: Gra Associated uageSemantics
50
A more comprehensive example…
Structured Data Instance Structured Data Type
Request:Message Message
sessionId:= sessionId:Integer
content:=Greeting001 content:String
ETSI ES 20
ETSI ES 3 119-4 V1.2.1 (2016-09
ETSI ES 203 203 1V1.3.1
119-1 19-2) (2016-09) )
Node
ETSI STAND
ARD
Data Variable
ETSI STA
ETSI STANDARD
NDA RD
Test Configuration
ClientAndServer
!
TESTER SUT
Server:Node socket socket Client:Node
51
TESTER SUT
Server:Node Client:Node
socket socket
Request (sessionId := 1)
• Atomic
alternative
Accept (sessionId := 1)
PASS
• Combined ETSI ES 20
ETSI ES 3 119-4 V1.2.1 (2016-09
ETSI ES 203 203 1V1.3.1
119-1 19-2) (2016-09) )
ETSI STAND
ARD
ETSI STA
FAIL
NDA RD
ETSI STANDARD
Methods fo
ETSI STANDARD r Testi
The o st De ng and Specification
M
Part 4: Stru ethTe ds for sc
Tesription Lang (MTS);
ctu
Methods Tre
edTTe
hfor Testing tiand
ng an uage
Specification (MTS);
es st
t DOb
esjec tive dSpSpecific(TDL );
The Test Description crip ec(MT
Language
tio
cificat
n ion S);
ificatiaton
ion(E(M
(TDL);
Pand
ar
Testing Syntax Spe L an xte
Tns
S);ion)
Metho
Part forAbstract
ds 1:
tion Lanandguaphge
ical(TDgL);
t 2: Gra Associated uageSemantics
(TDL);
The Tes t Des crip S yn tax
ge For ma t
• Exceptional
Part 3: Exc han
interrupt Tick
Tock
!
default Reject
INCONCLUSIVE
52
TESTER SUT
Server:Node Client:Node
socket socket
Request (sessionId := 1)
alternative
Accept (sessionId := 1)
PASS
ETSI ES 20
ETSI ES 3 119-4 V1.2.1 (2016-09
ETSI ES 203 203 1V1.3.1
119-1 19-2) (2016-09) )
ETSI STAND
ARD
ETSI STA
FAIL
NDA RD
ETSI STANDARD
Methods fo
ETSI STANDARD r Testi
The o st De ng and Specification
M
Part 4: Stru ethTe ds for sc
Tesription Lang (MTS);
ctu
Methods Tre
edTTe
hfor Testing tiand
ng an uage
Specification (MTS);
es st
t DOb
esjec tive dSpSpecific(TDL );
The Test Description crip ec(MT
Language
tio
cificat
n ion S);
ificatiaton
ion(E(M
(TDL);
Pand
ar
Testing Syntax Spe L an xte
Tns
S);ion)
Metho
Part forAbstract
ds 1:
tion Lanandguaphge
ical(TDgL);
t 2: Gra Associated uageSemantics
(TDL);
The Tes t Des crip S yn tax
han ge For ma t
Part 3: Exc
interrupt Tick
Tock
!
default Reject
INCONCLUSIVE
53
TESTER SUT
Server:Node Client:Node
socket socket
Request (sessionId := 1)
alternative
Accept (sessionId := 1)
PASS
ETSI ES 20
ETSI ES 3 119-4 V1.2.1 (2016-09
ETSI ES 203 203 1V1.3.1
119-1 19-2) (2016-09) )
DEMO FAIL
ETSI STAND
ETSI STA
ETSI STANDARD
ARD
NDA
Methods fo
RD
interrupt Tick
Tock
!
default Reject
INCONCLUSIVE
54
ETSI ES 20
ETSI ES 3 119-4 V1.2.1 (2016-09
ETSI ES 203 203 1V1.3.1
119-1 19-2) (2016-09) )
ETSI STAND
ARD
ETSI STA
NDA RD
ETSI STANDARD
Methods fo
ETSI STANDARD r Testi
The o st De ng and Specification
M
Part 4: Stru ethTe ds for sc
Tesription Lang (MTS);
ctu
Methods Tre
edTTe
hfor Testing tiand
ng an uage
Specification (MTS);
es st
t DOb
esjec tive dSpSpecific(TDL );
The Test Description crip ec(MT
Language
tio
cificat
n ion S);
ificatiaton
ion(E(M
(TDL);
Pand
ar
Testing Syntax Spe L an xte
Tns
S);ion)
Metho
Part forAbstract
ds 1:
tion Lanandguaphge
ical(TDgL);
t 2: Gra Associated uageSemantics
(TDL);
The Tes t Des crip S yn tax
han ge For ma t
Part 3: Exc
55
Where does TDL fit in?
Front-end tool Back-end tool Artefact (output) (Partially) Covered in reference implementation
TDL Model
Textual Editor
UML-based Graph. Report TDL Test Generator
Analyser
(incl. ES 203119-4) Editor
ETSI ES 20
ETSI ES 3 119-4 V1.2.1 (2016-09
ETSI ES 203 203 11
119-1 V1.3.1 (2016-09)
9-9)2
)
ETSI STANDAR
D
ETSI STA
NDARD
ETSI STANDARD
Methods for
ETSI STANDARD Test
The Test Descing and Specification
Me
Part 4: Stru tho ds for Tesription Lang (MTS);
ctur
Methods for
Thed Testing ting and uage (TDL
e Test
Tes Objeand Specification
Specifica
(MTS);
);
t De scrctive
The Test Description Spec
Language
iption ;tion
ifica(TDL);
TestingPa
forAbstract and Specif
rt 2: Lan(MTS)
ication tion
guageSemantics (MT
(Ext ensi
S); on)
ds 1:
Part Syntax Gra
and Associated
Metho ph ica(TDL);
age (TDL);
Graph. Viewer & Test Code C-code,
56
Where does TDL fit in?
Keyword-Driven Testing
MBT ETSI ES 20
Representation
ETSI ES 3 119-4 V1.2.1 (2016-09
ETSI ES 203 203 11
119-1 V1.3.1 (2016-09)
9-9)2
)
Generation
ETSI ES 203 119-3 V1.2.1 (2016-0 V1.2.1 (2016-09)
ETSI STANDAR
D
ETSI STA
NDARD
ETSI STANDARD
Methods for
ETSI STANDARD
Visualisation
Test
The Test Descing and Specification
Me
Part 4: Stru tho ds for Tesription Lang (MTS);
ctur
Methods for
Thed Testing ting and uage (TDL
e Test
Tes Objeand Specification
Specifica
(MTS);
);
t De scrctive
The Test Description Spec
Language
iption ;tion
ifica(TDL);
TestingPa
forAbstract and Specif
rt 2: Lan(MTS)
ication tion
guageSemantics (MT
(Ext ensi
S); on)
ds 1:
Part Syntax Gra
and Associated
Metho Langu ph ica(TDL);
age l
(TDL);
The Test Descriptionnge Format Syntax
Part 3: Excha
Standards !
Documentation ITS
Interoperability Conformance
57
Where does TDL fit in?
ETSI ES 20
HTML D
OC
ETSI ES 3 119-4 V1.2.1 (2016-09
ETSI ES 203 203 11
119-1 V1.3.1 (2016-09)
9-9)2
)
ETSI STANDAR
D
ETSI STA
NDARD
ETSI STANDARD
Methods for
PDF
ETSI STANDARD Test
The Test Descing and Specification
Me
Part 4: Stru tho ds for Tesription Lang (MTS);
ctur
Methods for
Thed Testing ting and uage (TDL
e Test
Tes Objeand Specification
Specifica
(MTS);
);
t De scrctive
The Test Description Spec
Language
iption ;tion
ifica(TDL);
TestingPa
forAbstract and Specif
rt 2: Lan(MTS)
ication tion
guageSemantics (MT
(Ext ensi
S); on)
ds 1:
Part Syntax Gra
and Associated
Metho Langu ph ica(TDL);
age l
(TDL);
The Test Descriptionnge Format Syntax
Part 3: Excha
Documentation
58
Where does TDL fit in?
ETSI ES 20
HTML D
OC
ETSI ES 3 119-4 V1.2.1 (2016-09
ETSI ES 203 203 11
119-1 V1.3.1 (2016-09)
9-9)2
)
ETSI STANDAR
D
ETSI STA
NDARD
ETSI STANDARD
Methods for
PDF
ETSI STANDARD Test
The Test Descing and Specification
Me
Part 4: Stru tho ds for Tesription Lang (MTS);
ctur
Methods for
Thed Testing ting and uage (TDL
e Test
Tes Objeand Specification
Specifica
(MTS);
);
t De scrctive
The Test Description Spec
Language
iption ;tion
ifica(TDL);
TestingPa
forAbstract and Specif
rt 2: Lan(MTS)
ication tion
guageSemantics (MT
(Ext ensi
S); on)
ds 1:
Part Syntax Gra
and Associated
Metho Langu ph ica(TDL);
age l
(TDL);
The Test Descriptionnge Format Syntax
Part 3: Excha
59
HTMLDOC
ETSI ES 203
ETSI ES 119-4 V1.2.1 (2016-09)
ETSI ES 203 203 11
119-1 9-2) (2016-09)
V1.3.1
3 V1.2.1 (2016-09 V1.2.1 (201
ETSI ES 203 119- 6-09)
ETSI STAND
ARD
ETSI STAN
DARD
ETSI STANDARD
Methods for
ETSI STANDARD Testin
PDF
The Test Descr g and Specification
Met
Part 4: Struc hod s for Tesiption Langu (MTS);
Methods tured
The
forTes
Testing ting
andand age
Specification (MTS);
Test Objec
t Des Specific(TDL) ;
criptive
The Test Description Speci
Language
tionation(MT S);
atio
ficatio
(TDL);
n n(Exten
TestingPart Specific
and2: Langua (MTS);
sion)
Part 1:
Methods for
Abstract Syntax Gra
andphic (TDL); geSemantics
Associated
eal (TDL);
ion Languag Syntax
The Test Descript e Format
Part 3: Exchang
• Context
• Conformance and interoperability test descriptions
• Standardised test specifications for various ETSI
technologies
• Typically protocol oriented, used in certification schemes
• End-to-end interoperability of systems involving different
equipment
60
HTMLDOC
ETSI ES 203
ETSI ES 119-4 V1.2.1 (2016-09)
ETSI ES 203 203 11
119-1 9-2) (2016-09)
V1.3.1
3 V1.2.1 (2016-09 V1.2.1 (201
ETSI ES 203 119- 6-09)
ETSI STAND
ARD
ETSI STAN
DARD
ETSI STANDARD
Methods for
ETSI STANDARD Testin
PDF
The Test Descr g and Specification
Met
Part 4: Struc hod s for Tesiption Langu (MTS);
Methods tured
The
forTes
Testing ting
andand age
Specification (MTS);
Test Objec
t Des Specific(TDL) ;
criptive
The Test Description Speci
Language
tionation(MT S);
atio
ficatio
(TDL);
n n(Exten
TestingPart Specific
and2: Langua (MTS);
sion)
Part 1:
Methods for
Abstract Syntax Gra
andphic (TDL); geSemantics
Associated
eal (TDL);
ion Languag Syntax
The Test Descript e Format
Part 3: Exchang
• Stakeholders
• High-level discussions at large meetings (80-100 participants)
• ETSI Technical Committees, 3GPP, other standards organisations,
CTI Plugtests team and participants, industrial fora and equipment
vendors
• all need to be familiar with and fluent in the syntax being used
• different notions of “good” test
• Better comprehension among developers with little or no
testing expertise
• bridge the gap between management, core specifications experts,
testing experts
61
HTMLDOC
ETSI ES 203
ETSI ES 119-4 V1.2.1 (2016-09)
ETSI ES 203 203 11
119-1 9-2) (2016-09)
V1.3.1
3 V1.2.1 (2016-09 V1.2.1 (201
ETSI ES 203 119- 6-09)
ETSI STAND
ARD
ETSI STAN
DARD
ETSI STANDARD
Methods for
ETSI STANDARD Testin
PDF
The Test Descr g and Specification
Met
Part 4: Struc hod s for Tesiption Langu (MTS);
Methods tured
The
forTes
Testing ting
andand age
Specification (MTS);
Test Objec
t Des Specific(TDL) ;
criptive
The Test Description Speci
Language
tionation(MT S);
atio
ficatio
(TDL);
n n(Exten
TestingPart Specific
and2: Langua (MTS);
sion)
Part 1:
Methods for
Abstract Syntax Gra
andphic (TDL); geSemantics
Associated
eal (TDL);
ion Languag Syntax
The Test Descript e Format
Part 3: Exchang
• Challenges
• Informal (Word, Excel) or semi-formal (TPLan) approaches
• considered inadequate, no test descriptions as a consequence
• no single consistent approach, varying level of quality, detail,
difficult maintenance
• certification requires completeness and accuracy, test descriptions
are the design stage before developing TTCN-3 test cases
• Acceptance for more rigorous approaches among Technical
Committees
• applicable to a wide range of technologies (protocols, services,
applications)
62
HTMLDOC
ETSI ES 203
TTCN-3
ETSI ES 119-4 V1.2.1 (2016-09)
ETSI ES 203 203 11
119-1 9-2) (2016-09)
V1.3.1
3 V1.2.1 (2016-09 V1.2.1 (201
ETSI ES 203 119- 6-09)
ETSI STAND
ARD
ETSI STAN
DARD
ETSI STANDARD
Methods for
ETSI STANDARD Testin
PDF
The Test Descr g and Specification
Met
Part 4: Struc hod s for Tesiption Langu (MTS);
Methods tured
The
forTes
Testing ting
andand age
Specification (MTS);
Test Objec
t Des Specific(TDL) ;
criptive
The Test Description Speci
Language
tionation(MT S);
atio
ficatio
(TDL);
n n(Exten
TestingPart Specific
and2: Langua (MTS);
sion)
Part 1:for
Methods Abstract Syntax Gra
andphic
ion Languag (TDL); geSemantics
Associated
eal (TDL);
The Test Descript Syntax
e Format
Part 3: Exchang
• TDL
• Standardised approach improves consistency
• Tools offer faster development, higher quality, easier
maintenance
• Direct link to TTCN-3
• Initial run within ITS, expand to other Technical
Committees
63
HTMLDOC
ETSI ES 203
ETSI ES 119-4 V1.2.1 (2016-09)
ETSI ES 203 203 11
119-1 9-2) (2016-09)
V1.3.1
3 V1.2.1 (2016-09 V1.2.1 (201
ETSI ES 203 119- 6-09)
ETSI STAND
ARD
ETSI STAN
DARD
ETSI STANDARD
Methods for
ETSI STANDARD Testin
PDF
The Test Descr g and Specification
Met
Part 4: Struc hod s for Tesiption Langu (MTS);
Methods tured
The
forTes
Testing ting
andand age
Specification (MTS);
Test Objec
t Des Specific(TDL) ;
criptive
The Test Description Speci
Language
tionation(MT S);
atio
ficatio
(TDL);
n n(Exten
TestingPart Specific
and2: Langua (MTS);
sion)
Part 1:
Methods for
Abstract Syntax Gra
andphic (TDL); geSemantics
Associated
eal (TDL);
ion Languag Syntax
The Test Descript e Format
Part 3: Exchang
(1)
with { UE in E-UTRA RRC_CONNECTED state }
ensure that {
when { UE receives a 5 bit SN configured RLC PDU with Length Indicator value larger than RLC PDU
size }
then { UE discards the RLC PDU }
}
(1)
with { UE in E-UTRA RRC_CONNECTED state }
ensure that {
when { UE receives a 5 bit SN configured RLC PDU with Length Indicator value larger than RLC PDU
size }
then { UE discards the RLC PDU }
}
66
114 ETSI TS 186 011-2 V3.1.1 (2011-06)
From ETSI TS 186 011-2 V3.1.1 (2011-06): 114 ETSI TS 186 011-2 V3.1.1 (2011-06)
Conformance Check
4.5.1.1
Criteria: SIP messages
1 longer than 1 500
TP_IMS_4002_01 bytes
in CFW step 4 (MESSAGE)
ensure that {
Interoperability
when { UE_A sends a Test Description
MESSAGE to UE_B
Identifier: TD_IMS_MESS_0001 containing a Message_Body greater than 1 300 bytes }
Summary: IMS networkthen
shall{ support
IMS_B receives the MESSAGE
SIP messages greater than 1 500 bytes
Configuration: CF_INT_CALL containing the Message_Body greater than 1 300 bytes }
SUT IMS_B }
References Test Purpose Specification Reference
TP_IMS_4002_1 115 TS 124ETSI
229 TS
[1],186 011-24.2A
clause V3.1.1
¶1(2011-06)
Use Case ref.: UC_05_I
Step Direction Message Comment
Pre-test
U U I •I HSSI of IMS_A
I U of U
and IMS B is configured according to table 1
s E
conditions: M •B B M E s
UE_A and UE_B have IP bearers established to their respective IMS networks as
e A S C C S
per clause 4.2.1B e
r A F F B r
A •A UE_A B and IMS_A configured
B to use TCP for transport
1 • UE_A is registered in IMS_A using any user identity
User A sends an instant message to user B
• UE_B is registered user of IMS_B using any user identity
2 • MESSAGE request and response
MESSAGEhas toUE_A
be supported at II-NNI
sends MESSAGE to (TS 129 165 [16]
IMS_A
see tables 6.1 and 6.3)
3 MESSAGE IMS_A sends MESSAGE to IBCF_A
Test Sequence: Step
4 1 User A sends message MESSAGE
to User BIBCF_A
with at sends
least 1MESSAGE to IBCF_B
500 characters
2 Verify that user B receives message from user A
5 MESSAGE IBCF_B sends MESSAGE to IMS_B with via
Conformance Check header indicating TCP
6 Criteria: 1 TP_IMS_4002_01 inMESSAGE
CFW step 4 IMS_B sends MESSAGE to UE_B
(MESSAGE)
ensure that {
7 when { UE_A sends a MESSAGE User B is informed about the instant message
to UE_B
containing a Message_Body greater than 1 300 bytes }
8 200 OK
then { IMS_B receives UE_B sends 200 OK to IMS_B
the MESSAGE
containing the Message_Body greater than 1 300 bytes }
9 } 200 OK IMS_B sends 200 OK to IBCF_B
10 200 OK
115 IBCF_B ETSI
sendsTS
200 OK011-2
186 to IBCF_A
V3.1.1 (2011-06)
69
HTMLDOC
ETSI ES 203
ETSI ES 119-4 V1.2.1 (2016-09)
ETSI ES 203 203 11
119-1 9-2) (2016-09)
V1.3.1
3 V1.2.1 (2016-09 V1.2.1 (201
ETSI ES 203 119- 6-09)
ETSI STAND
ARD
ETSI STAN
DARD
ETSI STANDARD
Methods for
ETSI STANDARD Testin
PDF
The Test Descr g and Specification
Met
Part 4: Struc hod s for Tesiption Langu (MTS);
Methods tured
The
forTes
Testing ting
andand age
Specification (MTS);
Test Objec
t Des Specific(TDL) ;
criptive
The Test Description Speci
Language
tionation(MT S);
atio
ficatio
(TDL);
n n(Exten
TestingPart Specific
and2: Langua (MTS);
sion)
Part 1:
Methods for
Abstract Syntax Gra
andphic (TDL); geSemantics
Associated
eal (TDL);
ion Languag Syntax
The Test Descript e Format
Part 3: Exchang
TP Id TP/CAM/INA/DOP/BV/02
Test objective Checks that CAM message includes DoorOpen information 30s after closed
Reference TS 102 637-2 [1], clauses 7.1 and 7.2
PICS Selection PICS_PUBTRANSVEH
Initial conditions
with {
the IUT being in the "initial state" and
the IUT having sent a valid CAM message
containing DoorOpen TaggedValue
}
Expected behaviour
ensure that {
when {
the door is closed
}
then {
the IUT sends CAM messages
containing DoorOpen TaggedValue during the 30s following the door closing event
}
}
TP Id TP/CAM/INA/DOP/BV/03
Test objective Checks that CAM message includes DoorOpen informationwhen supported
Reference TS 102 637-2 [1], clauses 7.1 and 7.2
PICS Selection PICS_PUBTRANSVEH OR PICS_DOOROPEN
Initial conditions
with {
the IUT being in the "initial state"
}
Expected behaviour
70 ensure that {
when {
ETSI ES 203
ETSI ES 119-4 V1.2.1 (2016-09)
ETSI ES 203 203 11
119-1 9-2) (2016-09)
V1.3.1
3 V1.2.1 (2016-09 V1.2.1 (201
ETSI ES 203 119- 6-09)
ETSI STAND
ARD
ETSI STAN
DARD
ETSI STANDARD
Methods for
ETSI STANDARD Testin
The Test Descr g and Specification
Met
Part 4: Struc hod s for Tesiption Langu (MTS);
Methods tured
The
forTes
Testing ting
andand age
Specification (MTS);
Test Objec
t Des Specific(TDL) ;
criptive
The Test Description Speci
Language
tionation(MT S);
atio
ficatio
(TDL);
n n(Exten
TestingPart Specific
and2: Langua (MTS);
sion)
Part 1:
Methods for
Abstract Syntax Gra
andphic (TDL); geSemantics
Associated
eal (TDL);
ion Languag Syntax
The Test Descript e Format
Part 3: Exchang
Keyword-Driven Testing
71
ETSI ES 203
ET ES 119-4 V1.2.1 (2016-09)
ETSI ESSI203 203 11
119-1 V1.3.1 (2016-09)
9-2) V1.2.1
TTCN-3
3 V1.2.1 (2016-09
ETSI ES 203 119- (2016-09
)
ETSI STAND
ARD
ETSI STA
NDARD
ETSI STANDARD
Methods for
ETSI STANDARD Testi
The Test Descng and Specification
Met
Part 4: Struc hod s for Tesription Lang (MTS);
Methodstured
for
The Testing ting
andand uage
Specification (MTS);
Test
Tes Objec
t Des Specific(TDL);
criptive
The Test Description tionSpec
Language TS);
(TDL);
ificat
ation(M atio (MT
TestingPar
forAbstract and Specific
t 2: Langua ion n(Exte nsion
S); )
Parts 1:
Method Syntax Gra
and (TDL); geSemantics
Associated
ge
phi (TDL);
tion Langua cal Syntax
The Test Descrip ge Format
Part 3: Exchan
• Context
• TDL in MBT: Keyword driven UI testing
• Create behavioural model of the SUT using symbolic action
descriptions
• define keywords once
• map abstract keyword definitions to keyword implementations in
execution language
• Generate abstract test sequences by means of MBT
• Convert abstract test sequences to a test execution
language
72
ETSI ES 203
ET ES 119-4 V1.2.1 (2016-09)
ETSI ESSI203 203 11
119-1 V1.3.1 (2016-09)
9-2) V1.2.1
TTCN-3
3 V1.2.1 (2016-09
ETSI ES 203 119- (2016-09
)
ETSI STAND
ARD
ETSI STA
NDARD
ETSI STANDARD
Methods for
ETSI STANDARD Testi
The Test Descng and Specification
Met
Part 4: Struc hod s for Tesription Lang (MTS);
Methodstured
for
The Testing ting
andand uage
Specification (MTS);
Test
Tes Objec
t Des Specific(TDL);
criptive
The Test Description tionSpec
Language TS);
(TDL);
ificat
ation(M atio (MT
TestingPar
forAbstract and Specific
t 2: Langua ion n(Exte nsion
S); )
Parts 1:
Method Syntax Gra
and (TDL); geSemantics
Associated
ge
phi (TDL);
tion Langua cal Syntax
The Test Descrip ge Format
Part 3: Exchan
• Challenges
• Generated test sequences
• proprietary format - not accessible, tool-specific integrations to
requirements management, test planning
• straight to executable code - loss of meta-data, difficult
parameterisation
• Mapping between abstract (symbolic) and real test system
interface
• implicit - error-prone
• implemented in test execution language - additional overhead,
language limitations
73
ETSI ES 203
ET ES 119-4 V1.2.1 (2016-09)
ETSI ESSI203 203 11
119-1 V1.3.1 (2016-09)
9-2) V1.2.1
TTCN-3
3 V1.2.1 (2016-09
ETSI ES 203 119- (2016-09
)
ETSI STAND
ARD
ETSI STA
NDARD
ETSI STANDARD
Methods for
ETSI STANDARD Testi
The Test Descng and Specification
Met
Part 4: Struc hod s for Tesription Lang (MTS);
Methodstured
for
The Testing ting
andand uage
Specification (MTS);
Test
Tes Objec
t Des Specific(TDL);
criptive
The Test Description tionSpec
Language TS);
(TDL);
ificat
ation(M atio (MT
TestingPar
forAbstract and Specific
t 2: Langua ion n(Exte nsion
S); )
Parts 1:
Method Syntax Gra
and (TDL); geSemantics
Associated
ge
phi (TDL);
tion Langua cal Syntax
The Test Descrip ge Format
Part 3: Exchan
• TDL
• Interoperability with requirements management by
explicit test objectives
• Parameterisation of test descriptions and symbolic data
representations
• Explicit data mapping to underlying data system of
execution language
• Advantages over alternatives
• Less ambiguity, testing specific (e.g. break, stop, default
concepts)
74
ETSI ES 203
ET ES 119-4 V1.2.1 (2016-09)
ETSI ESSI203 203 11
119-1 V1.3.1 (2016-09)
9-2) V1.2.1
3 V1.2.1 (2016-09
ETSI ES 203 119- (2016-09
)
ETSI STAND
ARD
ETSI STA
NDARD
ETSI STANDARD
Methods for
ETSI STANDARD Testi
The Test Descng and Specification
Met
Part 4: Struc hod s for Tesription Lang (MTS);
Methodstured
for
The Testing ting
andand uage
Specification (MTS);
Test
Tes Objec
t Des Specific(TDL);
criptive
The Test Description tionSpec
Language TS);
(TDL);
ificat
ation(M atio (MT
TestingPar
forAbstract and Specific
t 2: Langua ion n(Exte nsion
S); )
Parts 1:
Method Syntax Gra
and (TDL); geSemantics
Associated
ge
phi (TDL);
tion Langua cal Syntax
The Test Descrip ge Format
Part 3: Exchan
Representation
Generation
Visualisation
75
HTMLDOC
ETSI ES 203
ET ES 119-4 V1.2.1 (2016-09)
ETSI ESSI203 203 11
119-1
TTCN-3
V1.3.1 (2016-09)
9-2) V1.2.1
3 V1.2.1 (2016-09
ETSI ES 203 119- (2016-09
)
ETSI STAND
ARD
ETSI STA
NDARD
ETSI STANDARD
PDF
Methods for
ETSI STANDARD Testi
The Test Descng and Specification
Met
Part 4: Struc hod s for Tesription Lang (MTS);
Methodstured
for
The Testing ting
andand uage
Specification (MTS);
Test
Tes Objec
t Des Specific(TDL);
criptive
The Test Description tionSpec
Language TS);
(TDL);
ificat
ation(M atio (MT
TestingPar
forAbstract and Specific
t 2: Langua ion n(Exte nsion
S); )
Parts 1:
Method Syntax Gra
and (TDL); geSemantics
Associated
ge
phi (TDL);
tion Langua cal Syntax
The Test Descrip ge Format
Part 3: Exchan
• Context
• Test automation tools for performance and load tests
• Challenges
• Textual test specifications with sequence diagram-like
examples (or using a different graphical notation)
• Manual derivation of TTCN-3 code and configuration
settings
• Too wide a gap between input and output!
76
HTMLDOC
ETSI ES 203
ET ES 119-4 V1.2.1 (2016-09)
ETSI ESSI203 203 11
119-1
TTCN-3
V1.3.1 (2016-09)
9-2) V1.2.1
3 V1.2.1 (2016-09
ETSI ES 203 119- (2016-09
)
ETSI STAND
ARD
ETSI STA
NDARD
ETSI STANDARD
PDF
Methods for
ETSI STANDARD Testi
The Test Descng and Specification
Met
Part 4: Struc hod s for Tesription Lang (MTS);
Methodstured
for
The Testing ting
andand uage
Specification (MTS);
Test
Tes Objec
t Des Specific(TDL);
criptive
The Test Description tionSpec
Language TS);
(TDL);
ificat
ation(M atio (MT
TestingPar
forAbstract and Specific
t 2: Langua ion n(Exte nsion
S); )
Parts 1:
Method Syntax Gra
and (TDL); geSemantics
Associated
ge
phi (TDL);
tion Langua cal Syntax
The Test Descrip ge Format
Part 3: Exchan
• TDL
• Raises the abstraction level of the test description
• multiple levels of test specification (from system to
implementation), iterative and agile development
• Concentrate on the problems themselves rather than
programming details
• Application
• Visualisation of test case behaviour
• Automatic generation of TTCN-3 code from TDL test
descriptions
77
ETSI ES 203
ET ES 119-4 V1.2.1 (2016-09)
ETSI ESSI203 203 11
119-1 V1.3.1 (2016-09)
9-2) V1.2.1
3 V1.2.1 (2016-09
ETSI ES 203 119- (2016-09
)
ETSI STAND
ARD
ETSI STA
NDARD
ETSI STANDARD
Methods for
ETSI STANDARD Testi
The Test Descng and Specification
Met
Part 4: Struc hod s for Tesription Lang (MTS);
Methodstured
for
The Testing ting
andand uage
Specification (MTS);
Test
Tes Objec
t Des Specific(TDL);
criptive
The Test Description tionSpec
Language TS);
(TDL);
ificat
ation(M atio (MT
TestingPar
forAbstract and Specific
t 2: Langua ion n(Exte nsion
S); )
Parts 1:
Method Syntax Gra
and (TDL); geSemantics
Associated
ge
phi (TDL);
tion Langua cal Syntax
The Test Descrip ge Format
Part 3: Exchan
MBT Representation
Generation
Standards
78
Where does TDL fit in?
ETSI ES 20
ETSI ES 3 119-4 V1.2.1 (2016-09
203 11
TTCN-3
ETSI ES 203 119-1 V1.3.1
9-9)2(2016-09)
)
ETSI STANDAR
D
ETSI STA
NDARD
ETSI STANDARD
Methods for
ETSI STANDARD Test
The Test Descing and Specification
Me
Part 4: Stru tho ds for Tesription Lang (MTS);
ctur
Methods Thed
for Testing ting and uage (TDL
e Test
Tes Objeand Specification
Specifica (MTS);
);
t De scrctive
iption Spec ;tion
ifica(TDL);
The Test Description
TestingPa
forAbstract and Specif
rt 2: Lan(MTS)
Language
ication tion
guage (Ext (MT
ensi
S); on)
ds 1: Gra
Part
Metho
Descr
Syntax
iption Languandph ica(TDL);
Associated
age l Syntax
(TDL);
Semantics
The Test Format
Part 3: Exchange
79
TTCN- Clas
ETSI ES 203
ETSI ES 119-4 V1.2.1 (2016-09)
ETSI ES 203 203 11
119-1 V1.3.1 (2016-09)
9-2) V1.2.1
3 V1.2.1 (2016-09
ETSI ES 203 119- (2016-09
)
sif
ETSI STAND
ARD
ETSI STA
NDARD
3 ied
ETSI STANDARD
Methods for
ETSI STANDARD Testi
The Test Descng and Specification
Met
Part 4: Struc hod s for Tesription Lang (MTS);
Methodstured
Thefor Testing ting
andand uage
Specification (MTS);
Test
Tes Objec
t Des Specific(TDL);
The Test Descriptioncriptive Spec
Language
tion TS);
ificat
ation(M atio (MT
(TDL);
TestingPar
forAbstract and Specific
t 2: Langua ion n(Exte nsion
S); )
Parts 1:
Method Syntax Gra
and (TDL); geSemantics
Associated
geal
phic (TDL);
tion Langua Syntax
The Test Descrip Format
Part 3: Exchange
• Context
• Test systems for cockpit systems and avionics solutions
• Alternative means for
• standards-based and model-based test generation and test
automation
• replace proprietary solutions
• Transformation from high-level requirements and scenarios
in UCM to TDL
• Transformation from TDL to TTCN-3
80
ETSI ES 203
ETSI ES 119-4 V1.2.1 (2016-09)
ETSI ES 203 203 11
119-1 V1.3.1 (2016-09)
TTCN-
9-2) V1.2.1
3 V1.2.1 (2016-09
ETSI ES 203 119- (2016-09
)
ETSI STAND
ARD
ETSI STA
NDARD
3
ETSI STANDARD
Methods for
ETSI STANDARD Testi
The Test Descng and Specification
Met
Part 4: Struc hod s for Tesription Lang (MTS);
Methodstured
Thefor Testing ting
andand uage
Specification (MTS);
Test
Tes Objec
t Des Specific(TDL);
The Test Descriptioncriptive Spec
Language
tion TS);
ificat
ation(M atio (MT
(TDL);
TestingPar
forAbstract and Specific
t 2: Langua ion n(Exte nsion
S); )
Parts 1:
Method Syntax Gra
and (TDL); geSemantics
Associated
geal
phic (TDL);
tion Langua Syntax
The Test Descrip Format
Part 3: Exchange
• Goals
• URN/UCM suitable starting point for modelling
requirements?
• TDL appropriate intermediate representation or even
starting point?
• TTCN-3 viable technology in the avionics industry?
• Stakeholders
• Research, industry, agencies
• Test engineers, test developers, test managers, analysts
and modellers
81
ETSI ES 203
ETSI ES 119-4 V1.2.1 (2016-09)
ETSI ES 203 203 11
119-1 V1.3.1 (2016-09)
TTCN-
9-2) V1.2.1
3 V1.2.1 (2016-09
ETSI ES 203 119- (2016-09
)
ETSI STAND
ARD
ETSI STA
NDARD
3
ETSI STANDARD
Methods for
ETSI STANDARD Testi
The Test Descng and Specification
Met
Part 4: Struc hod s for Tesription Lang (MTS);
Methodstured
Thefor Testing ting
andand uage
Specification (MTS);
Test
Tes Objec
t Des Specific(TDL);
The Test Descriptioncriptive Spec
Language
tion TS);
ificat
ation(M atio (MT
(TDL);
TestingPar
forAbstract and Specific
t 2: Langua ion n(Exte nsion
S); )
Parts 1:
Method Syntax Gra
and (TDL); geSemantics
Associated
geal
phic (TDL);
tion Langua Syntax
The Test Descrip Format
Part 3: Exchange
• Motivation
• Tree-like structure of tests
• TDL/TTCN-3 reflect this, existing transformations from UCM to
e.g. MSC/UML do not
• UCMs do not include much data information
• appropriate stage to add data for executable test cases (UCM/
TDL/TTCN-3/other)?
• Peculiarities of the domain
• support testing in an environment where an unknown number of
sensors can send alarms (over unreliable channels) and messages
in parallel
82
ETSI ES 203
ETSI ES 119-4 V1.2.1 (2016-09)
ETSI ES 203 203 11
119-1 V1.3.1 (2016-09)
TTCN-
9-2) V1.2.1
3 V1.2.1 (2016-09
ETSI ES 203 119- (2016-09
)
ETSI STAND
ARD
ETSI STA
NDARD
3
ETSI STANDARD
Methods for
ETSI STANDARD Testi
The Test Descng and Specification
Met
Part 4: Struc hod s for Tesription Lang (MTS);
Methodstured
Thefor Testing ting
andand uage
Specification (MTS);
Test
Tes Objec
t Des Specific(TDL);
The Test Descriptioncriptive Spec
Language
tion TS);
ificat
ation(M atio (MT
(TDL);
TestingPar
forAbstract and Specific
t 2: Langua ion n(Exte nsion
S); )
Parts 1:
Method Syntax Gra
and (TDL); geSemantics
Associated
geal
phic (TDL);
tion Langua Syntax
The Test Descrip Format
Part 3: Exchange
• TDL
• Close enough to UCM for test generation
• Close enough to TTCN-3 for generating executable test
cases and test configurations
• Prototype
• Part of jUCMNav (v6.0.0), developed at EECS (University of
Ottawa)
• Support for sequence and concurrent events (no
alternatives yet)
http://jucmnav.softwareengineering.ca/ucm/bin/view/ProjetSEG/ExportTdlUserGuide
83
ETSI ES 203
ETSI ES 119-4 V1.2.1 (2016-09)
ETSI ES 203 203 11
119-1 V1.3.1 (2016-09)
TTCN-
9-2) V1.2.1
3 V1.2.1 (2016-09
ETSI ES 203 119- (2016-09
)
ETSI STAND
ARD
ETSI STA
NDARD
3
ETSI STANDARD
Methods for
ETSI STANDARD Testi
The Test Descng and Specification
Met
Part 4: Struc hod s for Tesription Lang (MTS);
Methodstured
Thefor Testing ting
andand uage
Specification (MTS);
Test
Tes Objec
t Des Specific(TDL);
The Test Descriptioncriptive Spec
Language
tion TS);
ificat
ation(M atio (MT
(TDL);
TestingPar
forAbstract and Specific
t 2: Langua ion n(Exte nsion
S); )
Parts 1:
Method Syntax Gra
and (TDL); geSemantics
Associated
geal
phic (TDL);
tion Langua Syntax
The Test Descrip Format
Part 3: Exchange
http://jucmnav.softwareengineering.ca/ucm/bin/view/ProjetSEG/ExportTdlUserGuide
84
Concluding remarks
85
Summary
What is TDL?
Why TDL?
• Test Description Language
Final draft ETSI ES 203 119-1 V1.2.0 (2015-04)
Methods for
ETSI STANDARD Testin
The Test Desc g and Specification
Met
Part 4: Struc hod s for Tes
ription Lang (MTS);
Methodstured
The
for Testing ting
andand uage
Specification (MTS);
Test
Tes Objec
t Des Specific(TDL) ;
criptive
The Test Description Spec
Language TS);
atio
ificati
TestingPar
forAbstract and tion
Specific
t 2: Langua (TDL);
ation(M on n(Exte
(MTnsion
S); )
Parts 1: (TDL); geSemantics
Keyword-Driven Testing
The Test Descrip Syntax
Format
Part 3: Exchange
MBT Representation
• support for customers from different domains !
Generation
ES 203 119-3 V1.1.0 -2 V1.1.0 (2015-0
(2015-04)
Final draft ETSI 4)
ETSI STANDARD
Methods for
ETSI STANDARD Testing and
The Test Descriptio
Method Specificati
Part 4: Structured s for Testingn Language on (MTS);
MethodsTheforTest
Testing
Test andand
Objective Specifi (TDL);
Specification (MTS);
Descrip Specificati
cation
The Test Description
Part 2: Language
tion Langua (TDL);
on (Extension
(MTS);
Part 1: Abstract Syntax Graphi
and Associated ge (TDL); )
cal Syntax Semantics
(MTS);
and Specification
Methods for Testing Language (TDL);
The Test Description
3
Format
Part 3: Exchange
Standards !
X Visualisation
Documentation ITS
Interoperability Conformance
46
86 tdl.etsi.org
What would you want to see in TDL?
87 tdl.etsi.org
Testing and Modeling with TDL
Philip Makedonski, Gusztav Adamis, Martti Käärik,
Finn Kristoffersen, Andreas Ulrich, Xavier Zeitoun
tdl.etsi.org
© ETSI 2016. All rights reserved