Case test method and device, equipment, storage medium and program product

Through the use case configuration files and artificial intelligence code generation models, the automatic generation and embedding of the number-grabbing code is solved, and the problem of low efficiency of use case testing on the wireless access side is realized, which improves the testing efficiency and code quality.

CN118939538APending Publication Date: 2024-11-12CHINA MOBILE COMM LTD RES INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410969452.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

The use case testing efficiency of existing wireless access side is mainly due to the complex channel processing process of the physical layer, which involves a large number of functions that require manual writing of the number grab code, which affects the coherence and readability of the code, and the different data structures lead to complex calculations.

Method used

Obtain memory description files through the use case configuration file, generate number capture codes and embed source code files, realize automated testing, and use artificial intelligence code generation models to automatically generate number capture codes to simplify the data comparison verification process.

Benefits of technology

It realizes automated testing of use cases, improves testing efficiency, reduces the workload of manually writing code, and improves the coherence and readability of functional code.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118939538A_ABST
    Figure CN118939538A_ABST
Patent Text Reader

Abstract

The invention provides a use case testing method and device, equipment, a storage medium and a program product. The method comprises the steps of obtaining a first memory description file based on a use case configuration file; wherein the first memory description file is used for describing memory information output by a first function in a source code file, and the first function is determined by the use case configuration file; according to the first memory description file, generating a grasp code corresponding to the first function; after the number capturing code is embedded into the calling position of the first function in the source code file, a reconstructed code file is obtained; and based on the reconstructed code file, running a test case corresponding to the case configuration file to obtain a running result of the first function. By means of the method, automatic testing of the use case can be achieved, and the efficiency of use case testing is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a use case testing method, device, equipment, storage medium and program product. Background Art

[0002] The physical layer of the existing wireless access side is mainly used to carry the data transceiver services of the high-level protocol stack, including two types of channels: uplink reception and downlink transmission. Different channels implement different transmission functions, such as the Physical Uplink Control Channel (PUCCH) used to transmit uplink control information. The uplink reception channel involves signal processing algorithms and calibration. Therefore, in engineering development, after the development of each channel function is completed, each function module of the channel needs to be compared and verified with the simulation platform to ensure correct functions and consistent performance.

[0003] However, the processing flow of each channel in the physical layer is long and complex, involving many functions for data comparison and verification, and the data structures output by each function are different. At present, a large amount of data capture code is manually written, which is a lot of work, affects the coherence and readability of the function code, and has the problem of low efficiency of use case testing. Summary of the invention

[0004] The purpose of the present invention is to provide a use case testing method, device, equipment, storage medium and program product to solve the problem of low efficiency of existing use case testing.

[0005] In order to achieve the above object, in a first aspect, the present invention provides a use case testing method, comprising:

[0006] Based on the use case configuration file, a first memory description file is obtained; wherein the first memory description file is used to describe the memory information output by the first function in the source code file, and the first function is determined by the use case configuration file;

[0007] Generate a data grabbing code corresponding to the first function according to the first memory description file;

[0008] After embedding the number grabbing code into the calling position of the first function in the source code file, a reconstructed code file is obtained;

[0009] Based on the reconstructed code file, the test case corresponding to the use case configuration file is run to obtain the running result of the first function.

[0010] In some embodiments, the method further comprises:

[0011] Obtaining simulation results generated by the simulation platform for the test case;

[0012] Comparing the operation result with the simulation result to obtain a comparison result;

[0013] If the comparison result indicates that the operation result is consistent with the simulation result, it is determined that the test case passes the test;

[0014] If the comparison result indicates that the operation result is inconsistent with the simulation result, then based on the comparison result, an erroneous function node and erroneous data are obtained.

[0015] In some embodiments, obtaining the first memory description file based on the use case configuration file includes:

[0016] Read the use case configuration file to obtain the memory information output by the first function;

[0017] Performing structured processing on the memory information output by the first function to obtain structured memory information;

[0018] The structured memory information is added to a pre-obtained memory description file template to obtain the first memory description file.

