A method for generating class integration test sequences based on Actor-Critic algorithm

The Actor-Critic method is used to optimize the class integration test sequence, which solves the problem of high cost of generating class integration test sequences in the existing technology, achieves more efficient test sequence generation, reduces the complexity of test piles, and improves testing efficiency and product quality. .

CN113868113BActive Publication Date: 2024-09-06CHINA UNIV OF MINING & TECH
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202110689058.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-22
Publication Date
2024-09-06
Estimated Expiration
2041-06-22

AI Technical Summary

Technical Problem

The overall cost caused by the existing class integration test sequence generation method is too high, which cannot effectively reduce the complexity of the test pile and affects the testing efficiency.

Method used

The deep reinforcement learning method based on Actor-Critic is used to optimize the class integration test sequence through the mutual game between the Actor network and the Critic network, select the action path with the lowest overall test pile complexity, and generate a reasonable class integration test sequence.

Benefits of technology

It significantly reduces the complexity of test piles, improves the efficiency of integration testing, provides lower-cost testing methods, and improves testers' work efficiency and product quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 210622100411
    Figure 210622100411
  • Figure 210622100417
    Figure 210622100417
  • Figure 210622100422
    Figure 210622100422
Patent Text Reader

Abstract

The present invention discloses a class integration test sequence generation method based on Actor-Critic algorithm, belonging to the field of software testing technology. The method comprises the following steps: 1) defining target tasks; 2) program static analysis; 3) measuring test pile complexity; 4) designing reward function; 5) Actor network selecting actions; 6) Critic network evaluating the quality of actions; 7) updating network parameters; 8) generating class integration test sequences. The present invention solves the problem that the overall cost of class integration test sequence generation method currently available is too high in evaluating and determining the cost of class integration test sequence, provides a more reasonable test sequence generation method for testers to carry out test work in actual production life, improves the efficiency of integrated testing, and can better control the quality of products.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of software testing, and in particular relates to a method for generating a class integration test sequence based on Actor-Critic. Background Art

[0002] In the software development cycle, the software design and testing phases account for the largest proportion. A reasonable software testing sequence will reduce the cost of the testing phase and the improvement time of developers. In object-oriented projects such as Java, which contain multiple classes and the dependencies between classes are complicated, it is impossible to directly determine the order of class testing. Therefore, it is very necessary to determine the test order of each class before testing.

[0003] Based on the inter-class dependencies of object-oriented programs, researchers in the field of software engineering have proposed integration strategies based on class integration test sequences. During the testing process, these strategies often require constructing the required test stubs for certain classes in object-oriented programs to replace them in completing certain functions. This task is very costly and generally cannot be avoided, so how to reduce the cost has become a key issue in integration testing. During the research process, scholars measured the cost of test stubs by calculating the complexity of the test stubs. Different class integration test sequences have different test stub complexities and test costs. Reasonably sorting the classes in the test program and obtaining a feasible class integration test sequence can greatly reduce the overall complexity of the test stubs that need to be constructed, thereby minimizing the test cost as much as possible.

[0004] The Actor-Critic method is a branch of deep reinforcement learning. It has been applied in various scenarios, such as autonomous driving, game competition, and Go games, and has achieved good results. The Actor network guides the Actor to choose the most reasonable action in a specific state, while the Critic network is used to score the Actor's choice of this action. It is similar to a diving competition, where the diver (Actor) makes a move and the referee (Critic) scores the athlete's move. The two compete with each other and improve their abilities together. Summary of the invention

[0005] The purpose of the present invention is to provide a method for generating class integration test sequences based on Actor-Critic, so as to solve the problem that the overall cost of class integration test sequences in existing class integration test sequence generation methods is too high. This can provide a lower-cost method for testers to carry out testing work in actual production life, thereby improving the efficiency of integration testing.

[0006] The present invention is implemented according to the following technical solutions:

[0007] A method for generating class integration test sequences based on Actor-Critic. The specific process is as follows:

[0008] Step 1. Define the target task: The task of this method is to make the Actor network environment continuously try and select different actions according to different states. At the same time, the Critic makes a value assessment of the action selected by the Actor according to the current environment. In the end, the two networks are continuously optimized, and the ultimate goal is to select the sequence with the lowest overall test pile complexity for the trained Actor network.

