Methods for Testing and Specifications (MTS);TTCN-3 Conformance Test Suite for use of XML schema;Test Suite Structure and Test Purposes (TSS&TP)

The purpose of the present document is to provide Test Suite Structure and Test Purposes (TSS&TP) for the
conformance test suite for using XML Schema with TTCN-3 as defined in ETSI ES 201 873-1 [5] in compliance with
the relevant guidance given in the proforma for TTCN-3 reference test suite ETSI TS 102 995 [4]. In the present
document only XML related features, specified in ETSI ES 201 873-9 [1] have been considered but not the core
language features (see ETSI ES 201 873-1 [5]), nor tool implementation (see ETSI ES 201 873-5 [i.1] and ETSI
ES 201 873-6 [i.2]), language mapping (see ETSI ES 201 873-7 [i.3] and ETSI ES 201 873-8 [i.4]) and language
extension (see e.g. ETSI ES 202 781 [i.5], ETSI ES 202 784 [i.6] and ETSI ES 202 785 [i.7]) aspects.

Metode za preskušanje in specifikacije (MTS) - TTCN-3-preskusni niz skladnosti za uporabo sheme XML - Zgradba preskusnega niza in namen preskusa (TSS&TP)

Namen tega dokumenta je podati zgradbo preskusnega niza (TSS) in namene preskusa (TP) za preskusni niz skladnosti za uporabo sheme XML s TTCN-3, kot je določeno v dokumentu ETSI ES 201 873-1 [5], v skladu z ustreznim vodilom iz proforme za TTCN-3 referenčni preskusni niz ETSI TS 102 995 [4]. V tem dokumentu so upoštevane samo funkcije, povezane z XML, ki so določene v dokumentu ETSI ES 201 873-9 [1], ne pa tudi temeljne jezikovne funkcije (glejte ETSI ES 201 873-1 [5]), uvedba orodja (glejte ETSI ES 201 873-5 [i.1] in ETSI ES 201 873-6 [i.2]), preslikava jezika (glejte ETSI ES 201 873-7 [i.3] in ETSI ES 201 873-8 [i.4]) ter razširitev jezika (glejte npr. ETSI ES 202 781 [i.5], ETSI ES 202 784 [i.6] in ETSI ES 202 785 [i.7]).

General Information

Status
Published
Publication Date
06-Jan-2016
Current Stage
6060 - National Implementation/Publication (Adopted Project)
Start Date
04-Nov-2015
Due Date
09-Jan-2016
Completion Date
07-Jan-2016

Buy Standard

Standard
ETSI TS 103 254 V1.1.1 (2015-03) - Methods for Testing and Specifications (MTS); TTCN-3 Conformance Test Suite for use of XML schema; Test Suite Structure and Test Purposes (TSS&TP)
English language
79 pages
sale 15% off
Preview
sale 15% off
Preview
Technical specification
SIST-TS ETSI/TS 103 254 V1.1.1:2016
English language
79 pages
sale 10% off
Preview
sale 10% off
Preview

e-Library read for
1 day
Technical specification
SIST-TS ETSI/TS 103 254 V1.1.1:2016
English language
79 pages
sale 10% off
Preview
sale 10% off
Preview

e-Library read for
1 day

Standards Content (sample)

ETSI TS 103 254 V1.1.1 (2015-03)
TECHNICAL SPECIFICATION
Methods for Testing and Specifications (MTS);
TTCN-3 Conformance Test Suite for use of XML schema;
Test Suite Structure and Test Purposes (TSS&TP)
---------------------- Page: 1 ----------------------
2 ETSI TS 103 254 V1.1.1 (2015-03)
Reference
DTS/MTS-103254
Keywords
conformance, testing, TSS&TP, TTCN, XML
ETSI
650 Route des Lucioles
F-06921 Sophia Antipolis Cedex - FRANCE
Tel.: +33 4 92 94 42 00 Fax: +33 4 93 65 47 16
Siret N° 348 623 562 00017 - NAF 742 C
Association à but non lucratif enregistrée à la
Sous-Préfecture de Grasse (06) N° 7803/88
Important notice
The present document can be downloaded from:
http://www.etsi.org/standards-search

The present document may be made available in electronic versions and/or in print. The content of any electronic and/or

print versions of the present document shall not be modified without the prior written authorization of ETSI. In case of any

existing or perceived difference in contents between such versions and/or in print, the only prevailing document is the

print of the Portable Document Format (PDF) version kept on a specific network drive within ETSI Secretariat.

Users of the present document should be aware that the document may be subject to revision or change of status.

Information on the current status of this and other ETSI documents is available at

http://portal.etsi.org/tb/status/status.asp

If you find errors in the present document, please send your comment to one of the following services:

https://portal.etsi.org/People/CommiteeSupportStaff.aspx
Copyright Notification

No part may be reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying

and microfilm except as authorized by written permission of ETSI.

The content of the PDF version shall not be modified without the written authorization of ETSI.

The copyright and the foregoing restriction extend to reproduction in all media.
© European Telecommunications Standards Institute 2015.
All rights reserved.
TM TM TM

DECT , PLUGTESTS , UMTS and the ETSI logo are Trade Marks of ETSI registered for the benefit of its Members.

3GPP and LTE™ are Trade Marks of ETSI registered for the benefit of its Members and

of the 3GPP Organizational Partners.

GSM® and the GSM logo are Trade Marks registered and owned by the GSM Association.

ETSI
---------------------- Page: 2 ----------------------
3 ETSI TS 103 254 V1.1.1 (2015-03)
Contents

Intellectual Property Rights ................................................................................................................................ 5

Foreword ............................................................................................................................................................. 5

Modal verbs terminology .................................................................................................................................... 5

1 Scope ........................................................................................................................................................ 6

2 References ................................................................................................................................................ 6

2.1 Normative references ......................................................................................................................................... 6

2.2 Informative references ........................................................................................................................................ 6

3 Definitions and abbreviations ................................................................................................................... 7

3.1 Definitions .......................................................................................................................................................... 7

3.2 Abbreviations ..................................................................................................................................................... 7

4 Test Suite Structure (TSS) ........................................................................................................................ 8

Annex A (normative): Test Purposes (TP) ......................................................................................... 15

A.1 Introduction ............................................................................................................................................ 15

A.1.1 Test purpose naming convention ...................................................................................................................... 15

A.1.2 Test purpose structure ...................................................................................................................................... 15

A.1.3 Test purpose format .......................................................................................................................................... 15

A.2 Test purposes for the TTCN-3 Part 9 conformance test suite ................................................................ 17

A.2.1 Mapping XML Schemas .................................................................................................................................. 17

A.2.2 Namespaces ...................................................................................................................................................... 17

A.2.3 Includes ............................................................................................................................................................ 18

A.2.4 Imports ............................................................................................................................................................. 19

A.2.5 Attributes of the XSD schema element ............................................................................................................ 19

A.2.6 Name conversion rules ..................................................................................................................................... 20

A.2.7 Order of the mapping ....................................................................................................................................... 24

A.2.8 Built-in data types ............................................................................................................................................ 25

A.2.9 Length .............................................................................................................................................................. 25

A.2.10 Enumeration ..................................................................................................................................................... 25

A.2.11 MinInclusive ..................................................................................................................................................... 27

A.2.12 MaxInclusive .................................................................................................................................................... 27

A.2.13 MinExclusive ................................................................................................................................................... 28

A.2.14 MaxExclusive ................................................................................................................................................... 29

A.2.15 String ................................................................................................................................................................ 29

A.2.16 Name ................................................................................................................................................................ 30

A.2.17 Any URI ........................................................................................................................................................... 30

A.2.18 Integer .............................................................................................................................................................. 30

A.2.19 Positive integer ................................................................................................................................................. 31

A.2.20 Non-positive integer ......................................................................................................................................... 31

A.2.21 Negative integer ............................................................................................................................................... 31

A.2.22 Non-negative integer ........................................................................................................................................ 31