[0019] In some embodiments, the structured memory information is represented using a multidimensional array; wherein the dimensions involved in the multidimensional array include at least two of the following: terminal, antenna, symbol, resource block, resource element, and byte.

[0020] In some embodiments, generating the data grabbing code corresponding to the first function according to the first memory description file includes:

[0021] Converting the first memory description file into a text file to obtain a first semantic text;

[0022] Call an artificial intelligence (AI) code generation training model, input the first semantic text into the AI ​​code generation training model, and generate a data capture code corresponding to the first function.

[0023] In some embodiments, the method further comprises:

[0024] Based on the first memory description file, obtaining a name of a source code file and a name of the first function;

[0025] According to the name of the source code file, searching for the source code file;

[0026] According to the name of the first function, the calling location of the first function is searched in the source code file.

[0027] In a second aspect, the present invention further provides a use case testing device, comprising:

[0028] A first acquisition module, configured to obtain a first memory description file based on a use case configuration file; wherein the first memory description file is used to describe memory information output by a first function in a source code file, and the first function is determined by the use case configuration file;

[0029] A first processing module, used for generating a data grabbing code corresponding to the first function according to the first memory description file;

[0030] A second processing module is used to embed the number grabbing code into the calling position of the first function in the source code file to obtain a reconstructed code file;

[0031] A use case testing module is used to run the test case corresponding to the use case configuration file based on the reconstructed code file to obtain the running result of the first function.

[0032] In a third aspect, the present invention further provides a use case test device, comprising a processor and a transceiver, wherein the transceiver receives and sends data under the control of the processor, and the processor is used to perform the following operations:

[0033] Based on the use case configuration file, a first memory description file is obtained; wherein the first memory description file is used to describe the memory information output by the first function in the source code file, and the first function is determined by the use case configuration file;

[0034] Generate a data grabbing code corresponding to the first function according to the first memory description file;

[0035] After embedding the number grabbing code into the calling position of the first function in the source code file, a reconstructed code file is obtained;

[0036] Based on the reconstructed code file, the test case corresponding to the use case configuration file is run to obtain the running result of the first function.

[0037] In a fourth aspect, the present invention further provides a use case testing device, comprising a memory, a processor, and a program stored in the memory and executable on the processor; when the processor executes the program, the use case testing method as described in the first aspect above is implemented.

[0038] In a fifth aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in the use case testing method described in the first aspect above.

[0039] In a sixth aspect, the present invention further provides a computer program product, comprising computer instructions, which, when executed by a processor, implement the steps in the use case testing method as described in the first aspect above.

[0040] The above technical solution of the present invention has at least the following beneficial effects:

[0041] In an embodiment of the present invention, a first memory description file is obtained based on a use case configuration file; wherein the first memory description file is used to describe memory information output by a first function in a source code file, and the first function is determined by the use case configuration file; then, according to the first memory description file, a capture code corresponding to the first function is generated; after the capture code is embedded into the calling position of the first function in the source code file, a reconstructed code file is obtained; finally, based on the reconstructed code file, a test case corresponding to the use case configuration file is run to obtain the running result of the first function. In this way, through the above processing, automatic testing of the use case can be realized and the efficiency of the use case testing can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 A schematic diagram showing a flow chart of a use case testing method according to an embodiment of the present invention;

[0043] Figure 2 A schematic diagram showing the entire process of debugging a use case according to an embodiment of the present invention;

[0044] Figure 3 A schematic diagram showing a module of a use case testing device according to an embodiment of the present invention;

[0045] Figure 4 A schematic diagram showing the hardware structure of a use case testing device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0046] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.

[0047] Data comparison and verification requires exporting the function running results. For the Digital Signal Processing (DSP) platform, you can set a breakpoint after the function and manually export the memory data through the memory management window that comes with the debugging integrated development environment (IDE). For the CPU platform, it is usually necessary to write a capture function after the function to export the result data.

[0048] The above data comparison and verification method faces two problems:

