1、 ETSI TS 103 254 V1.2.1 (2016-03) Methods for Testing and Specification (MTS); TTCN-3 Conformance Test Suite for use of XML schema; Test Suite Structure and Test Purposes (TSS Essential, or potentially Essential, IPRs notified to ETSI in respect of ETSI standards“, which is available from the ETSI S
2、ecretariat. Latest updates are available on the ETSI Web server (https:/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 updat
3、es 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
4、“, “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 cita
5、tion. ETSI ETSI TS 103 254 V1.2.1 (2016-03)6 1 Scope The purpose of the present document is to provide Test Suite Structure and Test Purposes (TSS 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 I
6、nterconnection - Conformance testing methodology and framework - Part 1: General concepts“. 3 ISO/IEC 9646-7 (1995): “Information technology - Open Systems Interconnection - Conformance testing methodology and framework - Part 7: Implementation Conformance Statements“. 4 ETSI ES 201 873-1 (V4.7.1):
7、“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
8、, only the cited version applies. For non-specific references, the latest version of the referenced 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 ref
9、erenced 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 (T
10、RI)“. 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
11、.1 with TTCN-3“. 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 Langua
12、ge Extensions: Configuration and Deployment Support“. ETSI ETSI TS 103 254 V1.2.1 (2016-03)7 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 T
13、esting 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
14、873-1 4 (TTCN-3) and the following apply: Abstract Test Suite (ATS): test suite composed of abstract test cases ICS proforma: document, in the form of a questionnaire, which when completed for an implementation or system becomes an ICS Implementation Conformance Statement (ICS): statement made by th
15、e supplier of an implementation claimed to conform to a given specification, stating which capabilities have been implemented 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
16、IUT and its testing environment, which will enable the test laboratory to run an appropriate test suite against the IUT 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 t
17、esting IXIT proforma: document, in the form of a questionnaire, which when completed for the IUT becomes the IXIT 3.2 Abbreviations For the purposes of the present document, the following abbreviations apply: ASCII American Standard Code for Information Interchange ATS Abstract Test Suite ICS Implem
18、entation Conformance Statement IUT Implementation under Test IXIT Implementation eXtra Information for Testing TC Test Case TCI TTCN-3 Control Interface TP Test Purpose TRI TTCN-3 Runtime Interface TS Test System TSS Test Suite Structure TSS b) negative tests (table 2). ETSI ETSI TS 103 254 V1.2.1 (
19、2016-03)8 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 XML Schemas 5.1.1 Namespaces Pos_050101_namespaces_001 Pos_050101_namespaces_002 Pos_050101_namespace
20、s_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 XSD schema element Pos_050104_attributes_of_the_xsd_schema_element_001 Pos_050104_attributes_of_the_xsd_schema_element_0
21、02 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 conversion rules Pos_050202_name_conversion_rules_001 Pos_050202_name_conversi
22、on_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_r
23、ules_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
24、_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 mapping Pos_050203_order_of_the_mapping_001 Pos_050203_order_of_the_mapping_002 Pos_050203_
25、order_of_the_mapping_003 Pos_050203_order_of_the_mapping_004 Pos_050203_order_of_the_mapping_005 6 Built-in data types Top level Pos_06_top_level_001 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_enumeratio
26、n_003 Pos_060105_enumeration_004 Pos_060105_enumeration_005 Pos_060105_enumeration_006 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_060
27、108_maxinclusive_002 ETSI ETSI TS 103 254 V1.2.1 (2016-03)9 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.1.1
28、1 Total digits Pos_060111_total_digits_001 Pos_060111_total_digits_002 Pos_060111_total_digits_003 Pos_060111_total_digits_004 Pos_060111_total_digits_005 6.1.12 Fraction digits Pos_060112_fraction_digits_001 Pos_060112_fraction_digits_002 6.1.13 Not specifically mapped facets Pos_060113_not_mapped_
29、001 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 integer Pos_060303_non_positive_integer_001 6.3.4 Negative integer Pos_060304_neg
30、ative_integer_001 6.3.5 Non-negative integer Pos_060305_non_negative_integer_001 6.3.6 Long Pos_060306_long_001 6.3.7 Unsigned long Pos_060307_unsigned_long_001 6.3.8 Int Pos_060308_int_001 6.3.9 Unsigned int Pos_060309_unsigned_int_001 6.3.10 Short Pos_060310_short_001 6.3.11 Unsigned Short Pos_060
31、311_unsigned_short_001 6.3.12 Byte Pos_060312_byte_001 6.3.13 Unsigned byte Pos_060313_unsigned_byte_001 6.4.1 Decimal Pos_060401_decimal_001 6.4.2 Float Pos_060402_float_001 6.4.3 Double Pos_060403_double_001 6.5.2 Date and time Pos_060502_date_and_time_001 Pos_060502_date_and_time_002 Pos_060502_d
32、ate_and_time_003 Pos_060502_date_and_time_004 6.5.4 Date Pos_060504_date_001 Pos_060504_date_002 Pos_060504_date_003 Pos_060504_date_004 6.5.5 Gregorian year and month Pos_060505_gregorian_year_and_month_001 Pos_060505_gregorian_year_and_month_002 6.5.6 Gregorian year Pos_060506_gregorian_year_001 P
33、os_060506_gregorian_year_002 Pos_060506_gregorian_year_003 Pos_060506_gregorian_year_004 Pos_060506_gregorian_year_005 Pos_060506_gregorian_year_006 6.7 Boolean type Pos_0607_boolean_type_001 Pos_0607_boolean_type_002 6.8 AnyType and anySimpleType types Pos_0608_anytype_and_anysimpletype_types_001 P
34、os_0608_anytype_and_anysimpletype_types_002 ETSI ETSI TS 103 254 V1.2.1 (2016-03)10 7 Mapping XSD components 7.1.1 Id Pos_070101_id_001 Pos_070101_id_002 Pos_070101_id_001 Pos_070101_id_002 7.1.4 MinOccurs and maxOccurs Pos_070104_minoccurs_and_maxoccurs_001 Pos_070104_minoccurs_and_maxoccurs_002 Po
35、s_070104_minoccurs_and_maxoccurs_003 Pos_070104_minoccurs_and_maxoccurs_004 Pos_070104_minoccurs_and_maxoccurs_005 Pos_070104_minoccurs_and_maxoccurs_006 Pos_070104_minoccurs_and_maxoccurs_007 Pos_070104_minoccurs_and_maxoccurs_001 Pos_070104_minoccurs_and_maxoccurs_002 Pos_070104_minoccurs_and_maxo
36、ccurs_003 Pos_070104_minoccurs_and_maxoccurs_004 Pos_070104_minoccurs_and_maxoccurs_005 Pos_070104_minoccurs_and_maxoccurs_006 Pos_070104_minoccurs_and_maxoccurs_007 7.1.5 Default and Fixed Pos_070105_default_and_fixed_001 Pos_070105_default_and_fixed_002 Pos_070105_default_and_fixed_003 Pos_070105_
37、default_and_fixed_004 Pos_070105_default_and_fixed_001 Pos_070105_default_and_fixed_002 Pos_070105_default_and_fixed_003 Pos_070105_default_and_fixed_004 7.1.6 Form Pos_070106_form_001 Pos_070106_form_002 Pos_070106_form_003 Pos_070106_form_004 Pos_070106_form_005 Pos_070106_form_006 Pos_070106_form
38、_007 Pos_070106_form_008 Pos_070106_form_001 Pos_070106_form_002 Pos_070106_form_003 Pos_070106_form_004 Pos_070106_form_005 Pos_070106_form_006 Pos_070106_form_007 Pos_070106_form_008 Pos_070106_form_009 Pos_070106_form_010 Pos_070106_form_011 Pos_070106_form_012 7.1.7 Type Pos_070107_type_001 Pos_
39、070107_type_002 Pos_070107_type_003 Pos_070107_type_001 Pos_070107_type_002 Pos_070107_type_003 7.1.12 Use Pos_070112_use_001 Pos_070112_use_002 Pos_070112_use_003 Pos_070112_use_001 Pos_070112_use_002 Pos_070112_use_003 7.1.14 Final Pos_070114_final_001 Pos_070114_final_001 7.3 Element component Po
40、s_0703_element_component_001 Pos_0703_element_component_002 ETSI ETSI TS 103 254 V1.2.1 (2016-03)11 Pos_0703_element_component_003 Pos_0703_element_component_004 7.4.1 Attribute element definitions Pos_070401_attribute_element_definitions_001 Pos_070401_attribute_element_definitions_001 7.4.2 Attrib
41、ute group definitions Pos_070402_attribute_group_definitions_001 Pos_070402_attribute_group_definitions_001 7.5.1 Derivation by restriction Pos_070501_derivation_by_restriction_001 7.5.2 Derivation by list Pos_070502_derivation_by_list_001 Pos_070502_derivation_by_list_002 Pos_070502_derivation_by_l
42、ist_003 Pos_070502_derivation_by_list_004 Pos_070502_derivation_by_list_005 7.5.3 Derivation by union Pos_070503_derivation_by_union_001 Pos_070503_derivation_by_union_002 Pos_070503_derivation_by_union_003 Pos_070503_derivation_by_union_004 Pos_070503_derivation_by_union_005 Pos_070503_derivation_b
43、y_union_006 7.6.1.1 Extending simple content Pos_07060101_extending_simple_content_001 7.6.1.2 Restricting simple content Pos_07060102_restricting_simple_content_001 7.6.2.1 Complex content derived by extension Pos_07060201_derived_by_extension_001 Pos_07060201_derived_by_extension_002 Pos_07060201_
44、derived_by_extension_003 Pos_07060201_derived_by_extension_004 Pos_07060201_derived_by_extension_005 Pos_07060201_derived_by_extension_006 Pos_07060201_derived_by_extension_007 Pos_07060201_derived_by_extension_008 Pos_07060201_derived_by_extension_009 7.6.2.2 Complex content derived by restriction
45、Pos_07060202_derived_by_restriction_001 7.6.3 Referencing group components Pos_070603_referencing_group_components_001 Pos_070603_referencing_group_components_002 Pos_070603_referencing_group_components_003 Pos_070603_referencing_group_components_004 Pos_070603_referencing_group_components_005 Pos_0
46、70603_referencing_group_components_006 Pos_070603_referencing_group_components_007 Pos_070603_referencing_group_components_008 Pos_070603_referencing_group_components_009 Pos_070603_referencing_group_components_010 7.6.4 All content Pos_070604_all_content_001 Pos_070604_all_content_002 Pos_070604_al
47、l_content_003 Pos_070604_all_content_004 7.6.5 Choice content Pos_070605_top_level_001 Pos_070605_top_level_002 7.6.5.1 Choice with nested elements Pos_07060501_choice_with_nested_elements_001 Pos_07060501_choice_with_nested_elements_001 7.6.5.2 Choice with nested group Pos_07060502_choice_with_nest
48、ed_group_001 Pos_07060502_choice_with_nested_group_001 7.6.5.3 Choice with nested choice Pos_07060503_choice_with_nested_choice_001 Pos_07060503_choice_with_nested_choice_001 7.6.5.4 Choice with nested sequence Pos_07060504_choice_with_nested_sequence_001 Pos_07060504_choice_with_nested_sequence_002
49、 Pos_07060504_choice_with_nested_sequence_001 Pos_07060504_choice_with_nested_sequence_002 7.6.5.5 Choice with nested any Pos_07060505_choice_with_nested_any_001 Pos_07060505_choice_with_nested_any_001 ETSI ETSI TS 103 254 V1.2.1 (2016-03)12 7.6.6.1 Sequence with nested element content Pos_07060601_sequence_with_nested_element_001 Pos_07060601_sequence_with_nested_element_001 7.6.6.2 Sequence with nested group content Pos_07060602_sequence_with_nested_group_001 Pos_07060602_sequence_with_nested_group_001 7.6.6.3 Sequence with nested choice content Pos_07060603_sequen