A.2.23 Long ................................................................................................................................................................. 32

A.2.24 Unsigned long .................................................................................................................................................. 32

A.2.25 Int ..................................................................................................................................................................... 32

A.2.26 Unsigned int ..................................................................................................................................................... 32

A.2.27 Short ................................................................................................................................................................. 33

A.2.28 Unsigned Short ................................................................................................................................................. 33

A.2.29 Byte .................................................................................................................................................................. 33

A.2.30 Unsigned byte ................................................................................................................................................... 33

A.2.31 Decimal ............................................................................................................................................................ 34

A.2.32 Float .................................................................................................................................................................. 34

A.2.33 Double .............................................................................................................................................................. 34

A.2.34 Date and time ................................................................................................................................................... 34

A.2.35 Date .................................................................................................................................................................. 36

A.2.36 Gregorian year and month ................................................................................................................................ 37

ETSI
---------------------- Page: 3 ----------------------
4 ETSI TS 103 254 V1.1.1 (2015-03)

A.2.37 Gregorian year .................................................................................................................................................. 38

A.2.38 Boolean type ..................................................................................................................................................... 39

A.2.39 AnyType and anySimpleType types................................................................................................................. 40

A.2.40 Id ...................................................................................................................................................................... 40

A.2.41 MinOccurs and maxOccurs .............................................................................................................................. 40

A.2.42 Default and Fixed ............................................................................................................................................. 42

A.2.43 Form ................................................................................................................................................................. 43

A.2.44 Type .................................................................................................................................................................. 45

A.2.45 Use.................................................................................................................................................................... 45

A.2.46 Final .................................................................................................................................................................. 46

A.2.47 Element component .......................................................................................................................................... 46

A.2.48 Attribute element definitions ............................................................................................................................ 47

A.2.49 Attribute group definitions ............................................................................................................................... 47

A.2.50 Derivation by restriction ................................................................................................................................... 47

A.2.51 Derivation by list .............................................................................................................................................. 47

A.2.52 Derivation by union .......................................................................................................................................... 48

A.2.53 Extending simple content ................................................................................................................................. 49

A.2.54 Restricting simple content ................................................................................................................................ 50

A.2.55 Complex content derived by extension ............................................................................................................ 50

A.2.56 Complex content derived by restriction ............................................................................................................ 51

A.2.57 Referencing group components ........................................................................................................................ 52

A.2.58 All content ........................................................................................................................................................ 54

A.2.59 Choice content .................................................................................................................................................. 54

A.2.60 Choice with nested elements ............................................................................................................................ 55

A.2.61 Choice with nested group ................................................................................................................................. 55

A.2.62 Choice with nested choice ................................................................................................................................ 55

A.2.63 Choice with nested sequence ............................................................................................................................ 55

A.2.64 Choice with nested any ..................................................................................................................................... 56

A.2.65 Sequence with nested element content ............................................................................................................. 56

A.2.66 Sequence with nested group content ................................................................................................................ 56

A.2.67 Sequence with nested choice content ............................................................................................................... 56

A.2.68 Sequence with nested sequence content ........................................................................................................... 57

A.2.69 Sequence with nested any content .................................................................................................................... 57

A.2.70 Effect of the minOccurs and maxOccurs attributes on the mapping ................................................................ 57

A.2.71 Attribute definitions, attribute and attributeGroup references .......................................................................... 58

A.2.72 Mixed content ................................................................................................................................................... 59

A.2.73 The any element ............................................................................................................................................... 60

A.2.74 The anyAttribute element ................................................................................................................................. 61

A.2.75 Annotation ........................................................................................................................................................ 62

A.2.76 Group components ........................................................................................................................................... 62

A.2.77 Identity-constraint definition schema components ........................................................................................... 62

A.2.78 Head elements of substitution groups ............................................................................................................... 63

A.2.79 TTCN-3 module XSD ...................................................................................................................................... 64

History .............................................................................................................................................................. 79

ETSI
---------------------- Page: 4 ----------------------
5 ETSI TS 103 254 V1.1.1 (2015-03)
Intellectual Property Rights

IPRs essential or potentially essential to the present document may have been declared to ETSI. The information

pertaining to these essential IPRs, if any, is publicly available for ETSI members and non-members, and can be found

in ETSI SR 000 314: "Intellectual Property Rights (IPRs); Essential, or potentially Essential, IPRs notified to ETSI in

respect of ETSI standards", which is available from the ETSI Secretariat. Latest updates are available on the ETSI Web

server (http://ipr.etsi.org).

Pursuant to the ETSI IPR Policy, no investigation, including IPR searches, has been carried out by ETSI. No guarantee

can be given as to the existence of other IPRs not referenced in ETSI SR 000 314 (or the updates on the ETSI Web

server) which are, or may be, or may become, essential to the present document.
Foreword

This Technical Specification (TS) has been produced by ETSI Technical Committee Methods for Testing and

Specification (MTS).
Modal verbs terminology

In the present document "shall", "shall not", "should", "should not", "may", "need not", "will", "will not", "can" and

"cannot" are to be interpreted as described in clause 3.2 of the ETSI Drafting Rules (Verbal forms for the expression of

provisions).

"must" and "must not" are NOT allowed in ETSI deliverables except when used in direct citation.

ETSI
---------------------- Page: 5 ----------------------
6 ETSI TS 103 254 V1.1.1 (2015-03)
1 Scope

The purpose of the present document is to provide Test Suite Structure and Test Purposes (TSS&TP) for the

conformance test suite for using XML Schema with TTCN-3 as defined in ETSI ES 201 873-1 [5] in compliance with

the relevant guidance given in the proforma for TTCN-3 reference test suite ETSI TS 102 995 [4]. In the present

document only XML related features, specified in ETSI ES 201 873-9 [1] have been considered but not the core

language features (see ETSI ES 201 873-1 [5]), nor tool implementation (see ETSI ES 201 873-5 [i.1] and ETSI

ES 201 873-6 [i.2]), language mapping (see ETSI ES 201 873-7 [i.3] and ETSI ES 201 873-8 [i.4]) and language

extension (see e.g. ETSI ES 202 781 [i.5], ETSI ES 202 784 [i.6] and ETSI ES 202 785 [i.7]) aspects.

2 References
2.1 Normative references

References are either specific (identified by date of publication and/or edition number or version number) or

non-specific. For specific references, only the cited version applies. For non-specific references, the latest version of the

reference document (including any amendments) applies.

Referenced documents which are not found to be publicly available in the expected location might be found at

http://docbox.etsi.org/Reference.

NOTE: While any hyperlinks included in this clause were valid at the time of publication, ETSI cannot guarantee

their long term validity.

The following referenced documents are necessary for the application of the present document.

[1] ETSI ES 201 873-9 (V4.5.1): "Methods for Testing and Specification (MTS); The Testing and

Test Control Notation version 3; Part 9: Using XML schema with TTCN-3".

[2] ISO/IEC 9646-1 (1994): "Information Technology - Open Systems Interconnection - Conformance

Testing Methodology and Framework - Part 1: General concepts".
[3] ISO/IEC 9646-7 (1995): "Conformance testing methodology and framework -
Part 7: Implementation Conformance Statement".

[4] ETSI TS 102 995: "Methods for Testing and Specification (MTS); The Testing and Test Control

Notation version 3; Proforma for TTCN-3 reference test suite".

[5] ETSI ES 201 873-1 (V4.5.1): "Methods for Testing and Specification (MTS); The Testing and

Test Control Notation version 3; Part 1: TTCN-3 Core Language".
2.2 Informative references

References are either specific (identified by date of publication and/or edition number or version number) or

non-specific. For specific references, only the cited version applies. For non-specific references, the latest version of the

reference document (including any amendments) applies.

NOTE: While any hyperlinks included in this clause were valid at the time of publication, ETSI cannot guarantee

their long term validity.

The following referenced documents are not necessary for the application of the present document but they assist the

user with regard to a particular subject area.

[i.1] ETSI ES 201 873-5: "Methods for Testing and Specification (MTS); The Testing and Test Control

Notation version 3; Part 5: TTCN-3 Runtime Interface (TRI)".

[i.2] ETSI ES 201 873-6: "Methods for Testing and Specification (MTS); The Testing and Test Control

Notation version 3; Part 6: TTCN-3 Control Interface (TCI)".

[i.3] ETSI ES 201 873-7: "Methods for Testing and Specification (MTS); The Testing and Test Control

Notation version 3; Part 7: Using ASN.1 with TTCN-3".
ETSI
---------------------- Page: 6 ----------------------
7 ETSI TS 103 254 V1.1.1 (2015-03)

[i.4] ETSI ES 201 873-8: "Methods for Testing and Specification (MTS); The Testing and Test Control

Notation version 3; Part 8: The IDL to TTCN-3 Mapping".

[i.5] ETSI ES 202 781: "Methods for Testing and Specification (MTS); The Testing and Test Control

Notation version 3; TTCN-3 Language Extensions: Configuration and Deployment Support".

[i.6] ETSI ES 202 784: "Methods for Testing and Specification (MTS); The Testing and Test Control

Notation version 3; TTCN-3 Language Extensions: Advanced Parameterization".

[i.7] ETSI ES 202 785: "Methods for Testing and Specification (MTS); The Testing and Test Control

Notation version 3; TTCN-3 Language Extensions: Behaviour Types".
3 Definitions and abbreviations
3.1 Definitions

For the purposes of the present document, the terms and definitions given in ISO/IEC 9646-1 [2], ISO/IEC 9646-7 [3],

ETSI ES 201 873-1 [5] (TTCN-3) and the following apply:
Abstract Test Suite (ATS): test suite composed of abstract test cases

Implementation Conformance Statement (ICS): statement made by the supplier of an implementation claimed to

conform to a given specification, stating which capabilities have been implemented

ICS proforma: document, in the form of a questionnaire, which when completed for an implementation or system

becomes an ICS

Implementation eXtra Information for Testing (IXIT): statement made by a supplier or implementor of an IUT

which contains or references all of the information related to the IUT and its testing environment, which will enable the

test laboratory to run an appropriate test suite against the IUT

IXIT proforma: document, in the form of a questionnaire, which when completed for the IUT becomes the IXIT

Implementation Under Test (IUT): implementation of one or more OSI protocols in an adjacent user/provider

relationship, being part of a real open system which is to be studied by testing
3.2 Abbreviations
For the purposes of the present document, the following abbreviations apply:
ATS Abstract Test Suite
BNF Backus Naur Form
ICS Implementation Conformance Statement
IUT Implementation under Test
IXIT Implementation eXtra Information for Testing
SUT System Under Test
TC Test Case
TCI TTCN-3 Control Interface
TP Test Purpose
TRI TTCN-3 Runtime Interface
TS Test System
TSS Test Suite Structure
TSS&TP Test Suite Structure and Test Purposes
TTCN-3 Testing and Test Control Notation edition 3
XML eXtensible Markup Language
XSD XML Schema Definition
URI Unified Resource Identifier
ASCII American Standard Code for Information Interchange
URL Unified Resource Locator
ETSI
---------------------- Page: 7 ----------------------
8 ETSI TS 103 254 V1.1.1 (2015-03)
4 Test Suite Structure (TSS)

The Test Suite Structure is in close alignment with ETSI ES 201 873-9 [1], containing:

a) positive tests (Table 1);
b) negative tests (Table 2).

