1、 ETSI TS 103 268-3 V1.1.1 (2017-04) SmartM2M; Smart Appliances Ontology and Communication Framework Testing; Part 3: 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 Secretariat. Lat
2、est 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 updates on the ETSI
3、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 Smart Machine-to-Machine communications (SmartM2M). The present document is part 3 of a multi-part deliverable covering Conform
4、ance test specifications for Smart Appliances Ontology and Communication Framework Testing, as identified below: Part 1: “Testing methodology“; Part 2: “Protocol Implementation Conformance Statement (PICS) pro forma“; Part 3: “Test Suite Structure and Test Purposes (TSS Part 4: “Abstract Test Suite
5、(ATS) and Protocol Implementation eXtra Information for Testing (PIXIT)“. 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 Rule
6、s (Verbal forms for the expression of provisions). “must“ and “must not“ are NOT allowed in ETSI deliverables except when used in direct citation. ETSI ETSI TS 103 268-3 V1.1.1 (2017-04)5 1 Scope The present document provides the Test Suite Structure and Test Purposes (TSS Smart Appliances; Referenc
7、e Ontology and oneM2M Mapping“. 2 ETSI TS 118 112: “oneM2M; Base Ontology (oneM2M TS-00012)“. 3 ETSI TS 103 268-1: “SmartM2M; Smart Appliances Ontology and Communication Framework Testing; Part 1: Testing methodology“. 4 ISO/IEC 9646-7: “Information technology - Open Systems Interconnection - Confor
8、mance testing methodology and framework - Part 7: Implementation Conformance Statements“. 5 ETSI TS 118 115: “oneM2M; Testing Framework (oneM2M TS-0015)“. 2.2 Informative references References are either specific (identified by date of publication and/or edition number or version number) or non-spec
9、ific. For specific references, 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 ter
10、m 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 applicable. 3 Definitions and abbreviations 3.1 Definitions For the purposes of the present document, the terms and defi
11、nitions given in ETSI TS 103 268-1 3, in ETSI TS 118 112 2 and in ISO/IEC 9646-7 4 apply. ETSI ETSI TS 103 268-3 V1.1.1 (2017-04)6 3.2 Abbreviations For the purposes of the present document, the abbreviations given in ETSI TS 103 268-1 3, ETSI TS 103 264 1 and ETSI TS 118 112 2 and the following app
12、ly: API Application Programming Interface EUT Equipment Under Test IFS Interoperable Features Statement IUT Implementation Under Test IWF InterWorking Function PICS Protocol Implementation Conformance Statement QE Qualified Equipment RP Reference Point SAP Smart Appliance SUT System Under Test TP Te
13、st Purpose TSS Test Suite Structure 4 Prerequisites and Test Configurations 4.1 Test Configurations Figure 4.1-1: Test configuration 1 (CF01) Figure 4.1-2: Test configuration 2 (CF02) IUT TEST SYSTEM AE CSE Mca Mcc IUT TEST SYSTEM AE CSE Mca CSE ETSI ETSI TS 103 268-3 V1.1.1 (2017-04)7 Figure 4.1-3:
14、 Test configuration 3 (CF03) 5 Test Suite Structure (TSS) 5.1 Structure for SAP tests Table 5.1-1 shows SAP Test Suite Structure (TSS) including its subgroups defined for conformance testing. Table 5.1-1: TSS for oneM2M Root Group Sub-group category SAP SAREF Valid behaviourValid behaviour Valid beh
15、aviourValid behaviour Valid behaviourValid behaviour The test suite is structured as a tree with the root defined as SAP. The tree is of rank 3 with the first rank a Group, the second a Sub-group and the third a Category. The third rank is the standard ISO conformance test categories. IUT TEST SYSTE
16、M CSE AE Mca ETSI ETSI TS 103 268-3 V1.1.1 (2017-04)8 6 Test Purposes (TP) 6.1 Introduction 6.1.1 TP definition conventions The TPs are defined by the rules shown in table 6.1.1-1. Table 6.1.1-1: TP definition rules TP Header TP ID The TP ID is a unique identifier. It shall be specified according to
17、 the TP naming conventions defined in clause 6.1.2. Test objective Short description of test purpose objective according to the requirements from the base standard. Reference The reference indicates the sub-clauses of the reference standard specifications in which the conformance requirement is expr
18、essed. PICS Selection Reference to the PICS statement involved for selection of the TP. Contains a Boolean expression. TP Behaviour Initial conditions The initial conditions define in which initial state the IUT has to be to apply the actual TP. In the corresponding Test Case, when the execution of
19、the initial condition does not succeed, it leads to the assignment of an Inconclusive verdict. Expected behaviour (TP body) Definition of the events, which are parts of the TP objective, and the IUT are expected to perform in order to conform to the base specification. In the corresponding Test Case
20、, Pass or Fail verdicts can be assigned there. Final conditions Definition of the events that the IUT is expected to perform or shall not perform, according to the base standard and following the correct execution of the actions in the expected behaviour above. In the corresponding Test Case, the ex
21、ecution of the final conditions is evaluated for the assignment of the final verdict. 6.1.2 TP Identifier naming conventions The identifier of the TP is built according to table 6.1.2-1. Table 6.1.2-1: TP naming convention Identifier: TP/ = root = group = subgroup = type of testing BV Valid Behaviou
22、r tests BI Invalid Syntax or Behaviour Tests BO Inopportune Behaviour = sequential number 01 to 99 6.1.3 Rules for the behaviour description The description of the TP is built according to ETSI TS 103 268-1 3. 6.1.4 Sources of TP definitions All TPs are specified according to ETSI TS 103 264 1 and E
23、TSI TS 118 112 2. ETSI ETSI TS 103 268-3 V1.1.1 (2017-04)9 6.1.5 Mnemonics for PICS reference To avoid an update of all TP tables when the PICS document is changed, table 6.1.5-1 introduce mnemonics name and the correspondence with the real PICS item number. Table 6.1.5-1: Mnemonics for PICS referen
24、ce Mnemonic PICS item PICS_AE A.5.1/1 1PICS_CONTAINER A.5.1/1 1PICS_FLEXCONTAINER A.5.1/1 1PICS_GENERIC_IWK_SERVICE A.5.1/1 1 PICS GENERIC_IWK_OP_INSTANCE A.5.1/1 1 PICS_DEVICE A.5.2/1 1PICS_FUNCTION A.5.3/1 1PICS_ PROPERTY A.5.5/1 1 PICS_ COMMAND A.5.6/1 1 PICS_DEVICECATEGORY A.5.7/1 1PICS_STATE A.
25、5.8/1 1PICS_TASK A.5.9/1 1PICS_UNITOFMESURE A.5.10/1 1PICS_COMMODITY A.5.11/1 1PICS_BUILDINGOBJECT A.5.12/ 1PICS_BUILDINGSPACE A.5.13/1 1PICS_PROFILE A.5.14/ 1PICS_FUNCTIONCATEGORY A.5.15/1 1PICS_OBJECTPROPERTY A.5.16/1 1PICS_DATATYPE A.5.17/ 1PICS_OPERATION A.5.18/ 1PICS_THING A.5.19/1 1PICS_ASPECT
26、 A.5.20/ 1 ETSI ETSI TS 103 268-3 V1.1.1 (2017-04)10 6.2 Test purposes for SAP Testing 6.2.1 SAREF TP Id TP/SAP/SAREF/BV/001 Test objective Check that the IUT creates for an instantiation of a class of the Base Ontology a oneM2M resource of type containing a descriptor attribute containing the insta
27、ntiated class in RDF data. Reference ETSI TS 118 112 2, clause 7.1.1.1 Config Id CF03 PICS Selection PICS_AE Initial conditions with the CSE being in the “initial state“ and the IUT having an ontology instance containing an instantiation of a class of the Base Ontology and the IUT having privileges
28、to perform CREATE operation Expected behaviour Test events when the IUT starts and registers then the IUT sends a valid CREATE request containing To set to address of resource and Resource-Type set to and From set to AE-ID and Content containing resource containing descriptor attribute containing RD
29、F data of the instantiated class ETSI ETSI TS 103 268-3 V1.1.1 (2017-04)11 TP Id Class TP/SAP/SAREF/BV/001_01 saref:Device TP/SAP/SAREF/BV/001_02 saref:Door switchTP/SAP/SAREF/BV/001_03 saref:Energy meterTP/SAP/SAREF/BV/001_04 saref:Light switchTP/SAP/SAREF/BV/001_05 saref:MeterTP/SAP/SAREF/BV/001_0
30、6 saref:Sensor TP/SAP/SAREF/BV/001_07 saref:Smoke sensorTP/SAP/SAREF/BV/001_08 saref:SwitchTP/SAP/SAREF/BV/001_09 saref:Temperature sensor TP/SAP/SAREF/BV/001_10 saref:Washing machineTP/SAP/SAREF/BV/001_11 saref:Service TP/SAP/SAREF/BV/001_12 saref:Switch on serviceTP/SAP/SAREF/BV/001_13 saref:Funct
31、ionTP/SAP/SAREF/BV/001_14 saref:Actuating functionTP/SAP/SAREF/BV/001_15 saref:On off function TP/SAP/SAREF/BV/001_16 saref:Open close functionTP/SAP/SAREF/BV/001_17 saref:start stopfunctionTP/SAP/SAREF/BV/001_18 saref:Even functionTP/SAP/SAREF/BV/001_19 saref:Metering functionTP/SAP/SAREF/BV/001_20
32、 saref:Sensing functionTP/SAP/SAREF/BV/001_21 saref:CommandTP/SAP/SAREF/BV/001_22 saref:Close commandTP/SAP/SAREF/BV/001_23 saref:Get commandTP/SAP/SAREF/BV/001_24 saref:Get current meter value command TP/SAP/SAREF/BV/001_25 saref:Get meter data command TP/SAP/SAREF/BV/001_26 saref:Get meter history
33、 command TP/SAP/SAREF/BV/001_27 saref:Get sensing data command TP/SAP/SAREF/BV/001_28 saref:Notify commandTP/SAP/SAREF/BV/001_29 saref:Off commandTP/SAP/SAREF/BV/001_30 saref:On commandTP/SAP/SAREF/BV/001_31 saref:Open commandTP/SAP/SAREF/BV/001_32 saref:Pause command TP/SAP/SAREF/BV/001_33 saref:Se
34、t level command TP/SAP/SAREF/BV/001_34 saref:Set absolute level command TP/SAP/SAREF/BV/001_35 saref:Set relative level command TP/SAP/SAREF/BV/001_36 saref:Start commandTP/SAP/SAREF/BV/001_37 saref:Step down commandTP/SAP/SAREF/BV/001_38 saref:Step up command TP/SAP/SAREF/BV/001_39 saref:Stop comma
35、ndTP/SAP/SAREF/BV/001_40 saref:Toggle commandETSI ETSI TS 103 268-3 V1.1.1 (2017-04)12 TP Id TP/SAP/SAREF/BV/002 Test objective Check that the IUT creates for an instantiation of a class of the Base Ontology a oneM2M resource of type containing an Ontology-Ref attribute that identifies the instantia
36、ted class. Reference ETSI TS 118 112 2, clause 7.1.1.1 Config Id CF03 PICS Selection PICS_AE Initial conditions with the CSE being in the “initial state“ and the IUT having an ontology instance containing an instantiation of a class of the Base Ontology the IUT having privileges to perform CREATE op
37、eration Expected behaviour Test events when the IUT starts and registers then the IUT sends a valid CREATE request containing To set to address of resource and Resource-Type set to and From set to AE-ID and Content containing resource containing Ontology-Ref set to an URI that identifies the instant
38、iated class. ETSI ETSI TS 103 268-3 V1.1.1 (2017-04)13 TP Id Class TP/SAP/SAREF/BV/002_01 saref:DeviceTP/SAP/SAREF/BV/002_02 saref:Door switchTP/SAP/SAREF/BV/002_03 saref:Energy meterTP/SAP/SAREF/BV/002_04 saref:Light switchTP/SAP/SAREF/BV/002_05 saref:Meter TP/SAP/SAREF/BV/002_06 saref:SensorTP/SAP
39、/SAREF/BV/002_07 saref:Smoke sensorTP/SAP/SAREF/BV/002_08 saref:SwitchTP/SAP/SAREF/BV/002_09 saref:Temperature sensor TP/SAP/SAREF/BV/002_10 saref:Washing machineTP/SAP/SAREF/BV/002_11 saref:Service TP/SAP/SAREF/BV/002_12 saref:Switch on serviceTP/SAP/SAREF/BV/002_13 saref:FunctionTP/SAP/SAREF/BV/00
40、2_14 saref:Actuating functionTP/SAP/SAREF/BV/002_15 saref:On off function TP/SAP/SAREF/BV/002_16 saref:Open close functionTP/SAP/SAREF/BV/002_17 saref:start stopfunctionTP/SAP/SAREF/BV/002_18 saref:Even functionTP/SAP/SAREF/BV/002_19 saref:Metering functionTP/SAP/SAREF/BV/002_20 saref:Sensing functi
41、onTP/SAP/SAREF/BV/002_21 saref:CommandTP/SAP/SAREF/BV/002_22 saref:Close commandTP/SAP/SAREF/BV/002_23 saref:Get commandTP/SAP/SAREF/BV/002_24 saref:Get current meter value command TP/SAP/SAREF/BV/002_25 saref:Get meter data command TP/SAP/SAREF/BV/002_26 saref:Get meter history command TP/SAP/SAREF
42、/BV/002_27 saref:Get sensing data command TP/SAP/SAREF/BV/002_28 saref:Notify commandTP/SAP/SAREF/BV/002_29 saref:Off commandTP/SAP/SAREF/BV/002_30 saref:On commandTP/SAP/SAREF/BV/002_31 saref:Open commandTP/SAP/SAREF/BV/002_32 saref:Pause command TP/SAP/SAREF/BV/002_33 saref:Set level command TP/SA
43、P/SAREF/BV/002_34 saref:Set absolute level command TP/SAP/SAREF/BV/002_35 saref:Set relative level command TP/SAP/SAREF/BV/002_36 saref:Start commandTP/SAP/SAREF/BV/002_37 saref:Step down commandTP/SAP/SAREF/BV/002_38 saref:Step up command TP/SAP/SAREF/BV/002_39 saref:Stop commandTP/SAP/SAREF/BV/002
44、_40 saref:Toggle commandETSI ETSI TS 103 268-3 V1.1.1 (2017-04)14 TP Id TP/SAP/SAREF/BV/003 Test objective Check that the IUT creates for an instantiation of a class of the Base Ontology a oneM2M resource of type containing the instantiated Object Propertiy for which the instantiated class is the do
45、main class. Reference ETSI TS 118 112 2, clause 7.1.1.1 Config Id CF03 PICS Selection PICS_AE, PICS_OBJECTPROPERTY Initial conditions with the CSE being in the “initial state“ and the IUT having an ontology instance containing an instantiation of a class of the Base Ontology and the IUT having privi
46、leges to perform CREATE operation Expected behaviour Test events when the IUT starts and registers then the IUT sends a valid CREATE request containing To set to address of resource and Resource-Type set to and From set to AE-ID and Content containing resource containing the instantiated Object Prop
47、erty for which the instantiated class is the domain class. TP Id Object Property TP/SAP/SAREF/BV/003_01 saref:accomplishesTP/SAP/SAREF/BV/003_02 saref:acts uponTP/SAP/SAREF/BV/003_03 saref:consists ofTP/SAP/SAREF/BV/003_04 saref:containsTP/SAP/SAREF/BV/003_05 saref:has categoryTP/SAP/SAREF/BV/003_06
48、 saref:has commandTP/SAP/SAREF/BV/003_07 saref:has consumption TP/SAP/SAREF/BV/003_08 saref:has functionTP/SAP/SAREF/BV/003_09 saref:has input parameter TP/SAP/SAREF/BV/003_10 saref:has meter reading TP/SAP/SAREF/BV/003_11 saref:has meter reading time TP/SAP/SAREF/BV/003_12 saref:has output paramete
49、rTP/SAP/SAREF/BV/003_13 saref:has priceTP/SAP/SAREF/BV/003_14 saref:has productionTP/SAP/SAREF/BV/003_15 saref:has profileTP/SAP/SAREF/BV/003_16 saref:has sensing range TP/SAP/SAREF/BV/003_17 saref:has sensing time TP/SAP/SAREF/BV/003_18 saref:has singular unit TP/SAP/SAREF/BV/003_19 saref:has stateTP/SAP/SAREF/BV/003_20 saref:has thresholdTP/SAP/SAREF/BV/003_21 saref:has timeTP/SAP/SAREF/BV/003_22 saref:has typical consumption TP/SAP/SAREF/BV/003_23 saref:is accomplished by
copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
备案/许可证编号:苏ICP备17064731号-1