IP Library Granted Patent US 12,375,958
Granted Patent B2
US 12,375,958 · App. 18/012,344 · Granted Jul 29, 2025

Generating test cases to test NF device in wireless network

Inventors: Sandeep Bagchi (Bangalore, IN); Nayan Sen (Bangalore, IN)
Assignee: RAKUTEN SYMPHONY, INC.
H04W24/08H04L43/50
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,375,958
App. No.
18/012,344
Granted
Jul 29, 2025
Kind
B2
Abstract

Embodiments are directed to a method for generating test cases to test a network function (NF) device in a wireless network by an electronic device ( 100 ). The method includes receiving, by the electronic device ( 100 ), at least one test specification associated with the NF device ( 200 ) under test and determining, by the electronic device ( 100 ), an intermediate schema of the at least one test specification, where the intermediate schema comprises a message portion and a procedure portion. The method also includes generating, by the electronic device ( 100 ), test criteria for packets received by the NF device ( 200 ) under test based on the intermediate schema of the at least one test specification and automatically generating, by the electronic device ( 100 ), a plurality of test cases based on the test criteria for testing a protocol conformity of the NF device ( 200 ).

Claims (65)

1. An electronic device for generating test cases to test a network function (NF) device in a wireless network, wherein the electronic device comprises:

a memory;

a processor coupled to the memory;

a communicator coupled to the memory and the processor; and wherein the processor is configured to:

receive at least one test specification associated with the NF device under test;

determine an intermediate schema of the at least one test specification, wherein the intermediate schema comprises a message portion and a procedure portion;

generate test criteria for packets received by the NF device under test based on the intermediate schema of the at least one test specification; and

automatically generate a plurality of test cases based on the test criteria for testing protocol conformity of the NF device.

2. The electronic device as claimed in claim 1 , wherein the processor is further configured to:

receive a plurality of packets captured by the NF device operated on field, wherein the plurality of packets is in the protocol conformity to the test specification associated with the NF device;

parse the plurality of packets captured by the NF into a plurality of messages;

filter the plurality of messages into a plurality of request-response pairs;

decode each of the request-response pairs of the plurality of request-response pairs;

determine a match for each of the request-response pairs based on the criteria for the packets;

determine whether each of the request-response pairs is associated with one of a valid packet and an invalid packet; and

display a message indicating one of the valid packets and the invalid packet at the NF device indicating the protocol conformity of the plurality of packets received at the NF device.

3. The electronic device as claimed in claim 1 , wherein the processor is configured to automatically generate the plurality of test cases based on the test criteria for testing the protocol conformity of the NF device comprises:

determine a plurality of requests associated with the procedure portion of the intermediate schema of the at least one test specification;

extract a set of matching requests from the data model for each message stored in the data model repository based on the test criteria, wherein the set of matching requests is one of valid request and a malformed request;

determine a corresponding response to the set of matching requests extracted from the data model; and

automatically generate the plurality of test cases based on the set of matching requests and the corresponding response to the set of matching requests.

4. The electronic device as claimed in claim 1 , wherein the processor is configured to generate the test criteria for packets received by the NF device under test based on the intermediate schema of the at least one test specification comprises:

generate the test criteria for each message in the message portion of the intermediate schema, wherein the test criteria for the packets indicates one of: a field of a message is present and valid, a field of a message is present and invalid and a field of a message is absent in the at least one test specification.

5. The electronic device as claimed in claim 4 , wherein the processor is further configured to:

generate a data model for each message in the message portion of the intermediate schema based on the test criteria, wherein the data model comprises one instance of each message with requests and responses corresponding to each message, content of each message; and

store the data model for each message in a data model repository in the electronic device.

6. The electronic device as claimed in claim 1 , wherein each of the plurality of test cases comprises a data model, an expected response code and procedure to be executed for the test case.

7. The electronic device as claimed in claim 1 , wherein the processor is further configured to:

transmit the generated plurality of test cases to the NF device;

determine the protocol conformity of the NF device based on at least one of an IE conformance, a payload conformance and a call flow conformance of the plurality of test cases transmitted to the NF device; and

display a message indicating one of the protocol conformity of the NF device and an error in the NF device.

8. The electronic device as claimed in claim 1 , wherein the intermediate schema of the at least one test specification is generated by parsing the at least one test specification using a corresponding plugin.

9. The electronic device as claimed in claim 1 , wherein the procedure portion of the intermediate schema of the at least one test specification comprises name of each procedure, name of each request objects and responses corresponding to each of the request objects, wherein the responses corresponding to each of the request objects comprises a list of: success responses and failure responses.

10. The electronic device as claimed in claim 1 , wherein the message portion of the intermediate schema of the at least one test specification comprises name of each message, an encoding type associated with each of the messages and fields associated with each of the messages comprising information element (IE).

11. A method for generating test cases to test a network function (NF) device in a wireless network by an electronic device, wherein the method comprises:

receiving, by the electronic device, at least one test specification associated with the NF device under test;

determining, by the electronic device, an intermediate schema of the at least one test specification, wherein the intermediate schema comprises a message portion and a procedure portion;

generating, by the electronic device, test criteria for packets received by the NF device under test based on the intermediate schema of the at least one test specification; and

automatically generating, by the electronic device, a plurality of test cases based on the test criteria for testing protocol conformity of the NF device.

12. The method as claimed in claim 11 , further comprises:

receiving, by the electronic device, a plurality of packets captured by the NF device operated on field, wherein the plurality of packets is in the protocol conformity to the test specification associated with the NF device;

parsing, by the electronic device, the plurality of packets captured by the NF into a plurality of messages;

filtering, by the electronic device, the plurality of messages into a plurality of request-response pairs;

decoding, by the electronic device, each of the request-response pairs of the plurality of request-response pairs;

determining, by the electronic device, a match for each of the request-response pairs based on the criteria for the packets;

determining, by the electronic device, whether each of the request-response pairs is associated with one of a valid packet and an invalid packet; and

displaying, by the electronic device, a message indicating one of the valid packets and the invalid packet at the NF device indicating the protocol conformity of the plurality of packets received at the NF device.

13. The method as claimed in claim 11 , wherein automatically generating, by the electronic device, the plurality of test cases based on the test criteria for testing the protocol conformity of the NF device comprises:

determining, by the electronic device, a plurality of requests associated with the procedure portion of the intermediate schema of the at least one test specification;

extracting, by the electronic device, a set of matching requests from the data model for each message stored in the data model repository based on the test criteria, wherein the set of matching requests is one of valid request and a malformed request;

determining, by the electronic device, a corresponding response to the set of matching requests extracted from the data model; and

automatically generating, by the electronic device, the plurality of test cases based on the set of matching requests and the corresponding response to the set of matching requests.

14. The method as claimed in claim 11 , wherein generating, by the electronic device, the test criteria for packets received by the NF device under test based on the intermediate schema of the at least one test specification comprises:

generating, by the electronic device, the test criteria for each message in the message portion of the intermediate schema, wherein the test criteria for the packets indicates one of: a field of a message is present and valid, a field of a message is present and invalid and a field of a message is absent in the at least one test specification.

15. The method as claimed in claim 14 , further comprises:

generating, by the electronic device, a data model for each message in the message portion of the intermediate schema based on the test criteria, wherein the data model comprises one instance of each message with requests and responses corresponding to each message, content of each message; and

storing, by the electronic device, the data model for each message in a data model repository in the electronic device.

16. The method as claimed in claim 11 , wherein each of the plurality of test cases comprises a data model, an expected response code and procedure to be executed for the test case.

17. The method as claimed in claim 11 , further comprises:

transmitting, by the electronic device, the generated plurality of test cases to the NF device;

determining, by the electronic device, the protocol conformity of the NF device based on at least one of an IE conformance, a payload conformance and a call flow conformance of the plurality of test cases transmitted to the NF device; and

displaying, by the electronic device, a message indicating one of the protocol conformity of the NF device and an error in the NF device.

18. The method as claimed in claim 11 , wherein the intermediate schema of the at least one test specification is generated by parsing the at least one test specification using a corresponding plugin.

19. The method as claimed in claim 11 , wherein the procedure portion of the intermediate schema of the at least one test specification comprises name of each procedure, name of each request objects and responses corresponding to each of the request objects, wherein the responses corresponding to each of the request objects comprises a list of: success responses and failure responses.

20. The method as claimed in claim 11 , wherein the message portion of the intermediate schema of the at least one test specification comprises name of each message, an encoding type associated with each of the messages and fields associated with each of the messages comprising information element (IE).

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 18, 2024
From: ALTIOSTAR NETWORKS INDIA PRIVATE LIMITED
To: RAKUTEN SYMPHONY, INC.
Reel/Frame 068023/0473 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 27, 2022
From: BAGCHI, SANDEEP; SEN, NAYAN
To: ALTIOSTAR NETWORKS INDIA PRIVATE LIMITED
Reel/Frame 062208/0136 →
Priority Claims (1)
IN 202241063022 · Nov 4, 2022 · national
Continuity (1)
Related Publication 20240224087A1 · Jul 4, 2024
References Cited (6)
US 20070113274A1 · Hariharan et al. · 2007 [cited by applicant]
US 20140092387A1 · Wagner · 2014 [cited by examiner]
US 20190230012A1 · Azizullah et al. · 2019 [cited by applicant]
US 20200313999A1 · Lee et al. · 2020 [cited by applicant]
US 20240045791A1 · Li · 2024 [cited by examiner]
International Search Report and Written Opinion for International Patent Application No. PCT/US22/81774 mailed Mar. 30, 2023. [cited by applicant]