The execution order of the TTCN-3 tool conformance test cases is specified in the dependencies section of test purpose

descriptions.
Table 1: Test suite structure, positive tests
5 Mapping 5.1.1 Namespaces Pos_050101_namespaces_001
XML Schemas
Pos_050101_namespaces_002
Pos_050101_namespaces_003
Pos_050101_namespaces_004
5.1.2 Includes Pos_050102_includes_001
Pos_050102_includes_002
Pos_050102_includes_003
5.1.3 Imports Pos_050103_imports_001
5.1.4 Attributes of the Pos_050104_attributes_of_the_xsd_schema_element_001
XSD schema
Pos_050104_attributes_of_the_xsd_schema_element_002
element
Pos_050104_attributes_of_the_xsd_schema_element_003
Pos_050104_attributes_of_the_xsd_schema_element_004
Pos_050104_attributes_of_the_xsd_schema_element_005
Pos_050104_attributes_of_the_xsd_schema_element_006
5.2.2 Name Pos_050202_name_conversion_rules_001
conversion rules
Pos_050202_name_conversion_rules_002
Pos_050202_name_conversion_rules_003
Pos_050202_name_conversion_rules_004
Pos_050202_name_conversion_rules_005
Pos_050202_name_conversion_rules_006
Pos_050202_name_conversion_rules_007
Pos_050202_name_conversion_rules_008
Pos_050202_name_conversion_rules_009
Pos_050202_name_conversion_rules_010
Pos_050202_name_conversion_rules_011
Pos_050202_name_conversion_rules_012
Pos_050202_name_conversion_rules_013
Pos_050202_name_conversion_rules_014
Pos_050202_name_conversion_rules_015
Pos_050202_name_conversion_rules_016
Pos_050202_name_conversion_rules_017
Pos_050202_name_conversion_rules_018
Pos_050202_name_conversion_rules_019
Pos_050202_name_conversion_rules_020
Pos_050202_name_conversion_rules_021
Pos_050202_name_conversion_rules_022
Pos_050202_name_conversion_rules_023
5.2.3 Order of the Pos_050203_order_of_the_mapping_001
mapping
Pos_050203_order_of_the_mapping_002
Pos_050203_order_of_the_mapping_003
ETSI
---------------------- Page: 8 ----------------------
9 ETSI TS 103 254 V1.1.1 (2015-03)
6 Built-in data Top level Pos_06_top_level_001
types
6.1.1 Length Pos_060101_length_001
Pos_060101_length_002
6.1.5 Enumeration Pos_060105_enumeration_001
Pos_060105_enumeration_002
Pos_060105_enumeration_003
Pos_060105_enumeration_004
Pos_060105_enumeration_005
6.1.7 MinInclusive Pos_060107_mininclusive_001
Pos_060107_mininclusive_002
Pos_060107_mininclusive_003
Pos_060107_mininclusive_004
Pos_060107_mininclusive_005
6.1.8 MaxInclusive Pos_060108_maxinclusive_001
Pos_060108_maxinclusive_002
Pos_060108_maxinclusive_003
Pos_060108_maxinclusive_004
6.1.9 MinExclusive Pos_060109_minexclusive_001
Pos_060109_minexclusive_002
6.1.10 MaxExclusive Pos_060110_maxexclusive_001
Pos_060110_maxexclusive_002
Pos_060110_maxexclusive_003
6.2.1 String Pos_060201_string_001
6.2.4 Name Pos_060204_name_001
6.2.12 Any URI Pos_060212_any_uri_001
6.3.1 Integer Pos_060301_integer_001
6.3.2 Positive integer Pos_060302_positive_integer_001
6.3.3 Non-positive Pos_060303_non_positive_integer_001
integer
6.3.4 Negative Pos_060304_negative_integer_001
integer
6.3.5 Non-negative Pos_060305_non_negative_integer_001
integer
6.3.6 Long Pos_060306_long_001
6.3.7 Unsigned long Pos_060307_uns
...

SLOVENSKI STANDARD
SIST-TS ETSI/TS 103 254 V1.1.1:2016
01-februar-2016

Metode za preskušanje in specifikacije (MTS) - TTCN-3-preskusni niz skladnosti za

uporabo sheme XML - Zgradba preskusnega niza in namen preskusa (TSS&TP)

Methods for Testing and Specifications (MTS);TTCN-3 Conformance Test Suite for use of

XML schema;Test Suite Structure and Test Purposes (TSS&TP)
Ta slovenski standard je istoveten z: ETSI TS 103 254 V1.1.1 (2015-03)
ICS:
35.240.30 Uporabniške rešitve IT v IT applications in information,
informatiki, dokumentiranju in documentation and
založništvu publishing
SIST-TS ETSI/TS 103 254 V1.1.1:2016 en,fr,de