[0049] 1. The processing flow of each channel in the physical layer is relatively long and complicated, involving many functions for data comparison and verification, and the data structures output by each function are different. For the method of writing the data grabbing function, a large amount of data grabbing code needs to be written manually, which is a lot of work, affecting the coherence and readability of the function code, and there is a problem of low efficiency in use case testing, and the user equipment (UE) faces the problem of calculating data length and location information.

[0050] Second, the amount of data to be processed by the physical layer is large and the data structure is complex, involving dimensions such as cells, antennas, slots, symbols, UEs, resource blocks (RBs), and resource elements (REs), and the dimension combinations and values ​​are dynamically changing. In this case, the data length of each UE and its offset in the memory must be manually calculated each time the memory is exported, which is a huge workload and prone to errors, and difficult to troubleshoot after an error occurs. Each time a use case is debugged, the memory export operation needs to be repeated, which is inefficient.

[0051] In order to solve the above technical problems, the present invention provides a use case testing method, device, equipment, storage medium and program product. The method and device are based on the same application concept. Since the method and device solve the problem in a similar principle, the implementation of the device and the method can refer to each other, and the repeated parts will not be repeated.

[0052] like Figure 1 FIG. 1 is a flow chart of a use case testing method provided by an embodiment of the present invention. The method includes:

[0053] Step 101, obtaining a first memory description file based on a use case configuration file; wherein the first memory description file is used to describe memory information output by a first function in a source code file, and the first function is determined by the use case configuration file;

[0054] Optionally, the first function is a physical layer channel function. Generally, the source code file can be executed based on the use case configuration file.

[0055] It should be noted that the memory description file configuration manages the structured memory information output by each function. Here, the first memory description file configuration manages the structured memory information output by the first function. The memory description file is a structured file in a unified format, wherein the base format of the memory description file includes a c / cpp (c language / c++ language) file field, a function field, and a memory field. Among them, the filling rules corresponding to each field are pre-determined. The c / cpp file field is used to fill in the source code file name, which is used to subsequently find the file to insert the code segment; the function field is used to fill in the function name used in the source code file, which is used to subsequently locate the function call location so that the number grabbing code can be inserted after the call location; the memory field is used to fill in the memory information output by the specified function.

[0056] Here, the specific content filled in the first memory description file is determined by the use case configuration file, and since the first memory description file is a structured file in a unified format, it can be implemented using a pre-obtained memory description file template. The memory description file template can be seen in Table 1.

[0057] Table 1

[0058]

[0059]

[0060] It should be noted that the memory field is filled with the memory information output by the specified function, including: memory first address addr, memory size size, memory structure layout, tight or loose information, etc. This information is filled in addr, size, layout, and info according to the grammar. Among them, the values ​​of ue, ant, sym, etc. in size are dynamically changed and determined by the use case configuration file.

[0061] In an optional embodiment, the above step 101 specifically includes:

[0062] Step 1011, read the use case configuration file to obtain the memory information output by the first function;

[0063] Optionally, the use case configuration file includes memory information output by the first function.

[0064] Step 1012, performing structured processing on the memory information output by the first function to obtain structured memory information;

[0065] Optionally, the structured memory information is represented using a multidimensional array; wherein the dimensions involved in the multidimensional array include at least two of the following: terminal, antenna, symbol, resource block, resource element, and byte.

[0066] In one example, in the structured memory information output by the first function:

[0067] The memory size is: ue*ant*sym*1rb*2re*4byte.

[0068] The memory structure layout is: [2dm][2halfslot][2ant][13rb][7sym][12re].

[0069] The tight or loose information info is: [dm:s][halfslot:j][ant:j][rb:j][sym:j], where dm indicates dynamic memory, s indicates loose, and j indicates tight.

[0070] Step 1013: Add the structured memory information to the pre-obtained memory description file template to obtain the first memory description file.

[0071] Specifically, the structured memory information is added to a pre-obtained memory description file template (see Table 1) according to a predetermined syntax to obtain a first memory description file.

[0072] It should be noted that the values ​​of ue, ant, sym, etc. in size are dynamically changed and determined based on the use case configuration file. It should be understood that the memory size and memory offset can be automatically calculated according to the use case configuration file.