[0009] Step 2: Static analysis of the program: Perform static analysis on the source program and use the information obtained to calculate the attribute and method complexity between classes. The attribute coupling between classes is calculated through the attribute complexity, and the method coupling between classes is calculated through the method complexity.

[0010] Step 3: Measure the complexity of the test pile: Calculate the complexity of the test pile based on the previously obtained properties and method complexity to provide information for the design of the subsequent reward function;

[0011] Step 4: Design the reward function: Incorporate the calculation of the test pile complexity into the design of the reward function, subtract the action benefit from the action cost to get the action net benefit as the action reward value;

[0012] Step 5: The Actor network selects an action: the reward function is used to feed back the value function, and the cumulative reward is maximized by setting the value function.

[0013] Step 6: The Critic network evaluates the quality of the action: When the Actor completes the set number of training times, it selects the action path with the largest overall reward value, which is the class integration test sequence obtained in this learning.

[0014] Step 7: Update network parameters: After the Actor network and the Critic network complete a certain number of cycles, the generated experience values ​​can be used to update the parameters in the two networks to make them more accurate.

[0015] Step 8: Obtain the class integration test sequence: When the Actor completes the set number of training times, select the action path with the largest overall reward value, which is the class integration test sequence obtained in this learning.

[0016] The specific steps of step 1 are as follows:

[0017] 1.1. Treat all classes in the software system to be analyzed as a class set;

[0018] 1.2. The Actor network selects non-repeated classes as actions in turn and records the order of actions. The final order of actions is the candidate solution for the class integration test sequence.

[0019] 1.3. Find an action sequence with the lowest overall test cost from the candidate solutions, which is the class integration test sequence required in this learning process.

[0020] The specific steps of step 2 are as follows:

[0021] 2.1. Analyze the relationship between classes and calculate the attribute coupling between classes through attribute complexity. Use A(i,j) to represent it. i and j represent the classes in the program respectively. The attribute complexity is equal to the sum of the number of member variables, method parameter types and the number of return values ​​of the method when i calls j.

[0022] 2.2. Calculate the method coupling between classes through method complexity, represented by M(i,j). The number of method complexity is equal to the number of methods called by i in j.

[0023] 2.3. Standardize the complexity of attributes and methods.

[0024] The specific steps of step 3 are as follows:

[0025] 3.1. Set the weights of the attributes and methods in the test pile complexity calculation;

[0026] 3.2. The complexity of the test pile is calculated by combining the attribute and method complexity;

[0027] 3.3. When the class integration test sequence is obtained, the complexity of the test piles generated in the process is accumulated to obtain the overall test pile complexity.

[0028] The specific steps of step 4 are as follows:

[0029] 4.1. Design a reward function that gives a higher reward value when the class that the actor explores and integrates into is better;

[0030] 4.2. When any action type appears twice in the process, give this path a minimum value of -∞ so that it can be avoided when continuing to explore;

[0031] 4.3. Design the reward function by combining the above two points with the complexity of the test pile.

[0032] Further options:

[0033] Among them, the Actor reaches σ after i-1 state changes. i , σ i represents the state path, r(σ i ) represents the reward value that the state path will get, Max represents the maximum reward value, which is 1000 here, c is a positive integer value, which is 100 here, a σiIndicates the action history corresponding to the state path, and SCplx() indicates the test pile complexity. If any situation that does not meet the requirements occurs during the process, the environment will assign a penalty value to the Actor.

[0034] The specific steps of step 5 are as follows:

[0035] 5.1. Convert the current state S into a vector Φ(S) as the input vector of the Actor network.

[0036] 5.2. The Actor network outputs the choice and probability of each action;

[0037] 5.3. Then, according to the ℇ-greedy algorithm, the action to be selected is determined.

[0038] Further options:

[0039] Among them, α represents the learning rate, r represents the reward value obtained by the Actor when performing action a in state s, and γ represents the discount factor.

[0040] The specific steps of step 6 are as follows:

[0041] 6.1. After step 5 is completed, the state S changes to the state S';