2003-01.Slovenski inštitut za standardizacijo. Razmnoževanje celote ali delov tega standarda ni dovoljeno.

---------------------- Page: 1 ----------------------
SIST-TS ETSI/TS 103 254 V1.1.1:2016
---------------------- Page: 2 ----------------------
SIST-TS ETSI/TS 103 254 V1.1.1:2016
ETSI TS 103 254 V1.1.1 (2015-03)
TECHNICAL SPECIFICATION
Methods for Testing and Specifications (MTS);
TTCN-3 Conformance Test Suite for use of XML schema;
Test Suite Structure and Test Purposes (TSS&TP)
---------------------- Page: 3 ----------------------
SIST-TS ETSI/TS 103 254 V1.1.1:2016
2 ETSI TS 103 254 V1.1.1 (2015-03)
Reference
DTS/MTS-103254
Keywords
conformance, testing, TSS&TP, TTCN, XML
ETSI
650 Route des Lucioles
F-06921 Sophia Antipolis Cedex - FRANCE
Tel.: +33 4 92 94 42 00 Fax: +33 4 93 65 47 16
Siret N° 348 623 562 00017 - NAF 742 C
Association à but non lucratif enregistrée à la
Sous-Préfecture de Grasse (06) N° 7803/88
Important notice
The present document can be downloaded from:
http://www.etsi.org/standards-search

The present document may be made available in electronic versions and/or in print. The content of any electronic and/or

print versions of the present document shall not be modified without the prior written authorization of ETSI. In case of any

existing or perceived difference in contents between such versions and/or in print, the only prevailing document is the

print of the Portable Document Format (PDF) version kept on a specific network drive within ETSI Secretariat.

Users of the present document should be aware that the document may be subject to revision or change of status.

Information on the current status of this and other ETSI documents is available at

http://portal.etsi.org/tb/status/status.asp

If you find errors in the present document, please send your comment to one of the following services:

https://portal.etsi.org/People/CommiteeSupportStaff.aspx
Copyright Notification

No part may be reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying

and microfilm except as authorized by written permission of ETSI.

The content of the PDF version shall not be modified without the written authorization of ETSI.

The copyright and the foregoing restriction extend to reproduction in all media.
© European Telecommunications Standards Institute 2015.
All rights reserved.
TM TM TM

DECT , PLUGTESTS , UMTS and the ETSI logo are Trade Marks of ETSI registered for the benefit of its Members.

3GPP and LTE™ are Trade Marks of ETSI registered for the benefit of its Members and

of the 3GPP Organizational Partners.

GSM® and the GSM logo are Trade Marks registered and owned by the GSM Association.

ETSI
---------------------- Page: 4 ----------------------
SIST-TS ETSI/TS 103 254 V1.1.1:2016
3 ETSI TS 103 254 V1.1.1 (2015-03)
Contents

Intellectual Property Rights ................................................................................................................................ 5

Foreword ............................................................................................................................................................. 5

Modal verbs terminology .................................................................................................................................... 5

1 Scope ........................................................................................................................................................ 6

2 References ................................................................................................................................................ 6

2.1 Normative references ......................................................................................................................................... 6

2.2 Informative references ........................................................................................................................................ 6

3 Definitions and abbreviations ................................................................................................................... 7

3.1 Definitions .......................................................................................................................................................... 7

3.2 Abbreviations ..................................................................................................................................................... 7

4 Test Suite Structure (TSS) ........................................................................................................................ 8

Annex A (normative): Test Purposes (TP) ......................................................................................... 15

A.1 Introduction ............................................................................................................................................ 15

A.1.1 Test purpose naming convention ...................................................................................................................... 15

A.1.2 Test purpose structure ...................................................................................................................................... 15

A.1.3 Test purpose format .......................................................................................................................................... 15

A.2 Test purposes for the TTCN-3 Part 9 conformance test suite ................................................................ 17

A.2.1 Mapping XML Schemas .................................................................................................................................. 17

A.2.2 Namespaces ...................................................................................................................................................... 17

A.2.3 Includes ............................................................................................................................................................ 18

A.2.4 Imports ............................................................................................................................................................. 19

A.2.5 Attributes of the XSD schema element ............................................................................................................ 19

A.2.6 Name conversion rules ..................................................................................................................................... 20

A.2.7 Order of the mapping ....................................................................................................................................... 24

A.2.8 Built-in data types ............................................................................................................................................ 25

A.2.9 Length .............................................................................................................................................................. 25

A.2.10 Enumeration ..................................................................................................................................................... 25

A.2.11 MinInclusive ..................................................................................................................................................... 27

A.2.12 MaxInclusive .................................................................................................................................................... 27

A.2.13 MinExclusive ................................................................................................................................................... 28

A.2.14 MaxExclusive ................................................................................................................................................... 29

A.2.15 String ................................................................................................................................................................ 29

A.2.16 Name ................................................................................................................................................................ 30

A.2.17 Any URI ........................................................................................................................................................... 30

A.2.18 Integer .............................................................................................................................................................. 30

A.2.19 Positive integer ................................................................................................................................................. 31

A.2.20 Non-positive integer ......................................................................................................................................... 31

A.2.21 Negative integer ............................................................................................................................................... 31

A.2.22 Non-negative integer ........................................................................................................................................ 31

A.2.23 Long ................................................................................................................................................................. 32

A.2.24 Unsigned long .................................................................................................................................................. 32

A.2.25 Int ..................................................................................................................................................................... 32

A.2.26 Unsigned int ..................................................................................................................................................... 32

A.2.27 Short ................................................................................................................................................................. 33

A.2.28 Unsigned Short ................................................................................................................................................. 33

A.2.29 Byte .................................................................................................................................................................. 33

A.2.30 Unsigned byte ................................................................................................................................................... 33

A.2.31 Decimal ............................................................................................................................................................ 34

A.2.32 Float .................................................................................................................................................................. 34

A.2.33 Double .............................................................................................................................................................. 34

A.2.34 Date and time ................................................................................................................................................... 34

A.2.35 Date .................................................................................................................................................................. 36

A.2.36 Gregorian year and month ................................................................................................................................ 37

ETSI
---------------------- Page: 5 ----------------------
SIST-TS ETSI/TS 103 254 V1.1.1:2016
4 ETSI TS 103 254 V1.1.1 (2015-03)

A.2.37 Gregorian year .................................................................................................................................................. 38

A.2.38 Boolean type ..................................................................................................................................................... 39

A.2.39 AnyType and anySimpleType types................................................................................................................. 40

A.2.40 Id ...................................................................................................................................................................... 40

A.2.41 MinOccurs and maxOccurs .............................................................................................................................. 40

A.2.42 Default and Fixed ............................................................................................................................................. 42

A.2.43 Form ................................................................................................................................................................. 43

A.2.44 Type .................................................................................................................................................................. 45

A.2.45 Use.................................................................................................................................................................... 45

A.2.46 Final .................................................................................................................................................................. 46

A.2.47 Element component .......................................................................................................................................... 46

A.2.48 Attribute element definitions ............................................................................................................................ 47

A.2.49 Attribute group definitions ............................................................................................................................... 47

A.2.50 Derivation by restriction ................................................................................................................................... 47

A.2.51 Derivation by list .............................................................................................................................................. 47

A.2.52 Derivation by union .......................................................................................................................................... 48

A.2.53 Extending simple content ................................................................................................................................. 49

A.2.54 Restricting simple content ................................................................................................................................ 50

A.2.55 Complex content derived by extension ............................................................................................................ 50

A.2.56 Complex content derived by restriction ............................................................................................................ 51

A.2.57 Referencing group components ........................................................................................................................ 52

A.2.58 All content ........................................................................................................................................................ 54

A.2.59 Choice content .................................................................................................................................................. 54

