CN115437918A - Regression test case selection method and device and electronic equipment - Google Patents

Regression test case selection method and device and electronic equipment Download PDF

Info

Publication number
CN115437918A
CN115437918A CN202210892964.6A CN202210892964A CN115437918A CN 115437918 A CN115437918 A CN 115437918A CN 202210892964 A CN202210892964 A CN 202210892964A CN 115437918 A CN115437918 A CN 115437918A
Authority
CN
China
Prior art keywords
test
regression
test case
target
parameters
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210892964.6A
Other languages
Chinese (zh)
Inventor
周卉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Boc Financial Technology Co ltd
Original Assignee
Boc Financial Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Boc Financial Technology Co ltd filed Critical Boc Financial Technology Co ltd
Priority to CN202210892964.6A priority Critical patent/CN115437918A/en
Publication of CN115437918A publication Critical patent/CN115437918A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9024Graphs; Linked lists
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9027Trees
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Computer Hardware Design (AREA)
  • Data Mining & Analysis (AREA)
  • Quality & Reliability (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Computation (AREA)
  • Medical Informatics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a method and a device for selecting a regression test case and electronic equipment, wherein the method comprises the following steps: constructing a test analysis panorama; acquiring a target test case corresponding to a target service scene based on the test analysis panorama, and confirming target service scene parameters corresponding to the target test case based on the database and user input data; performing a first round of system test based on the target service scene parameters to obtain test problem conditions, and confirming first round problem influence parameters based on analysis results of users on the test problem conditions; and comprehensively analyzing the target service scene parameters, the first round problem influence parameters and the historical defect influence parameters to obtain standard values of the test cases, determining regression threshold values based on actual test conditions input by users, and selecting the standard values of the test cases based on the regression threshold values to obtain a regression test case set. The invention improves the efficiency and effectiveness of selecting the regression test case, thereby improving the efficiency and effectiveness of the regression test.

Description

Regression test case selection method and device and electronic equipment
Technical Field
The invention relates to the technical field of financial services, in particular to a method and a device for selecting a regression test case and electronic equipment.
Background
With the changing economic situation, the financial field business is increasingly complex and changeable, and the large commercial bank is at the top with the incomparable and complicated business. Each updating iteration has a large number of function points and test points, the test cases are multiplied, and it is found in the continuous test practice process that how to efficiently and effectively select the regression test cases becomes one of the important consideration points for reducing cost and increasing efficiency of the current financial institution. The minimum requirement for regression test case selection is to ensure that not only key business scenes are covered, but also problems found in the first round of test are covered by the minimum set, so it is significant to improve the efficiency and effectiveness of regression testing by selecting the correct regression testing strategy.
Disclosure of Invention
The invention provides a method and a device for selecting regression test cases and electronic equipment, which are used for solving the defects in the prior art, realizing efficient and effective selection of the regression test cases and improving the efficiency and effectiveness of regression testing.
The invention provides a method for selecting regression test cases, which comprises the following steps:
establishing an index relation tree with a hierarchical relation, and constructing a test analysis panorama based on the index relation tree;
acquiring a target test case corresponding to a target service scene based on the test analysis panorama, and confirming target service scene parameters corresponding to the target test case based on a database and user input data;
performing a first round of system test on the target test case to obtain a test problem condition, and confirming a first round of problem influence parameter based on an analysis result of a user on the test problem condition;
comprehensively analyzing the target service scene parameters, the first round problem influence parameters and the historical defect influence parameters to obtain standard values of the test cases, wherein the historical defect influence parameters are obtained based on the database;
and determining a regression threshold value based on the actual test condition input by the user, and selecting the standard value of the test case based on the regression threshold value to obtain a regression test case set.
According to the method for selecting the regression test case provided by the invention, after the first round of system test is performed on the target test case to obtain the test problem condition and the first round of problem influence parameters are confirmed based on the analysis result of the user on the test problem condition, the method further comprises the following steps:
filing the first round of problem influence parameters confirmed each time to obtain filing influence parameters;
and performing big data statistical analysis on the record influence parameters based on a machine learning algorithm, and storing the big data statistical analysis into the database for obtaining parameters of subsequent tests.
According to the method for selecting the regression test case provided by the invention, after the regression threshold value is determined based on the actual test condition input by the user and the standard value of the test case is selected based on the regression threshold value to obtain the regression test case set, the method further comprises the following steps:
confirming that the system to be tested is put into production, and combining the put-into-production defects of the system to be tested with the input parameters of the user to obtain target historical defect influence parameters;
and storing the target historical defect influence parameters into the database for subsequent testing.
According to the method for selecting the regression test case provided by the invention, the establishment of the index relation tree with the hierarchical relation comprises the following steps:
establishing a first hierarchical relationship based on each service scene and a plurality of functions corresponding to the service scene;
establishing a second hierarchical relationship based on each function and a plurality of corresponding function points;
establishing a third hierarchical relation based on each function point and a plurality of test points corresponding to the function point;
establishing a fourth hierarchical relation based on each test point and a plurality of test cases corresponding to the test point;
and establishing hierarchical association for the first hierarchical relationship, the second hierarchical relationship, the third hierarchical relationship and the fourth hierarchical relationship to obtain the index relationship tree.
According to the method for selecting the regression test case provided by the invention, before the target test case corresponding to the target service scene is obtained based on the test analysis panorama and the target service scene parameters corresponding to the target test case are confirmed, the method further comprises the following steps:
based on a test input request of a user, performing test analysis on each test case by using the test analysis panoramic image to obtain an analysis identifier of each test case;
and carrying out test design on the analysis identification, and confirming a target service scene based on the importance of the corresponding service scene of each test case.
According to the method for selecting the regression test case provided by the invention, the step of selecting the standard value of the test case based on the regression threshold value to obtain the regression test case set comprises the following steps:
comparing the regression threshold value with the standard value of the test case, and selecting the test case with the standard value of the test case not more than the regression threshold value as a target regression test case;
and obtaining the regression test case set based on all the target regression test cases.
The invention also provides a device for selecting the regression test case, which comprises:
the construction module is used for establishing an index relation tree with a hierarchical relation and constructing a test analysis panorama based on the index relation tree;
the first confirmation module is used for acquiring a target test case corresponding to a target service scene based on the test analysis panoramic image and confirming target service scene parameters corresponding to the target test case based on a database and user input data;
the second confirmation module is used for carrying out a first round of system test based on the target service scene parameters to obtain a test problem condition and confirming first round problem influence parameters based on the analysis result of the user on the test problem condition;
a standard value obtaining module, configured to perform comprehensive analysis on the target service scene parameters, the first round problem influence parameters, and the historical defect influence parameters to obtain test case standard values, where the historical defect influence parameters are obtained based on the database;
and the selection module is used for determining a regression threshold value based on the actual test condition input by the user and selecting the standard value of the test case based on the regression threshold value to obtain a regression test case set.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize the method for selecting the regression test case.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of selecting regression test cases as described in any of the above.
The invention also provides a computer program product comprising a computer program which, when executed by a processor, implements any one of the above-described methods of selecting regression test cases.
According to the method, the device and the electronic equipment for selecting the regression test case, the test analysis panoramic image is constructed, the target test case corresponding to the target service scene is obtained by utilizing the test analysis panoramic image, the standard value of the test case is obtained according to the target service scene parameter corresponding to the target test case and the first round problem influence parameter in combination with the historical defect influence parameter, finally the regression threshold value is determined based on the actual test condition input by the user, and the standard value of the test case is selected based on the regression threshold value, so that the regression test case set is obtained. The invention can automatically obtain the standard value of the test case according to a plurality of parameters, and select the regression test case set according to the standard value of the test case, thereby greatly improving the efficiency and effectiveness of selecting the regression test case from a large number of test cases and improving the efficiency and effectiveness of regression test.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart of a method for selecting regression test cases according to the present invention;
FIG. 2 is a schematic diagram of a test analysis panorama;
FIG. 3 is a schematic diagram of a regression test case selection apparatus according to the present invention;
fig. 4 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
Common approaches to select regression testing include: retesting all test cases, selecting test cases based on risk, retesting modified portions, selecting test cases based on operating profiles. However, the conventional method of selective regression testing has two disadvantages as follows.
On the one hand, although the re-testing of all test cases is the safest strategy, the regression test strategy of re-testing all test cases consumes too much resources from the resource and productivity perspective and is generally not selected.
On the other hand, the test case selection based on the risk, the test case selection based on the operation profile and the retest modification part all need the tester to select the most important, key and suspicious test case for system operation, and the tester not only needs to have rich test experience and to know the system operation and design thought, but also can ensure that the selected regression test case set is relatively comprehensive under the condition of comprehensively mastering the solution of the problem found in the first round. Meanwhile, because the test cases are selected and returned from the system test cases one by one, the selection efficiency is low.
In summary, the current regression testing strategy not only has high requirements on skills of testers, but also has low efficiency, and especially the regression testing strategy for selecting testing cases based on the operation profile has higher implementation difficulty.
Referring to fig. 1, a method for selecting a regression test case provided in the embodiment of the present invention includes the following steps:
and step 110, establishing an index relation tree with a hierarchical relation, and constructing a test analysis panorama based on the index relation tree.
Specifically, the index relation tree in this embodiment is a relation chain of a service scenario, a function point, a test point, and a test case set, and the hierarchical relation thereof is sequentially reduced. And establishing a one-to-many tree-like logic diagram between the service scene and the test case according to the index relation tree, namely a test analysis panoramic diagram. In a specific test process, test analysis and test design can be developed according to the test analysis panorama, and the test range is better guaranteed to be covered comprehensively.
And 120, acquiring a target test case corresponding to the target service scene based on the test analysis panorama, and confirming target service scene parameters corresponding to the target test case based on a database and user input data.
Specifically, the target service scenario in this embodiment is a key service scenario. And finding out a corresponding target test case according to the key service scene through the test analysis panoramic image. The target test case is obtained by a key service scene according to the hierarchical relation of a relation chain of a service scene, a function point, a test point and a test case set, and then a target service scene parameter of the target test case is set to be X according to a database and user input data, wherein the target service scene parameter is a first weight value of the target test case as a regression test case set, and the value range of the X is 0-1.
It should be noted that, in this example, there may be one or more target test cases, and there may also be one or more corresponding target service scenarios, which are not specifically limited herein.
It should be further noted that, the database in this embodiment is obtained by filing and storing the test data performed in the past, that is, after the test is completed each time, the test data may be retained, so as to provide data reference for the subsequent test. The user input data is the parameter value that the user needs to input, so as to obtain different target service scene parameters according to different user inputs.
And step 130, performing a first round of system test on the target test case to obtain a test problem condition, and confirming a first round of problem influence parameter based on an analysis result of the user on the test problem condition.
Specifically, in this embodiment, a first round of test is performed on a target test case, a test problem is found and a test problem list is submitted, and reasons appearing in the test process and the like are analyzed according to the test problem condition, so as to confirm a first round of problem influence parameter Y of the target test case, where the first round of problem influence parameter is a second weight value of the target test case as a regression test case set, and a value range of Y is 0 to 1.
And step 140, comprehensively analyzing the target service scene parameters, the first round problem influence parameters and the historical defect influence parameters to obtain standard values of the test cases, wherein the historical defect influence parameters are obtained based on the database.
Specifically, the embodiment performs comprehensive analysis on the target service scene parameter X, the first round problem influence parameter Y, and the historical defect influence parameter Z to obtain the standard value of the test case. The concrete embodiment is as follows: test case standard = X + Y + Z.
It should be noted that the historical defect parameters are directly obtained from the database, which represents the production defect situation after the system is put into production, and then the historical defect parameters can be stored in the database again after the system is put into production, so as to facilitate the subsequent testing.
And 150, determining a regression threshold value based on the actual test condition input by the user, and selecting the standard value of the test case based on the regression threshold value to obtain a regression test case set.
Specifically, a regression threshold is obtained according to the actual test condition input by the user, the regression threshold is compared with the standard value of the test case obtained in step 140, and then the regression test case is selected to obtain the regression test case set.
The embodiment combines three parameters which influence the regression test case selection, namely a target service scene parameter X, a first round problem influence parameter Y and a historical defect influence parameter Z, considers three different factors to automatically select the test case, and improves the effectiveness of test case selection.
The method for selecting the regression test cases provided by the embodiment of the invention comprises the steps of constructing the test analysis panoramic image, obtaining the target test case corresponding to the target service scene by using the test analysis panoramic image, obtaining the standard value of the test case according to the target service scene parameters corresponding to the target test case, the first round problem influence parameters and the historical defect influence parameters, determining the regression threshold value based on the actual test condition input by a user, and selecting the standard value of the test case based on the regression threshold value to obtain the regression test case set. The method can automatically obtain the standard values of the test cases according to a plurality of parameters, and select the regression test case set according to the standard values of the test cases, so that the efficiency and effectiveness of selecting the regression test cases from a large number of test cases are greatly improved, and the efficiency and effectiveness of regression testing are improved.
Based on the above embodiment, after performing the first round of system test on the target test case to obtain the test problem situation and determining the first round of problem influence parameters based on the analysis result of the user on the test problem situation, the method further includes:
filing the first round of problem influence parameters confirmed each time to obtain filing influence parameters;
and performing big data statistical analysis on the record influence parameters based on a machine learning algorithm, and storing the big data statistical analysis into the database for acquiring parameters of subsequent tests.
Specifically, the present embodiment provides a process of analyzing and storing the first round problem impact parameters. Firstly, filing first round problem influence parameters obtained by each test to obtain filing influence parameters, then carrying out big data statistical analysis on the filing influence parameters based on a machine learning algorithm, and storing the first round problem influence parameters into a database according to a statistical analysis result so as to obtain parameters of subsequent tests.
According to the method for selecting the regression test cases, the first round problem influence parameter system obtained by each test is recorded, big data statistical analysis is carried out, historical data reference is provided for subsequent testers when parameters are set, and therefore the efficiency and effectiveness of selecting the regression test cases from a large number of test cases are further improved, and the efficiency and effectiveness of regression testing are improved.
Based on the above embodiment, after determining the regression threshold based on the actual test condition input by the user and selecting the standard value of the test case based on the regression threshold to obtain the regression test case set, the method further includes:
confirming that the system to be tested finishes production, and combining the production defects of the system to be tested with the input parameters of the user to obtain target historical defect influence parameters;
and storing the target historical defect influence parameters into the database for subsequent testing.
Specifically, the present embodiment provides a process for analyzing and storing historical defect impact parameters. Firstly, confirming that the system to be tested finishes production, combining the production defects of the system to be tested with input parameters of a user to obtain target historical defect influence parameters, and then storing the target historical defect influence parameters into a database for subsequent testing. When testing is performed later, the historical defect impact parameters can be called directly from the database.
According to the method for selecting the regression test case, the historical defect influence parameters obtained after the system is put into production are recorded and stored in the database, and historical data reference is provided for subsequent testers when the parameters are set, so that the efficiency and effectiveness of selecting the regression test case from a large number of test cases are further improved, and the efficiency and effectiveness of regression testing are improved.
Based on the above embodiments, the establishing an index relationship tree with a hierarchical relationship includes:
establishing a first hierarchical relationship based on each service scene and a plurality of functions corresponding to the service scene;
establishing a second hierarchical relationship based on each function and a plurality of corresponding function points;
establishing a third hierarchical relation based on each function point and a plurality of test points corresponding to the function point;
establishing a fourth hierarchical relation based on each test point and a plurality of test cases corresponding to the test point;
and establishing hierarchical association for the first hierarchical relationship, the second hierarchical relationship, the third hierarchical relationship and the fourth hierarchical relationship to obtain the index relationship tree.
Specifically, the present embodiment provides a specific process for building an index relationship tree.
Referring to fig. 2, fig. 2 is a schematic diagram of a test analysis panorama, which includes a plurality of service scenarios: service scene 1, service scene 2 \8230, 8230and service scene N. Each service scenario corresponds to multiple functions: function 1, function 2 \8230, function 8230and function N. Each function corresponds to a plurality of function points: function point 1, function point 2 \8230, function point 8230and function point N. Each functional point corresponds to a plurality of test points: test point 1, test point 2 \8230, test point N. Each test point corresponds to a plurality of test cases: test case 1, test case 2, \8230, test case N. And establishing a relation chain of a service scene, a function point, a test point and a test case set according to the corresponding relation, wherein the hierarchical relation is reduced in sequence.
According to the method for selecting the regression test cases, the index relation tree is obtained by establishing the hierarchical relation from top to bottom from the service scene to each test case, and the test cases can be conveniently selected by establishing one-to-many test analysis panoramas between the service scene and the test cases according to the index relation tree.
Based on the above embodiment, before the target test case corresponding to the target service scene is obtained based on the test analysis panorama and the target service scene parameters corresponding to the target test case are confirmed, the method further includes:
based on a test input request of a user, performing test analysis on each test case by using the test analysis panoramic image to obtain an analysis identifier of each test case;
and carrying out test design on the analysis identification, and confirming a target service scene based on the importance of the corresponding service scene of each test case.
Specifically, the present embodiment provides a way to determine a target traffic scene from a test analysis panorama. And test analysis and test design are developed according to the test analysis panorama, so that the test range is better ensured to be fully covered.
The target service scene (key service scene) can be identified in the test analysis stage, and after the test case design is finished, the test cases identified as the key service scene can be quickly positioned, and the cases can be used as the alternatives of the regression test case. The importance of the business scenes of the cases is judged, so that the target business scene is confirmed.
According to the method for selecting the regression test cases provided by the embodiment of the invention, the target service scene is confirmed by performing test analysis and test design on each test case, so that the target service scene parameters are obtained to calculate the standard values of the test cases, the test cases are selected finally, and the effectiveness and efficiency of selecting the test cases are improved finally by confirming the target service scene.
Based on the above embodiments, selecting the standard value of the test case based on the regression threshold to obtain a regression test case set, including:
comparing the regression threshold value with the standard value of the test case, and selecting the test case with the standard value of the test case not more than the regression threshold value as a target regression test case;
and obtaining the regression test case set based on all the target regression test cases.
In particular, the present embodiments provide a process for obtaining a set of regression test cases. And comparing the obtained standard values of the test cases with the regression threshold value, selecting the test cases with the standard values of the test cases less than or equal to the regression threshold value as target regression test cases, gathering all the target regression test cases, establishing a final regression test case set, and finishing the selection of the regression test cases.
According to the method for selecting the regression test case provided by the embodiment of the invention, the regression test case set is established by comparing the standard value of the test case with the regression threshold value, the selection of the regression test case is completed, the efficiency and effectiveness of selecting the regression test case from a large number of test cases are improved, and the efficiency and effectiveness of the regression test are improved.
The selection device of the regression testing case provided by the invention is described below, and the selection device of the regression testing case described below and the selection method of the regression testing case described above can be referred to correspondingly.
Referring to fig. 3, the device for selecting a regression test case provided in the embodiment of the present invention includes:
a building module 310, configured to build an index relationship tree with a hierarchical relationship, and build a test analysis panorama based on the index relationship tree;
a first confirming module 320, configured to obtain a target test case corresponding to a target service scene based on the test analysis panorama, and confirm target service scene parameters corresponding to the target test case based on a database and user input data;
a second confirmation module 330, configured to perform a first round of system testing based on the target service scenario parameter to obtain a test problem situation, and confirm a first round of problem influence parameter based on an analysis result of the user on the test problem situation;
a standard value obtaining module 340, configured to perform comprehensive analysis on the target service scene parameters, the first round problem impact parameters, and the historical defect impact parameters to obtain standard values of the test cases, where the historical defect impact parameters are obtained based on the database;
the selecting module 350 is configured to determine a regression threshold based on an actual test condition input by a user, and select a standard value of the test case based on the regression threshold to obtain a regression test case set.
The regression test case selecting device provided by the embodiment of the invention obtains a target test case corresponding to a target service scene by constructing the test analysis panorama and utilizing the test analysis panorama, obtains a test case standard value according to target service scene parameters corresponding to the target test case and first round problem influence parameters in combination with historical defect influence parameters, finally determines a regression threshold value based on an actual test condition input by a user, and selects the test case standard value based on the regression threshold value to obtain a regression test case set. The invention can automatically obtain the standard value of the test case according to a plurality of parameters, and select the regression test case set according to the standard value of the test case, thereby greatly improving the efficiency and effectiveness of selecting the regression test case from a large number of test cases and improving the efficiency and effectiveness of regression test.
Based on the above embodiment, the apparatus further comprises:
the filing module is used for filing the first round of problem influence parameters confirmed each time to obtain filing influence parameters;
and the statistical analysis module is used for carrying out big data statistical analysis on the recording influence parameters based on a machine learning algorithm and storing the big data statistical analysis into the database for obtaining parameters of subsequent tests.
Based on the above embodiment, the apparatus further comprises:
the third confirming module is used for confirming that the system to be tested finishes production and obtaining target historical defect influence parameters by combining the production defects of the system to be tested with input parameters of a user;
and the storage module is used for storing the target historical defect influence parameters into the database for subsequent testing.
Based on the above embodiments, the construction module is specifically configured to:
establishing a first hierarchical relationship based on each service scene and a plurality of functions corresponding to the service scene;
establishing a second hierarchical relationship based on each function and a plurality of corresponding function points;
establishing a third hierarchical relation based on each function point and a plurality of test points corresponding to the function point;
establishing a fourth hierarchical relation based on each test point and a plurality of test cases corresponding to the test point;
and establishing hierarchical association for the first hierarchical relationship, the second hierarchical relationship, the third hierarchical relationship and the fourth hierarchical relationship to obtain the index relationship tree.
Based on the above embodiment, the apparatus further comprises:
the test analysis module is used for carrying out test analysis on each test case by using the test analysis panoramic image based on a test input request of a user to obtain an analysis identifier of each test case;
and the test design module is used for carrying out test design on the analysis identification and confirming a target service scene based on the importance of the corresponding service scene of each test case.
Based on the above embodiment, the selection module is specifically configured to:
comparing the regression threshold value with the standard value of the test case, and selecting the test case with the standard value of the test case not more than the regression threshold value as a target regression test case;
and obtaining the regression test case set based on all the target regression test cases.
Fig. 4 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 4: a processor (processor) 410, a communication Interface 420, a memory (memory) 430 and a communication bus 440, wherein the processor 410, the communication Interface 420 and the memory 430 are communicated with each other via the communication bus 440. The processor 410 may call logic instructions in the memory 430 to perform a method of regression test case selection, the method comprising:
establishing an index relation tree with a hierarchical relation, and constructing a test analysis panorama based on the index relation tree;
acquiring a target test case corresponding to a target service scene based on the test analysis panoramic image, and confirming target service scene parameters corresponding to the target test case based on a database and user input data;
performing a first round of system test on the target test case to obtain a test problem condition, and confirming a first round of problem influence parameter based on an analysis result of a user on the test problem condition;
comprehensively analyzing the target service scene parameters, the first round problem influence parameters and the historical defect influence parameters to obtain standard values of the test cases, wherein the historical defect influence parameters are obtained based on the database;
and determining a regression threshold value based on the actual test condition input by the user, and selecting the standard value of the test case based on the regression threshold value to obtain a regression test case set.
In addition, the logic instructions in the memory 430 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, and various media capable of storing program codes.
In another aspect, the present invention further provides a computer program product, the computer program product including a computer program, the computer program being stored on a non-transitory computer readable storage medium, wherein when the computer program is executed by a processor, the computer is capable of executing the method for selecting a regression test case provided by the above methods, the method including:
establishing an index relation tree with a hierarchical relation, and constructing a test analysis panorama based on the index relation tree;
acquiring a target test case corresponding to a target service scene based on the test analysis panorama, and confirming target service scene parameters corresponding to the target test case based on a database and user input data;
performing a first round of system test on the target test case to obtain a test problem condition, and confirming a first round of problem influence parameter based on an analysis result of a user on the test problem condition;
comprehensively analyzing the target service scene parameters, the first round problem influence parameters and the historical defect influence parameters to obtain standard values of the test cases, wherein the historical defect influence parameters are obtained based on the database;
and determining a regression threshold value based on the actual test condition input by the user, and selecting the standard value of the test case based on the regression threshold value to obtain a regression test case set.
In another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is implemented by a processor to execute the method for selecting regression test cases provided by the above methods, where the method includes:
establishing an index relation tree with a hierarchical relation, and constructing a test analysis panorama based on the index relation tree;
acquiring a target test case corresponding to a target service scene based on the test analysis panoramic image, and confirming target service scene parameters corresponding to the target test case based on a database and user input data;
performing a first round of system test on the target test case to obtain a test problem condition, and confirming a first round of problem influence parameter based on an analysis result of a user on the test problem condition;
comprehensively analyzing the target service scene parameters, the first round problem influence parameters and the historical defect influence parameters to obtain standard values of the test cases, wherein the historical defect influence parameters are obtained based on the database;
and determining a regression threshold value based on the actual test condition input by the user, and selecting the standard value of the test case based on the regression threshold value to obtain a regression test case set.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment may be implemented by software plus a necessary general hardware platform, and may also be implemented by hardware. Based on the understanding, the above technical solutions substantially or otherwise contributing to the prior art may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the various embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for selecting regression test cases is characterized by comprising the following steps:
establishing an index relation tree with a hierarchical relation, and constructing a test analysis panorama based on the index relation tree;
acquiring a target test case corresponding to a target service scene based on the test analysis panorama, and confirming target service scene parameters corresponding to the target test case based on a database and user input data;
performing a first round of system test on the target test case to obtain a test problem condition, and confirming a first round of problem influence parameter based on an analysis result of a user on the test problem condition;
comprehensively analyzing the target service scene parameters, the first round problem influence parameters and the historical defect influence parameters to obtain standard values of the test cases, wherein the historical defect influence parameters are obtained based on the database;
and determining a regression threshold value based on the actual test condition input by the user, and selecting the standard value of the test case based on the regression threshold value to obtain a regression test case set.
2. The method for selecting regression test cases according to claim 1, wherein after performing a first round of system test on the target test case to obtain a test problem situation and confirming first round of problem influence parameters based on an analysis result of a user on the test problem situation, the method further comprises:
recording and filing the first round problem influence parameters confirmed each time to obtain recording influence parameters;
and performing big data statistical analysis on the record influence parameters based on a machine learning algorithm, and storing the big data statistical analysis into the database for obtaining parameters of subsequent tests.
3. The method for selecting regression test cases according to claim 1, wherein the method further comprises the steps of determining a regression threshold based on the actual test cases inputted by the user, and selecting the standard values of the test cases based on the regression threshold to obtain a regression test case set, and after the regression test case set is obtained:
confirming that the system to be tested is put into production, and combining the put-into-production defects of the system to be tested with the input parameters of the user to obtain target historical defect influence parameters;
and storing the target historical defect influence parameters into the database for subsequent testing.
4. The method of claim 1, wherein the building of the index relationship tree with hierarchical relationships comprises:
establishing a first hierarchical relationship based on each service scene and a plurality of functions corresponding to the service scene;
establishing a second hierarchical relationship based on each function and a plurality of corresponding function points;
establishing a third hierarchical relation based on each function point and a plurality of test points corresponding to the function point;
establishing a fourth hierarchical relation based on each test point and a plurality of test cases corresponding to the test point;
and establishing hierarchical association for the first hierarchical relationship, the second hierarchical relationship, the third hierarchical relationship and the fourth hierarchical relationship to obtain the index relationship tree.
5. The method for selecting regression test cases according to claim 3, wherein before obtaining a target test case corresponding to a target service scene based on the test analysis panorama and confirming target service scene parameters corresponding to the target test case, the method further comprises:
based on a test input request of a user, performing test analysis on each test case by using the test analysis panoramic image to obtain an analysis identifier of each test case;
and carrying out test design on the analysis identification, and confirming a target service scene based on the importance of the corresponding service scene of each test case.
6. The method of claim 1, wherein selecting the standard test case values based on the regression threshold to obtain a regression test case set comprises:
comparing the regression threshold with the standard value of the test case, and selecting the standard value of the test case which is not more than the regression threshold as a target regression test case;
and obtaining the regression test case set based on all the target regression test cases.
7. An apparatus for selecting regression test cases, comprising:
the construction module is used for establishing an index relationship tree with a hierarchical relationship and constructing a test analysis panorama based on the index relationship tree;
the first confirmation module is used for acquiring a target test case corresponding to a target service scene based on the test analysis panoramic image and confirming target service scene parameters corresponding to the target test case based on a database and user input data;
the second confirmation module is used for carrying out a first round of system test based on the target service scene parameters to obtain a test problem condition and confirming first round of problem influence parameters based on the analysis result of the user on the test problem condition;
a standard value obtaining module, configured to perform comprehensive analysis on the target service scene parameters, the first round problem impact parameters, and the historical defect impact parameters to obtain standard values of the test cases, where the historical defect impact parameters are obtained based on the database;
and the selection module is used for determining a regression threshold value based on the actual test condition input by the user and selecting the standard value of the test case based on the regression threshold value to obtain a regression test case set.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program implements the method of selecting regression test cases according to any one of claims 1 to 6.
9. A non-transitory computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the method for selecting regression test cases according to any one of claims 1 to 6.
10. A computer program product comprising a computer program, wherein the computer program when executed by a processor implements the method for selecting regression test cases according to any one of claims 1 to 6.
CN202210892964.6A 2022-07-27 2022-07-27 Regression test case selection method and device and electronic equipment Pending CN115437918A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210892964.6A CN115437918A (en) 2022-07-27 2022-07-27 Regression test case selection method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210892964.6A CN115437918A (en) 2022-07-27 2022-07-27 Regression test case selection method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN115437918A true CN115437918A (en) 2022-12-06

Family

ID=84242936

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210892964.6A Pending CN115437918A (en) 2022-07-27 2022-07-27 Regression test case selection method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN115437918A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117724973A (en) * 2023-12-18 2024-03-19 易方达基金管理有限公司 Evaluation system regression testing method and device based on business scene

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117724973A (en) * 2023-12-18 2024-03-19 易方达基金管理有限公司 Evaluation system regression testing method and device based on business scene
CN117724973B (en) * 2023-12-18 2024-08-09 易方达基金管理有限公司 Evaluation system regression testing method and device based on business scene

Similar Documents

Publication Publication Date Title
CN106294120B (en) Method, apparatus and computer program product for testing code
CN104461693B (en) Virtual machine update method and system under a kind of desktop cloud computing environment
CN110457175B (en) Service data processing method and device, electronic equipment and medium
CN111815169B (en) Service approval parameter configuration method and device
CN109063433B (en) False user identification method and device and readable storage medium
CN114648302B (en) Data processing method and device for collaborative scenario editing
CN110287104A (en) Method for generating test case, device, terminal and computer readable storage medium
CN109743286A (en) A kind of IP type mark method and apparatus based on figure convolutional neural networks
CN115437918A (en) Regression test case selection method and device and electronic equipment
CN111538712A (en) Log recording method, processing node, electronic device and storage medium
CN114546804A (en) Information push effect evaluation method and device, electronic equipment and storage medium
CN106855843B (en) Performance analysis method and device of Web system
CN114037565A (en) Method, device, equipment and medium for processing court case based on RPA and AI
CN110087230B (en) Data processing method, data processing device, storage medium and electronic equipment
CN113628077A (en) Method for generating non-repeated examination questions, terminal and readable storage medium
CN111346372A (en) Game login loading method and device based on data backup and server
CN108509560B (en) User similarity obtaining method and device, equipment and storage medium
CN112306850A (en) Test case generation method and device and storage medium
CN111290966B (en) Test case decomposition and combination method and system for improving android application test coverage rate
CN111176763B (en) Method and device for calling help function of command
CN118245364A (en) Automated model test method, device, equipment and storage medium
CN114565360A (en) Method and device for auditing labeled data, electronic equipment and readable storage medium
CN115269407A (en) Method and device for testing system batch frameworks
CN116643965A (en) Test case generation method and device, electronic equipment and storage medium
CN111562982A (en) Request data processing method and device, computer readable storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination