1、 ETSI ES 203 119-5 V1.1.1 (2018-05) Methods for Testing and Specification (MTS); The Test Description Language (TDL); Part 5: UML profile for TDL G1G2G3G4G5G3G2G6G7G8G6G9G8G5ETSI ETSI ES 203 119-5 V1.1.1 (2018-05)2 Reference DES/MTS-203119-5 Keywords methodology, model, testing ETSI 650 Route des Lu
2、cioles 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 enregistre la Sous-Prfecture de Grasse (06) N 7803/88 Important notice The present document can be downloaded from: http:/www.etsi.org/stan
3、dards-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 conten
4、ts 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.
5、Information on the current status of this and other ETSI documents is available at https:/portal.etsi.org/TB/ETSIDeliverableStatus.aspx 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 Copyr
6、ight 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
7、copyright and the foregoing restriction extend to reproduction in all media. ETSI 2018. All rights reserved. DECTTM, PLUGTESTSTM, UMTSTMand the ETSI logo are trademarks of ETSI registered for the benefit of its Members. 3GPPTM and LTETMare trademarks of ETSI registered for the benefit of its Members
8、 and of the 3GPP Organizational Partners. oneM2M logo is protected for the benefit of its Members. GSMand the GSM logo are trademarks registered and owned by the GSM Association. ETSI ETSI ES 203 119-5 V1.1.1 (2018-05)3 Contents Intellectual Property Rights . 6G1Foreword 6G1Modal verbs terminology .
9、 6G11 Scope . 7G12 References . 7G12.1 Normative references . 7G12.2 Informative references . 7G13 Definitions, symbols and abbreviations . 7G13.1 Definitions . 7G13.2 Symbols . 8G13.3 Abbreviations 8G14 Structure of the UML Profile for TDL 8G15 Foundation . 9G15.1 Overview . 9G15.2 Element 9G15.3 N
10、amedElement 9G15.4 PackageableElement .10G15.5 Package .10G15.6 ElementImport 10G15.7 Comment 11G15.8 Annotation 11G15.9 AnnotationType 12G15.10 TestObjective 12G16 Data 12G16.1 Data Definition .12G16.1.1 Overview .12G16.1.2 DataResourceMapping 13G16.1.3 MappableDataElement 13G16.1.4 DataElementMapp
11、ing .13G16.1.5 ParameterMapping 14G16.1.6 DataType .14G16.1.7 DataInstance 14G16.1.8 SimpleDataType .15G16.1.9 SimpleDataInstance 15G16.1.10 StructuredDataType 16G16.1.11 Member .16G16.1.12 StructuredDataInstance .16G16.1.13 MemberAssignment 17G16.1.14 Parameter 17G16.1.15 FormalParameter .17G16.1.1
12、6 Variable .18G16.1.17 Action18G16.1.18 Function 18G16.2 Data Use .19G16.2.1 Overview .19G16.2.2 DataUse .19G16.2.3 ParameterBinding .20G16.2.4 StaticDataUse 20G16.2.5 DataInstanceUse .20G16.2.6 SpecialValueUse .21G16.2.7 AnyValue 21G16.2.8 AnyValueOrOmit 21G16.2.9 OmitValue .22G1ETSI ETSI ES 203 11
13、9-5 V1.1.1 (2018-05)4 6.2.10 DynamicDataUse 22G16.2.11 FunctionCall 22G16.2.12 FormalParameterUse .23G16.2.13 VariableUse.23G17 Time . 23G17.1 Overview 23G17.2 Time25G17.3 TimeLabel 25G17.4 TimeLabelUse 25G17.5 TimeConstraint .26G17.6 TimeOperation 26G17.7 Wait 26G17.8 Quiescence 27G17.9 Timer 27G17
14、.10 TimerOperation 27G17.11 TimerStart .28G17.12 TimerStop .28G17.13 TimeOut 28G18 Test Configuration . 29G18.1 Overview 29G18.2 GateType 29G18.3 GateInstance .30G18.4 ComponentType .30G18.5 ComponentInstance 30G18.6 ComponentInstanceRole .31G18.7 GateReference 31G18.8 Connection 32G18.9 TestConfigu
15、ration .32G19 Test Behaviour . 32G19.1 Test Description 32G19.1.1 Overview .32G19.1.2 TestDescription .33G19.1.3 BehaviourDescription .33G19.2 Combined Behaviour 34G19.2.1 Overview .34G19.2.2 Behaviour 34G19.2.3 Block .35G19.2.4 CombinedBehaviour .35G19.2.5 SingleCombinedBehaviour .35G19.2.6 Compoun
16、dBehaviour 36G19.2.7 BoundedLoopBehaviour .36G19.2.8 UnboundedLoopBehaviour .36G19.2.9 MultipleCombinedBehaviour 37G19.2.10 AlternativeBehaviour 37G19.2.11 ConditionalBehaviour .37G19.2.12 ParallelBehaviour 37G19.2.13 ExceptionalBehaviour .38G19.2.14 DefaultBehaviour 38G19.2.15 InterruptBehaviour 38
17、G19.2.16 PeriodicBehaviour .39G19.3 Atomic Behaviour 39G19.3.1 Overview .39G19.3.2 AtomicBehaviour 41G19.3.3 Break .41G19.3.4 Stop .41G19.3.5 VerdictAssignment .42G19.3.6 Assertion .42G19.3.7 Interaction .42G19.3.8 Target 43G19.3.9 TestDescriptionReference .43G1ETSI ETSI ES 203 119-5 V1.1.1 (2018-05
18、)5 9.3.10 ComponentInstanceBinding 44G19.3.11 ActionBehaviour .44G19.3.12 ActionReference .45G19.3.13 InlineAction 45G19.3.14 Assignment .46G1History . 47G1ETSI ETSI ES 203 119-5 V1.1.1 (2018-05)6 Intellectual Property Rights Essential patents IPRs essential or potentially essential to normative del
19、iverables 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 respe
20、ct of ETSI standards“, which is available from the ETSI Secretariat. 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 o
21、ther 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. Trademarks The present document may include trademarks and/or tradenames which are asserted and/or registered by their owners. ETSI claims no ow
22、nership of these except for any which are indicated as being the property of ETSI, and conveys no right to use or reproduce any trademark and/or tradename. Mention of those trademarks in the present document does not constitute an endorsement by ETSI of products, services or organizations associated
23、 with those trademarks. Foreword This ETSI Standard (ES) has been produced by ETSI Technical Committee Methods for Testing and Specification (MTS). The present document is part 5 of a multi-part deliverable. Full details of the entire series can be found in part 1 1. Modal verbs terminology In the p
24、resent 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 deliverab
25、les except when used in direct citation. ETSI ETSI ES 203 119-5 V1.1.1 (2018-05)7 1 Scope The present document specifies how the concepts of the TDL meta-model 1 are mapped to OMGUML to create a UML Profile for TDL, called UP4TDL. NOTE: OMG and UMLare the trademarks of OMG (Object Management Group).
26、 This information is given for the convenience of users of the present document and does not constitute an endorsement by ETSI of the products named. 2 References 2.1 Normative references References are either specific (identified by date of publication and/or edition number or version number) or no
27、n-specific. For specific references, only the cited version applies. For non-specific references, the latest version of the referenced document (including any amendments) applies. Referenced documents which are not found to be publicly available in the expected location might be found at https:/docb
28、ox.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 203 119-1 (V1.4.1): “Methods for T
29、esting and Specification (MTS); The Test Description Language (TDL); Part 1: Abstract Syntax and Associated Semantics“. 2 OMG formal/2011-08-06: “OMG Unified Modeling Language (OMG UML) Superstructure, Version 2.4.1“. NOTE: Available at http:/www.omg.org/spec/UML/2.4.1/. 2.2 Informative references R
30、eferences 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 referenced document (including any amendments) applies. NOTE: Whi
31、le 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. Not app
32、licable. 3 Definitions, symbols and abbreviations 3.1 Definitions For the purposes of the present document, the terms and definitions given in ETSI ES 203 119-1 1 and the following apply: UML profile: extension mechanism provided by UML ETSI ETSI ES 203 119-5 V1.1.1 (2018-05)8 3.2 Symbols For the pu
33、rposes of the present document, the symbols given in 2 apply. 3.3 Abbreviations For the purposes of the present document, the following abbreviations apply: OMG Object Management Group SUT System Under Test TDL Test Description Language UML Unified Modelling Language 4 Structure of the UML Profile f
34、or TDL The stereotypes representing concepts from the Foundation section of the TDL meta-model are directly stored in the UP4TDL Profile, while other concepts are stored in various additional included Packages. Figure 4.1: Structure of UMLProfile4TDL The following clauses describe the content of eac
35、h package. The subclauses describe how the TDL meta-model elements can be mapped to UML. ETSI ETSI ES 203 119-5 V1.1.1 (2018-05)9 5 Foundation 5.1 Overview Most concepts of the Foundation Package are directly mapped to UML meta-classes. Exceptions are: G1 TDL:Element : a stereotype is created to all
36、ow elements to have Annotations; G1 TDL:Annotations and TDL:TestObjective for which there is no equivalent concept in UML. Figure 5.1: Foundational language concepts 5.2 Element Extended UML Meta-Class G1 UML:Element Generalization None. Properties G1 G1 TDL:Ement := Computed as the set of Comment w
37、hose annotatedElement Property contains this element G1 TDL:Element. annotation := UP4TDL:Element.annotation : new (derived) property computed as the set of Comment with stereotype Annotation applied whose annotatedElement property contains this Element Constraints None. 5.3 NamedElement Extended UM
38、L Meta-Class G1 Direct mapping without a stereotype to UML:NamedElement ETSI ETSI ES 203 119-5 V1.1.1 (2018-05)10 Generalization None. Properties G1 TDL:NamedElement.qualifiedName := UML:NamedElement.qualifiedName Constraints None. 5.4 PackageableElement Extended UML Meta-Class G1 Direct mapping wit
39、hout a stereotype to UML:PackageableElement Generalization None. Properties None. Constraints None. 5.5 Package Extended UML Meta-Class G1 Direct mapping without a stereotype to UML:Package Generalization None. Properties G1 TDL:Package.packagedElement:= UML:Package.packagedElement G1 TDL:Package.im
40、port := UML:Package.elementImport G1 TDL:Package.nestedPackage := UML:Package.nestedPackage Constraints None. 5.6 ElementImport Extended UML Meta-Class G1 Direct mapping without a stereotype to UML:ElementImport ETSI ETSI ES 203 119-5 V1.1.1 (2018-05)11 Generalization None. Properties G1 TDL:Element
41、Import is resolved in UML by a set of UML:ElementImport G1 TDL:ElementImport.importedPackage := UML:ElementImport.importedElement.namespace G1 TDL:ElementImport.importedElement := UML:ElementImport. importedElement Constraints None. Model to Model transformation advice G1 In UML, an ElementImport ca
42、n import exactly one element. This implies that for one TDL:ElementImport, the equivalent model in UP4TDL can have several UML:ElementImport 5.7 Comment Extended UML Meta-Class G1 Direct mapping without a stereotype to UML:Comment Generalization None. Properties G1 TDL:CmentedElement := UML:Comment.
43、annotatedElement G1 TDL:Comment.body := UML:Comment.body Constraints None. 5.8 Annotation Extended UML Meta-Class G1 UML:Comment Generalization None. Properties G1 G1 TDL:Annotation.key :=UP4TDL:Annotation.key (new property) G1 TDL:Annotation.value := UP4TDL:Annotation.base_Comment.body ETSI ETSI ES
44、 203 119-5 V1.1.1 (2018-05)12 G1 TDL:Annotation.annotatedElement := UP4TDL:Annotation.base_Comment.annotatedElement Constraints None. 5.9 AnnotationType Extended UML Meta-Class G1 Direct mapping without a stereotype to UML:PrimitiveType Generalization None. Properties None. Constraints None. 5.10 Te
45、stObjective Extended UML Meta-Class G1 UML:Comment G1 UML:Class Generalization None. Properties G1 G1 TDL:TestObjective.description := UP4TDL:TestObjective.description G1 TDL:TestObjective.objectiveURI := UP4 TDL:TestObjective.objectiveURI (new property) Constraints None. 6 Data 6.1 Data Definition
46、6.1.1 Overview TDL Data Mapping-related concepts are mapped to stereotypes in UML. ETSI ETSI ES 203 119-5 V1.1.1 (2018-05)13 TDL:Function concept is mapped to a stereotype to make it possible to add the constraint that a Function has exactly one return parameter. All the other TDL Data Definition co
47、ncepts are directly mapped to UML meta-classes without stereotypes. Figure 6.1: Data Definition concepts 6.1.2 DataResourceMapping Extended UML Meta-Class G1 UML:Class Generalization None. Properties G1 G1 TDL:DataResourceMapping.resourceURI := UP4TDL:DataresourceMapping.reourceURI (new property) Co
48、nstraints None. 6.1.3 MappableDataElement This MetaClass shall not be mapped. 6.1.4 DataElementMapping Extended UML Meta-Class G1 UML:Dependency Generalization None. Properties G1 G1 TDL:DataElementMapping.elementURI :=UP4TDL:DataElementMapping.elementURI (new property) ETSI ETSI ES 203 119-5 V1.1.1
49、 (2018-05)14 G1 TDL:DataElementMapping.dataResourceMapping := UP4TDL:DataElementMapping.base_AssociationClass.memberEnd0 G1 TDL:DataElementMapping.mappableDataElement := UP4TDL:DataElementMapping.base_AssociationClass.memberEnd1 G1 TDL:DataElementMapping.parameterMapping := UP4TDL:DataElementMapping.parameterMapping (new property) Constraints None. 6.1.5 ParameterMapping Extended UML Meta-Class G1 UML:Expression Generalization None. Properties G1 G1 TDL:ParameterMapping.me