A.2.60 Choice with nested elements ............................................................................................................................ 55

A.2.61 Choice with nested group ................................................................................................................................. 55

A.2.62 Choice with nested choice ................................................................................................................................ 55

A.2.63 Choice with nested sequence ............................................................................................................................ 55

A.2.64 Choice with nested any ..................................................................................................................................... 56

A.2.65 Sequence with nested element content ............................................................................................................. 56

A.2.66 Sequence with nested group content ................................................................................................................ 56

A.2.67 Sequence with nested choice content ............................................................................................................... 56

A.2.68 Sequence with nested sequence content ........................................................................................................... 57

A.2.69 Sequence with nested any content .................................................................................................................... 57

A.2.70 Effect of the minOccurs and maxOccurs attributes on the mapping ................................................................ 57

A.2.71 Attribute definitions, attribute and attributeGroup references .......................................................................... 58

A.2.72 Mixed content ................................................................................................................................................... 59

A.2.73 The any element ............................................................................................................................................... 60

A.2.74 The anyAttribute element ................................................................................................................................. 61

A.2.75 Annotation ........................................................................................................................................................ 62

A.2.76 Group components ........................................................................................................................................... 62

A.2.77 Identity-constraint definition schema components ........................................................................................... 62

A.2.78 Head elements of substitution groups ............................................................................................................... 63

A.2.79 TTCN-3 module XSD ...................................................................................................................................... 64

History .............................................................................................................................................................. 79

ETSI
---------------------- Page: 6 ----------------------
SIST-TS ETSI/TS 103 254 V1.1.1:2016
5 ETSI TS 103 254 V1.1.1 (2015-03)
Intellectual Property Rights

IPRs essential or potentially essential to the present document may have been declared to ETSI. The information

pertaining to these essential IPRs, if any, is publicly available for ETSI members and non-members, and can be found

in ETSI SR 000 314: "Intellectual Property Rights (IPRs); Essential, or potentially Essential, IPRs notified to ETSI in

respect of ETSI standards", which is available from the ETSI Secretariat. Latest updates are available on the ETSI Web

server (http://ipr.etsi.org).

Pursuant to the ETSI IPR Policy, no investigation, including IPR searches, has been carried out by ETSI. No guarantee

can be given as to the existence of other IPRs not referenced in ETSI SR 000 314 (or the updates on the ETSI Web

server) which are, or may be, or may become, essential to the present document.
Foreword

This Technical Specification (TS) has been produced by ETSI Technical Committee Methods for Testing and

Specification (MTS).
Modal verbs terminology

In the present document "shall", "shall not", "should", "should not", "may", "need not", "will", "will not", "can" and

"cannot" are to be interpreted as described in clause 3.2 of the ETSI Drafting Rules (Verbal forms for the expression of

provisions).

"must" and "must not" are NOT allowed in ETSI deliverables except when used in direct citation.

ETSI
---------------------- Page: 7 ----------------------
SIST-TS ETSI/TS 103 254 V1.1.1:2016
6 ETSI TS 103 254 V1.1.1 (2015-03)
1 Scope

The purpose of the present document is to provide Test Suite Structure and Test Purposes (TSS&TP) for the

conformance test suite for using XML Schema with TTCN-3 as defined in ETSI ES 201 873-1 [5] in compliance with

the relevant guidance given in the proforma for TTCN-3 reference test suite ETSI TS 102 995 [4]. In the present

document only XML related features, specified in ETSI ES 201 873-9 [1] have been considered but not the core

language features (see ETSI ES 201 873-1 [5]), nor tool implementation (see ETSI ES 201 873-5 [i.1] and ETSI

ES 201 873-6 [i.2]), language mapping (see ETSI ES 201 873-7 [i.3] and ETSI ES 201 873-8 [i.4]) and language

extension (see e.g. ETSI ES 202 781 [i.5], ETSI ES 202 784 [i.6] and ETSI ES 202 785 [i.7]) aspects.

2 References
2.1 Normative references

References are either specific (identified by date of publication and/or edition number or version number) or

non-specific. For specific references, only the cited version applies. For non-specific references, the latest version of the

reference document (including any amendments) applies.

Referenced documents which are not found to be publicly available in the expected location might be found at

http://docbox.etsi.org/Reference.

NOTE: While any hyperlinks included in this clause were valid at the time of publication, ETSI cannot guarantee

their long term validity.

The following referenced documents are necessary for the application of the present document.

[1] ETSI ES 201 873-9 (V4.5.1): "Methods for Testing and Specification (MTS); The Testing and

Test Control Notation version 3; Part 9: Using XML schema with TTCN-3".

[2] ISO/IEC 9646-1 (1994): "Information Technology - Open Systems Interconnection - Conformance

Testing Methodology and Framework - Part 1: General concepts".
[3] ISO/IEC 9646-7 (1995): "Conformance testing methodology and framework -
Part 7: Implementation Conformance Statement".

[4] ETSI TS 102 995: "Methods for Testing and Specification (MTS); The Testing and Test Control

Notation version 3; Proforma for TTCN-3 reference test suite".

[5] ETSI ES 201 873-1 (V4.5.1): "Methods for Testing and Specification (MTS); The Testing and

Test Control Notation version 3; Part 1: TTCN-3 Core Language".
2.2 Informative references

References are either specific (identified by date of publication and/or edition number or version number) or

non-specific. For specific references, only the cited version applies. For non-specific references, the latest version of the

reference document (including any amendments) applies.

NOTE: While any hyperlinks included in this clause were valid at the time of publication, ETSI cannot guarantee

their long term validity.

The following referenced documents are not necessary for the application of the present document but they assist the

user with regard to a particular subject area.

[i.1] ETSI ES 201 873-5: "Methods for Testing and Specification (MTS); The Testing and Test Control

Notation version 3; Part 5: TTCN-3 Runtime Interface (TRI)".

[i.2] ETSI ES 201 873-6: "Methods for Testing and Specification (MTS); The Testing and Test Control

Notation version 3; Part 6: TTCN-3 Control Interface (TCI)".

[i.3] ETSI ES 201 873-7: "Methods for Testing and Specification (MTS); The Testing and Test Control

Notation version 3; Part 7: Using ASN.1 with TTCN-3".
ETSI
---------------------- Page: 8 ----------------------
SIST-TS ETSI/TS 103 254 V1.1.1:2016
7 ETSI TS 103 254 V1.1.1 (2015-03)

[i.4] ETSI ES 201 873-8: "Methods for Testing and Specification (MTS); The Testing and Test Control

Notation version 3; Part 8: The IDL to TTCN-3 Mapping".

[i.5] ETSI ES 202 781: "Methods for Testing and Specification (MTS); The Testing and Test Control

Notation version 3; TTCN-3 Language Extensions: Configuration and Deployment Support".

[i.6] ETSI ES 202 784: "Methods for Testing and Specification (MTS); The Testing and Test Control

Notation version 3; TTCN-3 Language Extensions: Advanced Parameterization".

[i.7] ETSI ES 202 785: "Methods for Testing and Specification (MTS); The Testing and Test Control

Notation version 3; TTCN-3 Language Extensions: Behaviour Types".
3 Definitions and abbreviations
3.1 Definitions

For the purposes of the present document, the terms and definitions given in ISO/IEC 9646-1 [2], ISO/IEC 9646-7 [3],

ETSI ES 201 873-1 [5] (TTCN-3) and the following apply:
Abstract Test Suite (ATS): test suite composed of abstract test cases

Implementation Conformance Statement (ICS): statement made by the supplier of an implementation claimed to

conform to a given specification, stating which capabilities have been implemented

ICS proforma: document, in the form of a questionnaire, which when completed for an implementation or system

becomes an ICS

Implementation eXtra Information for Testing (IXIT): statement made by a supplier or implementor of an IUT

which contains or references all of the information related to the IUT and its testing environment, which will enable the

test laboratory to run an appropriate test suite against the IUT

IXIT proforma: document, in the form of a questionnaire, which when completed for the IUT becomes the IXIT

Implementation Under Test (IUT): implementation of one or more OSI protocols in an adjacent user/provider

relationship, being part of a real open system which is to be studied by testing
3.2 Abbreviations
For the purposes of the present document, the following abbreviations apply:
ATS Abstract Test Suite
BNF Backus Naur Form
ICS Implementation Conformance Statement
IUT Implementation under Test
IXIT Implementation eXtra Information for Testing
SUT System Under Test
TC Test Case
TCI TTCN-3 Control Interface
TP Test Purpose
TRI TTCN-3 Runtime Interface
TS Test System
TSS Test Suite Structure
TSS&TP Test Suite Structure and Test Purposes
TTCN-3 Testing and Test Control Notation edition 3
XML eXtensible Markup Language
XSD XML Schema Definition
URI Unified Resource Identifier
ASCII American Standard Code for Information Interchange
URL Unified Resource Locator
ETSI
---------------------- Page: 9 ----------------------
SIST-TS ETSI/TS 103 254 V1.1.1:2016
8 ETSI TS 103 254 V1.1.1 (2015-03)
4 Test Suite Structure (TSS)

The Test Suite Structure is in close alignment with ETSI ES 201 873-9 [1], containing:

a) positive tests (Table 1);
b) negative tests (Table 2).