[0042] 6.2. Convert the current state S' into a vector Φ(S') as the input vector of the Critic network;

[0043] 6.3. Output Value(S') as the value evaluation of S';

[0044] The specific steps of step 7 are as follows:

[0045] 7.1. Update Policy Network (Actor):

[0046] 7.2. Update the value network (Critic):

[0047] The specific steps of step 8 are as follows:

[0048] 8.1. Select an action according to the action selection mechanism;

[0049] 8.2. When the training times are completed, the system selects the action sequence with the maximum overall reward value and returns it, which is the optimal class integration test sequence required.

[0050] Compared with the prior art, the present invention has the following beneficial effects:

[0051] The present invention solves the problem that the overall cost of evaluating and determining the class integration test sequence by the existing class integration test sequence generation method is relatively high, provides a more reasonable test sequence generation method for testers to carry out testing work in actual production life, improves the efficiency of integration testing, and can better control product quality. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] The accompanying drawings are part of the present invention and are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention, but do not constitute an improper limitation of the present invention. Obviously, the accompanying drawings described below are only some embodiments. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0053] In the attached picture:

[0054] Figure 1 A flowchart of a method for generating a class integration test sequence based on Actor-Critic according to an example of the present invention;

[0055] Figure 2 A flowchart for defining the Actor-Critic task;

[0056] Figure 3 This is a flowchart for static analysis of the program;

[0057] Figure 4 Flowchart for measuring test stub complexity;

[0058] Figure 5 Flowchart for designing reward function;

[0059] Figure 6 Flowchart for generating class integration test sequences.

[0060] It should be noted that these drawings and textual descriptions are not intended to limit the conceptual scope of the present invention in any way, but are intended to illustrate the concept of the present invention for those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0061] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. The following embodiments are used to illustrate the present invention but are not used to limit the scope of the present invention.

[0062] Figure 1 The present invention is a flowchart of an Actor-Critic based class integration test sequence generation method.

[0063] S1 defines the target task. Actor-Critic is based on the theory of the game between athletes and referees. The Actor network makes specific actions in a specific state, and the Critic network evaluates the actions of the Actor network accordingly. The goal of defining the Actor-Critic task is to find a set of optimal action sequences to minimize the complexity of the overall test pile obtained.

[0064] S2 program static analysis. Perform static analysis on the source program to obtain a series of information, such as: inter-class dependency type, attribute dependency information (such as member variable dependency information, parameter transfer information and return value information, etc.) and method call information, etc., and use this information to calculate the attributes and method complexity between classes. Inter-class dependencies can be divided into inter-class static dependencies and inter-class dynamic dependencies according to whether the program is running or not. When the program can be analyzed without running, it is called inter-class static dependency, and the relationship formed when the program is running is called inter-class dynamic dependency. The present invention mainly involves static dependencies. The process of building a test pile needs to consider the strength of the inter-class dependency, and measuring this dependency requires analyzing the coupling information between classes, and then calculating the cost of building the test pile. After analysis, the tightness of the coupling degree is positively correlated with the strength of the dependency, that is, the coupling degree is positively correlated with the test cost.

[0065] S3 measures the complexity of test piles. Test piles are not real classes in a system, but a component module or a piece of target code that serves the object under test. When the dependency between two classes is strong, the test pile needs to simulate more functions, which is more complicated to build and the complexity of the test pile is higher; when the relationship is weak, the difficulty of building the test pile is reduced, the cost is lower, and the complexity of the test pile is lower. Therefore, the complexity of the test pile can be calculated by the strength of the relationship between classes, and then the test cost can be obtained.

[0066] S4 designs the reward function. When the Actor takes action a in state s, the environment will give the Actor a reward r. When the r obtained by the Actor is positive, the Actor will strengthen the choice of action in the relevant direction, which will also affect the next state. The reward function is a function that calculates the reward value r.

[0067] S5 Actor network selects actions. Since the Actor network cannot accurately output the advantage value corresponding to each action in the early stage, it is necessary to make the Actor explore different actions with a greater probability as much as possible in the early stage. In the later stage, when the network training is mature, the probability of exploration can be reduced, making the complexity results tend to be stable.