[0073] Step 102, generating a data capture code corresponding to the first function according to the first memory description file;

[0074] The data grabbing code refers to the code for grabbing data, and specifically refers to the code for grabbing the running result of the first function.

[0075] In this step, an artificial intelligence (AI) code generation training model can be used according to the first memory description file to automatically generate the number grabbing code corresponding to the first function. The specific implementation can be seen in the following embodiments.

[0076] Step 103, after embedding the data grabbing code into the calling position of the first function in the source code file, a reconstructed code file is obtained;

[0077] Here, in later applications, the reconstructed source code file can be run on a wireless access device (such as a base station).

[0078] Step 104: Based on the reconstructed code file, run the test case corresponding to the use case configuration file to obtain the running result of the first function.

[0079] Specifically, after the reconstructed code file is syntax-checked and compiled, the test case is run to obtain the running result of the first function.

[0080] The use case testing method of the embodiment of the present invention obtains a first memory description file through the memory size and memory offset calculated by the use case configuration file, and the first memory description file is used to describe the structured memory information output by the first function in the source code file; then, according to the first memory description file, a number grabbing code corresponding to the first function is generated; after the number grabbing code is embedded into the calling position of the first function in the source code file, a reconstructed code file is obtained; finally, based on the reconstructed code file, the test case corresponding to the use case configuration file is run to obtain the running result of the first function. In this way, through the above processing, the automatic testing of the use case can be realized and the efficiency of the use case testing can be improved.

[0081] In an optional embodiment, the above step 102, generating a capture code corresponding to the first function according to the first memory description file, includes:

[0082] Step 1021, converting the first memory description file into text to obtain a first semantic text;

[0083] Specifically, the first memory description file is converted into the first semantic text according to the format and grammatical convention. That is, the content in the first memory description file is translated according to the format and grammatical convention and saved in the relevant structure. That is, the first memory description file in the form of a table is converted into the first semantic text in the form of a text and saved.

[0084] Step 1022, call the artificial intelligence AI code generation training model, input the first semantic text into the AI ​​code generation training model, and generate the data capture code corresponding to the first function.

[0085] Optionally, the AI ​​code generation training model is CodeX. Inputting the first semantic text into the AI ​​code generation training model can automatically generate a capture code corresponding to the first function, which is used to subsequently capture the running result after the first function is run.

[0086] In an optional embodiment, before executing step 103, the method of the present invention further includes:

[0087] Based on the first memory description file, obtaining a name of a source code file and a name of the first function;

[0088] According to the name of the source code file, searching for the source code file;

[0089] According to the name of the first function, the calling location of the first function is searched in the source code file.

[0090] This embodiment can locate the calling position of the function, so that the capture code can be embedded after the calling position of the first function, so that the running result of the first function can be captured in time.

[0091] In an optional embodiment, the method of the present invention further comprises:

[0092] 1) Obtaining simulation results generated by the simulation platform for the test case;

[0093] 2) Comparing the operation result with the simulation result to obtain a comparison result;

[0094] 3) If the comparison result indicates that the operation result is consistent with the simulation result, it is determined that the test case passes the test;

[0095] When the comparison result indicates that the operation result is consistent with the simulation result, it means that the data of all function nodes are consistent and the use case test is successful.

[0096] 4) If the comparison result indicates that the operation result is inconsistent with the simulation result, then based on the comparison result, an erroneous function node and erroneous data are obtained.

[0097] Here, when the comparison result indicates that the running result is inconsistent with the simulation result, it means that the use case test has failed. Since the data capture code is embedded in the function call position in the source code file, the erroneous function node can be located based on the corresponding data capture code for the inconsistent running result. Further, based on the comparison result, the erroneous data can be determined, which is convenient for subsequent staff to further debug and locate.

[0098] This embodiment combines Figure 1 The embodiment shown is the entire use case debugging pull-through process, in which the memory description file only needs to be maintained once, and the other steps are all completed automatically.

