CN-121985360-A - Fuzzy test method, system, electronic equipment and computer storage medium
Abstract
The present disclosure relates to a fuzzy test method, system, electronic device, and computer storage medium. The fuzzy test method comprises the steps of receiving a response message sent by a tested terminal through a software-defined radio hardware layer based on a target test case sent by the software-defined radio hardware layer to the tested terminal, analyzing the response message through a communication protocol stack, determining a first communication state where a 4G/5G communication base station and the tested terminal are currently located, determining a second communication state matched with the target test case through the communication protocol stack, determining a target communication state matched with the second communication state, wherein the target communication state is the next communication state converted from the second communication state after the tested terminal receives the target test case, and generating fuzzy test execution success information if the first communication state is detected to be consistent with the target communication state. The application can accurately determine the execution condition of the fuzzy test and improve the efficiency of the fuzzy test.
Inventors
- HUANG ZHEN
- LI JIANGWEI
- ZHENG QINGQIU
Assignees
- 思微科技(武汉)有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260210
Claims (10)
- 1. The fuzzy test method is applied to a fuzzy test system based on a 4G/5G communication network protocol, wherein the fuzzy test system comprises a 4G/5G communication base station and a tested terminal which are in communication connection, the 4G/5G communication base station comprises a communication protocol stack and a software defined radio hardware layer, the communication protocol stack is used for generating a test case library required by executing fuzzy test between the 4G/5G communication base station and the tested terminal, the software defined radio hardware layer is used for transmitting test cases in the test case library transmitted by the communication protocol stack to the tested terminal, and the method comprises the following steps: receiving a response message sent by the tested terminal through the software defined radio hardware layer based on a target test case sent by the software defined radio hardware layer to the tested terminal, wherein the target test case is matched with the response message; analyzing the response message by the communication protocol stack, and determining a first communication state where the 4G/5G communication base station and the tested terminal are currently located; determining a second communication state matched with the target test case through the communication protocol stack, wherein the second communication state represents a communication state required by the 4G/5G communication base station and the tested terminal in order to execute the fuzzy test based on the target test case; Determining a target communication state matched with the second communication state, wherein the target communication state is the next communication state converted from the second communication state after the tested terminal receives the target test case; And if the first communication state is detected to be consistent with the target communication state, generating fuzzy test execution success information.
- 2. The ambiguity test method according to claim 1, wherein after the receiving, by the software defined radio hardware layer, a response message sent by the tested terminal, the method further comprises: Controlling the software defined radio hardware layer to convert the response message into a target message of a digital signal; The step of analyzing the response message by the communication protocol stack to determine a first communication state where the 4G/5G communication base station and the tested terminal are currently located, including: And analyzing the target message by the communication protocol stack to determine the first communication state.
- 3. The ambiguity test method of claim 2, wherein the communication protocol stack includes a protocol layer, the protocol layer including a state machine and a protocol codec module that are communicatively connected to each other, the state machine being configured to sense a protocol state change of the 4G/5G communication network protocol and manage a protocol context of the 4G/5G communication network protocol, the protocol codec module being configured to perform a codec operation on all test cases; The analyzing the target message by the communication protocol stack, determining the first communication state includes: Controlling the protocol encoding and decoding module to perform data format conversion on the target message to obtain an analysis message; and inputting the analysis message to the state machine to obtain the first communication state.
- 4. The fuzzy test method of claim 3, wherein the determining, by the communication protocol stack, a second communication state that matches the target test case comprises: Determining the second communication state of the state machine before the software defined radio hardware layer sends the target test case to the tested terminal; The determining the target communication state matched with the second communication state includes: searching preset response information of the tested terminal matched with the second communication state in a preset state conversion table, wherein the preset response information comprises the communication state of the tested terminal after receiving the target test case; and determining the target communication state from the preset response information.
- 5. The ambiguity test method of claim 1, wherein after the determining the target communication state that matches the second communication state, the method further comprises: If the first communication state is detected to be inconsistent with the target communication state, a detection message is sent to the tested terminal through the software defined radio hardware layer, wherein the detection message is a legal control message or a data packet which accords with the 4G/5G communication network protocol specification; And detecting the response condition of the tested terminal, and determining the execution result of the fuzzy test based on the response condition.
- 6. The fuzziness testing method of claim 5, wherein detecting the response situation of the tested terminal and determining the execution result of the fuzziness test based on the response situation comprises: Detecting whether the tested terminal responds normally or not; if the normal response of the tested terminal is detected, generating the successful execution information of the fuzzy test; And if the abnormal response of the tested terminal is detected, generating fuzzy test execution failure information.
- 7. The fuzzy test system based on the 4G/5G communication network protocol is characterized by comprising a 4G/5G communication base station and a tested terminal which are in communication connection, wherein the 4G/5G communication base station comprises a communication protocol stack and a software defined radio hardware layer which are in communication connection, the communication protocol stack is used for generating a test case library required by executing fuzzy test between the 4G/5G communication base station and the tested terminal, and the software defined radio hardware layer is used for transmitting test cases in the test case library transmitted by the communication protocol stack to the tested terminal; the software defined radio hardware layer is used for sending a target test case to the tested terminal and receiving a response message sent by the tested terminal, wherein the target test case is matched with the response message; the communication protocol stack is used for analyzing the response message and determining the current first communication state of the 4G/5G communication base station and the tested terminal; The communication protocol stack is further used for determining a second communication state matched with the target test case, wherein the second communication state represents a communication state required by the 4G/5G communication base station and the tested terminal in order to execute the fuzzy test based on the target test case; the communication protocol stack is further configured to determine a target communication state that matches the second communication state, where the target communication state is a next communication state that is converted from the second communication state after the tested terminal receives the target test case, and generate a fuzzy test execution success message if the first communication state is detected to be consistent with the target communication state.
- 8. The ambiguity test system of claim 7, wherein the software defined radio hardware layer is provided with a radio frequency interface based on a software defined radio, the terminal under test is provided with a wireless communication interface, and the terminal under test is communicatively coupled to the software defined radio hardware layer via the radio frequency interface and the wireless communication interface.
- 9. An electronic device comprising a memory storing computer readable instructions and a processor executing the computer readable instructions stored in the memory to implement the ambiguity test method of any one of claims 1 to 6.
- 10. A computer storage medium having stored therein computer readable instructions that are executed by a processor in an electronic device to implement the ambiguity test method of any one of claims 1-6.
Description
Fuzzy test method, system, electronic equipment and computer storage medium Technical Field The present disclosure relates to the field of network communication connection technologies, and in particular, to a fuzzy test method, a system, an electronic device, and a computer storage medium. Background With the development of communication network technology and the drawbacks of low spectrum efficiency, limited service supporting capability and the like revealed by 2G/3G networks in the data age, 4G/5G networks are generated as a new generation mobile communication technology, so that a tested terminal using the 4G/5G networks as the communication technology and a 4G/5G network base station can be directly communicated with each other. When the fuzzy test is carried out on the tested terminal, if the 4G/5G network base station receives the response which is sent by the tested terminal and is matched with a certain test case, how to analyze the response to determine the execution condition of the fuzzy test, thereby improving the efficiency of the fuzzy test and becoming important research content. Disclosure of Invention The disclosure discloses a fuzzy test method, a system, an electronic device and a computer storage medium, which can improve the accuracy of the fuzzy test. In a first aspect, the disclosure relates to a fuzzy test method, which is applied to a fuzzy test system based on a 4G/5G communication network protocol, wherein the fuzzy test system comprises a 4G/5G communication base station and a tested terminal which are in communication connection, the 4G/5G communication base station comprises a communication protocol stack and a software defined radio hardware layer which are in communication connection, the communication protocol stack is used for generating a test case library required by executing a fuzzy test between the 4G/5G communication base station and the tested terminal, the software defined radio hardware layer is used for transmitting a test case in the test case library transmitted by the communication protocol stack to the tested terminal, the method comprises the steps of receiving a response message transmitted by the tested terminal through the software defined radio hardware layer, wherein the target test case is matched with the response message, analyzing the response message by the communication stack, determining that the communication protocol stack 4G/5G communication base station and the tested terminal are in communication state, determining that the communication protocol stack is in the state of the target test case is matched with the target communication terminal, determining that the communication state of the target test case is the target communication terminal is in the state of the target communication stack, and the target test case is received based on the state of the target communication case 4G communication stack, the target test case is determined by the target state of the target communication terminal is detected by the second state, and the target state is determined by the target state of the target state is determined, and if the first communication state is detected to be consistent with the target communication state, generating fuzzy test execution success information. After receiving the response message sent by the tested terminal, the embodiment of the application can analyze the response message by the communication protocol stack, so that the 4G/5G communication base station can analyze the analyzed response message. And then, determining a second communication state matched with the target test case and a target communication state matched with the second communication state through a communication protocol stack. And then, determining the current first communication state of the 4G/5G communication base station and the tested terminal so as to detect whether the first communication state of the fuzzy test in the actual execution process is the same as the theoretical target communication state or not, thereby judging the successful execution condition of the fuzzy test. The fuzzy test method determines whether the fuzzy test is successfully executed or not by comparing whether the communication state in the actual execution process is consistent with the communication state in the theoretical execution process, so that the execution condition of the modulus test can be accurately obtained, and the execution efficiency of the fuzzy test is improved. In some embodiments, after the response message sent by the tested terminal is received by the software defined radio hardware layer, the method further includes controlling the software defined radio hardware layer to convert the response message into a target message of a digital signal, and the analyzing the response message by the communication protocol stack to determine a first communication state in which the 4G/5G communication base station and the tested terminal are currently locate