oneM2M TS-0013Release Notes diff from v4.0.1 to v4.0.1The testing methodology used in the present document is specified in the oneM2M TS-0015 [6].
A Test Description (TD) is a well detailed description of a process that aims to test one or more functionalities of an implementation. Applying to interoperability testing, these testing objectives address the interoperable functionalities between two or more vendor implementations.
In order to ensure the correct execution of an interoperability test, the following information should be provided by the test description:
In order to facilitate the specification of test cases an interoperability test description should include, at a minimum, the following fields as indicated table 5.1‑1.
Table 5.1‑1: Interoperability test description
Identifier
|
A unique test description ID.
|
|---|---|
Objective
|
A concise summary of the test which should reflect the purpose of the test and enable readers to easily distinguish this test from any other test in the document.
|
References
|
A list of references to the base specification section(s), use case(s), requirement(s) and TP(s) which are either used in the test or define the functionality being tested.
|
Applicability
|
A list of features and capabilities which are required to be supported by the SUT in order to execute this test (e.g. if this list contains an optional feature to be supported, then the test is optional).
|
Configuration or Architecture
|
A list of all required equipment for testing and possibly also including a reference to an illustration of a test architecture or test configuration.
|
Pre-Test Conditions
|
A list of test specific pre-conditions that need to be met by the SUT including information about equipment configuration, i.e. precise description of the initial state of the SUT required to start executing the test sequence.
|
Test Sequence
|
An ordered list of equipment operation and observations. The test sequence may also contain the conformance checks as part of the observations.
|
The test descriptions are provided in proforma tables. In order to ensure the correct execution of an interoperability test, the following information is provided in the test description:
The following different types of test operator actions are considered during the test execution:
TD/ |
||
|---|---|---|
M2M
|
oneM2M
|
|
NH
|
No Hop: Testing on Mca reference point
|
|
NB
|
Non-Blocking scenario
|
|
SH
|
Single Hop: management of remote resources on Mca + Mcc
|
|
MH
|
Multi Hop
|
|
SE
|
Security
|
|
01 to 99
|
This clause contains some test requirements applied to the testing, some constraints, restrictions for executions or some recommendations.
In order to ease test setup and execution, the CSE and AE are requested to support the following settings:
In order to address the TBDs in the oneM2M CoAP binding specification (oneM2M TS-0008 [3]), basic XML and JSON media-type numbers shall be used in the contentFormat option.
In the test descriptions specified below, the following definitions of terms used for short-hand notation apply:
Serialized Representation: refers to either an XML or a JSON representation of data in text-string format as defined in clauses8.3 and 8.4 of oneM2M TS-0004 [2].
Host Address: refers to the authority part of a target URI as defined in IETF RFC 3986 [8] and IETF RFC 7230 [9] which can be represented as an IP literal encapsulated within square brackets, an IPv4 address in dotted decimal form, or a registered name, and optionally extended by a port identifier.
The AE or CSE that originates the request has been successfully registered to its corresponding CSE. The registration of the AE includes the creation of
The Originator and the receiver have successfully established security association between each other. This may involve the exchange of key and the establishment of a security connection.
The security pre-condition also assumes that the originator has the appropriate access control privilege towards the requested resource.
Service subscription means that the originator is allowed to be connected with the oneM2M system by contract between the owner of the application and the service provider of the oneM2M system. This may require a corresponding information record in the
ID allocation means that the Originator has already acquired usable identity, either from its registrar CSE or the IN-CSE of the oneM2M system. The ID may be CSE relative or SP relative. The ID is then further used as the identity of the Originator to perform access control, charging, etc.
Existence of resource means the resource been addressed and has already been created.
Before the device management using external technologies is executed, it is required that a management session has already been established between the Management Server and Management Client. If there is no existing management session, the IN-CSE shall request the establishment of a management session between the Management Server and Management Client.
In HTTP/CoAP/MQTT binding messages, the present document defines the convention for
The value will be given at an interoperability test event.
In oneM2M TS-0010 [5], all oneM2M request/response parameters are carried in the MQTT message payload since it has no message header concept. Therefore, the MQTT message payload needs to be described more than HTTP and CoAP messages to describe those parameters in clause 8. In HTTP and CoAP binding messages, payloads are described as "empty" or "
Since the representation can be XML or JSON, payload should be abstract to support XML and JSON. The following example is an XML representation and its abstraction for creating a
XML payload example for MQTT binding
|
|
Abstracted payload example for MQTT binding
|
op = 1 to = CSE1Base fr = /CSE1/C_AE01 rqi = 3001 ty = 3 name = cont1 rti.rt = 3 pc.cnt.lbl = SmartMeter pc.cnt.et = 20141003T112033 |
Abstracted payload example for MQTT binding adopting the payload convention
|
op = 1 to = fr = rqi = ty = 3 name = rti.rt = 3 pc = |