[0068] S5 Critic network selects actions. It is used to evaluate the actions taken by the Actor in a certain state, and can be used to improve the Actor network to make it more accurate.

[0069] S6 updates the Actor network and Critic network to make the predictions of the two networks more accurate.

[0070] S7 generates a class integration test sequence. Through the action selection and reward feedback of the Actor in the learning process, a suitable action is selected to be added to the action sequence. The final suitable action sequence is the class integration test sequence with the lowest complexity obtained by this method.

[0071] Figure 2 A flowchart for defining the Actor-Critic task. By understanding the construction of Actor-Critic and combining relevant research on class integration test sequences, an Actor-Critic strategy is developed with the goal of making the test pile complexity as low as possible, and the overall test pile complexity of the action sequence selected by the Actor is minimized as the learning goal. The specific steps are as follows: First, the software system to be analyzed is regarded as a set of classes that need to be integrated during testing; then, the action sequence issued by the Actor in the environment is retained as a candidate solution for the integration test class sequence; finally, an action sequence with the lowest overall test pile complexity is found from the candidate solutions, which is the class integration test sequence required in this learning process.

[0072] Figure 3 This is a flowchart for static analysis of a program. By analyzing the dependencies between classes in the program, we can get the coupling of properties and methods, and prepare for the next step of calculating the complexity of the test stub. The specific steps are as follows: First, analyze the relationship between classes by analyzing the specific statements between programs; then, calculate the property coupling between classes by property complexity, and calculate the method coupling between classes by method complexity; finally, in order to facilitate the next step of calculation, standardize the property and method complexity respectively.

[0073] Figure 4 This is a flowchart for measuring test pile complexity. Test pile complexity is an important indicator for measuring test cost, which is mainly calculated through the complexity of attributes and methods between classes. The specific steps are as follows: First, determine the weights of attribute and method complexity, then calculate the test pile complexity by combining the attribute and method complexity after standardization in the previous step; finally, when the class integration test sequence is obtained, the complexity of the test piles generated in the process is accumulated to obtain the overall test pile complexity, so as to evaluate this method.

[0074] Implementation method: In order to obtain the test pile complexity more accurately, the entropy weight method is used to calculate the weight W of the attribute and method complexity. A and WM .

[0075] Figure 5 The flowchart of the reward function is designed. The reward function is an important indicator to guide the Actor to explore. The Actor tends to explore the action path with a larger reward value. Therefore, in order to obtain a class integration test sequence with the lowest test cost as possible, the present invention improves the reward function in combination with the class net benefit. The specific steps are as follows: first, design the class that the Actor explores and integrates, and calculate the benefit and cost brought by the current class after being integrated into the sequence; then, subtract the benefit from the cost to obtain the net benefit; when any action class is repeated twice in the process, a minimum value of -∞ is given to this path so that this situation can be avoided when continuing to explore; finally, through the above two points combined with the complexity of the test pile, the reward function is designed to train the Actor to tend to explore the path with lower test pile complexity.

[0076]

[0077] TC(i) represents the cost required to select the i-th class as the action, which depends on the accumulation of coupling complexity of other classes (specifically classes not integrated into the sequence), where c is the cost coupling matrix.

[0078]

[0079] TR(i) represents the value that can be generated for other classes that are not integrated into the sequence by taking the i-th class as an action. NR(i) represents the net benefit, which is the benefit brought by integrating the i-th class into the sequence minus the cost. Its value can be positive or negative.

[0080] In addition, the net benefit needs to be adjusted and its value increased by 1000 times, because the original net benefit value is very small compared to the reward value when the reinforcement learning reaches the final state. Therefore, it needs to be appropriately amplified, and the multiple of 1000 is also the ideal amplification multiple obtained after continuous attempts. Finally, the amplified net benefit is used as the reward value r for this time.

[0081]

[0082] Figure 6 In order to generate a flow chart of a class integration test sequence, the present invention adopts the Actor-Critic method to train the Actor to learn in the direction of lower test cost. The action sequence obtained by selecting actions in the process is the desired class integration test sequence. The specific steps are as follows: First, the Actor selects actions according to the action selection mechanism; then, when the Actor completes the training times, the system selects the action sequence with the maximum overall reward value and returns it, which is the desired optimal class integration test sequence.