[0099] In the entire physical layer product life cycle, large-scale development usually only accounts for about 30% of the time, and the rest of the time is functional maintenance and testing, which requires a large number of use case tests. However, the existing use case pull-through is often time-consuming and inefficient. The method of the present invention can greatly improve the efficiency of use case testing.

[0100] See also Figure 2The following is an example to illustrate the entire process of debugging a use case, which involves a use case testing process. The device implementing the process may include: an interpreter, CodeX, a code refactor, an executor, and a data analyzer.

[0101] a1. The interpreter scans the use case configuration file and memory description file, translates the contents according to the format and syntax conventions, and saves them into related structures to obtain semantic text that can be recognized by CodeX.

[0102] Specifically, the memory description file can be obtained according to the above-mentioned relevant embodiments, which will not be repeated here. The basic format of the memory description file can be found in Table 1, and its filling rules are predetermined with the interpreter. The c / cpp file field is filled with the source code file name, which is used by the code reconstructor to find the file to insert the code segment in the physical layer project. The function field is used to fill in the function name used in the source code file, which is used by the code reconstructor to locate the function call location so that the capture code can be inserted after the call location.

[0103] a2, according to the semantic text, call CodeX to generate the corresponding grabbing code for each function.

[0104] a3. The code reconstructor searches for the corresponding source code file in the physical layer project and the function call location in the source code file according to the source code file name and function name in the memory description file, and embeds the capture code after the function call to obtain the reconstructed code file.

[0105] a4, the executor performs syntax checking of the refactored code, compiles and runs the test cases.

[0106] a5, the data analyzer reads the captured memory data file and the result file generated by the simulation platform for analysis and comparison to obtain the comparison result. If all function node data are consistent, the use case test passes, otherwise the wrong function node and wrong data are given.

[0107] like Figure 3 As shown, an embodiment of the present invention also provides a use case testing device, the device comprising:

[0108] A first acquisition module 301 is used to obtain a first memory description file based on a use case configuration file; wherein the first memory description file is used to describe memory information output by a first function in a source code file, and the first function is determined by the use case configuration file;

[0109] A first processing module 302, configured to generate a data grabbing code corresponding to the first function according to the first memory description file;

[0110] The second processing module 303 is used to embed the number grabbing code into the calling position of the first function in the source code file to obtain a reconstructed code file;

[0111] The use case testing module 304 is used to run the test case corresponding to the use case configuration file based on the reconstructed code file to obtain the running result of the first function.

[0112] In some embodiments, the apparatus of the embodiment of the present invention further includes:

[0113] A second acquisition module is used to obtain the simulation results generated by the simulation platform for the test case;

[0114] A third processing module is used to compare the operation result with the simulation result to obtain a comparison result;

[0115] A fourth processing module, configured to determine that the test case passes the test if the comparison result indicates that the operation result is consistent with the simulation result;

[0116] The fifth processing module is used to obtain an erroneous function node and erroneous data based on the comparison result when the comparison result indicates that the operation result is inconsistent with the simulation result.

[0117] In some embodiments, the first acquisition module 301 includes:

[0118] A reading unit, used for reading the use case configuration file to obtain the memory information output by the first function;

[0119] A first processing unit, configured to perform structured processing on the memory information output by the first function to obtain structured memory information;

[0120] An acquiring unit is used to add the structured memory information to a pre-acquired memory description file template to obtain the first memory description file.

[0121] In some embodiments, the structured memory information is represented using a multidimensional array; wherein the dimensions involved in the multidimensional array include at least two of the following: terminal, antenna, symbol, resource block, resource element, and byte.

[0122] In some embodiments, the first processing module 302 includes:

[0123] A second processing unit, configured to perform text conversion on the first memory description file to obtain a first semantic text;

[0124] The third processing unit is used to call the artificial intelligence (AI) code generation training model, input the first semantic text into the AI ​​code generation training model, and generate a capture code corresponding to the first function.

[0125] In some embodiments, the apparatus of the embodiment of the present invention further includes:

[0126] A third acquisition module, configured to obtain a name of a source code file and a name of the first function based on the first memory description file;

