Interoperability Test Description | |||
---|---|---|---|
Identifier: | TD_COAP_CORE_01 | ||
Objective: | Perform GET transaction (CON mode) | ||
Configuration: | CoAP_CFG_BASIC | ||
References: | [COAP] 5.8.1, 1.2, 2.1, 2.2, 3.1 | ||
Pre-test conditions: | Server offers the resource /test with resource content is not empty that handles GET with an arbitrary payload | ||
Test Sequence: | Step | Type | Description |
1 | Stimulus |
Client is requested to send a GET request with:
|
|
2 | Check |
The request sent by the client contains:
|
|
3 | Check |
Server sends response containing:
|
|
4 | Verify | Client displays the received information |
Interoperability Test Description | |||
---|---|---|---|
Identifier: | TD_COAP_CORE_02 | ||
Objective: | Perform DELETE transaction (CON mode) | ||
Configuration: | CoAP_CFG_BASIC | ||
References: | [COAP] 5.8.4, 1.2, 2.1, 2.2, 3.1 | ||
Pre-test conditions: | Server offers a /test resource that handles DELETE | ||
Test Sequence: | Step | Type | Description |
1 | Stimulus |
Client is requested to send a DELETE request with:
|
|
2 | Check |
The request sent by the client contains:
|
|
3 | Check |
Server sends response containing:
|
|
4 | Verify | Client displays the received information |
Interoperability Test Description | |||
---|---|---|---|
Identifier: | TD_COAP_CORE_03 | ||
Objective: | Perform PUT transaction (CON mode) | ||
Configuration: | CoAP_CFG_BASIC | ||
References: | [COAP] 5.8.3, 1.2, 2.1, 2.2, 3.1 | ||
Pre-test conditions: | Server offers already available resource /test or accepts creation of new resource on /test that handles PUT | ||
Test Sequence: | Step | Type | Description |
1 | Stimulus |
Client is requested to send a PUT request with:
|
|
2 | Check |
The request sent by the client contains:
|
|
3 | Verify | Server displays received information | |
4 | Check |
Server sends response containing:
|
|
5 | Verify | Client displays the received response |
Interoperability Test Description | |||
---|---|---|---|
Identifier: | TD_COAP_CORE_04 | ||
Objective: | Perform POST transaction (CON mode) | ||
Configuration: | CoAP_CFG_BASIC | ||
References: | [COAP] 5.8.2, 1.2, 2.1, 2.2, 3.1 | ||
Pre-test conditions: | Server accepts POST request on /test | ||
Test Sequence: | Step | Type | Description |
1 | Stimulus |
Client is requested to send a POST request with:
|
|
2 | Check |
The request sent by the client contains:
|
|
3 | Verify | Server displays received information | |
4 | Check |
Server sends response containing:
|
|
5 | Verify | Client displays the received response |
Interoperability Test Description | |||
---|---|---|---|
Identifier: | TD_COAP_CORE_05 | ||
Objective: | Perform GET transaction (NON mode) | ||
Configuration: | CoAP_CFG_BASIC | ||
References: | [COAP] 5.8.1, 5.2.3 | ||
Pre-test conditions: | Server offers a /test resource with resource content is not empty that handles GET | ||
Test Sequence: | Step | Type | Description |
1 | Stimulus |
Client is requested to send a GET request with:
|
|
2 | Check |
The request sent by the client contains:
|
|
3 | Check |
Server sends response containing:
|
|
4 | Verify | Client displays the received information |
Interoperability Test Description | |||
---|---|---|---|
Identifier: | TD_COAP_CORE_06 | ||
Objective: | Perform DELETE transaction (NON mode) | ||
Configuration: | CoAP_CFG_BASIC | ||
References: | [COAP] 5.8.4, 5.2.3 | ||
Pre-test conditions: | Server offers a /test resource that handles DELETE | ||
Test Sequence: | Step | Type | Description |
1 | Stimulus |
Client is requested to send a DELETE request with:
|
|
2 | Check |
The request sent by the client contains:
|
|
3 | Check |
Server sends response containing:
|
|
4 | Verify | Client displays the received information |
Interoperability Test Description | |||
---|---|---|---|
Identifier: | TD_COAP_CORE_07 | ||
Objective: | Perform PUT transaction (NON mode) | ||
Configuration: | CoAP_CFG_BASIC | ||
References: | [COAP] 5.8.3, 5.2.3 | ||
Pre-test conditions: | Server offers a /test resource that handles PUT | ||
Test Sequence: | Step | Type | Description |
1 | Stimulus |
Client is requested to send a PUT request with:
|
|
2 | Check |
The request sent by the client contains:
|
|
3 | Verify | Server displays the received information | |
4 | Check |
Server sends response containing:
|
|
5 | Verify | Client displays the received response |
Interoperability Test Description | |||
---|---|---|---|
Identifier: | TD_COAP_CORE_08 | ||
Objective: | Perform POST transaction (NON mode) | ||
Configuration: | CoAP_CFG_BASIC | ||
References: | [COAP] 5.8.2, 5.2.3 | ||
Pre-test conditions: | Server accepts POST request on /test | ||
Test Sequence: | Step | Type | Description |
1 | Stimulus |
Client is requested to send a POST request with:
|
|
2 | Check |
The request sent by the client contains:
|
|
3 | Verify | Server displays the received information | |
4 | Check |
Server sends response containing:
|
|
5 | Verify | Client displays the received response |
Interoperability Test Description | |||
---|---|---|---|
Identifier: | TD_COAP_CORE_09 | ||
Objective: | Perform GET transaction with separate response (CON mode, no piggyback) | ||
Configuration: | CoAP_CFG_BASIC | ||
References: | [COAP] 5.8.1, 5.2.2 | ||
Pre-test conditions: | Server offers a resource /separate which is not served immediately and which therefore is not acknowledged in a piggybacked way. | ||
Test Sequence: | Step | Type | Description |
1 | Stimulus | Client is requested to send a confirmable GET request to server’s resource | |
2 | Check |
The request sent by the client contains:
|
|
3 | Check |
Server sends response containing:
|
|
Some time (a couple of seconds) elapses. | |||
4 | Check |
Server sends response containing:
|
|
5 | Check |
Client sends response containing:
|
|
6 | Verify | Client displays the response | |
Notes: | Steps 3 and 4 may occur out-of-order |
Interoperability Test Description | |||
---|---|---|---|
Identifier: | TD_COAP_CORE_10 | ||
Objective: | Perform GET transaction containing non-empty Token (CON mode) | ||
Configuration: | CoAP_CFG_BASIC | ||
References: | [COAP] 2.2, 5.8.1, 5.10.1 | ||
Pre-test conditions: | Server offers a /test resource with resource content is not empty that handles GET | ||
Test Sequence: | Step | Type | Description |
1 | Stimulus | Client is requested to send a GET request to server’s resource with non-empty Token option | |
2 | Check |
The request sent by the client contains:
|
|
3 | Check |
Server sends response containing:
|
|
4 | Verify | Client displays the response |
Interoperability Test Description | |||
---|---|---|---|
Identifier: | TD_COAP_CORE_11 | ||
Objective: | Perform GET transaction containing non-empty Token with a separate response (CON mode) | ||
Configuration: | CoAP_CFG_BASIC | ||
References: | [COAP] 2.2, 5.2.2, 5.8.1 | ||
Pre-test conditions: | Server offers a resource /separate which is not served immediately and which therefore is not acknowledged in a piggybacked way. | ||
Test Sequence: | Step | Type | Description |
1 | Stimulus | Client is requested to send a GET request to server’s resource including Token option | |
2 | Check |
The request sent by the client contains:
|
|
3 | Check |
Server sends response containing:
|
|
Some time (a couple of seconds) elapses. | |||
4 | Check |
Server sends response containing:
|
|
5 | Check |
Client sends response containing:
|
|
6 | Verify | Client displays the response |
Interoperability Test Description | |||
---|---|---|---|
Identifier: | TD_COAP_CORE_12 | ||
Objective: | Perform GET transaction using empty Token (CON mode) | ||
Configuration: | CoAP_CFG_BASIC | ||
References: | [COAP] 2.2, 5.8.1, 5.10.1 | ||
Pre-test conditions: | Server offers the resource /test with resource content is not empty that handles GET with an arbitrary payload | ||
Test Sequence: | Step | Type | Description |
1 | Stimulus | Client is requested to send a confirmable GET request using zero-length Token to server’s resource | |
2 | Check |
The request sent by the client contains:
|
|
3 | Check |
Server sends response containing:
|
|
4 | Verify | Client displays the response | |
Notes: | Not all clients may be able to send a zero-length Token |
Interoperability Test Description | |||
---|---|---|---|
Identifier: | TD_COAP_CORE_13 | ||
Objective: | Perform GET transaction containing several URI-Path options (CON mode) | ||
Configuration: | CoAP_CFG_BASIC | ||
References: | [COAP] 5.4.5, 5.10.2, 6.5 | ||
Pre-test conditions: | Server offers a /seg1/seg2/seg3 resource with resource content is not empty | ||
Test Sequence: | Step | Type | Description |
1 | Stimulus | Client is requested to send a confirmable GET request to server’s resource | |
2 | Check |
The request sent by the client contains:
|
|
3 | Check |
Server sends response containing:
|
|
4 | Verify | Client displays the response |
Interoperability Test Description | |||
---|---|---|---|
Identifier: | TD_COAP_CORE_14 | ||
Objective: | Perform GET transaction containing several URI-Query options (CON mode) | ||
Configuration: | CoAP_CFG_BASIC | ||
References: | [COAP] 5.4.5, 5.10.2, 6.5 | ||
Pre-test conditions: | Server offers a /query resource with resource content is not empty | ||
Test Sequence: | Step | Type | Description |
1 | Stimulus | Client is requested to send a confirmable GET request with three Query parameters (e.g. ?first=1&second=2&third=3) to the server’s resource | |
2 | Check |
The request sent by the client contains:
|
|
3 | Check |
Server sends response containing:
|
|
4 | Verify | Client displays the response |
Interoperability Test Description | |||
---|---|---|---|
Identifier: | TD_COAP_CORE_15 | ||
Objective: | Perform GET transaction (CON mode, piggybacked response) in a lossy context | ||
Configuration: | CoAP_CFG_LOSSY | ||
References: | [COAP] 4.4.1, 5.2.1, 5.8.1 | ||
Pre-test conditions: |
|
||
Test Sequence: | Step | Type | Description |
1 | Stimulus | Client is requested to send a confirmable GET request to server’s resource | |
2 | Check |
Sent request must contain:
|
|
3 | Check |
Server sends response containing:
|
|
4 | Verify | Client displays the response | |
5 | Check |
Repeat steps 1-4 until at least one of the following actions has been observed:
|
|
6 | Verify |
|
Interoperability Test Description | |||
---|---|---|---|
Identifier: | TD_COAP_CORE_16 | ||
Objective: | Perform GET transaction (CON mode, delayed response) in a lossy context | ||
Configuration: | CoAP_CFG_LOSSY | ||
References: | [COAP] 4.4.1, 5.2.2, 5.8.1 | ||
Pre-test conditions: |
|
||
Test Sequence: | Step | Type | Description |
1 | Stimulus | Client is requested to send a confirmable GET request to server’s resource | |
2 | Check |
The requested sent by the client contains:
|
|
3 | Check |
Server sends response containing:
|
|
4 | Check |
Server sends response containing:
|
|
5 | Check |
Client sends response containing:
|
|
6 | Verify | Client displays the response | |
7 | Check |
Repeat steps 1-6 until at least one of the following actions has been observed:
|
|
8 | Check |
|
|
9 | Check |
|
Interoperability Test Description | |||
---|---|---|---|
Identifier: | TD_COAP_CORE_17 | ||
Objective: | Perform GET transaction with a separate response (NON mode) | ||
Configuration: | CoAP_CFG_BASIC | ||
References: | [COAP] 2.2, 5.2.2, 5.8.1 | ||
Pre-test conditions: | Server offers a resource /separate which is not served immediately and which therefore is not acknowledged in a piggybacked way. | ||
Test Sequence: | Step | Type | Description |
1 | Stimulus | Client is requested to send a non-confirmable GET request to server’s resource | |
2 | Check |
The request sent by the client contains:
|
|
3 | Check |
Server DOES NOT send response containing:
|
|
Some time (a couple of seconds) elapses. | |||
4 | Check |
Server sends response containing:
|
|
5 | Verify | Client displays the response |
Interoperability Test Description | |||
---|---|---|---|
Identifier: | TD_COAP_CORE_18 | ||
Objective: | Perform POST transaction with responses containing several Location-Path options (CON mode) | ||
Configuration: | CoAP_CFG_BASIC | ||
References: | [COAP] 5.8.1, 5.10.8, 5.9.1.1 | ||
Pre-test conditions: | Server accepts creation of new resource on /test and the created resource is located at /location1/location2/location3 (resource does not exist yet) | ||
Test Sequence: | Step | Type | Description |
1 | Stimulus | Client is requested to send a confirmable POST request to server’s resource | |
2 | Check |
The request sent by the client contains:
|
|
3 | Check |
Server sends response containing:
|
|
4 | Verify | Client displays the response |
Interoperability Test Description | |||
---|---|---|---|
Identifier: | TD_COAP_CORE_19 | ||
Objective: | Perform POST transaction with responses containing several Location-Query options (CON mode) | ||
Configuration: | CoAP_CFG_BASIC | ||
References: | [COAP] 5.8.1, 5.10.8, 5.9.1.1 | ||
Pre-test conditions: | Server accepts creation of new resource on uri /location-query, the location of the created resource contains two query parameters ?first=1&second=2 | ||
Test Sequence: | Step | Type | Description |
1 | Stimulus | Client is requested to send a confirmable POST request to server’s resource | |
2 | Check |
The request sent by the client contains:
|
|
3 | Check |
Server sends response containing:
|
|
4 | Verify | Client displays the response |
Interoperability Test Description | |||
---|---|---|---|
Identifier: | TD_COAP_CORE_20 | ||
Objective: | Perform GET transaction containing the Accept option (CON mode) | ||
Configuration: | CoAP_CFG_BASIC | ||
References: | [COAP] 5.8.1, 5.10.5, 5.10.4 | ||
Pre-test conditions: |
Server should provide a resource /multi-format which exists in two formats:
|
||
Test Sequence: | Step | Type | Description |
client requests a resource in text format | |||
1 | Stimulus | Client is requested to send a confirmable GET request to server’s resource | |
2 | Check |
The request sent request by the client contains:
|
|
3 | Check |
Server sends response containing:
|
|
4 | Verify | Client displays the response | |
client requests a resource in xml format | |||
5 | Stimulus | Client is requested to send a confirmable GET request to server’s resource | |
6 | Check |
The request sent by the client contains:
|
|
7 | Check |
Server sends response containing:
|
|
8 | Verify | Client displays the response |
Interoperability Test Description | |||
---|---|---|---|
Identifier: | TD_COAP_CORE_21 | ||
Objective: | Perform GET transaction containing the ETag option (CON mode) | ||
Configuration: | CoAP_CFG_BASIC | ||
References: | [COAP] 5.8.1, 5.10.7, 5.10.10, 12.1.12 | ||
Pre-test conditions: |
|
||
Test Sequence: | Step | Type | Description |
Verifying that client cache is empty | |||
1 | Stimulus | Client is requested to send a confirmable GET request to server’s resource | |
2 | Check |
The request sent request by the client contains:
|
|
3 | Check |
Server sends response containing:
|
|
4 | Verify | Client displays the response | |
Verifying client cache entry is still valid | |||
5 | Stimulus | Client is requested to send a confirmable GET request to server’s resource so as to check if the resource was updated | |
6 | Check |
The request sent by the client contains:
|
|
7 | Check |
Server sends response containing:
|
|
8 | Verify | Client displays the response | |
Verifying that client cache entry is no longer valid | |||
9 | Stimulus | Update the content of the server’s resource from a CoAP client (either another client, or the testing client in a separate transaction) | |
10 | Stimulus | Client is requested to send a confirmable GET request to server’s resource so as to check if the resource was updated | |
11 | Check |
The request sent by the client contains:
|
|
12 | Check |
Server sends response containing:
|
|
13 | Verify | Client displays the response |
Interoperability Test Description | |||
---|---|---|---|
Identifier: | TD_COAP_CORE_22 | ||
Objective: | Perform GET transaction with responses containing the ETag option and requests containing the If-Match option (CON mode) | ||
Configuration: | CoAP_CFG_BASIC | ||
References: | [COAP] 5.8.1, 5.10.7, 5.10.9, 12.1.12 | ||
Pre-test conditions: |
|
||
Test Sequence: | Step | Type | Description |
client gets the resource | |||
1 | Stimulus | Client is requested to send a confirmable GET request to server’s resource | |
2 | Check |
The request sent by the client contains:
|
|
3 | Check |
Server sends response containing:
|
|
single update | |||
4 | Stimulus | Client is requested to send a confirmable PUT request to server’s resource so as to perform an atomic update | |
5 | Check |
The request sent by the client contains:
|
|
6 | Check |
Server sends response containing:
|
|
7 | Verify | Client displays the response and the server changed its resource | |
concurrent updates | |||
8 | Stimulus | Client is requested to send a confirmable GET request to server’s resource | |
9 | Check |
The request sent by the client contains:
|
|
10 | Check |
Server sends response containing:
|
|
11 | Verify | Client displays the response | |
12 | Stimulus | Update the content of the server’s resource from a CoAP client once more | |
13 | Check |
The request sent by the client contains:
|
|
14 | Check |
Server sends response containing:
|
|
15 | Verify | Client displays the response and the server changed its resource | |
16 | Stimulus | Client is requested to send a confirmable PUT request to server’s resource so as to perform an atomic update, assuming it is still unchanged from step 10 | |
17 | Check |
The request sent by the client contains:
|
|
18 | Check |
Server sends response containing:
|
|
19 | Verify | Client displays the response and the server did not update the content of the resource |
Interoperability Test Description | |||
---|---|---|---|
Identifier: | TD_COAP_CORE_23 | ||
Objective: | Perform PUT transaction containing the If-None-Match option (CON mode) | ||
Configuration: | CoAP_CFG_BASIC | ||
References: | [COAP] 5.8.1, 5.10.7, 5.10.10, 12.1.12 | ||
Pre-test conditions: |
|
||
Test Sequence: | Step | Type | Description |
single creation | |||
1 | Stimulus | Client is requested to send a confirmable PUT request to server’s resource so as to atomically create the resource. | |
2 | Check |
The request sent by the client contains:
|
|
3 | Check |
Server sends response containing:
|
|
4 | Verify | Client displays the response and the server created a new resource | |
concurrent creations | |||
5 | Stimulus | Client is requested to send a confirmable PUT request to server’s resource so as to atomically create the resource. | |
6 | Check |
The request sent by the client contains:
|
|
7 | Check |
Server sends response containing:
|
|
8 | Verify | Client displays the response |
Interoperability Test Description | |||
---|---|---|---|
Identifier: | TD_COAP_CORE_31 | ||
Objective: | Perform CoAP Ping (CON mode) | ||
Configuration: | CoAP_CFG_BASIC | ||
References: | [COAP] 4.3 | ||
Pre-test conditions: | (Should work with any CoAP server) | ||
Test Sequence: | Step | Type | Description |
1 | Stimulus |
Client is requested to send a "Ping" request with:
|
|
2 | Check |
The request sent by the client is four bytes and contains:
|
|
3 | Check |
Server sends four-byte RST response containing:
|
|
4 | Verify | Client displays that the "Ping" was successful |