The execution order of the TTCN-3 tool conformance test cases is specified in the dependencies section of test purpose

descriptions.
Table 1: Test suite structure, positive tests
5 Mapping 5.1.1 Namespaces Pos_050101_namespaces_001
XML Schemas
Pos_050101_namespaces_002
Pos_050101_namespaces_003
Pos_050101_namespaces_004
5.1.2 Includes Pos_050102_includes_001
Pos_050102_includes_002
Pos_050102_includes_003
5.1.3 Imports Pos_050103_imports_001
5.1.4 Attributes of the Pos_050104_attributes_of_the_xsd_schema_element_001
XSD schema
Pos_050104_attributes_of_the_xsd_schema_element_002
element
Pos_050104_attributes_of_the_xsd_schema_element_003
Pos_050104_attributes_of_the_xsd_schema_element_004
Pos_050104_attributes_of_the_xsd_schema_element_005
Pos_050104_attributes_of_the_xsd_schema_element_006
5.2.2 Name Pos_050202_name_conversion_rules_001
conversion rules
Pos_050202_name_conversion_rules_002
Pos_050202_name_conversion_rules_003
Pos_050202_name_conversion_rules_004
Pos_050202_name_conversion_rules_005
Pos_050202_name_conversion_rules_006
Pos_050202_name_conversion_rules_007
Pos_050202_name_conversion_rules_008
Pos_050202_name_conversion_rules_009
Pos_050202_name_conversion_rules_010
Pos_050202_name_conversion_rules_011
Pos_050202_name_conversion_rules_012
Pos_050202_name_conversion_rules_013
Pos_050202_name_conversion_rules_014
Pos_050202_name_conversion_rules_015
Pos_050202_name_conversion_rules_016
Pos_050202_name_conversion_rules_017
Pos_050202_name_conversion_rules_018
Pos_050202_name_conversion_rules_019
Pos_050202_name_conversion_rules_020
Pos_050202_name_conversion_rules_021
Pos_050202_name_conversion_rules_022
Pos_050202_name_conversion_rules_023
5.2.3 Order of the Pos_050203_order_of_the_mapping_001
mapping
Pos_050203_order_of_the_mapping_002
Pos_050203_order_of_the_mapping_003
ETSI
---------------------- Page: 10 ----------------------
SIST-TS ETSI/TS 103 254 V1.1.1:2016
9 ETSI T
...

SLOVENSKI STANDARD
SIST-TS ETSI/TS 103 254 V1.1.1:2016
01-februar-2016

Metode za preskušanje in specifikacije (MTS) - TTCN-3-preskusni niz skladnosti za

uporabo sheme XML - Zgradba preskusnega niza in namen preskusa (TSS&TP)

Methods for Testing and Specifications (MTS);TTCN-3 Conformance Test Suite for use

of XML schema;Test Suite Structure and Test Purposes (TSS&TP)
Ta slovenski standard je istoveten z: ETSI TS 103 254 V1.1.1 (2015-03)
ICS:
35.020 Informacijska tehnika in Information technology (IT) in
tehnologija na splošno general
SIST-TS ETSI/TS 103 254 V1.1.1:2016 en,fr,de

2003-01.Slovenski inštitut za standardizacijo. Razmnoževanje celote ali delov tega standarda ni dovoljeno.

---------------------- Page: 1 ----------------------
SIST-TS ETSI/TS 103 254 V1.1.1:2016
---------------------- Page: 2 ----------------------
SIST-TS ETSI/TS 103 254 V1.1.1:2016
ETSI TS 103 254 V1.1.1 (2015-03)
TECHNICAL SPECIFICATION
Methods for Testing and Specifications (MTS);
TTCN-3 Conformance Test Suite for use of XML schema;
Test Suite Structure and Test Purposes (TSS&TP)
---------------------- Page: 3 ----------------------
SIST-TS ETSI/TS 103 254 V1.1.1:2016
2 ETSI TS 103 254 V1.1.1 (2015-03)
Reference
DTS/MTS-103254
Keywords
conformance, testing, TSS&TP, TTCN, XML
ETSI
650 Route des Lucioles
F-06921 Sophia Antipolis Cedex - FRANCE
Tel.: +33 4 92 94 42 00 Fax: +33 4 93 65 47 16
Siret N° 348 623 562 00017 - NAF 742 C
Association à but non lucratif enregistrée à la
Sous-Préfecture de Grasse (06) N° 7803/88
Important notice
The present document can be downloaded from:
http://www.etsi.org/standards-search

The present document may be made available in electronic versions and/or in print. The content of any electronic and/or

print versions of the present document shall not be modified without the prior written authorization of ETSI. In case of any

existing or perceived difference in contents between such versions and/or in print, the only prevailing document is the

print of the Portable Document Format (PDF) version kept on a specific network drive within ETSI Secretariat.

Users of the present document should be aware that the document may be subject to revision or change of status.

Information on the current status of this and other ETSI documents is available at

http://portal.etsi.org/tb/status/status.asp

If you find errors in the present document, please send your comment to one of the following services:

https://portal.etsi.org/People/CommiteeSupportStaff.aspx
Copyright Notification

No part may be reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying

and microfilm except as authorized by written permission of ETSI.

The content of the PDF version shall not be modified without the written authorization of ETSI.

The copyright and the foregoing restriction extend to reproduction in all media.
© European Telecommunications Standards Institute 2015.
All rights reserved.
TM TM TM

DECT , PLUGTESTS , UMTS and the ETSI logo are Trade Marks of ETSI registered for the benefit of its Members.

3GPP and LTE™ are Trade Marks of ETSI registered for the benefit of its Members and

of the 3GPP Organizational Partners.

GSM® and the GSM logo are Trade Marks registered and owned by the GSM Association.

ETSI
---------------------- Page: 4 ----------------------
SIST-TS ETSI/TS 103 254 V1.1.1:2016
3 ETSI TS 103 254 V1.1.1 (2015-03)
Contents

Intellectual Property Rights ................................................................................................................................ 5

Foreword ............................................................................................................................................................. 5

Modal verbs terminology .................................................................................................................................... 5

1 Scope ........................................................................................................................................................ 6

2 References ................................................................................................................................................ 6

2.1 Normative references ......................................................................................................................................... 6

2.2 Informative references ........................................................................................................................................ 6

3 Definitions and abbreviations ................................................................................................................... 7

3.1 Definitions .......................................................................................................................................................... 7

3.2 Abbreviations ..................................................................................................................................................... 7

4 Test Suite Structure (TSS) ........................................................................................................................ 8

Annex A (normative): Test Purposes (TP) ......................................................................................... 15

A.1 Introduction ............................................................................................................................................ 15

A.1.1 Test purpose naming convention ...................................................................................................................... 15