[0127] A sixth processing module, configured to search for the source code file according to the name of the source code file;

[0128] The seventh processing module is used to search the calling position of the first function in the source code file according to the name of the first function.

[0129] The use case testing device of the embodiment of the present invention obtains a first memory description file based on a use case configuration file; wherein the first memory description file is used to describe the memory information output by the first function in the source code file, and the first function is determined by the use case configuration file; then, according to the first memory description file, a capture code corresponding to the first function is generated; after the capture code is embedded into the calling position of the first function in the source code file, a reconstructed code file is obtained; finally, based on the reconstructed code file, the test case corresponding to the use case configuration file is run to obtain the running result of the first function. In this way, through the above processing, the automatic testing of the use case can be realized and the efficiency of the use case testing can be improved.

[0130] In order to better achieve the above goals, Figure 4 As shown, an embodiment of the present invention further provides a use case test device, including a processor 400 and a transceiver 410, wherein the transceiver 410 receives and sends data under the control of the processor 400, and the processor 400 is used to perform the following process:

[0131] Based on the use case configuration file, a first memory description file is obtained; wherein the first memory description file is used to describe the memory information output by the first function in the source code file, and the first function is determined by the use case configuration file;

[0132] Generate a data grabbing code corresponding to the first function according to the first memory description file;

[0133] After embedding the number grabbing code into the calling position of the first function in the source code file, a reconstructed code file is obtained;

[0134] Based on the reconstructed code file, the test case corresponding to the use case configuration file is run to obtain the running result of the first function.

[0135] In some embodiments, the processor 400 is further configured to:

[0136] Obtaining simulation results generated by the simulation platform for the test case;

[0137] Comparing the operation result with the simulation result to obtain a comparison result;

[0138] If the comparison result indicates that the operation result is consistent with the simulation result, it is determined that the test case passes the test;

[0139] If the comparison result indicates that the operation result is inconsistent with the simulation result, then based on the comparison result, an erroneous function node and erroneous data are obtained.

[0140] In some embodiments, the processor 400 is further configured to:

[0141] Read the use case configuration file to obtain the memory information output by the first function;

[0142] Performing structured processing on the memory information output by the first function to obtain structured memory information;

[0143] The structured memory information is added to a pre-obtained memory description file template to obtain the first memory description file.

[0144] In some embodiments, the structured memory information is represented using a multidimensional array; wherein the dimensions involved in the multidimensional array include at least two of the following: terminal, antenna, symbol, resource block, resource element, and byte.

[0145] In some embodiments, the processor 400 is further configured to:

[0146] Converting the first memory description file into a text file to obtain a first semantic text;

[0147] Call an artificial intelligence (AI) code generation training model, input the first semantic text into the AI ​​code generation training model, and generate a data capture code corresponding to the first function.

[0148] In some embodiments, the processor 400 is further configured to:

[0149] Based on the first memory description file, obtaining a name of a source code file and a name of the first function;

[0150] According to the name of the source code file, searching for the source code file;

[0151] According to the name of the first function, the calling location of the first function is searched in the source code file.

[0152] The use case testing device of the embodiment of the present invention obtains a first memory description file based on a use case configuration file; wherein the first memory description file is used to describe the memory information output by the first function in the source code file, and the first function is determined by the use case configuration file; then, according to the first memory description file, a capture code corresponding to the first function is generated; after the capture code is embedded into the calling position of the first function in the source code file, a reconstructed code file is obtained; finally, based on the reconstructed code file, the test case corresponding to the use case configuration file is run to obtain the running result of the first function. In this way, through the above processing, the automatic testing of the use case can be realized and the efficiency of the use case testing can be improved.

[0153] An embodiment of the present invention also provides a use case testing device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the various processes in the use case testing method embodiment described above are implemented, and the same technical effect can be achieved. To avoid repetition, they will not be described here.

[0154] The embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, each process in the above-mentioned use case test method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0155] The embodiment of the present invention also provides a computer program product, including computer instructions, which, when executed by a processor, implement the following Figure 1 The various processes of the method embodiment shown can achieve the same technical effect, and will not be described again here to avoid repetition.