[0083] Implementation method: Actor-Critic is a process of selecting actions through exploration and utilization. In order to avoid falling into local optimality during the learning process and further increase the proportion of Actor exploration, two selection mechanisms are adopted based on the ε-greedy method:

[0084] Traditional ε-greedy algorithm: select the action with the maximum Q value in the current state with a probability of 1-ε; randomly select the action with a probability of ε.

[0085] Dynamically adjust the ε algorithm: First, dynamically adjust the value of ε. The formula is as follows, where times represents the number of training times.

[0086] .

[0087] Through the above Q-learning algorithm, the path σ of the Actor from the initial to the final state is obtained. If all actions in all states are visited, the Q value obtained by the Actor reaches the optimal value. The action history associated with the state path is finally obtained, and the corresponding action sequence is the optimal class integration test sequence obtained by this method.

[0088] The following is the experimental data of the above-mentioned Actor-Critic based class integration test sequence generation method:

[0089] The experimental objects are ANT, ATM, SPM, DNS, daisy, email-spl, and BCEL. Among them, ANT, ATM, SPM, and DNS are the benchmark systems used by scholar Briand, and the other three are open source systems of SIR (http: / / sir.unl.edu). The average value of the 10 experimental results of this method shows that for ANT, ATM, daisy, email_spl, and BCEL among the seven programs, the overall test pile complexity is significantly reduced compared with other existing methods. In the two projects of SPM and DNS, it is on par with the average value of the existing methods.

[0090] In summary, the present invention solves the problem of low overall test pile complexity of the class integration test sequence obtained by the existing class integration test sequence generation method, provides a more accurate measurement method for testers to carry out testing work in actual production life, improves the efficiency of the software testing link, and ensures the quality of software products.

[0091] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0092] In addition, those skilled in the art will understand that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments also means being within the scope of protection of the present invention and forming different embodiments. For example, in the above embodiments, those skilled in the art can use them in combination according to the known technical solutions and the technical problems to be solved by this application.

[0093] The above is only a preferred embodiment of the present invention, and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not used to limit the present invention. Any technician familiar with this patent can make some changes or modify the technical contents suggested above into equivalent embodiments without departing from the scope of the technical solution of the present invention. However, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention without departing from the content of the technical solution of the present invention still fall within the scope of the solution of the present invention.

Claims

1. A method for generating class integration test sequences based on Actor-Critic algorithm, characterized by: Step 1. Define the target task: The task of this method is to make the Actor network environment continuously try and select different actions according to different states. At the same time, the Critic makes a value assessment of the action selected by the Actor according to the current environment. Finally, the two networks are continuously optimized. The ultimate goal is to select the sequence with the lowest overall test pile complexity for the trained Actor network. The specific steps are as follows: 1.

1. Treat all classes in the software system to be analyzed as a class set; 1.

2. The Actor network selects non-repeated classes as actions in turn and records the order of actions. The final order of actions is the candidate solution for the class integration test sequence. 1.

3. Find an action sequence with the lowest overall test cost from the candidate solutions, which is the class integration test sequence required in this learning process; Step 2: Static analysis of the program: Perform static analysis on the source program, and use the information obtained to calculate the attribute and method complexity between classes. The attribute coupling between classes is calculated through the attribute complexity, and the method coupling between classes is calculated through the method complexity. The specific steps are as follows: 2.

1. Analyze the relationship between classes and calculate the attribute coupling between classes through attribute complexity. Use A(i,j) to represent it. i and j represent the classes in the program respectively. The attribute complexity is equal to the sum of the number of member variables, method parameter types and the number of return values ​​of the method when i calls j. 2.

2. Calculate the method coupling between classes through method complexity, represented by M(i,j). The number of method complexity is equal to the number of methods called by i in j. 2.

3. Standardize the complexity of attributes and methods; Step 3: Measure the complexity of the test pile: Calculate the complexity of the test pile based on the previously obtained properties and method complexity to provide information for the design of the reward function later; the specific steps are as follows: 3.

1. Set the weights of the attributes and methods in the test pile complexity calculation; 3.

