System and method for testing a CoAP server
First Claim
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; and
executing 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.
1 Assignment
0 Petitions
Accused Products
Abstract
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.
-
Citations
10 Claims
-
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; and executing 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. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A system for testing a Constrained Application Protocol (CoAP) server and a plurality of resources hosted over the CoAP server, the system comprising:
-
a memory; a processor coupled to the memory, wherein the processor is configured to perform the steps of; receiving an Internet Protocol (IP) address of a CoAP server; identifying a plurality of URI links corresponding to a plurality of resources hosted over the CoAP server using the IP address; accepting 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 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 the plurality of resources into non-sleeping node resources and sleeping-node resources based on the RT field; and testing 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; and executing 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. - View Dependent Claims (7, 8, 9, 10)
-
Specification