A.1.2 Test purpose structure ...................................................................................................................................... 15

A.1.3 Test purpose format .......................................................................................................................................... 15

A.2 Test purposes for the TTCN-3 Part 9 conformance test suite ................................................................ 17

A.2.1 Mapping XML Schemas .................................................................................................................................. 17

A.2.2 Namespaces ...................................................................................................................................................... 17

A.2.3 Includes ............................................................................................................................................................ 18

A.2.4 Imports ............................................................................................................................................................. 19

A.2.5 Attributes of the XSD schema element ............................................................................................................ 19

A.2.6 Name conversion rules ..................................................................................................................................... 20

A.2.7 Order of the mapping ....................................................................................................................................... 24

A.2.8 Built-in data types ............................................................................................................................................ 25

A.2.9 Length .............................................................................................................................................................. 25

A.2.10 Enumeration ..................................................................................................................................................... 25

A.2.11 MinInclusive ..................................................................................................................................................... 27

A.2.12 MaxInclusive .................................................................................................................................................... 27

A.2.13 MinExclusive ................................................................................................................................................... 28

A.2.14 MaxExclusive ................................................................................................................................................... 29

A.2.15 String ................................................................................................................................................................ 29

A.2.16 Name ................................................................................................................................................................ 30

A.2.17 Any URI ........................................................................................................................................................... 30

A.2.18 Integer .............................................................................................................................................................. 30

A.2.19 Positive integer ................................................................................................................................................. 31

A.2.20 Non-positive integer ......................................................................................................................................... 31

A.2.21 Negative integer ............................................................................................................................................... 31

A.2.22 Non-negative integer ........................................................................................................................................ 31

A.2.23 Long ................................................................................................................................................................. 32

A.2.24 Unsigned long .................................................................................................................................................. 32

A.2.25 Int ..................................................................................................................................................................... 32

A.2.26 Unsigned int ..................................................................................................................................................... 32

A.2.27 Short ................................................................................................................................................................. 33

A.2.28 Unsigned Short ................................................................................................................................................. 33

A.2.29 Byte .................................................................................................................................................................. 33

A.2.30 Unsigned byte ................................................................................................................................................... 33

A.2.31 Decimal ............................................................................................................................................................ 34

A.2.32 Float .................................................................................................................................................................. 34

A.2.33 Double .............................................................................................................................................................. 34

A.2.34 Date and time ................................................................................................................................................... 34

A.2.35 Date .................................................................................................................................................................. 36

A.2.36 Gregorian year and month ................................................................................................................................ 37

ETSI
---------------------- Page: 5 ----------------------
SIST-TS ETSI/TS 103 254 V1.1.1:2016
4 ETSI TS 103 254 V1.1.1 (2015-03)

A.2.37 Gregorian year .................................................................................................................................................. 38

A.2.38 Boolean type ..................................................................................................................................................... 39

A.2.39 AnyType and anySimpleType types................................................................................................................. 40

A.2.40 Id ...................................................................................................................................................................... 40

A.2.41 MinOccurs and maxOccurs .............................................................................................................................. 40

A.2.42 Default and Fixed ............................................................................................................................................. 42

A.2.43 Form ................................................................................................................................................................. 43

A.2.44 Type .................................................................................................................................................................. 45

A.2.45 Use.................................................................................................................................................................... 45

A.2.46 Final .................................................................................................................................................................. 46

A.2.47 Element component .......................................................................................................................................... 46

A.2.48 Attribute element definitions ............................................................................................................................ 47

A.2.49 Attribute group definitions ............................................................................................................................... 47

A.2.50 Derivation by restriction ................................................................................................................................... 47

A.2.51 Derivation by list .............................................................................................................................................. 47

A.2.52 Derivation by union .......................................................................................................................................... 48

A.2.53 Extending simple content ................................................................................................................................. 49

A.2.54 Restricting simple content ................................................................................................................................ 50

A.2.55 Complex content derived by extension ............................................................................................................ 50

A.2.56 Complex content derived by restriction ............................................................................................................ 51

A.2.57 Referencing group components ........................................................................................................................ 52

A.2.58 All content ........................................................................................................................................................ 54

A.2.59 Choice content .................................................................................................................................................. 54

A.2.60 Choice with nested elements ............................................................................................................................ 55

A.2.61 Choice with nested group ................................................................................................................................. 55

A.2.62 Choice with nested choice ................................................................................................................................ 55

A.2.63 Choice with nested sequence ............................................................................................................................ 55

A.2.64 Choice with nested any ..................................................................................................................................... 56

A.2.65 Sequence with nested element content ............................................................................................................. 56

A.2.66 Sequence with nested group content ................................................................................................................ 56

A.2.67 Sequence with nested choice content ............................................................................................................... 56

A.2.68 Sequence with nested sequence content ........................................................................................................... 57

A.2.69 Sequence with nested any content .................................................................................................................... 57

A.2.70 Effect of the minOccurs and maxOccurs attributes on the mapping ................................................................ 57

A.2.71 Attribute definitions, attribute and attributeGroup references .......................................................................... 58

A.2.72 Mixed content ................................................................................................................................................... 59

A.2.73 The any element ............................................................................................................................................... 60

A.2.74 The anyAttribute element ................................................................................................................................. 61

A.2.75 Annotation ........................................................................................................................................................ 62

A.2.76 Group components ........................................................................................................................................... 62

A.2.77 Identity-constraint definition schema components ........................................................................................... 62

A.2.78 Head elements of substitution groups ............................................................................................................... 63

A.2.79 TTCN-3 module XSD ...................................................................................................................................... 64

History .............................................................................................................................................................. 79

ETSI
---------------------- Page: 6 ----------------------
SIST-TS ETSI/TS 103 254 V1.1.1:2016
5 ETSI TS 103 254 V1.1.1 (2015-03)
Intellectual Property Rights

IPRs essential or potentially essential to the present document may have been declared to ETSI. The information

pertaining to these essential IPRs, if any, is publicly available for ETSI members and non-members, and can be found

in ETSI SR 000 314: "Intellectual Property Rights (IPRs); Essential, or potentially Essential, IPRs notified to ETSI in

respect of ETSI standards", which is available from the ETSI Secretariat. Latest updates are available on the ETSI Web