2. The complexity of the test pile is calculated by combining the attribute and method complexity; 3.

3. When the class integration test sequence is obtained, the complexity of the test piles generated in the process is accumulated to obtain the overall test pile complexity; Step 4: Design the reward function: Incorporate the calculation of the test pile complexity into the design of the reward function, subtract the action benefit from the action cost to get the action net benefit as the action reward value; Step 5: The Actor network selects an action: the reward function is used to feed back the value function, and the cumulative reward is maximized by setting the value function. Step 6: The Critic network evaluates the quality of the action: When the Actor completes the set number of training times, the action path with the largest overall reward value is selected, which is the class integration test sequence obtained in this learning; the specific steps are as follows: 6.

1. After step 5 is completed, the state changes from S to S'; 6.

2. Convert the current state S' into a vector Φ(S') as the input vector of the Critic network; 6.

3. Output Value(S') as the value evaluation of S'; Step 7: Update network parameters: After the Actor network and the Critic network complete a certain number of cycles, the generated experience values ​​can be used to update the parameters in the two networks to make them more accurate. The specific steps are as follows: 7.

1. Update the policy network π(A,S;θ)(Actor): 7.

2. Update the value network V(S;w)(Critic): Step 8: Obtain the class integration test sequence: When the Actor completes the set number of training times, select the action path with the largest overall reward value, which is the class integration test sequence obtained in this learning.

2. The method for generating class integration test sequences based on the Actor-Critic algorithm according to claim 1, characterized in that: Test pile complexity in, A(i,j) represents the attribute complexity between classes i and j, and M(i,j) represents the method complexity between classes i and j. The first step of the entropy weight method is to standardize the two indicators so that the results are between 0 and 1. The attribute complexity between classes after standardization is The method complexity is 3. The method for generating class integration test sequences based on the Actor-Critic algorithm according to claim 1, characterized in that : The specific steps of step 4 are as follows: 4.

1. Design a reward function that gives higher rewards to the Actor network when the class it explores and integrates is better. 4.

2. When any action type appears twice in the process, give this path a minimum value of -∞ so that it can be avoided when continuing to explore; 4.

3. By combining the above two points with the complexity of the test pile, we design a reward function and train the Actor to tend to explore paths with lower test pile complexity.

4. A method for generating class integration test sequences based on Actor-Critic algorithm according to claim 3, characterized in that : Among them, the Actor reaches σ after i-1 state changes. i , σ i represents the state path, r(σ i ) represents the reward value that the state path will get, Max represents the maximum reward value, which is 1500000 here, c is a positive integer value, which is 10000 here, a i Represents the action history corresponding to the state path, SCplx() represents the overall test pile complexity; if any situation that does not meet the requirements occurs during the process, the environment will assign a penalty value to the Actor.

5. The method for generating class integration test sequences based on the Actor-Critic algorithm according to claim 1, characterized in that: The specific steps of step 5 are as follows: 5.

1. Convert the current state S into a vector Φ(S) as the input vector of the Actor network; 5.

2. The Actor network outputs the choice and probability of each action; 5.

3. Next, the action to be selected is determined based on the ε-greedy algorithm.

6. A method for generating class integration test sequences based on Actor-Critic algorithm according to claim 5, characterized in that : Q(s,a)=Q(s,a)+α(r+γmaxQ(s′,a′)-Q(s,a)) Among them, α represents the learning rate, r represents the reward value obtained by the Actor when performing action a in state s, and γ represents the discount factor.

7. The method for generating class integration test sequences based on the Actor-Critic algorithm according to claim 1, characterized in that : The specific steps of step 8 are as follows: 8.

1. Select an action according to the action selection mechanism; 8.

2. When the training times are completed, the system selects the action sequence with the maximum overall reward value and returns it, which is the optimal class integration test sequence required.

Citation Information

Patent Citations

  • Project-software-oriented class cluster test method

    CN105528296A

  • Class integration test sequence generation method

    CN108399127A

  • Class integration test sequence generation method based on transfer dependence

    CN110659199A

  • Robot control method based on offline model pre-training learning DDPG algorithm

    CN112668235A

  • Method for constructing SQL statement based on actor-critic network

    US20200301924A1