CN-121985359-A - Fuzzy test method, system, electronic equipment and computer storage medium
Abstract
The present disclosure relates to a fuzzy test method, a system, an electronic device and a computer storage medium, wherein the fuzzy test method is applied to a fuzzy test system based on a 4G/5G communication network protocol, and the fuzzy test system comprises a 4G/5G communication base station and a tested terminal which are in communication connection. The fuzzy test method comprises the steps of controlling a communication protocol stack to detect whether an unexecuted test case exists in a test case library, selecting a test case from the test case library as an initial test case according to a preset sequence if the unexecuted test case exists in the test case library, controlling the communication protocol stack to conduct data format conversion on the initial test case to obtain an intermediate test case, controlling a software defined radio hardware layer to conduct digital-to-analog conversion on the intermediate test case to obtain a target test case, and controlling the software defined radio hardware layer to send the target test case to a tested terminal to execute fuzzy test. The application can improve the efficiency of the fuzzy test.
Inventors
- LI JIANGWEI
- HUANG ZHEN
- 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 sending test cases in the test case library sent by the communication protocol stack to the tested terminal and receiving response messages of the tested terminal, and the method comprises the following steps: Controlling the communication protocol stack to detect whether an unexecuted test case exists in the test case library, and if the unexecuted test case exists in the test case library, selecting one test case from the test case library as an initial test case according to a preset sequence; controlling the communication protocol stack to perform data format conversion on the initial test case to obtain an intermediate test case; controlling the software defined radio hardware layer to perform digital-to-analog conversion on the intermediate test case to obtain a target test case; and controlling the software defined radio hardware layer to send the target test case to the tested terminal so as to execute the fuzzy test.
- 2. The fuzzy test method of claim 1, wherein the software defined radio hardware layer is provided with a radio frequency interface based on a software defined radio, the tested terminal is provided with a wireless communication interface, and the tested terminal is communicatively connected with the software defined radio hardware layer through the radio frequency interface and the wireless communication interface, and the controlling the software defined radio hardware layer to send the target test case to the tested terminal to perform the fuzzy test comprises: And controlling the software defined radio hardware layer to send the target test case to the tested terminal through the radio frequency interface and the wireless communication interface so as to execute fuzzy test.
- 3. The ambiguity test method of claim 2, wherein the communication protocol stack comprises a control layer communicatively coupled to the software defined radio hardware layer; the controlling the communication protocol stack to detect whether the test case base has the unexecuted test case includes: Controlling the control layer to detect whether an unexecuted test case exists in the test case library; If detecting that the test case library has an unexecuted test case, selecting one test case from the test case library according to a preset sequence as an initial test case, including: If the fact that the test cases which are not executed exist in the test case library is detected, the control layer is controlled to select one test case from the test case library according to the preset sequence to serve as the initial test case.
- 4. The fuzzy test method of claim 1, wherein the communication protocol stack includes a protocol layer, the protocol layer is communicatively connected to the software defined radio hardware layer, the controlling the communication protocol stack performs data format conversion on the initial test case to obtain an intermediate test case, and the method includes: And controlling the protocol layer to perform data format conversion on the initial test case to obtain the intermediate test case.
- 5. The fuzzy test method of claim 4, wherein the protocol layer includes a state machine and a protocol codec module, which are communicatively connected, the state machine being configured to sense a protocol state change of a 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 control of the protocol layer to perform data format conversion on the initial test case to obtain the intermediate test case includes: controlling the protocol encoding and decoding module to perform data format conversion on the initial test case to obtain the intermediate test case; After the protocol encoding and decoding module is controlled to perform data format conversion on the initial test case to obtain the intermediate test case, the method further comprises the following steps: Determining a target communication state based on the initial test case, wherein the target communication state is a communication state which needs to be positioned between the 4G/5G communication base station and the tested terminal before the 4G/5G communication base station sends the initial test case to the tested terminal to execute a fuzzy test; controlling the 4G/5G communication base station and the tested terminal to communicate based on the state machine, so that the 4G/5G communication base station and the tested terminal are in the target communication state; the controlling the software defined radio hardware layer to perform digital-to-analog conversion on the intermediate test case to obtain a target test case comprises the following steps: And controlling the software defined radio hardware layer to perform digital-to-analog conversion on the intermediate test case based on the target communication state to obtain the target test case.
- 6. The fuzzy test method of claim 5, wherein the protocol layer further comprises a protocol module, the protocol module is communicatively connected to the state machine and the protocol codec module, the protocol module is configured to package all test cases in the test case library according to a preset package sequence, and the protocol codec module is configured to perform a codec operation on all the test cases packaged by the protocol module; the controlling the software defined radio hardware layer to perform digital-to-analog conversion on the intermediate test case based on the target communication state to obtain the target test case includes: Based on the target communication state, carrying out data injection processing on the intermediate test case, and controlling the protocol module to encapsulate the intermediate test case after the data injection processing to obtain a variant test case; injecting the variant test cases into the software defined radio hardware layer; and controlling the software defined radio hardware layer to perform digital-to-analog conversion on the variant test case to obtain the target test case.
- 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 and receiving response messages of the tested terminal; The communication protocol stack is used for detecting whether an unexecuted test case exists in the test case library, and if the unexecuted test case exists in the test case library, selecting one test case from the test case library as an initial test case according to a preset sequence; the communication protocol stack is also used for carrying out data format conversion on the initial test case to obtain an intermediate test case; The software defined radio hardware layer is used for performing digital-to-analog conversion on the intermediate test case to obtain a target test case, and sending the target test case to the tested terminal to execute fuzzy test.
- 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 connected to the software defined radio hardware layer via the radio frequency interface and the wireless communication interface; The software defined radio hardware layer is further configured to send the target test case to the tested terminal through the radio frequency interface and the wireless communication interface to execute the fuzzy test.
- 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 have emerged as a new generation of mobile communication technology. Aiming at terminal equipment using a 4G/5G network as a communication technology, how to generate and process test cases to execute a fuzzy test between the terminal equipment and the 4G/5G network base station on a wireless protocol in the 4G/5G communication field in the process of communicating the terminal equipment with the 4G/5G network base station, thereby improving the accuracy of the fuzzy test and becoming an important research subject. 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 test cases in the test case library transmitted by the communication protocol stack to the tested terminal and receiving response messages of the tested terminal, the method comprises the steps of controlling the communication protocol stack to detect whether the test cases which are not executed exist in the test case library, selecting one test case from the test case library as an initial test case according to a preset sequence, controlling the test case stack to transmit test cases in the initial test case stack to the tested case library, and performing digital-to-analog conversion on the test cases in the test case library, and controlling the test case stack to obtain a radio hardware layer to obtain a defined test format of the test case, and performing the fuzzy test case conversion on the test case. The embodiment of the application can determine the initial test case when the communication protocol stack detects that the test case which is not executed exists in the test case library, firstly, the communication protocol stack carries out data format conversion on the initial test case to obtain the intermediate test case in a digital format which can be identified by a software defined radio hardware layer, then, the software defined radio hardware layer carries out digital-to-analog conversion on the intermediate test case to obtain the target test case taking the analog signal as a representation form, so that the target test case is directly transmitted to the terminal equipment taking the 4G/5G network as a communication technology by the software defined radio hardware layer. Therefore, the generation cost of the test case is greatly saved, and the success rate and the correctness of the fuzzy test are improved. In some embodiments, the software defined radio hardware layer is provided with a radio frequency interface based on software defined radio, the tested terminal is provided with a wireless communication interface, the tested terminal is in communication connection with the software defined radio hardware layer through the radio frequency interface and the wireless communication interface, and the controlling the software defined radio hardware layer to send the target test case to the tested terminal to execute the fuzzy test comprises controlling the software defined radio hardware layer to send the target test case to the tested terminal through the radio frequency interface and the wireless communication interface to execute the fuzzy test. In some embodiments, the communication protocol stack includes a control layer, where the control layer is in communication connection with the software-defined radio hardware layer, and the controlling the communication protocol stack to detect whether an unexecuted test case exists in the test case library includes controlling the control layer to detect whether an unexecuted test case exists in the test case library, and if the unexecuted test case exists in the test case library, selecting one of the test cases from the test case library according to a prese