server (http://ipr.etsi.org).

Pursuant to the ETSI IPR Policy, no investigation, including IPR searches, has been carried out by ETSI. No guarantee

can be given as to the existence of other IPRs not referenced in ETSI SR 000 314 (or the updates on the ETSI Web

server) which are, or may be, or may become, essential to the present document.
Foreword

This Technical Specification (TS) has been produced by ETSI Technical Committee Methods for Testing and

Specification (MTS).
Modal verbs terminology

In the present document "shall", "shall not", "should", "should not", "may", "need not", "will", "will not", "can" and

"cannot" are to be interpreted as described in clause 3.2 of the ETSI Drafting Rules (Verbal forms for the expression of

provisions).

"must" and "must not" are NOT allowed in ETSI deliverables except when used in direct citation.

ETSI
---------------------- Page: 7 ----------------------
SIST-TS ETSI/TS 103 254 V1.1.1:2016
6 ETSI TS 103 254 V1.1.1 (2015-03)
1 Scope

The purpose of the present document is to provide Test Suite Structure and Test Purposes (TSS&TP) for the

conformance test suite for using XML Schema with TTCN-3 as defined in ETSI ES 201 873-1 [5] in compliance with

the relevant guidance given in the proforma for TTCN-3 reference test suite ETSI TS 102 995 [4]. In the present

document only XML related features, specified in ETSI ES 201 873-9 [1] have been considered but not the core

language features (see ETSI ES 201 873-1 [5]), nor tool implementation (see ETSI ES 201 873-5 [i.1] and ETSI

ES 201 873-6 [i.2]), language mapping (see ETSI ES 201 873-7 [i.3] and ETSI ES 201 873-8 [i.4]) and language

extension (see e.g. ETSI ES 202 781 [i.5], ETSI ES 202 784 [i.6] and ETSI ES 202 785 [i.7]) aspects.

2 References
2.1 Normative references

References are either specific (identified by date of publication and/or edition number or version number) or

non-specific. For specific references, only the cited version applies. For non-specific references, the latest version of the

reference document (including any amendments) applies.

Referenced documents which are not found to be publicly available in the expected location might be found at

http://docbox.etsi.org/Reference.

NOTE: While any hyperlinks included in this clause were valid at the time of publication, ETSI cannot guarantee

their long term validity.

The following referenced documents are necessary for the application of the present document.

[1] ETSI ES 201 873-9 (V4.5.1): "Methods for Testing and Specification (MTS); The Testing and

Test Control Notation version 3; Part 9: Using XML schema with TTCN-3".

[2] ISO/IEC 9646-1 (1994): "Information Technology - Open Systems Interconnection - Conformance

Testing Methodology and Framework - Part 1: General concepts".
[3] ISO/IEC 9646-7 (1995): "Conformance testing methodology and framework -
Part 7: Implementation Conformance Statement".

[4] ETSI TS 102 995: "Methods for Testing and Specification (MTS); The Testing and Test Control

Notation version 3; Proforma for TTCN-3 reference test suite".

[5] ETSI ES 201 873-1 (V4.5.1): "Methods for Testing and Specification (MTS); The Testing and

Test Control Notation version 3; Part 1: TTCN-3 Core Language".
2.2 Informative references

References are either specific (identified by date of publication and/or edition number or version number) or

non-specific. For specific references, only the cited version applies. For non-specific references, the latest version of the

reference document (including any amendments) applies.

NOTE: While any hyperlinks included in this clause were valid at the time of publication, ETSI cannot guarantee

their long term validity.

The following referenced documents are not necessary for the application of the present document but they assist the

user with regard to a particular subject area.

[i.1] ETSI ES 201 873-5: "Methods for Testing and Specification (MTS); The Testing and Test Control

Notation version 3; Part 5: TTCN-3 Runtime Interface (TRI)".

[i.2] ETSI ES 201 873-6: "Methods for Testing and Specification (MTS); The Testing and Test Control

Notation version 3; Part 6: TTCN-3 Control Interface (TCI)".

[i.3] ETSI ES 201 873-7: "Methods for Testing and Specification (MTS); The Testing and Test Control

Notation version 3; Part 7: Using ASN.1 with TTCN-3".
ETSI
---------------------- Page: 8 ----------------------
SIST-TS ETSI/TS 103 254 V1.1.1:2016
7 ETSI TS 103 254 V1.1.1 (2015-03)

[i.4] ETSI ES 201 873-8: "Methods for Testing and Specification (MTS); The Testing and Test Control

Notation version 3; Part 8: The IDL to TTCN-3 Mapping".

[i.5] ETSI ES 202 781: "Methods for Testing and Specification (MTS); The Testing and Test Control

Notation version 3; TTCN-3 Language Extensions: Configuration and Deployment Support".

[i.6] ETSI ES 202 784: "Methods for Testing and Specification (MTS); The Testing and Test Control

Notation version 3; TTCN-3 Language Extensions: Advanced Parameterization".

[i.7] ETSI ES 202 785: "Methods for Testing and Specification (MTS); The Testing and Test Control

Notation version 3; TTCN-3 Language Extensions: Behaviour Types".
3 Definitions and abbreviations
3.1 Definitions

For the purposes of the present document, the terms and definitions given in ISO/IEC 9646-1 [2], ISO/IEC 9646-7 [3],

ETSI ES 201 873-1 [5] (TTCN-3) and the following apply:
Abstract Test Suite (ATS): test suite composed of abstract test cases

Implementation Conformance Statement (ICS): statement made by the supplier of an implementation claimed to

conform to a given specification, stating which capabilities have been implemented

ICS proforma: document, in the form of a questionnaire, which when completed for an implementation or system

becomes an ICS

Implementation eXtra Information for Testing (IXIT): statement made by a supplier or implementor of an IUT

which contains or references all of the information related to the IUT and its testing environment, which will enable the

test laboratory to run an appropriate test suite against the IUT

IXIT proforma: document, in the form of a questionnaire, which when completed for the IUT becomes the IXIT

Implementation Under Test (IUT): implementation of one or more OSI protocols in an adjacent user/provider

relationship, being part of a real open system which is to be studied by testing
3.2 Abbreviations
For the purposes of the present document, the following abbreviations apply:
ATS Abstract Test Suite
BNF Backus Naur Form
ICS Implementation Conformance Statement
IUT Implementation under Test
IXIT Implementation eXtra Information for Testing
SUT System Under Test
TC Test Case
TCI TTCN-3 Control Interface
TP Test Purpose
TRI TTCN-3 Runtime Interface
TS Test System
TSS Test Suite Structure
TSS&TP Test Suite Structure and Test Purposes
TTCN-3 Testing and Test Control Notation edition 3
XML eXtensible Markup Language
XSD XML Schema Definition
URI Unified Resource Identifier
ASCII American Standard Code for Information Interchange
URL Unified Resource Locator
ETSI
---------------------- Page: 9 ----------------------
SIST-TS ETSI/TS 103 254 V1.1.1:2016
8 ETSI TS 103 254 V1.1.1 (2015-03)
4 Test Suite Structure (TSS)

The Test Suite Structure is in close alignment with ETSI ES 201 873-9 [1], containing:

a) positive tests (Table 1);
b) negative tests (Table 2).

The execution order of the TTCN-3 tool conformance test cases is specified in the dependencies section of test purpose

descriptions.
Table 1: Test suite structure, positive tests
5 Mapping 5.1.1 Namespaces Pos_050101_namespaces_001
XML Schemas
Pos_050101_namespaces_002
Pos_050101_namespaces_003
Pos_050101_namespaces_004
5.1.2 Includes Pos_050102_includes_001
Pos_050102_includes_002
Pos_050102_includes_003
5.1.3 Imports Pos_050103_imports_001
5.1.4 Attributes of the Pos_050104_attributes_of_the_xsd_schema_element_001
XSD schema
Pos_050104_attributes_of_the_xsd_schema_element_002
element
Pos_050104_attributes_of_the_xsd_schema_element_003
Pos_050104_attributes_of_the_xsd_schema_element_004
Pos_050104_attributes_of_the_xsd_schema_element_005
Pos_050104_attributes_of_the_xsd_schema_element_006
5.2.2 Name Pos_050202_name_conversion_rules_001
conversion rules
Pos_050202_name_conversion_rules_002
Pos_050202_name_conversion_rules_003
Pos_050202_name_conversion_rules_004
Pos_050202_name_conversion_rules_005
Pos_050202_name_conversion_rules_006
Pos_050202_name_conversion_rules_007
Pos_050202_name_conversion_rules_008
Pos_050202_name_conversion_rules_009
Pos_050202_name_conversion_rules_010
Pos_050202_name_conversion_rules_011
Pos_050202_name_conversion_rules_012
Pos_050202_name_conversion_rules_013
Pos_050202_name_conversion_rules_014
Pos_050202_name_conversion_rules_015
Pos_050202_name_conversion_rules_016
Pos_050202_name_conversion_rules_017
Pos_050202_name_conversion_rules_018
Pos_050202_name_conversion_rules_019
Pos_050202_name_conversion_rules_020
Pos_050202_name_conversion_rules_021
Pos_050202_name_conversion_rules_022
Pos_050202_name_conversion_rules_023
5.2.3 Order of the Pos_050203_order_of_the_mapping_001
mapping
Pos_050203_order_of_the_mapping_002
Pos_050203_order_of_the_mapping_003
ETSI
---------------------- Page: 10 ----------------------
SIST-TS ETSI/TS 103 254 V1.1.1:2016
9 ETSI TS 103 254 V1.1.1 (2015-03)
...

Questions, Comments and Discussion

Ask us and Technical Secretary will try to provide an answer. You can facilitate discussion about the standard in here.