Hi, again.

I wrote more, but I sent wrong way. So I'm writing again.

As Kishen said, I removed "oic.wk.con" in PICS and 
oc_set_con_res_announced(false).
So my client passed CT1.2.6. Thanks so much, Kishen.

Anyway, CT1.3.2.2 started to pour another error.

----
1.428s 11:37:35 INFO:    ======= Testing resource /oic/sec/roles using schema 
from coap://[fe80::ba27:ebff:fe0a:6549]:41308/oc/introspection =======
1.428s 11:37:35 INFO:
1.428s 11:37:35 DEBUG: Schemas not found for interface oic.if.baseline
1.428s 11:37:35 INFO: Sending unicast CON RETRIEVE request with 
/oic/sec/roles?if=oic.if.baseline
1.428s 11:37:35 INFO: Prompting "Waiting for CoAP response... "
1.428s 11:37:35 VERBOSE: CTT Client -> 
[fe80::3c5f:2adb:8baf:a357%20]:49703->[fe80::ba27:ebff:fe0a:6549]:45036 CON-GET 
ID=10382, Token=382137BE, Options=[URI-Port=45036, URI-Path=oic, sec, roles, 
AcceptVersion=1.0.0, URI-Query=if=oic.if.baseline, 
Accept=application/vnd.ocf+cbor], Secured=true
1.438s 11:37:35 VERBOSE: CTT Client <- 
[fe80::ba27:ebff:fe0a:6549%20]:45036->[fe80::3c5f:2adb:8baf:a357%20]:49703 
ACK-2.05 Content ID=10382, Token=382137BE, Options=[ContentFormatVersion=1.0.0, 
Content-Type=application/vnd.ocf+cbor], Secured=true
1.438s 11:37:35 VERBOSE: CTT Client <- msgId=10382: 
{"rt":["oic.r.roles"],"if":["oic.if.baseline"],"roles":[]}
1.446s 11:37:35 DEBUG: AgentBase multiple action complete
1.446s 11:37:35 DEBUG: Starting verification with ID:"CT_Assert_elements"...
1.446s 11:37:35 INFO: CT_Assert_elements: Device respond to 
/oic/sec/roles?if=oic.if.baseline (CON-GET ID:10382)
1.446s 11:37:35 DEBUG: Verification with ID:"CT_Assert_elements" ended with 
result: PASSED
1.446s 11:37:35 DEBUG: Starting verification with ID:"CT_Assert_success"...
1.446s 11:37:35 INFO: CT_Assert_success: 1 message(s) has code 2.xx
1.446s 11:37:35 DEBUG: Verification with ID:"CT_Assert_success" ended with 
result: PASSED
1.446s 11:37:35 DEBUG: Schema for get 205 not found try with code 200
1.446s 11:37:35 DEBUG: Starting verification with ID:"CT1.3.2.2_Check_8"...
1.448s 11:37:35 DEBUG: Traceback (most recent call last):
File "C:\Program Files (x86)\OCF Conformance Test Tool\Python\helpers.py", line 
163, in performVerification
result, message = verificationCode()
File "C:\Program Files (x86)\OCF Conformance Test 
Tool\Configuration\OCF\TestCases\Introspection_CT1.3.2-2.py", line 524, in 
<lambda$12599>
performVerification(info.Id+"_Check_8", lambda: 
validate_swagger_empty_file(swagger))
File "C:\Program Files (x86)\OCF Conformance Test 
Tool\Configuration\OCF\TestCases\Introspection_CT1.3.2-2.py", line 213, in 
validate_swagger_empty_file
if len(swagger.Paths.Paths) and 
len(swagger.Definitions.RawObject.ChildrenTokens) == 0:
TypeError: len() of unsized object
1.448s 11:37:35 ERROR: CT1.3.2.2_Check_8: Verification with ID 
"CT1.3.2.2_Check_8" threw the exception: len() of unsized object

So I digged the Introspection_CT1.3.2-2.py

def validate_swagger_empty_file(swagger):
if len(swagger.Paths.Paths) and 
len(swagger.Definitions.RawObject.ChildrenTokens) == 0:
return TestCaseResults.PASSED, "Swagger file is empty as expected"
return TestCaseResults.PASSED, "Swagger file shall be empty"

I print out 2 variables :
swagger.Paths.Paths : /oic/p
swagger.Definitions.RawObject.ChildrenTokens : None

===
Other problems occured, sadly. :-(
CT1.7.4.5 started to not pass(it was passed yesterday.)
When I run CT1.7.4.5 alone, it passes.
When I run Test sequencely,  RUN CT1.7.4.4 then  CT1.7.4.5 failed.

18:29:51 INFO Test case "CT1.7.4.5 Verify that the device handles role 
credentials" started
18:29:51 INFO Timestamp: 2019-11-15 18:29:51. Tool version: 1903.0.0.0
18:29:51 INFO Rediscovering IUT...
18:29:51 INFO Rediscovering CLIENT_A...
18:30:22 INFO Prompting "Please revert IUT to RFOTM / reset the device"
18:30:28 INFO Rediscovering CLIENT_A...
18:30:58 ERROR OCTT did not re-discover IUT. Check if IUT is in the network and 
responds to /oic/res on multicast.
18:30:58 ERROR Test case result: FAILED
18:30:58 INFO Execution of test case "CT1.7.4.5" completed. Timestamp: 
2019-11-15 18:30:58

I wonder later problems is related with previous changes.
But I can not figure out.

Thank you for reading.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10292): 
https://lists.iotivity.org/g/iotivity-dev/message/10292
Mute This Topic: https://lists.iotivity.org/mt/57444364/21656
Group Owner: iotivity-dev+ow...@lists.iotivity.org
Unsubscribe: https://lists.iotivity.org/g/iotivity-dev/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to