[0156] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.

[0157] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A device that specifies functions in one or more processes and / or one or more blocks.

[0158] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable storage medium produce a paper product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0159] These computer program instructions may also be loaded onto a computer or other programmable data processing device so that the computer or other programmable device executes a series of operating steps to produce a computer-implemented process, thereby providing instructions executed on the computer or other programmable device for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0160] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A use case testing method, characterized in that: include: Based on the use case configuration file, a first memory description file is obtained; wherein the first memory description file is used to describe the memory information output by the first function in the source code file, and the first function is determined by the use case configuration file; Generate a data grabbing code corresponding to the first function according to the first memory description file; After embedding the number grabbing code into the calling position of the first function in the source code file, a reconstructed code file is obtained; Based on the reconstructed code file, the test case corresponding to the use case configuration file is run to obtain the running result of the first function.

2. The method according to claim 1, characterized in that The method further comprises: Obtaining simulation results generated by the simulation platform for the test case; Comparing the operation result with the simulation result to obtain a comparison result; If the comparison result indicates that the operation result is consistent with the simulation result, it is determined that the test case passes the test; If the comparison result indicates that the operation result is inconsistent with the simulation result, then based on the comparison result, an erroneous function node and erroneous data are obtained.

3. The method according to claim 1, characterized in that The obtaining of the first memory description file based on the use case configuration file includes: Read the use case configuration file to obtain the memory information output by the first function; Performing structured processing on the memory information output by the first function to obtain structured memory information; The structured memory information is added to a pre-obtained memory description file template to obtain the first memory description file.

4. The method according to claim 3, characterized in that The structured memory information is represented by a multidimensional array, wherein the dimensions involved in the multidimensional array include at least two of the following: terminal, antenna, symbol, resource block, resource element, and byte.

5. The method according to claim 1, characterized in that The step of generating a data grabbing code corresponding to the first function according to the first memory description file includes: Converting the first memory description file into a text file to obtain a first semantic text; Call an artificial intelligence (AI) code generation training model, input the first semantic text into the AI ​​code generation training model, and generate a data capture code corresponding to the first function.

6. The method according to claim 1, characterized in that The method further comprises: Based on the first memory description file, obtaining a name of a source code file and a name of the first function; According to the name of the source code file, searching for the source code file; According to the name of the first function, the calling location of the first function is searched in the source code file.

7. A use case testing device, characterized in that: include: A first acquisition module, configured to obtain a first memory description file based on a use case configuration file; wherein the first memory description file is used to describe memory information output by a first function in a source code file, and the first function is determined by the use case configuration file; A first processing module, used for generating a data grabbing code corresponding to the first function according to the first memory description file; A second processing module is used to embed the number grabbing code into the calling position of the first function in the source code file to obtain a reconstructed code file; A use case testing module is used to run the test case corresponding to the use case configuration file based on the reconstructed code file to obtain the running result of the first function.

8. A use case test device, comprising a processor and a transceiver, wherein the transceiver receives and sends data under the control of the processor, characterized in that: The processor is configured to perform the following operations: Based on the use case configuration file, a first memory description file is obtained; wherein the first memory description file is used to describe the memory information output by the first function in the source code file, and the first function is determined by the use case configuration file; Generate a data grabbing code corresponding to the first function according to the first memory description file; After embedding the number grabbing code into the calling position of the first function in the source code file, a reconstructed code file is obtained; Based on the reconstructed code file, the test case corresponding to the use case configuration file is run to obtain the running result of the first function.

9. A use case testing device, comprising a memory, a processor, and a program stored in the memory and executable on the processor; characterized in that: When the processor executes the program, the use case testing method as described in any one of claims 1 to 6 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps in the use case testing method as described in any one of claims 1 to 6 are implemented.

11. A computer program product, characterized in that It comprises computer instructions, which, when executed by a processor, implement the steps in the use case testing method as described in any one of claims 1 to 6.