A test method, device and equipment
Through the automated testing method, the preset test plan library and decision indicator rule library are used to solve the flexibility and efficiency problems of reinforcement learning algorithm training model testing, and achieve compatibility and efficient testing of various test contents.
Patent Information
- Application Number
- CN202210402749.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-18
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-04-18
AI Technical Summary
Existing testing methods have poor flexibility in testing training models of reinforcement learning algorithms and cannot be compatible with multiple reinforcement learning algorithms or test multiple test contents, resulting in low testing efficiency and usually relying on manual or less automated testing methods. , which increases the testing workload.
Provide a testing method and system that, by obtaining test requirements and algorithm information, calls the preset test plan library and decision indicator rule library, generates target test plans and decision indicator rules, conducts automated testing, and analyzes test reports to improve testing methods flexibility and efficiency.
There is no need to separately plan the test model. Through pre-stored test plans and decision indicator rules, it can quickly adapt to new test models and application scenarios, improve the flexibility and efficiency of the test method, and reduce manual participation.
Smart Images

Figure CN114610648B
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of computers, and in particular to a testing method, device and equipment. Background Art
[0002] During the research process of reinforcement learning algorithms, algorithm researchers need to test the training model multiple times to continuously verify and improve it in order to obtain a relatively complete training model.
[0003] Since the training model of reinforcement learning is obtained by the corresponding reinforcement learning algorithm, when the reinforcement learning algorithm changes, the test information and test objectives corresponding to the test points involved in the training model will also change accordingly. The existing testing methods are less flexible and cannot be compatible with multiple reinforcement learning algorithms or test multiple test contents. Different testing methods need to be formulated for different training models. This requires separate testing for each new training model or for the test model in each new application scenario. In addition, at this stage, the testing of reinforcement learning training models usually adopts manual testing or methods with a low degree of automation. Since each training model has a large number of test points, the testing workload is large, resulting in low testing efficiency. Summary of the invention
[0004] The embodiments of the present application provide a testing method and system to solve the problems of weak compatibility and low testing efficiency of existing tests.
[0005] In a first aspect, an embodiment of the present application provides a testing method, the method comprising:
[0006] Obtain at least one test requirement, and call the test solutions preset in the test solution library and corresponding to the corresponding test requirement according to each test requirement to obtain at least one target test solution;
[0007] Acquire at least one algorithm information, and call the decision indicator rule corresponding to the corresponding algorithm information preset in the decision indicator rule library according to each algorithm information to obtain at least one target decision indicator rule;
[0008] Performing tests according to each target test scheme and the target decision indicator rules corresponding to each algorithm information to obtain at least one test report;
[0009] The at least one test report is analyzed to obtain a target test report.
[0010] In some possible implementations, before obtaining at least one test point information, the method includes: obtaining at least one algorithm start command, and loading each of the algorithm start commands into a unified format character string for starting the algorithm corresponding to each of the algorithm start commands.
[0011] In some possible implementations, each of the test schemes includes: a scheme name and at least one test case, and the test case includes: information of points to be tested and test content corresponding to each information of points to be tested.
[0012] In some possible implementations, after acquiring at least one algorithm information and before obtaining at least one target decision indicator rule, it also includes: calling the decision indicator rule corresponding to the corresponding algorithm information based on the correspondence between the definition content of the decision rule library and the algorithm information.
[0013] In some possible implementations, the algorithm information includes: algorithm type.
[0014] In some possible implementations, the definition content of the decision indicator library includes: algorithm type, decision indicator extraction rules, algorithm convergence threshold and algorithm training maximum time.
[0015] In some possible implementations, each test scheme runs independently without affecting each other.
[0016] In a second aspect, an embodiment of the present application further provides a testing device, the device comprising:
[0017] A first acquisition module is used to acquire at least one test requirement, and call a test solution preset in a test solution library corresponding to the corresponding test requirement according to each test requirement to obtain at least one target test solution;
[0018] The second acquisition module is used to acquire at least one algorithm information, and call the decision indicator rule corresponding to the corresponding algorithm information preset in the decision indicator rule library according to each algorithm information to obtain at least one target decision indicator rule;
[0019] A testing module, used to perform testing according to each target testing scheme and the target decision indicator rule corresponding to each algorithm information, and obtain at least one test report;
[0020] The analysis module is used to analyze the at least one test report to obtain a target test report.
[0021] In a third aspect, an embodiment of the present application further provides an electronic device, the electronic device comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other through the communication bus;
[0022] The memory is used to store executable instructions, and when the executable instructions are executed, the processor executes the test method in any possible implementation of the first aspect or the second aspect.
[0023] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein executable instructions are stored in the storage medium, and when the executable instructions are executed, a computing device executes the test method in any possible implementation of the first aspect or the second aspect.
[0024] The embodiment of the present application provides a test method. In this solution, after obtaining the test requirements, the test system calls the corresponding target test scheme preset in the test scheme library according to the test requirements. At the same time, after obtaining the algorithm information, the test system calls the target decision indicator rule preset in the decision indicator rule library according to the algorithm information, and uses the target test scheme and the target decision indicator rule to test, and obtains the test report of each test node. Finally, the test reports of all test nodes are analyzed and summarized to obtain the test report of the test model as a whole. Since the test schemes and decision indicator rules used are pre-stored in the corresponding database, and can be added and modified, in this way, if the data stored in the databases of the test schemes and the target decision indicator rules are sufficient, when facing a new test model or the application scenario of the test model changes, there is no need to plan the test model separately, and only the corresponding test scheme or decision indicator rule needs to be called from the corresponding database to meet the test requirements. Therefore, the flexibility of the test method is improved, and the test efficiency is also improved due to the reduction of manual participation. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 It is a flow chart of the testing method provided in the embodiment of the present application;
[0026] Figure 2 This is a schematic diagram of a distributed workflow of a test method provided in an embodiment of the present application;
[0027] Figure 3 It is a schematic diagram of the structure of the test method provided in the embodiment of the present application;
[0028] Figure 4 It is a schematic diagram of a strategy model training method device provided in an embodiment of the present application;
[0029] Figure 5 It is a schematic diagram of an electronic device for policy model training provided in an embodiment of the present application. DETAILED DESCRIPTION
[0030] The terms used in the following embodiments of the present application are for the purpose of describing optional implementation modes, and are not intended to be used as limitations to the present application. As used in the specification and the appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions. It should also be understood that although the terms first, second, etc. may be used to describe a certain class of objects in the following embodiments, the objects are not limited to these terms. These terms are used to distinguish the specific objects of this class of objects. For example, the same is true for other classes of objects that may be described using the terms first, second, etc. in the following embodiments, which will not be repeated here.
[0031] The embodiment of the present application provides a test method. In this solution, after obtaining the test requirements, the test system calls the corresponding target test scheme preset in the test scheme library according to the test requirements. At the same time, after obtaining the algorithm information, the test system calls the target decision indicator rule preset in the decision indicator rule library according to the algorithm information, and uses the target test scheme and the target decision indicator rule to test, and obtains the test report of each test node. Finally, the test reports of all test nodes are analyzed and summarized to obtain the test report of the test model as a whole. Since the test schemes and decision indicator rules used are pre-stored in the corresponding database, and can be added and modified, in this way, if the data stored in the databases of the test schemes and the target decision indicator rules are sufficient, when facing a new test model or the application scenario of the test model changes, there is no need to plan the test model separately, and only the corresponding test scheme or decision indicator rule needs to be called from the corresponding database to meet the test requirements. Therefore, the flexibility of the test method is improved, and the test efficiency is also improved due to the reduction of manual participation.
[0032] The test method provided in the embodiment of the present application can be performed by one electronic device or by a computer cluster. The computer cluster includes at least two electronic devices that support the test method of the embodiment of the present application, and any electronic device can implement the algorithm training model test function described in the embodiment of the present application through the test method.
[0033] Any electronic device designed in the embodiment of the present application can be an electronic device such as a mobile phone, a tablet computer, a wearable device (e.g., a smart watch, a smart bracelet, etc.), a laptop computer, a desktop computer, and a vehicle-mounted device. The electronic device is pre-installed with a policy model training application. It is understandable that the embodiment of the present application does not impose any restrictions on the specific type of electronic device.
[0034] In the process of researching reinforcement learning (RL) algorithms, algorithm researchers need to test the training model multiple times to continuously verify and improve it in order to obtain a relatively complete training model.
[0035] Since the training model of reinforcement learning is obtained by the corresponding reinforcement learning algorithm, when the reinforcement learning algorithm changes, the test information and test objectives corresponding to the test points involved in the training model will also change accordingly. The existing testing methods are less flexible and cannot be compatible with multiple reinforcement learning algorithms or test multiple test contents. Different testing methods need to be formulated for different training models. This requires separate testing for each new training model or for the test model in each new application scenario. In addition, at this stage, the testing of reinforcement learning training models usually adopts manual testing or a low degree of automated testing. Since each training model has a large number of test points, the testing workload is large, resulting in low testing efficiency.
[0036] The following is a description of several exemplary implementations, illustrating the technical solutions of the embodiments of the present application and the technical effects produced by the technical solutions of the present application.
[0037] See also Figure 1 , Figure 1 The test method provided in the embodiment of the present application comprises the following steps:
[0038] Obtain at least one test requirement, and call the test solutions preset in the test solution library and corresponding to the corresponding test requirement according to each test requirement to obtain at least one target test solution;
[0039] Acquire at least one algorithm information, and call the decision indicator rule corresponding to the corresponding algorithm information preset in the decision indicator rule library according to each algorithm information to obtain at least one target decision indicator rule;
[0040] Performing tests according to each target test scheme and the target decision indicator rules corresponding to each algorithm information to obtain at least one test report;
[0041] The at least one test report is analyzed to obtain a target test report.
[0042] Optionally, through the current research on RL algorithms, it can be concluded that the test content for RL algorithm training models usually includes: whether the program after modifying the RL algorithm will have abnormalities such as compilation, startup, and operation, and whether it can run normally to the algorithm training part; collect the decision indicator values during the training process and draw a process animation to test whether the algorithm can train convergence and calculate the performance indicators during convergence (performance indicators specifically include: the number of neural network updates, convergence time, decision indicator values, etc.); when the algorithm researcher proposes multiple improvement plans for a certain RL algorithm, test the improvement plan with the best performance. In this way, users can customize the configuration of test plans according to their own test goals. Since the execution of each test plan is determined by the test goal, when the corresponding test plan needs to be executed under a certain test goal, as long as an interface is provided to the user for each test plan, the user can call the test case (or a test case set consisting of multiple test cases) under the test plan and run it automatically.
[0043] In a possible implementation, before obtaining at least one test point information, the method includes: obtaining at least one algorithm startup command, and loading each algorithm startup command into a unified format string for starting the algorithm corresponding to each algorithm startup command. Since there are many types of programming languages for RL algorithms, it is necessary to design a configurable operation mode for the startup command, that is, to provide an input interface for the program startup mode. The test framework starts the RL algorithm program by loading these commands and running them.
[0044] In a possible implementation, each test scheme includes: a scheme name (also called a test type, which is set as an index value of the test scheme) and at least one test case, wherein the test case includes: information of points to be tested and test content corresponding to each information of points to be tested.
[0045] Exemplarily, in constructing a test solution library, the solution names are set to include: abnormal test, convergence performance test, and solution comparison test. Each solution name corresponds to a test solution, and each test solution contains at least one test case. The test case is usually understood as the test point set during the test and the test content corresponding to the test point. For the above solution names, the test cases usually included are as follows:
[0046] The abnormality test includes: whether the compilation program is abnormal, whether the startup program is abnormal, and whether the program can enter the training phase;
[0047] The convergence performance test includes: whether the compilation program is abnormal, whether the startup program is abnormal, whether the algorithm training can converge, and the performance indicators when the algorithm converges (specifically including the number of neural network updates, convergence time, and decision indicators, etc.);
[0048] The scheme comparison test includes: whether there are any abnormalities in the compilation program, whether there are any abnormalities in the startup program, performance indicators when calculating the algorithm convergence (specifically including the number of neural network updates, convergence time, and decision indicators, etc.), and comparing the performance indicators of all schemes, and comprehensively ranking all performance indicators to obtain the optimal algorithm scheme.
[0049] Optionally, for each test case under each scenario, a person may also set distinguishable coding features.
[0050] In a possible implementation, the definition of the decision indicator library includes: algorithm type, decision indicator extraction rules, algorithm convergence threshold, and algorithm training maximum time. The decision indicator library defines the meaning correspondence between the decision indicator rules, RL algorithm convergence threshold, RL algorithm training maximum time, etc. in a certain scenario. In this way, when the decision indicator library provides an interface to the outside, the user can call the decision indicator rules under the RL algorithm type by inputting the RL algorithm type.
[0051] For example, since different RL algorithms or the same RL algorithm have different decision goals in different application scenarios, we need to build a decision indicator rule library to solve this problem. For the decision indicator rule library, the elements that need to be defined include:
[0052] RL algorithm type, which includes the RL algorithm name and application scenario. For example, the type of the Advantage Actor Critic (a2c) algorithm in scenario A (where A is used only to refer to the scenario content and is not a limitation) can be defined as: a2c_A;
[0053] A decision indicator extraction rule, wherein the decision indicator extraction rule includes a decision indicator name and a regular expression that matches the decision indicator name in the output log, and the decision indicator extraction rule may be in JSON format;
[0054] RL algorithm convergence threshold, the RL algorithm convergence threshold is a user-defined minimum empirical value for judging algorithm convergence;
[0055] The maximum training time of the RL algorithm is the maximum training time of the RL algorithm defined by the user.
[0056] In a possible implementation mode, when a user is faced with multiple test scenarios, a distributed operation mode can be adopted, as follows: Figure 2As shown in the figure, each test node is equivalent to an external device of the training model to be tested, and each test scheme is equivalent to a task corresponding to the external device. For example, the task received by node 1 is to test the convergence performance of the training model in scenario A (here and below, A only refers to the scenario content, without limitation), corresponding to test scheme 1 (test scheme 2 can represent other test contents); the test task received by node 2 is a scheme comparison test in scenario A, corresponding to test scheme 2n+1 (test scheme 2n+1 can represent other test contents). Since node 1 and node 2 are designed in a distributed structure, node 1 and node 2 are independent of each other in the process of processing the corresponding test schemes and do not affect each other.
[0057] Optionally, taking node 1 as an example, the process of performing the convergence performance test includes:
[0058] Load the user-configured startup command and run it;
[0059] Obtain at least one test requirement, and call the test solutions preset in the test solution library and corresponding to the corresponding test requirement according to each test requirement to obtain at least one target test solution;
[0060] Acquire at least one algorithm information, and call the decision indicator rule corresponding to the corresponding algorithm information preset in the decision indicator rule library according to each algorithm information to obtain at least one target decision indicator rule;
[0061] Performing tests according to each target test scheme and the target decision indicator rules corresponding to each algorithm information to obtain at least one test report;
[0062] The at least one test report is analyzed to obtain a target test report.
[0063] Optionally, the final target test report can be presented in a visual manner such as a chart.
[0064] Obviously, the execution process of the test plan corresponding to node 2 is similar to that of node 1, and will not be repeated here.
[0065] In another aspect of the present application, an embodiment of the present application further provides a test architecture applicable to the above-mentioned test method, the architecture comprising a basic layer, a configuration layer, a computing layer and an application layer;
[0066] The basic layer is used to deploy a decision indicator rule library and a test case library. The decision indicator rule library is used to store decision indicator rules and coordinate with the system to output target decision indicator rules. The test case library is used to store test plans and test cases used by the system.
[0067] The configuration layer is used to design test conditions for the corresponding contents of the test requirements according to the test requirements, and the corresponding contents include: algorithm type, program source code, test plan and program running instruction definition, etc.;
[0068] The computing layer is used to automatically execute all test cases under the scheme by calling the test scheme external interface based on the decision indicator rule library, the test case library and the constraints of the configuration layer. After each test scheme is executed, an initial test report (equivalent to the above test report) is generated and stored in the database;
[0069] The application layer is used to summarize the initial test report (equivalent to the above test report) output by the computing layer and generate a final test report (equivalent to the above target test report). First, the target test report needs to be visualized, and some test reports can also be analyzed.
[0070] The embodiment of the present application provides a test method. In this solution, after obtaining the test requirements, the test system calls the corresponding target test scheme preset in the test scheme library according to the test requirements. At the same time, after obtaining the algorithm information, the test system calls the target decision indicator rule preset in the decision indicator rule library according to the algorithm information, and uses the target test scheme and the target decision indicator rule to test, and obtains the test report of each test node. Finally, the test reports of all test nodes are analyzed and summarized to obtain the test report of the test model as a whole. Since the test schemes and decision indicator rules used are pre-stored in the corresponding database, and can be added and modified, in this way, if the data stored in the databases of the test schemes and the target decision indicator rules are sufficient, when facing a new test model or the application scenario of the test model changes, there is no need to plan the test model separately, and only the corresponding test scheme or decision indicator rule needs to be called from the corresponding database to meet the test requirements. Therefore, the flexibility of the test method is improved, and the test efficiency is also improved due to the reduction of manual participation.
[0071] The above-mentioned embodiment is from the angle of action logic and learning algorithm processing performed by electronic devices such as obtaining target test scheme according to test requirements, obtaining target decision index rules according to algorithm information, obtaining test reports according to target test schemes and target decision index rules, and obtaining target test reports according to test reports, etc., to introduce each implementation method of the test method provided by the embodiment of the present application. It should be understood that the corresponding processing steps of obtaining the target test scheme according to test requirements, obtaining the target decision index rules according to algorithm information, obtaining the test report according to the target test scheme and target decision index rules, and obtaining the target test report according to the test report, etc., the embodiment of the present application can realize the above functions in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to realize the described functions for each specific application, but this realization should not be considered to exceed the scope of the present application.
[0072] For example, if the above implementation steps implement the corresponding functions through software modules, such as Figure 4 As shown, the strategy model training device may include: a first acquisition module, a second acquisition module, a testing module and an analysis module.
[0073] The first acquisition module,
[0074] Used to obtain at least one test requirement, and call the test solution preset in the test solution library corresponding to the corresponding test requirement according to each test requirement, to obtain at least one target test solution;
[0075] The second acquisition module,
[0076] Used to obtain at least one algorithm information, and call the decision indicator rule corresponding to the corresponding algorithm information preset in the decision indicator rule library according to each algorithm information, to obtain at least one target decision indicator rule;
[0077] The test module is used to perform a test according to each target test scheme and the target decision indicator rule corresponding to each algorithm information to obtain at least one test report;
[0078] The analysis module is used to analyze the at least one test report to obtain a target test report.
[0079] It can be understood that the division of the above modules / units is only a division of logical functions. In actual implementation, the functions of the above modules can be integrated into hardware entities for implementation. For example, the first acquisition module and the second acquisition module can be integrated into the transceiver for implementation, and the test module and the analysis module can be integrated into the processor for implementation. The programs and instructions for implementing the functions of the above modules can be maintained in the memory. For example, Figure 5 An electronic device is provided, which may include a processor, a transceiver and a memory. The transceiver is used to obtain test results. The memory can be used to store process data generated during the test, and can also store codes for the processor to execute. When the processor runs the code stored in the memory, the electronic device performs part or all of the operations of the test method in the above method.
[0080] The specific implementation process is described in detail in the embodiment illustrated in the above method, and will not be described in detail here.
[0081] In a specific implementation, corresponding to the aforementioned electronic device, the embodiment of the present application further provides a computer storage medium, wherein the computer storage medium provided in the electronic device may store a program, and when the program is executed, some or all of the steps in each embodiment including the multi-agent learning method may be implemented. The storage medium may be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0082] One or more of the above modules or units can be implemented by software, hardware or a combination of the two. When any of the above modules or units is implemented by software, the software exists in the form of computer program instructions and is stored in a memory, and the processor can be used to execute the program instructions and implement the above method flow. The processor may include but is not limited to at least one of the following: a central processing unit (CPU), a microprocessor, a digital signal processor (DSP), a microcontroller unit (MCU), or an artificial intelligence processor and other types of computing devices that run software, each of which may include one or more cores for executing software instructions to perform operations or processing. The processor may be built into an SoC (system on chip) or an application specific integrated circuit (ASIC), or it may be an independent semiconductor chip. In addition to the core used to execute software instructions for operations or processing in the processor, it may further include necessary hardware accelerators, such as a field programmable gate array (FPGA), a PLD (programmable logic device), or a logic circuit that implements dedicated logic operations.
[0083] When the above modules or units are implemented in hardware, the hardware can be any one or any combination of a CPU, a microprocessor, a DSP, an MCU, an artificial intelligence processor, an ASIC, a SoC, an FPGA, a PLD, a dedicated digital circuit, a hardware accelerator or a non-integrated discrete device, which can run the necessary software or not rely on the software to execute the above method flow.
[0084] Furthermore, Figure 5 The bus interface may also include a bus interface, which may include any number of interconnected buses and bridges, specifically linking various circuits of one or more processors represented by the processor and memory represented by the memory. The bus interface may also link various other circuits such as peripherals, voltage regulators, and power management circuits together, which are all well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver provides a unit for communicating with various other devices over a transmission medium. The processor is responsible for managing the bus architecture and general processing, and the memory may store data used by the processor when performing operations.
[0085] When the above modules or units are implemented using software, they can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.
[0086] It should be understood that in various embodiments of the present application, the size of the sequence number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment.
[0087] Each part of this specification is described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment part.
[0088] Although the optional embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0089] The specific implementation methods described above further illustrate the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above description is only the specific implementation method of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the present application should be included in the scope of protection of the present invention.
Claims
1. A testing method, characterized in that: The method comprises: Obtain at least one test requirement, and call the test solutions corresponding to the corresponding test requirement preset in the test solution library according to each test requirement to obtain at least one target test solution. Each of the test schemes includes: a scheme name and at least one test case, wherein the test case includes: information of points to be tested and the test content corresponding to each information of points to be tested, The scheme names include: abnormality test, convergence performance test and scheme comparison test. The abnormality test includes: whether the compiler has an abnormality, whether the startup program has an abnormality, and whether the program can enter the training phase; the convergence performance test includes: whether the compiler has an abnormality, whether the startup program has an abnormality, whether the algorithm training can converge, and the performance index when the algorithm converges; the scheme comparison test includes: whether the compiler has an abnormality, whether the startup program has an abnormality, the performance index when the algorithm converges, and the performance index of all schemes are compared, and the optimal algorithm scheme is obtained by comprehensively sorting all performance indicators; Acquire at least one algorithm information, and call the decision indicator rule corresponding to the corresponding algorithm information preset in the decision indicator rule library according to each algorithm information to obtain at least one target decision indicator rule, The definition of the decision indicator rule base includes: algorithm type, decision indicator extraction rules, algorithm convergence threshold and algorithm training maximum time, The decision indicator rule library defines the corresponding relationship between the decision indicator rule, the RL algorithm convergence threshold, and the maximum training time of the RL algorithm in a certain scenario. When the decision indicator rule library provides an interface to the outside, the user can call the target decision indicator rule under the RL algorithm type by inputting the RL algorithm type. Performing tests according to each target test scheme and the target decision indicator rules corresponding to each algorithm information to obtain at least one test report; The at least one test report is analyzed to obtain a target test report.
2. The testing method according to claim 1, characterized in that: Before obtaining at least one test point information, the method includes: obtaining at least one algorithm start-up command, and loading each of the algorithm start-up commands into a unified format character string for starting the algorithm corresponding to each of the algorithm start-up commands.
3. The testing method according to claim 1, characterized in that: After acquiring at least one algorithm information and before obtaining at least one target decision indicator rule, the method further includes: calling the decision indicator rule corresponding to the corresponding algorithm information according to the corresponding relationship between the definition content of the decision indicator rule library and the algorithm information.
4. The testing method according to claim 1 or 3, characterized in that: The algorithm information includes: algorithm type.
5. The testing method according to claim 1, characterized in that: Each test scenario runs independently and does not affect each other.
6. A testing device, characterized in that: The device comprises: The first acquisition module is used to acquire at least one test requirement, and call the test solution preset in the test solution library corresponding to the corresponding test requirement according to each test requirement to obtain at least one target test solution. Each of the test schemes includes: a scheme name and at least one test case, wherein the test case includes: information of points to be tested and the test content corresponding to each information of points to be tested, The scheme names include: abnormality test, convergence performance test and scheme comparison test. The abnormality test includes: whether the compiler has an abnormality, whether the startup program has an abnormality, and whether the program can enter the training phase; the convergence performance test includes: whether the compiler has an abnormality, whether the startup program has an abnormality, whether the algorithm training can converge, and the performance index when the algorithm converges; the scheme comparison test includes: whether the compiler has an abnormality, whether the startup program has an abnormality, the performance index when the algorithm converges, and the performance index of all schemes are compared, and the optimal algorithm scheme is obtained by comprehensively sorting all performance indicators; The second acquisition module is used to acquire at least one algorithm information, and call the decision indicator rule corresponding to the corresponding algorithm information preset in the decision indicator rule library according to each algorithm information to obtain at least one target decision indicator rule. The definition of the decision indicator rule base includes: algorithm type, decision indicator extraction rules, algorithm convergence threshold and algorithm training maximum time, The decision indicator rule library defines the corresponding relationship between the decision indicator rule, the RL algorithm convergence threshold, and the maximum training time of the RL algorithm in a certain scenario. When the decision indicator rule library provides an interface to the outside, the user can call the target decision indicator rule under the RL algorithm type by inputting the RL algorithm type. A testing module, used to perform testing according to each target testing scheme and the target decision indicator rule corresponding to each algorithm information, and obtain at least one test report; The analysis module is used to analyze the at least one test report to obtain a target test report.
7. An electronic device, characterized in that: The electronic device comprises: a memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method according to any one of claims 1 to 5 by executing the computer instructions.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 5.
