发明名称 SYSTEM AND METHOD FOR TESTING A COAP SERVER
摘要 The present disclosure relates to system(s) and method(s) for testing a Constrained Application Protocol (CoAP) server and a plurality of resources hosted over the CoAP server. The system is configured to identify a plurality of URI links corresponding to the plurality of resources hosted over the CoAP server, wherein each URI link from the plurality of URI links is configured to store a set of parameters associated with each resource from the plurality of resources. The ‘rt’ is a field to indicate type of each resource and also to distinguish between a sleeping node resource or a non-sleeping node resource. Further, a plurality of test cases configured to test the plurality of resources is generated by sending CoAP requests messages based on the set of parameters associated with the resources and the test configuration. Finally during testing the system takes into account whether a particular resource is a sleeping-node or not.
申请公布号 US2016337216(A1) 申请公布日期 2016.11.17
申请号 US201615079583 申请日期 2016.03.24
申请人 HCL Technologies Limited 发明人 Kaushik Aashish;Sharda Saurabh;Agarwal Mukta
分类号 H04L12/26;H04L12/24;H04L29/12 主分类号 H04L12/26
代理机构 代理人
主权项 1. A method for testing a Constrained Application Protocol(CoAP) server and a plurality of resources hosted over the CoAP server, the method comprising: receiving, by a processor, an Internet Protocol (IP) address of a CoAP server; identifying, by the processor, a plurality of URI links corresponding to a plurality of resources hosted over the CoAP server using the IP address; accepting, by the processor, the plurality of URI links corresponding to the plurality of resources, wherein each URI link from the plurality of URI links is configured to store a set of parameters associated with each resource from the plurality of resources, wherein the set of parameters include a Resource Type (RT) field and Interface Description (IF) field wherein the RT field indicating each resource being a sleeping-node resource or a non-sleeping node resource; generating, by the processor, a plurality of test cases to test the plurality of resources, wherein each test case is generated based on the set of parameters associated with the resources and a test configuration, wherein the test configuration is generated based on inputs received from a tester; classifying, by the processor, the plurality of resources into non-sleeping node resources and sleeping-node resources based on the RT field; and testing, by the processor, the plurality of resources using the plurality of test cases, wherein the testing comprises: executing test cases associated with the non-sleeping node resources, by generating CoAP requests to test each non-sleeping node resource, wherein CoAP requests are generated based on test configuration, RT field, IF field and a payload to be sent with the CoAP requests based on the IF field; andexecuting test cases associated with the sleeping node resources, by generating CoAP requests to test each sleeping node resource, wherein the CoAP requests are generated based on test configuration, RT field, IF field and a payload to be sent with the CoAP requests based on IF field of the sleeping node resources, wherein the CoAP requests to test each sleeping node resource are sent multiple times with a predefined time interval in between the CoAP requests.
地址 Noida IN