Test case priority sorting method, device, storage medium and electronic device
By establishing a hierarchical indicator system and group decision-making analysis method, the limitations of the test case prioritization method in the existing technology are solved, the testing efficiency and quality are improved, and reasonable weight assignment and priority sorting of multiple indicators are realized, reducing the software operation cycle and cost.
Patent Information
- Application Number
- CN202410107853.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-25
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-01-25
AI Technical Summary
Existing test case prioritization methods are limited to a few influencing factors, lack comprehensive factor analysis, are subjective and arbitrary, overly dependent on sample data, have poor versatility and participation, and have complex calculation methods that cannot reflect the evaluators’ emphasis on different attribute indicators. degree, and the horizontal comparison of indicator importance is inconsistent.
Adopt a hierarchical use case priority factor structure, quantitatively assign indicator weights through preset methods, establish a hierarchical indicator system, integrate the hierarchical analysis method of group decision-making and inconsistency detection, determine the priority score of each indicator, and Prioritize based on execution results and requirement importance values.
It improves the error detection rate and regression testing efficiency of the test case set, reduces resource constraints, simplifies use case priority calculation, achieves a balance between cost and benefit, and provides quality assurance for software iterations and changes.
Smart Images

Figure CN118227462B
Abstract
Description
Technical Field
[0001] The present application relates to the field of software testing technology, and in particular to a test case priority sorting method, device, storage medium and electronic device. Background Art
[0002] The purpose of the background technology description provided here is to give an overall background of the present application. The statements in this section merely provide background related to the present application and do not necessarily constitute prior art.
[0003] At present, with the rapid evolution of information systems, the scale and complexity of software have led to dynamic changes in requirements and defects, which in turn requires a large number of complex test cases to test the software. The complexity and scale of the use case set have led to spatiotemporal redundancy in testing in terms of requirement coverage and defect location. It is often not feasible to fully run the use cases in the use case set in terms of time and resource costs.
[0004] In order to reduce the test case execution cost and improve the efficiency of test case use, the test case execution strategy is optimized through test case prioritization technology. Test case prioritization is a test case optimization method and technology that sorts test cases based on specific criteria, so that high-priority cases are executed first, high-risk errors are located as early as possible, or major test requirements and functional modules are covered at a faster rate, thereby improving the error detection rate and regression test efficiency of the test case set, which can improve the efficiency and quality of test defect detection and achieve a balance between cost and benefit.
[0005] Therefore, in order to support the benefits of software iteration and change and reduce the software operation cycle and cost, test case priority sorting, as the main theoretical method and technical means of current testing, is conducive to discovering defects as early as possible, adjusting the execution strategy of subsequent test cases, reducing resource constraints, and fully ensuring software quality. It has received widespread attention from relevant industries and academia.
[0006] However, the test case prioritization method under existing conditions is limited to a few influencing factors, which directly affect the comprehensive analysis and evaluation of test case priorities, and has the following deficiencies and defects:
[0007] (1) Existing test case prioritization methods mostly perform priority analysis on a single goal or a few influencing factors; (2) Existing test case prioritization methods lack analysis and evaluation of comprehensive factors of test case priority; (3) Subjective priority ranking analysis: The analysis results are highly subjective and arbitrary, with poor objectivity, and at the same time increase the burden on decision analysts; (4) Objective priority ranking analysis: Over-reliance on sample data, poor versatility and participation, and relatively complex calculation methods, which often cannot reflect the degree of importance that judges attach to different attribute indicators; (5) Subjective weighting method for indicators or requirements: Expert weights are difficult to measure; (6) Subjective weighting method for indicators or requirements: In the case of multiple indicators, there is inconsistency in the horizontal comparison of the importance of indicators or requirements. Summary of the invention
[0008] In view of the above problems, the present application proposes a test case priority sorting method, device, storage medium and electronic device. With the optimization of test case sequence as the goal, with influencing factors as the criterion, a hierarchical structure of test case priority factor structure (i.e., the factor is a tree structure) is established, the leaf node is the input layer of the evaluation score, and each tree node has the weight of the corresponding influencing factor, based on which a hierarchical model of test case priority influencing factors is established. The error detection rate and regression test efficiency of the test case set can be improved, the test defect detection efficiency and quality can be improved, and the balance between cost and benefit is achieved, in order to support the benefits of software iteration and change, reduce the operating cycle and cost of the software, reduce resource constraints, fully ensure software quality, and provide support and guarantee.
[0009] In a first aspect of the present application, a test case prioritization method is provided, the method comprising:
[0010] Create a hierarchical metric system to prioritize test cases by quantifying their priority;
[0011] The weight of each indicator in the hierarchical indicator system is quantitatively assigned by a preset method, and the priority score of each indicator is determined by a priority scoring model corresponding to each indicator in the hierarchical indicator system; wherein the preset method includes a hierarchical analysis method integrating group decision making and inconsistency detection;
[0012] Determining the priority score of the test case according to the priority score and weight value of each indicator in the hierarchical indicator system;
[0013] Prioritize all test cases according to the priority score of each test case.
[0014] Furthermore, the priority score of each indicator is determined by the priority score model corresponding to each indicator in the hierarchical indicator system, including:
[0015] Filtering the indicators at all leaf nodes from the hierarchical indicator system to obtain a leaf node indicator set;
[0016] Execute test cases and obtain the execution results of test cases;
[0017] In the case where the leaf node indicator set includes a subjective indicator, for the subjective indicator in the indicator set, a sub-requirement of the subjective indicator is determined according to a preset actual requirement, and a judgment matrix for determining the importance value of each sub-requirement is generated according to all sub-requirements; wherein the order of the judgment matrix is equal to the number of sub-requirements;
[0018] According to the judgment matrix, determining the importance value of each sub-requirement by the preset method;
[0019] According to the execution result and the importance value of each sub-requirement, the priority score of the subjective indicator is determined by a priority score model corresponding to the subjective indicator.
[0020] Furthermore, the priority score of each indicator is determined by the priority score model corresponding to each indicator in the hierarchical indicator system, including:
[0021] Extracting the indicators at all leaf nodes from the hierarchical indicator system to obtain a leaf node indicator set;
[0022] Execute test cases and obtain the execution results of test cases;
[0023] In the case where the leaf node indicator set includes objective indicators, the priority score of each objective indicator is determined according to the execution result through the priority score model corresponding to each objective indicator in the hierarchical indicator system.
[0024] Furthermore, the hierarchical indicator system includes one or more of the following indicators:
[0025] Covering the importance of requirements, covering changes in requirements, requirements coverage efficiency and defect exposure capabilities; among them,
[0026] The coverage requirement importance index is a subjective index; the coverage requirement importance includes sub-subjective indexes: user requirements and / or system requirements; the system requirements include sub-subjective indexes: one or more of functional requirements, performance requirements, compatibility requirements, reliability requirements and security requirements;
[0027] The change in the coverage requirements, the requirement coverage efficiency and the defect exposure capability are all objective indicators; the defect exposure capability includes sub-objective indicators: one or more of the severity of detected defects, defect type detection rate and defect detection efficiency.
[0028] Furthermore, the weight of each indicator in the hierarchical indicator system is quantitatively assigned by a preset method, including:
[0029] For any indicator with sub-indicators in the hierarchical indicator system, a judgment matrix for determining the weights of each sub-indicator is generated according to the sub-indicators of the indicator; wherein the order of the judgment matrix is equal to the number of sub-indicators, and the value of each element in the judgment matrix represents the ratio of the importance of the sub-indicator corresponding to the corresponding row index and the column index;
[0030] issuing a scoring reminder so that a plurality of experts can provide feedback on the judgment matrix by filling in values for the judgment matrix respectively; wherein the value of each element in the judgment matrix is determined by a preset scaling method;
[0031] For any judgment matrix that has passed the consistency test and is fed back by an expert, the initial weight value of each sub-indicator is determined according to the value of the element in the judgment matrix, wherein the initial weight value is the weight value determined for the sub-indicator by the expert who fed back the judgment matrix;
[0032] According to the judgment matrix that has passed the consistency test and is fed back by all experts, the expert weight value of each expert is determined;
[0033] For any sub-indicator, the final weight value of the sub-indicator is determined according to the expert weight value of each expert and the initial weight value of the sub-indicator determined by each expert, and the final weight value is used as the weight value of the sub-indicator.
[0034] Furthermore, after determining the value of each element in the judgment matrix, it also includes:
[0035] Determine the maximum eigenvalue of the judgment matrix based on the values of each element in the judgment matrix determined by the experts;
[0036] Determining a consistency index according to the maximum eigenvalue and the order of the judgment matrix, and determining a consistency ratio of the judgment matrix according to the consistency index;
[0037] When the consistency ratio does not satisfy a preset consistency condition, a correction reminder message is issued, so that the expert corrects the value of the element in the judgment matrix according to the correction reminder message;
[0038] When the consistency ratio meets the preset consistency condition, it is determined that the judgment matrix fed back by the expert passes the consistency test.
[0039] Furthermore, after the values of the elements in the judgment matrix are corrected, the method further includes:
[0040] According to the values of each element re-determined by the expert, the consistency ratio of the judgment matrix fed back by the expert is determined again;
[0041] When the consistency ratio meets the preset consistency condition, it is determined that the judgment matrix fed back by the expert passes the consistency test.
[0042] Furthermore, the correction reminder message includes a set of judgment logic inconsistency factors, and the step of determining the judgment logic inconsistency factors includes:
[0043] When the consistency ratio of the judgment matrix does not meet the preset consistency condition, the upper triangular area of the judgment matrix is used as the target detection area;
[0044] Polling the elements of the target detection area, determining that the judgment logic is inconsistent when a first preset condition is met, and determining a judgment logic inconsistency factor;
[0045] The determined judgment logic inconsistency factor is saved in the judgment logic inconsistency factor set.
[0046] Furthermore, the first preset condition includes any one of the following:
[0047] a ij ×a jk ≤1, a ik >1;a ij ×a jk <1, a ik ≥1; a ij ×a jk ≥1, a ik <1;a ij ×a jk >1,a ik ≤1;
[0048] Among them, when the first preset condition is met, a ij 、a jk and a ik is the logical inconsistency factor at the ik position, a ij 、a jk and a ik Forming a judgment logic inconsistency loop; a ij is the element located in the i-th row and j-th column of the judgment matrix, which represents the ratio of the importance of the i-th indicator to the j-th indicator; a ik is the element located in the i-th row and k-th column of the judgment matrix, which represents the ratio of the importance of the i-th indicator to the k-th indicator; a jk It is the element located in the j-th row and k-th column in the judgment matrix, which represents the ratio of the importance of the j-th indicator to the k-th indicator.
[0049] Furthermore, in the case of inconsistency in judgment logic, the judgment logic inconsistency distance is determined by the following formula:
[0050]
[0051] Among them, s h is the hth scale value in the preset scale value table; ik is the logical inconsistency distance at the ik position, which is used as the criterion for judging the degree of logical inconsistency; a ij is the element located in the i-th row and j-th column of the judgment matrix, which represents the ratio of the importance of the i-th indicator to the j-th indicator; a ik is the element located in the i-th row and k-th column of the judgment matrix, which represents the ratio of the importance of the i-th indicator to the k-th indicator; a jk It is the element located in the j-th row and k-th column in the judgment matrix, which represents the ratio of the importance of the j-th indicator to the k-th indicator.
[0052] Furthermore, the correction reminder message includes a set of judgment value inconsistency factors, and the step of determining the judgment value inconsistency factors includes:
[0053] When the consistency ratio of the judgment matrix does not meet the preset consistency condition, the upper triangular area of the judgment matrix is used as the target detection area;
[0054] Polling the elements of the target detection area, determining that the judgment values are inconsistent when a second preset condition is met, and determining an inconsistent judgment value factor;
[0055] The determined judgment value inconsistency factor is stored in the judgment value inconsistency factor set.
[0056] Furthermore, the second preset condition includes any one of the following:
[0057] a ij ×a jk ≤1, a ik <1, and sn ik ≠1 / a ik ; a ij ×a jk <1, a ik ≤1, and sn ik ≠1 / a ik ; a ij ×a jk ≥1,
[0058] a ik >1, and sn ik ≠a ik ; a ij ×ajk >1,a ik ≥1, and sn ik ≠a ik ;
[0059] Wherein, when the second preset condition is met, a ij 、a jk and a ik is the inconsistent factor of the judgment value at the ik position, a ij 、a jk and a ik Forming a judgment value inconsistency loop; a ij is the element located in the i-th row and j-th column of the judgment matrix, which represents the ratio of the importance of the i-th indicator to the j-th indicator; a ik is the element located in the i-th row and k-th column of the judgment matrix, which represents the ratio of the importance of the i-th indicator to the k-th indicator; a jk is the element located in the jth row and kth column of the judgment matrix, indicating the ratio of the importance of the jth indicator to the kth indicator; sn ik for a ik The most recent scaled value of ik It is expressed by the following formula:
[0060]
[0061] Among them, s h is the hth scale value in the preset scale value table.
[0062] Furthermore, in the case where there is inconsistency in the judgment value, the judgment value inconsistency distance is determined by the following formula:
[0063]
[0064] Among them, s h vd is the hth scale value in the preset scale value table; ik is the inconsistency distance of the judgment value at the ik position, which is used as the criterion for the degree of inconsistency of the judgment value; a ij is the element located in the i-th row and j-th column of the judgment matrix, which represents the ratio of the importance of the i-th indicator to the j-th indicator; a ik is the element located in the i-th row and k-th column of the judgment matrix, which represents the ratio of the importance of the i-th indicator to the k-th indicator; a jk It is the element located in the j-th row and k-th column in the judgment matrix, which represents the ratio of the importance of the j-th indicator to the k-th indicator.
[0065] Furthermore, the step of determining the expert weight value includes:
[0066] Determine the median matrix based on the judgment matrices that have passed the consistency test and are fed back by all experts;
[0067] Determine the degree of outlier of the experts corresponding to each judgment matrix according to the median matrix;
[0068] The expert weight value of each expert is determined according to the degree of outlier of each expert.
[0069] A second aspect of the present application provides a test case priority sorting device, the device comprising:
[0070] A hierarchical indicator system creation module, used to create a hierarchical indicator system to evaluate the priority of test cases by quantifying the priority of test cases;
[0071] An assignment module, used to quantify and assign the weight of each indicator in the hierarchical indicator system by a preset method, and determine the priority score of each indicator by a priority scoring model corresponding to each indicator in the hierarchical indicator system; wherein the preset method includes a hierarchical analysis method integrating group decision making and inconsistency detection;
[0072] A priority score determination module, used to determine the priority score of the test case according to the priority score and weight value of each indicator in the hierarchical indicator system;
[0073] The sorting module is used to prioritize all test cases according to the priority score of each test case.
[0074] According to a third aspect of the present application, a computer-readable storage medium is provided, wherein a computer program stored in the computer-readable storage medium can be executed by one or more processors to implement the steps of the method described above.
[0075] The fourth aspect of the present application provides an electronic device, including a memory and one or more processors, wherein the memory stores a computer program, the memory and the one or more processors are communicatively connected to each other, and when the computer program is executed by the one or more processors, the steps of the method described above are implemented.
[0076] Compared with the prior art, the advantages or beneficial effects of the technical solution of the present application include:
[0077] This application constructs a method for scoring related indicators and priorities, applies an improved AHP method to weight each indicator of the indicator system and assign values to the importance of requirements, innovatively constructs a method for detecting the inconsistency range of the judgment matrix, detects inconsistencies in judgment logic and judgment values in the matrix, and arranges the degree of inconsistency in descending order, and gives feedback to experts to guide experts to rectify the relevant scale values of the matrix. At the same time, an innovative group strategy for automatic expert weight determination is established to reconcile the determination of indicator weights or demand importance and improve the rationality and scientificity of weights. At the same time, the expert evaluation method of the improved AHP method is reused in the importance assignment of requirements to form a demand importance value, which does not rely on the use case execution data and can remain stable during testing, simplifying the complexity of the use case priority calculation. It can reduce the cost of test case execution, improve the efficiency of use case use, enable high-priority use cases to be executed first, locate high-risk errors as early as possible, or cover the main test requirements and functional modules at a faster rate, thereby improving the error detection rate and regression test efficiency of the test case set. It can improve the efficiency and quality of test defect detection, achieve a balance between cost and benefit, and provide support and guarantee for supporting the benefits of software iteration / change, reducing software operation cycle and cost, and improving software quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0078] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are merely embodiments of the present application. For ordinary technicians in the relevant field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0079] It should also be noted that, for the convenience of description, only the parts related to the present disclosure are shown in the drawings. In the drawings:
[0080] Figure 1 A flowchart of a test case priority sorting method provided in an embodiment of the present application;
[0081] Figure 2 A schematic diagram of a hierarchical indicator system provided in an embodiment of the present application;
[0082] Figure 3 A flowchart of another test case priority sorting method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0083] The following will describe the implementation methods of the present application in detail with reference to the accompanying drawings and embodiments, so that the implementation process of how the present application applies technical means to solve technical problems and achieve corresponding technical effects can be fully understood and implemented accordingly. The embodiments of the present application and the various features in the embodiments can be combined with each other without conflict, and the technical solutions formed are all within the protection scope of the present application.
[0084] It should be clear that the embodiments described below are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by technicians in the relevant field without making creative work are within the scope of protection of the present application.
[0085] In this application, three types of personnel are involved in the process of test case priority evaluation: First, experts are responsible for assigning weights to the importance of requirements and each indicator of the indicator system; second, evaluators approve and import the quantitative value of the importance of requirements based on the use case execution results, or apply the use case execution data, import the indicator scoring formula, and form the indicator score; third, testers are responsible for executing use cases and collecting use case execution status and data.
[0086] Embodiment 1
[0087] This embodiment provides a test case priority sorting method, such as Figure 1 As shown, the following steps are included:
[0088] Step 110: Create a hierarchical indicator system to evaluate the priorities of test cases by quantifying the priorities of test cases.
[0089] In some embodiments, the hierarchical indicator system includes one or more of the following indicators:
[0090] The importance of coverage requirements, coverage requirements changes, requirements coverage efficiency and defect exposure capability; among them,
[0091] The coverage requirement importance index is a subjective index; the coverage requirement importance includes sub-subjective indexes: user requirements and / or system requirements; the system requirements include sub-subjective indexes: one or more of functional requirements, performance requirements, compatibility requirements, reliability requirements and security requirements;
[0092] The change in the coverage requirements, the requirement coverage efficiency and the defect exposure capability are all objective indicators; the defect exposure capability includes sub-objective indicators: one or more of the severity of detected defects, defect type detection rate and defect detection efficiency.
[0093] This application quantifies the priority of test cases (hereinafter referred to as test cases) and constructs a hierarchical indicator system for test case priority, such as Figure 2 shown.
[0094] In some embodiments, the hierarchical metric system is used for prioritizing white-box test cases and / or prioritizing black-box test cases.
[0095] This hierarchical indicator system can be applied to white-box testing and black-box testing. For indicators that are not applicable to test cases, the priority score of the use case based on the inapplicable indicators can be set to zero.
[0096] It should be noted that the hierarchical indicator system can be set according to actual needs, specific indicators can be set according to actual needs, whether each indicator has sub-indicators (also called subordinate indicators), and which sub-indicators each indicator has can all be set according to actual needs.
[0097] Step 120: quantitatively assign the weight of each indicator in the hierarchical indicator system by a preset method, and determine the priority score of each indicator by a priority scoring model corresponding to each indicator in the hierarchical indicator system; wherein the preset method includes a hierarchical analysis method that integrates group decision making and inconsistency detection.
[0098] Since it involves multi-attribute decision making, in this embodiment, the Analytic Hierarchy Process (AHP) is introduced to assign values to the importance of demand and the weights of each indicator in the indicator system.
[0099] Specifically, in terms of group decision-making and the detection of inconsistent factors in the judgment matrix, the AHP has been improved. An automatic group decision-making mechanism has been formed based on expert judgment data to accelerate decision-making efficiency. An innovative judgment matrix inconsistent loop detection mechanism has been developed to improve the detection capability of inconsistent elements. The judgment matrix element adjustment range is recommended to experts. Expert intelligence is used in combination with the inconsistency range positioning to optimize the judgment matrix inconsistency adjustment, thereby improving the efficiency and effectiveness of weight generation. In addition, for subjective indicators, an indicator scoring formula is established. Combined with the coverage of the use case requirements, AHP is applied to assign the importance of the requirements, and the scoring results of the corresponding indicators of the use case are quantified. For objective indicators, an indicator scoring formula is established. Combined with the execution of the use case, the corresponding indicator data is collected, and the scoring results of the corresponding indicators of the use case are quantified.
[0100] In some embodiments, the quantifying and assigning the weight of each indicator in the hierarchical indicator system by a preset method includes:
[0101] For any indicator with sub-indicators in the hierarchical indicator system, a judgment matrix for determining the weights of each sub-indicator is generated according to the sub-indicators of the indicator; wherein the order of the judgment matrix is equal to the number of sub-indicators, and the value of each element in the judgment matrix represents the ratio of the importance of the sub-indicator corresponding to the corresponding row index and the column index;
[0102] issuing a scoring reminder so that a plurality of experts can provide feedback on the judgment matrix by filling in values for the judgment matrix respectively; wherein the value of each element in the judgment matrix is determined by a preset scaling method;
[0103] For any judgment matrix that has passed the consistency test and is fed back by an expert, the initial weight value of each sub-indicator is determined according to the value of the element in the judgment matrix, wherein the initial weight value is the weight value determined for the sub-indicator by the expert who fed back the judgment matrix;
[0104] According to the judgment matrix that has passed the consistency test and is fed back by all experts, the expert weight value of each expert is determined;
[0105] For any sub-indicator, the final weight value of the sub-indicator is determined according to the expert weight value of each expert and the initial weight value of the sub-indicator determined by each expert, and the final weight value is used as the weight value of the sub-indicator.
[0106] It should be noted that when determining the initial weight value of each sub-indicator, the judgment matrix fed back by the expert needs to pass the consistency test; if the judgment matrix fed back by the expert cannot pass the consistency test, the expert is reminded that the value of the elements in the judgment matrix needs to be corrected until the judgment matrix can pass the consistency test; after the judgment matrix passes the consistency test, the initial weight value of each sub-indicator is determined.
[0107] In this application, improvements are given to the hierarchical analysis method in terms of expert group decision-making and judgment matrix inconsistency detection, and the hierarchical analysis method of group decision-making and inconsistency detection is integrated.
[0108] The weight of the indicators can be determined by constructing a judgment matrix, and each expert in the expert group provides feedback on one judgment matrix.
[0109] For example, the judgment matrix A generated by n indicators is an n-by-n matrix, and its construction method includes: by comparing the n indicators in pairs to determine the relative importance of the target indicators in pairs, so as to quantify the element values of the judgment matrix A. Among them, the element values in the judgment matrix A can be determined by a preset scaling method. For example, the preset scaling method can select the 1-9 scaling method (quoting the numbers 1-9 and their reciprocals as scaling values). The judgment matrix constructed using the preset scaling method meets the requirements of a positive reciprocal matrix (the element values of the positions symmetrical about the main diagonal of the matrix are reciprocals of each other). If scalability is considered, the scale value range can also be appropriately expanded according to actual needs. The following Table 1 is an exemplary judgment matrix element 1-9 scaling value table, and the meaning of the scale values of 1-9 and their reciprocals are listed in the table.
[0110] Table 1 Judgment matrix element 1-9 scale value table
[0111]
[0112] For example, when the importance of x is between "x and y are equally important" and "x is slightly more important than y", its value can be set to 2; when the importance of x is between "x is very important than y" and "x is extremely important than y", its value can be set to 8; and so on.
[0113] Two types of judgment matrices are involved in this application, including: indicator judgment matrix and requirement importance judgment matrix. Among them, the indicator judgment matrix includes: 4th-order use case priority quantification judgment matrix, 2nd-order coverage requirement judgment matrix, 3rd-order defect exposure capability judgment matrix and 5th-order system requirement judgment matrix; the requirement importance judgment matrix includes: user requirement importance judgment matrix, functional requirement importance judgment matrix, performance requirement importance judgment matrix, compatibility requirement importance judgment matrix, reliability requirement importance judgment matrix and security requirement importance judgment matrix. Among them, the order of each judgment matrix is equivalent to the number of indicators / requirements under each indicator / requirement (that is, the number of sub-indicators of each indicator or the number of sub-requirements of each requirement).
[0114] In some embodiments, after determining the value of each element in the judgment matrix, the method further includes:
[0115] Determine the maximum eigenvalue of the judgment matrix based on the values of each element in the judgment matrix determined by the experts;
[0116] Determining a consistency index according to the maximum eigenvalue and the order of the judgment matrix, and determining a consistency ratio of the judgment matrix according to the consistency index;
[0117] When the consistency ratio does not satisfy a preset consistency condition, a correction reminder message is issued, so that the expert corrects the value of the element in the judgment matrix according to the correction reminder message;
[0118] When the consistency ratio meets the preset consistency condition, it is determined that the judgment matrix fed back by the expert passes the consistency test.
[0119] Among them, the preset consistency condition can be set to a consistency ratio less than 0.1.
[0120] In some embodiments, after the values of the elements in the judgment matrix are corrected, the method further includes:
[0121] According to the values of each element re-determined by the expert, the consistency ratio of the judgment matrix fed back by the expert is determined again;
[0122] When the consistency ratio meets the preset consistency condition, it is determined that the judgment matrix fed back by the expert passes the consistency test.
[0123] It should be noted that after the judgment matrix is corrected, if the consistency ratio still does not meet the preset consistency condition, a correction reminder message will be issued again, so that the expert can correct the value of the element in the judgment matrix again according to the correction reminder message; until it can pass the consistency test.
[0124] When calculating the weight, first normalize the judgment matrix by column (dividing each element by the sum of its column), then add the normalized columns (summing by row), and finally divide each element in the vector obtained by addition by n to obtain the weight vector:
[0125]
[0126] Among them, w i is the weight of the ith indicator or requirement.
[0127] Since the judgment matrix is a positive reciprocal matrix, the maximum eigenvalue of the judgment matrix can be calculated by the following formula:
[0128]
[0129] Among them, λ max is the maximum eigenvalue of the judgment matrix.
[0130] Furthermore, in order to verify the logical rationality, it is necessary to perform consistency check on the judgment matrix. The specific test steps include:
[0131] Step 1201, calculate the consistency index CI:
[0132]
[0133] Among them, λ max is the maximum eigenvalue of the judgment matrix A; n is the matrix order.
[0134] Step 1202: Calculate the consistency ratio CR:
[0135]
[0136] Among them, RI is the average random consistency index, which can be obtained by querying the following Table 2.
[0137] Table 2 Correspondence between matrix order and average random consistency index
[0138]
[0139]
[0140] It should be noted that when the order of the judgment matrix is greater than 15, the following method can be used to calculate RI. Assuming that the order of the judgment matrix is n, the steps of calculating RI may include: the first step, for each element in the n-order judgment matrix, randomly select from 1, 2, ..., 9 and 1 / 2, ..., 1 / 9, a total of 17 numbers, according to the average probability, to form an n-order pairwise comparison matrix A; the second step, calculate the consistency index CI of the judgment matrix A; the third step, repeat the operation multiple times to generate a sufficient number of n-order random judgment matrix samples (such as 1000 samples) and calculate the consistency index of each sample, and finally calculate the arithmetic mean of the consistency indexes of multiple samples, which is RI.
[0141] Step 1203, perform consistency check again: when CR<0.1, it is considered that the consistency of the judgment matrix is acceptable and can pass the consistency verification; when CR≥0.1, it is considered that the judgment matrix does not meet the consistency requirements and needs to be corrected; after correction, CR is recalculated and consistency check is performed again until the judgment matrix meets or complies with the consistency requirements.
[0142] In this application, for the case where the judgment matrix does not meet the consistency requirements, that is, when CR≥0.1, the elements that cause inconsistency in the judgment matrix are judged, and the judgment logic inconsistency factor and the judgment value inconsistency factor are fed back; if CR<0.1, the indicator weight or demand importance value calculated by the judgment matrix fed back by the expert is accepted.
[0143] In some embodiments, the correction reminder message includes a set of judgment logic inconsistency factors, and the step of determining the judgment logic inconsistency factors includes:
[0144] When the consistency ratio of the judgment matrix does not meet the preset consistency condition, the upper triangular area of the judgment matrix is used as the target detection area;
[0145] Polling the elements of the target detection area, determining that the judgment logic is inconsistent when a first preset condition is met, and determining a judgment logic inconsistency factor;
[0146] The determined judgment logic inconsistency factor is saved in the judgment logic inconsistency factor set.
[0147] Which logic inconsistency judgment factors are stored in the logic inconsistency judgment factor set can be set according to actual needs; for example, all logic inconsistency judgment factors can be stored, or a part of the logic inconsistency judgment factors can be stored.
[0148] In the judgment matrix A, element a ij It is the element in the i-th row and j-th column, indicating the ratio of the importance of the i-th indicator to the j-th indicator. The selection of the ratio refers to the table of "Judgment Matrix Element Scaling Method". If the i-th indicator is more important than the j-th indicator, the value is greater than 1, otherwise the value is less than 1. If the importance is the same, the value is equal to 1. Since the judgment matrix is a positive reciprocal matrix, only the upper triangular matrix of the matrix can be considered in this application.
[0149] Optionally, when determining whether there is inconsistency in judgment logic or inconsistency in judgment value, polling can be performed according to certain rules, for example, for element a in the matrix ij , you can get a ik and a jk The value of , and then make a judgment based on the values of these three elements.
[0150] In some embodiments, the first preset condition includes any one of the following:
[0151] a ij ×a jk ≤1, a ik >1;a ij ×a jk <1, a ik ≥1; a ij ×a jk ≥1, a ik <1;a ij ×a jk >1,a ik ≤1;
[0152] Among them, when the above conditions are met, a ij 、a jk and a ik is the logical inconsistency factor at the ik position, aij 、a jk and a ik Forming a judgment logic inconsistency loop; a ij is the element located in the i-th row and j-th column of the judgment matrix, which represents the ratio of the importance of the i-th indicator to the j-th indicator; a ik is the element located in the i-th row and k-th column of the judgment matrix, which represents the ratio of the importance of the i-th indicator to the k-th indicator; a jk It is the element located in the j-th row and k-th column in the judgment matrix, which represents the ratio of the importance of the j-th indicator to the k-th indicator.
[0153] Optionally, the judgment logic is determined to be inconsistent when any of the following four situations occurs:
[0154] a ij ×a jk ≤1, a ik >1;
[0155] a ij ×a jk <1, a ik ≥1;
[0156] a ij ×a jk ≥1, a ik <1;
[0157] a ij ×a jk >1,a ik ≤1;
[0158] Among them, a ij 、a jk 、a ik a is the logical inconsistency factor for ik position judgment; ij 、a jk 、a ik A judgment logic inconsistency loop is formed.
[0159] In some embodiments, when there is a judgment logic inconsistency, the judgment logic inconsistency distance is determined by the following formula:
[0160]
[0161] Among them, s h is the hth scale value in the preset scale value table; ik is the logical inconsistency distance at the ik position, which is used as the criterion for judging the degree of logical inconsistency; a ij is the element located in the i-th row and j-th column of the judgment matrix, which represents the ratio of the importance of the i-th indicator to the j-th indicator; a ikis the element located in the i-th row and k-th column of the judgment matrix, which represents the ratio of the importance of the i-th indicator to the k-th indicator; a jk It is the element located in the j-th row and k-th column in the judgment matrix, which represents the ratio of the importance of the j-th indicator to the k-th indicator.
[0162] It can be understood as taking an s that satisfies the conditions h .
[0163] In some embodiments, the correction reminder message includes a set of judgment value inconsistency factors, and the step of determining the judgment value inconsistency factors includes:
[0164] When the consistency ratio of the judgment matrix does not meet the preset consistency condition, the upper triangular area of the judgment matrix is used as the target detection area;
[0165] Polling the elements of the target detection area, determining that the judgment values are inconsistent when a second preset condition is met, and determining an inconsistent judgment value factor;
[0166] The determined judgment value inconsistency factor is stored in the judgment value inconsistency factor set.
[0167] Which judgment value inconsistency factors are stored in the judgment value inconsistency factor set can be set according to actual needs; for example, all judgment value inconsistency factors can be stored, or a part of the judgment value inconsistency factors can be stored.
[0168] In some embodiments, the second preset condition includes any one of the following:
[0169] a ij ×a jk ≤1, a ik <1, and sn ik ≠1 / a ik ; a ij ×a jk <1, a ik ≤1, and sn ik ≠1 / a ik ; a ij ×a jk ≥1,
[0170] a ik >1, and sn ik ≠a ik ; a ij ×a jk >1,a ik ≥1, and sn ik ≠a ik ;
[0171] Among them, when the above conditions are met, a ij 、a jk and a ik is the inconsistent factor of the judgment value at the ik position, a ij 、a jk and a ik Forming a judgment value inconsistency loop; a ij is the element located in the i-th row and j-th column of the judgment matrix, which represents the ratio of the importance of the i-th indicator to the j-th indicator; a ik is the element located in the i-th row and k-th column of the judgment matrix, which represents the ratio of the importance of the i-th indicator to the k-th indicator; a jk is the element located in the jth row and kth column of the judgment matrix, indicating the ratio of the importance of the jth indicator to the kth indicator; sn ik for a ik The most recent scaled value of ik It is expressed by the following formula:
[0172]
[0173] Among them, s h is the hth scale value in the preset scale value table (which may be the scale value table of judgment matrix elements 1-9).
[0174] Furthermore, the logical inconsistency distance can also be determined by this formula:
[0175] Optionally, the judgment values are determined to be inconsistent when any of the following four situations occurs:
[0176] a ij ×a jk ≤1, a ik <1, and sn ik ≠1 / a ik ;
[0177] a ij ×a jk <1, a ik ≤1, and sn ik ≠1 / a ik ;
[0178] a ij ×a jk ≥1, a ik >1, and sn ik ≠a ik ;
[0179] a ij ×a jk >1,a ik≥1, and sn ik ≠a ik ;
[0180] Among them, a ij 、a jk 、a ik is the inconsistency factor of ik position judgment value; a ij 、a jk 、a ik A judgment value inconsistency loop is formed.
[0181] In some embodiments, when there is inconsistency in the judgment value, the judgment value inconsistency distance is determined by the following formula:
[0182]
[0183] That is, vd ik =|sn ik -a ik |; Among them, s h vd is the hth scale value in the preset scale value table; ik is the inconsistency distance of the judgment value at the ik position, which is used as the criterion for the degree of inconsistency of the judgment value; a ij is the element located in the i-th row and j-th column of the judgment matrix, which represents the ratio of the importance of the i-th indicator to the j-th indicator; a ik is the element located in the i-th row and k-th column of the judgment matrix, which represents the ratio of the importance of the i-th indicator to the k-th indicator; a jk It is the element located in the j-th row and k-th column in the judgment matrix, which represents the ratio of the importance of the j-th indicator to the k-th indicator.
[0184] For each judgment matrix fed back by the expert, a consistency check is performed on it. When CR ≥ 0.1, the judgment logic inconsistency factor and judgment value inconsistency factor need to be fed back to the expert, and then the expert will readjust the value of the corresponding element in the judgment matrix based on experience and feed back the modified judgment matrix. The specific detection process may include:
[0185] Step 1210: The detection range is the upper triangular area of the judgment matrix, and the set of judgment logic inconsistency factors is L = {((i, j, a ij ), (j, k, a jk ), (i, k, a ik ),ld ik )|i, j, k∈{1, 2, 3…n}, n is the matrix order}, the set of judgment value inconsistency factors is V={((i, j, a ij ), (j, k, a jk ), (i, k, a ik ), vd ik))|i, j, k∈{1, 2, 3…n}, n is the matrix order}; set ld ik Recommended thresholds thl and vd ik The recommended threshold value thv;
[0186] Step 1220: i, j and k are row and column position indexes of the judgment matrix, and the matrix position indexes are all from 1 to n;
[0187] Step 1230: i=1;
[0188] Step 1240: j=i+1;
[0189] Step 1250: k=j+1;
[0190] Step 1260: Apply the first preset condition and the second preset condition to determine whether there is a logical inconsistency and a value inconsistency. If there is a logical inconsistency, then ((i, j, a ij ), (j, k, a jk ), (i, k, a ik ),ld ik ) is stored in L; if there is an inconsistency in the judgment value, ((i, j, a ij ), (j, k, a jk ), (i, k, a ik ), vd ik )) is stored in V. Go to step 1270;
[0191] Step 1270: k=k+1, if k=n+1, go to step 1280; otherwise, go to step 1260;
[0192] Step 1280: j=j+1, if j=n+1, go to step 1290; otherwise, go to step 1250;
[0193] Step 1290: i=i+1, if i=n+1, complete detection and exit; otherwise, go to step 1240.
[0194] Furthermore, when the judgment matrix is corrected according to the detection result, the following steps may be included:
[0195] Step 1: Press ld to sort the tuples in L ik Sort the values in descending order, sort the tuples in V by vd ik Sort in descending order.
[0196] Step 2: Replace the ld in L that is greater than thl (replace the ld in L ik The value of thl is compared with the tuple in V that is greater than thv (the vd of the ancestor in V ikThe tuples of the value of thv and thv are used as the relevant tuples of the judgment logic inconsistency factor and the judgment value inconsistency factor, respectively. Here, a position can only be a situation of judging logic inconsistency and judging value inconsistency. Since the priority (inconsistency degree) of the judgment logic inconsistency factor is higher than that of the judgment value inconsistency factor, the priority (inconsistency degree) of the relevant tuples of the judgment logic inconsistency factor is higher than that of the relevant tuples of the judgment value inconsistency factor. Therefore, only the relevant tuples of the judgment logic inconsistency factor can be fed back to the expert, or the relevant tuples of the judgment logic inconsistency factor and the relevant tuples of the judgment value inconsistency factor can be fed back to the expert at the same time.
[0197] Step 3: The expert locates the judgment inconsistency factor (judgment logic inconsistency factor or judgment value inconsistency factor) in the judgment matrix according to the row and column position index of the judgment matrix in the tuple.
[0198] Step 4: The expert applies the feedback results to modify the judgment matrix. After modification, the indicator weight or demand importance value is calculated again based on the judgment matrix fed back by the expert. If the CR of the judgment matrix is <0.1, the expert's judgment matrix passes the consistency test, and the indicator weight or demand importance value calculated by the judgment matrix reported by the expert is accepted; otherwise (the CR of the judgment matrix is ≥0.1), the "inconsistency detection" process is continued.
[0199] Step 5: If the judgment matrices fed back by all experts pass the consistency test, the indicator weights or demand importance values calculated by the judgment matrices fed back by each expert are acceptable, and then group decision-making begins; otherwise, if the judgment matrix of an expert fails the consistency test, the corresponding expert will continue to modify the judgment matrix according to the "inconsistency detection" process.
[0200] If the CR of the judgment matrix is less than 0.1 after correction, it can be determined that the judgment matrix fed back by the expert can pass the consistency test.
[0201] When the judgment matrices formed by the experts are consistent, the weights for the indicators or requirements are output. At this time, the weights of the experts need to be calculated, so as to form the final weight calculation of the indicators or requirements in the form of weighted sum. In this application, by establishing a median matrix, measuring the distance from the judgment matrix to the median matrix, quantifying the degree of outliers in the expert judgment matrix, and thus quantifying the expert weights.
[0202] In some embodiments, the step of determining the expert weight value includes:
[0203] The median matrix is determined based on the judgment matrices that have passed the consistency test and are fed back by all experts; wherein each judgment matrix is fed back by different experts;
[0204] Determine the degree of outlier of the experts corresponding to each judgment matrix according to the median matrix;
[0205] The expert weight value of each expert is determined according to the degree of outlier of each expert.
[0206] Among them, the median matrix is the central matrix of multiple expert judgment matrices and can be determined by the following formula:
[0207]
[0208] Among them, a ije is the i-th row and j-th column element of the judgment matrix of the e-th expert; median means the median operation; am ij Represents the element in the i-th row and j-th column of the median matrix; e∈the number of technical experts.
[0209] The degree of outlier for an expert can be determined by:
[0210]
[0211] Among them, dout e is the outlier degree measure of expert e.
[0212] The weights for the experts can be determined by the following formula:
[0213]
[0214] Among them, we e is the weight of the e-th expert.
[0215] Furthermore, the final weight can be determined by the following formula:
[0216]
[0217] Among them, w ei is the weight of the ith indicator or the importance value of the ith requirement calculated by the judgment matrix fed back by the eth expert; wf i is the final weight of the ith indicator or the final importance value of the ith requirement.
[0218] Furthermore, this application also constructs a priority scoring model for test cases based on various indicators, and proposes quantitative operations for the importance of requirements, weighting instructions for indicators, etc.
[0219] In some embodiments, determining the priority score of each indicator by using the priority score model corresponding to each indicator in the hierarchical indicator system includes:
[0220] Filtering the indicators at all leaf nodes from the hierarchical indicator system to obtain a leaf node indicator set;
[0221] Execute test cases and obtain the execution results of test cases;
[0222] In the case where the leaf node indicator set includes a subjective indicator, for the subjective indicator in the indicator set, a sub-requirement of the subjective indicator is determined according to a preset actual requirement, and a judgment matrix for determining the importance value of each sub-requirement is generated according to all sub-requirements; wherein the order of the judgment matrix is equal to the number of sub-requirements;
[0223] According to the judgment matrix, determining the importance value of each sub-requirement by the preset method;
[0224] According to the execution result and the importance value of each sub-requirement, the priority score of the subjective indicator is determined by a priority score model corresponding to the subjective indicator.
[0225] Among them, the preset actual requirements can be set according to the actual situation, the specific requirements of the customer or the actual functions of the software to be tested.
[0226] Optionally, if the test case does not cover the corresponding requirement, the value of the corresponding matrix element can be filled with 0. Alternatively, according to the execution result and the importance value of each sub-requirement, the importance value of the corresponding sub-requirement covered by the execution result is first extracted, and then the priority score of the subjective indicator is determined by the priority score model corresponding to the subjective indicator.
[0227] In some embodiments, determining the priority score of each indicator by using the priority score model corresponding to each indicator in the hierarchical indicator system includes:
[0228] Extracting the indicators at all leaf nodes from the hierarchical indicator system to obtain a leaf node indicator set;
[0229] Execute test cases and obtain the execution results of test cases;
[0230] In the case where the leaf node indicator set includes objective indicators, the priority score of each objective indicator is determined according to the execution result through the priority score model corresponding to each objective indicator in the hierarchical indicator system.
[0231] Assignment of importance of requirements: Evaluate the importance of requirements that affect the priority of test cases from the perspectives of system requirements and user requirements, combined with factors such as implementation difficulty and complexity. Among them, system requirements are mainly quality requirements in the system implementation dimension, which may include: function, performance, compatibility, reliability and security. The importance value of requirements can also be quantified and assigned through the improved AHP method.
[0232] The following table is a demand importance value vector determined by the AHP method:
[0233]
[0234] Among them, qa represents a demand indicator of user demand, functional demand, performance demand, compatibility demand, reliability demand, and security demand, and the elements represent the quantitative value of the importance of the corresponding qa demand. Therefore, the table should eventually have 6 sheets, namely user demand importance value vector, functional demand importance value vector, performance demand importance vector, compatibility demand importance value vector, reliability demand importance value vector, and security demand importance value vector.
[0235] Weighting of indicators: The hierarchical indicator system contains multi-dimensional and multi-level indicators, and the indicators of each dimension and each level can be weighted by the improved AHP method. Based on the hierarchical indicator system disclosed in this application, there are 4 weight vectors, corresponding to the system requirement weight vector (length 5), coverage requirement importance weight vector (length 2), defect exposure capability weight vector (length 3), and use case priority quantification weight vector (length 4). The weight vector is determined by the improved AHP method.
[0236] The following table is an example of the importance value matrix of test case coverage requirements:
[0237]
[0238] The rows of the matrix represent test cases, and the columns of the matrix represent requirements. According to the classification of requirements, the requirements are divided into requirements of different dimensions (such as user requirements, functional requirements, security requirements, etc.), so the requirements change with the requirement indicators. The elements represent the quantitative values of the importance of the requirements covered by the test cases. According to the coverage of the requirements by the test cases, the importance value vector of the requirements corresponding to the requirement indicators is imported to realize the reporting. If the test case does not cover the corresponding requirement, the value of the corresponding matrix element can be filled in as 0.
[0239] (I) User needs: This indicator is a subjective indicator. Testers obtain the user needs covered by the use cases by executing the use cases, such as the coverage of interface display, business flow, input and output, and import the corresponding importance values of the covered user needs. The priority score of the use case based on the importance of the covered user needs is calculated as follows:
[0240]
[0241] Where m is the number of use cases, n is ur is the number of user requirements, ur ij The importance value of the jth user requirement covered by the i-th use case. If it is 0, it means it is not covered. i Give the i-th use case a priority score based on the importance of covering the user requirement.
[0242] (ii) For system requirements: This indicator estimates the quality attributes of the system requirements covered by the use case. The indicators (requirements) related to system requirements are all subjective indicators.
[0243] For functional requirements: Testers execute use cases, collect statistics and execution traversal of functional requirements, and import the corresponding importance values of covered functional requirements. The priority score of the use case is based on the importance of covering the system functional requirements, and is calculated as follows:
[0244]
[0245] Where m is the number of use cases; n f is the number of system function requirements; sfr ij The importance value of the j-th system functional requirement covered by the i-th use case. If it is 0, it means no coverage; tsfr i Represents the priority score of the i-th use case based on the importance of covering the system functional requirements.
[0246] For performance requirements: Testers execute use cases to obtain the performance requirements covered by the use cases. The execution units of the requirements can be units, subsystems, and systems, and the corresponding importance values of the covered performance requirements are imported. The priority score of the use case based on the importance of covering the system performance requirements is calculated as follows:
[0247]
[0248] Where m is the number of use cases; n p is the number of system performance requirements; spr ij The importance value of the j-th system performance requirement covered by the i-th use case. If it is 0, it means no coverage; tspr i represents the priority score of the ith use case based on its importance in covering the system performance requirements.
[0249] For compatibility requirements: The tester obtains the execution status of the compatibility requirements of the system environment or execution context by executing the use case, and imports the corresponding importance value of the covered compatibility requirements. The priority score of the use case based on the importance of the compatibility requirements of the covered system environment or execution context is calculated as follows:
[0250]
[0251] Where m is the number of use cases; n c Required quantity for system compatibility; scr ij The importance value of the jth compatibility requirement covered by the i-th use case. If it is 0, it means no coverage; tscr iRepresents the priority score of the ith use case based on the importance of the compatibility requirements of the covered system environment or execution context.
[0252] For reliability requirements: Testers execute use cases to obtain the reliability requirements covered by the use cases and import the corresponding importance values of the covered reliability requirements. The priority score of the use case based on the importance of covering the system reliability requirements is calculated as follows:
[0253]
[0254] Where m is the number of use cases; n r is the system reliability requirement; srr ij The importance value of the jth reliability requirement covered by the i-th use case. If it is 0, it means no coverage; tsrr i Represents the priority score of the i-th use case based on its importance in covering the system reliability requirement.
[0255] For security requirements: Testers execute use cases to obtain the security requirements covered by the use cases and import the corresponding importance values of the covered security requirements. The priority score of the use case based on the importance of covering the system security requirements is calculated as follows:
[0256]
[0257] Where m is the number of use cases; n s is the system security requirement quantity; ssr ij The importance value of the jth security requirement covered by the i-th use case. If it is 0, it means no coverage; tssr i Represents the priority score of the i-th use case based on its importance in covering the system security requirements.
[0258] (III) Changes in coverage requirements: This indicator is an objective indicator. Changes in requirements will lead to the introduction of defects. Testers count the cumulative number of changes in requirements covered by the use case. The more changes there are, the higher the priority of the corresponding use case should be. Testers can use tools or count the changes in requirements by themselves. The scoring matrix for the cumulative changes in requirements covered by the use case is shown below:
[0259]
[0260]
[0261] The rows in the scoring matrix of the changes in requirements covered by the test cases represent the test cases, the columns represent the user requirements or system requirements, and the matrix elements represent the cumulative number of changes in the requirements covered by the test cases. If the test case does not cover the corresponding requirement or the corresponding requirement has not changed, the corresponding matrix element is 0. The priority score of the test case based on the changes in the covered requirements can be determined by the following formula:
[0262]
[0263] Among them, updc ik The cumulative number of changes to the kth user requirement covered by the i-th test case; updc rij The cumulative number of changes of the jth system requirement of the rth system requirement type covered by the ith test case. If it is 0, it means no coverage or no change. Otherwise, it is the statistics of the cumulative number of changes of the requirement. uri ik The importance value of the kth user requirement covered by the i-th test case; sri rij is the importance value of the jth system requirement of the rth system requirement type (requirement types include: functional requirements, performance requirements, compatibility requirements, reliability requirements, and security requirements) covered by the ith test case. The importance value is imported from the importance value vector of the corresponding user requirements, functional requirements, performance requirements, compatibility requirements, reliability requirements, and security requirements; wfs represents the system requirement weight; wfu represents the user requirement weight; wf r represents the weight of the rth system requirement type; tru i Represents the priority score of the i-th test case based on the changes to the covered requirements.
[0264] (IV) Requirements coverage efficiency: Requirements coverage efficiency refers to the coverage of requirements per unit time. Generally, when the test case detects certain requirements, the shorter the execution time, the higher the test efficiency. Therefore, the importance of the requirements covered by the test case per unit time and the weight of the requirements are used to quantify the execution efficiency. The priority score of the test case based on the execution efficiency of the requirements coverage can be determined by the following formula:
[0265]
[0266] Among them, r ranges from 1 to 5; tsr ir Represents the tsfr of the i-th test case i 、tspr i 、tscr i 、tsrr i 、tssr i , dt i The time taken to run the requirement test of the i-th test case; iThe score of the priority of the execution efficiency of the i-th test case based on the requirement coverage.
[0267] (V) Defect exposure capability: This type of indicator is an objective indicator. After running the test cases, the defects and their severity are marked, and the defect factors related to the test case priority are measured.
[0268] Regarding the severity of software defects: The severity of software defects refers to the degree of impact of the failure caused by the defect on the software product. In this application, the severity of defects is divided into: low, general, severe, severe and fatal, and the severity of defects is assigned quantitative values of 1, 3, 5, 7 and 9 respectively. The priority score of the test case based on the severity of the detected defects can be determined by the following formula:
[0269]
[0270] Among them, dg ij The quantified severity value of the j-th defect detected by the i-th test case; tdg i Give the i-th test case a priority score based on the severity of the detected defects.
[0271] Defect type detection rate: The defect types detected by the test case are used to evaluate the coverage of the defect categories of the test case. The more defect categories detected, the stronger the test case's testing ability for software quality attributes, so the corresponding priority factors can be improved. Defects can be divided into: database problems, global variable problems, repeated errors, calculation problems, logic problems, input and output problems, interface problems, requirements implementation problems, operation errors, document errors, inconsistent requirements, data processing problems, support environment problems, configuration problems, etc. The priority score of the use case based on the defect detection type can be determined by the following formula:
[0272]
[0273] Among them, tdt i is the defect type detection rate of the i-th use case; dtn i is the number of defect types that can be detected by the i-th use case; tn is the number of defect types.
[0274] Regarding defect detection efficiency: This indicator is an objective indicator. Defect detection efficiency is the number of defects detected by a test case per unit time. The defect detection rate is calculated by the number of defects detected by the test case and the execution time of the test case. The score of the test case based on the priority of defect detection efficiency can be determined by the following formula:
[0275]
[0276] Among them, dt iis the execution time of the i-th use case; tde i Represents the priority score of the i-th use case based on defect detection efficiency.
[0277] Step 130: Determine the priority score of the test case according to the priority score and weight value of each indicator in the hierarchical indicator system.
[0278] The scoring results of each indicator are imported into a hierarchical model to establish weights, and then iterated to derive the priority score of each test case.
[0279] In this embodiment, when determining the weights of indicators at all levels and dimensions, an expert group is formed, and each expert compares and judges the importance of indicators under "use case priority quantification", "coverage requirement importance", "defect exposure capability", and "system requirements", respectively, forming a 4th-order use case priority quantification judgment matrix, a 2nd-order coverage requirement judgment matrix, a 3rd-order defect exposure capability judgment matrix, and a 5th-order system requirement judgment matrix. Among them, the comparison and judgment of the importance of indicators can refer to Table 1, and for each judgment matrix, the relevant indicators can be weighted according to the improved AHP process.
[0280] Assigning importance to the covered requirements: Each expert compares and judges the importance of the requirements under user requirements, functional requirements, performance requirements, compatibility requirements, reliability requirements, and security requirements, and forms a user requirement importance judgment matrix, a functional requirement importance judgment matrix, a performance requirement importance judgment matrix, a compatibility requirement importance judgment matrix, a reliability requirement importance judgment matrix, and a security requirement importance judgment matrix. The order of each matrix is equal to the number of requirements under each requirement. Among them, the comparison and judgment of the importance of indicators can refer to Table 1. For each judgment matrix, the importance of the relevant requirements can be assigned according to the improved AHP process.
[0281] Acquisition of test case execution data: Testers execute test cases and obtain test case execution data, including test case requirement coverage, case execution time, defect detection status, etc.
[0282] Regarding data confirmation and use case priority scoring based on indicators: the tester will feed back the test case execution data to the evaluator, who will confirm the data. For subjective data on the importance of requirements: the quantitative value of the importance of the corresponding requirements will be imported into the corresponding requirements based on the relationship between the use case and the requirements, and the priority score of the use case based on the importance of the corresponding requirements will be calculated; for objective data: the corresponding scoring formula will be used to calculate the priority score of the use case based on the corresponding indicator.
[0283] Calculation and sorting of use case priorities: The priority indicators of the relevant test cases in this application have been positively and regularly processed. Therefore, based on the scoring results of the indicators at each level of the aforementioned scoring dimensions, the priority of each use case is calculated in the following way.
[0284] The i-th use case is calculated based on the leaf node layer priority score as follows:
[0285]
[0286] r∈{functional requirements, performance requirements, compatibility requirements, reliability requirements, security requirements}
[0287] ssr ir ∈{tsfr i ,tspr i ,tscr i ,tsrr i ,tssr i}
[0288] wf r ∈{Functional requirement weight, performance requirement weight, compatibility requirement weight, reliability requirement weight, security requirement weight}
[0289] Among them, sr i Assign a priority score to the i-th test case based on the importance of system requirements.
[0290] The i-th use case is calculated based on the Tier 3 priority score as follows:
[0291]
[0292] c∈{user requirements, system requirements}
[0293] cri ic ∈{tur i ,sr i}
[0294] wf c ∈{user demand weight, system demand weight}
[0295] Among them, cr i Assign a priority score to the i-th test case based on the importance of covering the requirement.
[0296]
[0297] d∈{detected defect severity, defect type detection rate, defect detection efficiency}
[0298] dfc id ∈{tdg i ,tdti ,tde i}
[0299] wf d ∈{detected defect severity weight, defect type detection rate weight, defect detection efficiency weight}
[0300] Among them, df i Assign a priority score to the i-th use case based on its defect exposure capability.
[0301] The i-th use case is calculated based on the Tier 2 priority score as follows:
[0302]
[0303] p∈{importance of coverage requirements, changes in coverage requirements, efficiency of requirement coverage, defect exposure capability}
[0304] dfc ip ∈{sr i ,tru i ,tre i ,df i}
[0305] wf p ∈{coverage requirement importance weight, coverage requirement weight, requirement coverage weight, defect exposure weight}
[0306] Among them, tp i Quantify the priority score of the i-th test case based on the use case priority.
[0307] Step 140: prioritize all test cases according to the priority score of each test case.
[0308] Furthermore, when prioritizing test cases, the priority scores TPI values calculated for each test case are arranged in descending or ascending order to form a set of test cases with a priority order, so that testing is performed based on the sorted test cases, thereby improving the effectiveness and efficiency of the test.
[0309] It should be noted that the indicator weights based on expert judgment can remain basically stable and unchanged. If changes are needed, they can be reorganized and evaluated; the importance of specific requirements under the subjective indicators of leaf nodes can remain basically stable in the test items, such as the importance of specific requirements of demand indicators; the objective indicator scores of leaf nodes are calculated based on the execution results of use cases, such as the coverage of requirements by use cases, execution time of use cases, cumulative number of changes to requirements, number of defect types detected by use cases, severity of defects detected by use cases, etc.
[0310] In addition, in order to facilitate understanding of the technical solution of this application, you can also refer to Figure 3 The method disclosed in the present application can also be configured to be executed by multiple intelligent devices. For example, each expert can configure the judgment matrix and / or the relevant weights through the intelligent mobile terminal (front end), and can also modify the relevant judgment matrix through the intelligent mobile terminal; and some other steps can be configured in the server (back end) that communicates with the intelligent mobile terminal; the specific configuration can be flexibly adjusted according to actual business needs.
[0311] It should be noted that the experts described in this embodiment may include technical experts, testing experts or relevant technical personnel of the test case provider, etc.
[0312] Embodiment 2
[0313] This embodiment provides a test case priority sorting device. This device embodiment can be used to execute the method embodiment of this application. For details not disclosed in this device embodiment, please refer to the method embodiment of this application. The device disclosed in this embodiment includes:
[0314] A hierarchical indicator system creation module, used to create a hierarchical indicator system to evaluate the priority of test cases by quantifying the priority of test cases;
[0315] An assignment module, used to quantify and assign the weight of each indicator in the hierarchical indicator system by a preset method, and determine the priority score of each indicator by a priority scoring model corresponding to each indicator in the hierarchical indicator system; wherein the preset method includes a hierarchical analysis method integrating group decision making and inconsistency detection;
[0316] A priority score determination module, used to determine the priority score of the test case according to the priority score and weight value of each indicator in the hierarchical indicator system;
[0317] The sorting module is used to prioritize all test cases according to the priority score of each test case.
[0318] Technical personnel in the relevant field can clearly understand that, for the convenience and brevity of description, the specific working process of each module in the test case priority sorting device can refer to the corresponding process in the aforementioned method embodiment, and this embodiment will not be repeated here.
[0319] Embodiment 3
[0320] This embodiment provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps in the above method embodiment can be implemented, and this embodiment will not be repeated here.
[0321] The computer-readable storage medium may also include a computer program, a data file, a data structure, etc., alone or in combination. The computer-readable storage medium or the computer program may be specifically designed and understood by a person skilled in the art of computer software, or the computer-readable storage medium may be known and available to a person skilled in the art of computer software. The computer-readable storage medium may be distributed in a networked computer system, and may store and execute program code or a computer program in a decentralized manner.
[0322] Embodiment 4
[0323] This embodiment provides a computer program product. The computer program product includes a computer program or instructions, and when the computer program or instructions are executed by a processor, all or part of the steps of the method in the above method embodiment are implemented, and this embodiment will not be repeated here.
[0324] Further, the computer program product may include one or more computer executable components configured to perform the embodiments when the program is run; the computer program product may also include a computer program tangibly contained on a readable medium, the computer program including program code for performing any method in the embodiments of the present disclosure. In such an embodiment, the computer program may be downloaded and installed from a network through a communication portion, and / or installed from a removable medium.
[0325] Embodiment 5
[0326] This embodiment provides an electronic device, which may include: one or more processors, a memory, a multimedia component, an input / output (I / O) interface, and a communication component.
[0327] Among them, one or more processors are used to execute all or part of the steps in the above method embodiments. The memory is used to store various types of data, which may include instructions of any application or method in the electronic device, as well as application-related data. The memory can be implemented by any type of volatile or non-volatile storage device or a combination thereof.
[0328] Although the embodiments of the present application have been shown and described above, it can be understood that any technician in the technical field to which the present application belongs can make any modifications and changes in the form and details of implementation without departing from the spirit and scope disclosed in the present application, but the scope of protection of the present application shall still be based on the scope defined by the attached claims.
Claims
1. A test case prioritization method, characterized in that: The method comprises: Create a hierarchical metric system to prioritize test cases by quantifying their priority; The weight of each indicator in the hierarchical indicator system is quantitatively assigned by a preset method, and the priority score of each indicator is determined by a priority scoring model corresponding to each indicator in the hierarchical indicator system; wherein the preset method includes a hierarchical analysis method integrating group decision making and inconsistency detection; Determine the priority score of the test case according to the priority score and weight value of each indicator in the hierarchical indicator system; Prioritize all test cases according to the priority score of each test case; The method of quantifying the weight of each indicator in the hierarchical indicator system by a preset method includes: For any indicator with sub-indicators in the hierarchical indicator system, a judgment matrix for determining the weights of each sub-indicator is generated according to the sub-indicators of the indicator; wherein the order of the judgment matrix is equal to the number of sub-indicators, and the value of each element in the judgment matrix represents the ratio of the importance of the sub-indicator corresponding to the corresponding row index and the column index; issuing a scoring reminder so that a plurality of experts can provide feedback on the judgment matrix by filling in values for the judgment matrix respectively; wherein the value of each element in the judgment matrix is determined by a preset scaling method; According to the value of each element in the judgment matrix determined by the expert, the maximum eigenvalue of the judgment matrix is determined; according to the maximum eigenvalue and the order of the judgment matrix, a consistency index is determined, and according to the consistency index, the consistency ratio of the judgment matrix is determined; when the consistency ratio does not meet the preset consistency condition, a correction reminder message is issued, so that the expert can correct the value of the element in the judgment matrix according to the correction reminder message; when the consistency ratio meets the preset consistency condition, it is determined that the judgment matrix fed back by the expert passes the consistency test; wherein, the correction reminder message includes a set of judgment logic inconsistency factors, and the step of determining the judgment logic inconsistency factor includes: when the consistency ratio of the judgment matrix does not meet the preset consistency condition, the upper triangular area of the judgment matrix is used as the target detection area; polling the elements of the target detection area, and when the first preset condition is met, it is determined that the judgment logic is inconsistent and the judgment logic inconsistency factor is determined; the determined judgment logic inconsistency factor is saved in the judgment logic inconsistency factor set; the first preset condition includes any one of the following: a ij ×a jk ≤1,a ik >1;a ij ×a jk <1,a ik ≥1;a ij ×a jk ≥1,a ik <1;a ij ×a jk >1,a ik ≤1; Among them, when the first preset condition is met, a ij 、a jk and a ik is the logical inconsistency factor at the ik position, a ij 、a jk and a ik Forming a judgment logic inconsistency loop; a ij is the element located in the i-th row and j-th column of the judgment matrix, which represents the ratio of the importance of the i-th indicator to the j-th indicator; a ik is the element located in the i-th row and k-th column of the judgment matrix, which represents the ratio of the importance of the i-th indicator to the k-th indicator; a jk is the element located in the jth row and kth column of the judgment matrix, indicating the ratio of the importance of the jth indicator to the kth indicator; in the case of inconsistent judgment logic, the judgment logic inconsistency distance is determined by the following formula: Among them, s h is the hth scale value in the preset scale value table; ik is the logical inconsistency distance at the ik position, which is used as the criterion for judging the degree of logical inconsistency; a ij is the element located in the i-th row and j-th column of the judgment matrix, which represents the ratio of the importance of the i-th indicator to the j-th indicator; a ik is the element located in the i-th row and k-th column of the judgment matrix, which represents the ratio of the importance of the i-th indicator to the k-th indicator; a jk is the element located in the jth row and kth column of the judgment matrix, which represents the ratio of the importance of the jth indicator to the kth indicator; For any judgment matrix that has passed the consistency test and is fed back by an expert, the initial weight value of each sub-indicator is determined according to the value of the element in the judgment matrix, wherein the initial weight value is the weight value determined for the sub-indicator by the expert who fed back the judgment matrix; According to the judgment matrix that has passed the consistency test and is fed back by all experts, the expert weight value of each expert is determined; For any sub-indicator, the final weight value of the sub-indicator is determined according to the expert weight value of each expert and the initial weight value of the sub-indicator determined by each expert, and the final weight value is used as the weight value of the sub-indicator; Determining the priority score of each indicator by using the priority score model corresponding to each indicator in the hierarchical indicator system includes: Filtering the indicators at all leaf nodes from the hierarchical indicator system to obtain a leaf node indicator set; Execute test cases and obtain the execution results of test cases; In the case where the leaf node indicator set includes a subjective indicator, for the subjective indicator in the indicator set, the sub-requirement of the subjective indicator is determined according to the preset actual requirements, and a judgment matrix for determining the importance value of each sub-requirement is generated according to all the sub-requirements; wherein the order of the judgment matrix is equal to the number of sub-requirements; according to the judgment matrix, the importance value of each sub-requirement is determined by the preset method; according to the execution result and the importance value of each sub-requirement, the priority score of the subjective indicator is determined by the priority scoring model corresponding to the subjective indicator; In the case where the leaf node indicator set includes objective indicators, the priority score of each objective indicator is determined according to the execution result through the priority score model corresponding to each objective indicator in the hierarchical indicator system.
2. The test case prioritization method according to claim 1, characterized in that: The hierarchical indicator system includes one or more of the following indicators: Covering the importance of requirements, covering changes in requirements, requirements coverage efficiency and defect exposure capabilities; among them, The coverage requirement importance index is a subjective index; the coverage requirement importance includes sub-subjective indexes: user requirements and / or system requirements; the system requirements include sub-subjective indexes: one or more of functional requirements, performance requirements, compatibility requirements, reliability requirements and security requirements; The change in the coverage requirements, the requirement coverage efficiency and the defect exposure capability are all objective indicators; the defect exposure capability includes sub-objective indicators: one or more of the severity of detected defects, defect type detection rate and defect detection efficiency.
3. The test case prioritization method according to claim 1, characterized in that: After the values of the elements in the judgment matrix are corrected, the method further includes: According to the values of each element re-determined by the expert, the consistency ratio of the judgment matrix fed back by the expert is determined again; When the consistency ratio meets the preset consistency condition, it is determined that the judgment matrix fed back by the expert passes the consistency test.
4. The test case prioritization method according to claim 1, characterized in that: The correction reminder message includes a set of judgment value inconsistency factors, and the step of determining the judgment value inconsistency factors includes: When the consistency ratio of the judgment matrix does not meet the preset consistency condition, the upper triangular area of the judgment matrix is used as the target detection area; Polling the elements of the target detection area, determining that the judgment values are inconsistent when a second preset condition is met, and determining an inconsistent judgment value factor; The determined judgment value inconsistency factor is stored in the judgment value inconsistency factor set.
5. The test case prioritization method according to claim 4, characterized in that: The second preset condition includes any one of the following: a ij ×a jk ≤1, a ik <1, and sn ik ≠1 / a ik ; a ij ×a jk <1, a ik ≤1, and sn ik ≠1 / a ik ; a ij ×a jk ≥1, a ik >1, and sn ik ≠a ik ; a ij ×a jk >1, a ik ≥1, and sn ik ≠a ik ; Wherein, when the second preset condition is met, a ij 、a jk and a ik is the inconsistent factor of the judgment value at the ik position, a ij 、a jk and a ik Forming a judgment value inconsistency loop; a ij is the element located in the i-th row and j-th column of the judgment matrix, which represents the ratio of the importance of the i-th indicator to the j-th indicator; a ik is the element located in the i-th row and k-th column of the judgment matrix, which represents the ratio of the importance of the i-th indicator to the k-th indicator; a jk is the element located in the jth row and kth column of the judgment matrix, indicating the ratio of the importance of the jth indicator to the kth indicator; sn ik for a ik The most recent scaled value of ik It is expressed by the following formula: Among them, s h is the hth scale value in the preset scale value table.
6. The test case prioritization method according to claim 4, characterized in that: In the case of inconsistent judgment values, the inconsistent judgment value distance is determined by the following formula: Among them, s h vd is the hth scale value in the preset scale value table; ik is the inconsistency distance of the judgment value at the ik position, which is used as the criterion for the degree of inconsistency of the judgment value; a ij is the element located in the i-th row and j-th column of the judgment matrix, which represents the ratio of the importance of the i-th indicator to the j-th indicator; a ik is the element located in the i-th row and k-th column of the judgment matrix, which represents the ratio of the importance of the i-th indicator to the k-th indicator; a jk It is the element located in the j-th row and k-th column in the judgment matrix, which represents the ratio of the importance of the j-th indicator to the k-th indicator.
7. The test case prioritization method according to claim 1, characterized in that: The step of determining the expert weight value comprises: Determine the median matrix based on the judgment matrices that have passed the consistency test and are fed back by all experts; Determine the degree of outlier of the experts corresponding to each judgment matrix according to the median matrix; The expert weight value of each expert is determined according to the degree of outlier of each expert.
8. A test case priority sorting device, characterized in that: include: A hierarchical indicator system creation module, used to create a hierarchical indicator system to evaluate the priority of test cases by quantifying the priority of test cases; An assignment module, used to quantify and assign the weight of each indicator in the hierarchical indicator system by a preset method, and determine the priority score of each indicator by a priority scoring model corresponding to each indicator in the hierarchical indicator system; wherein the preset method includes a hierarchical analysis method integrating group decision making and inconsistency detection; A priority score determination module, used to determine the priority score of the test case according to the priority score and weight value of each indicator in the hierarchical indicator system; A sorting module is used to prioritize all test cases according to the priority score of each test case; The method of quantifying the weight of each indicator in the hierarchical indicator system by a preset method includes: For any indicator with sub-indicators in the hierarchical indicator system, a judgment matrix for determining the weights of each sub-indicator is generated according to the sub-indicators of the indicator; wherein the order of the judgment matrix is equal to the number of sub-indicators, and the value of each element in the judgment matrix represents the ratio of the importance of the sub-indicator corresponding to the corresponding row index and the column index; issuing a scoring reminder so that a plurality of experts can provide feedback on the judgment matrix by filling in values for the judgment matrix respectively; wherein the value of each element in the judgment matrix is determined by a preset scaling method; According to the value of each element in the judgment matrix determined by the expert, the maximum eigenvalue of the judgment matrix is determined; according to the maximum eigenvalue and the order of the judgment matrix, a consistency index is determined, and according to the consistency index, the consistency ratio of the judgment matrix is determined; when the consistency ratio does not meet the preset consistency condition, a correction reminder message is issued, so that the expert can correct the value of the element in the judgment matrix according to the correction reminder message; when the consistency ratio meets the preset consistency condition, it is determined that the judgment matrix fed back by the expert passes the consistency test; wherein, the correction reminder message includes a set of judgment logic inconsistency factors, and the step of determining the judgment logic inconsistency factor includes: when the consistency ratio of the judgment matrix does not meet the preset consistency condition, the upper triangular area of the judgment matrix is used as the target detection area; polling the elements of the target detection area, and when the first preset condition is met, it is determined that the judgment logic is inconsistent and the judgment logic inconsistency factor is determined; the determined judgment logic inconsistency factor is saved in the judgment logic inconsistency factor set; the first preset condition includes any one of the following: a ij ×a jk ≤1,a ik >1;a ij ×a jk <1,a ik ≥1;a ij ×a jk ≥1,a ik <1;a ij ×a jk >1,a ik ≤1; Among them, when the first preset condition is met, a ij 、a jk and a ik is the logical inconsistency factor at the ik position, a ij 、a jk and a ik Forming a judgment logic inconsistency loop; a ij is the element located in the i-th row and j-th column of the judgment matrix, which represents the ratio of the importance of the i-th indicator to the j-th indicator; a ik is the element located in the i-th row and k-th column of the judgment matrix, indicating the ratio of the importance of the i-th indicator to the k-th indicator; a jk is the element located in the jth row and kth column of the judgment matrix, indicating the ratio of the importance of the jth indicator to the kth indicator; in the case of inconsistent judgment logic, the judgment logic inconsistency distance is determined by the following formula: Among them, s h is the hth scale value in the preset scale value table; ik is the logical inconsistency distance at the ik position, which is used as the criterion for judging the degree of logical inconsistency; a ij is the element located in the i-th row and j-th column of the judgment matrix, which represents the ratio of the importance of the i-th indicator to the j-th indicator; a ik is the element located in the i-th row and k-th column of the judgment matrix, indicating the ratio of the importance of the i-th indicator to the k-th indicator; a jk is the element located in the jth row and kth column of the judgment matrix, which represents the ratio of the importance of the jth indicator to the kth indicator; For any judgment matrix that has passed the consistency test and is fed back by an expert, the initial weight value of each sub-indicator is determined according to the value of the element in the judgment matrix, wherein the initial weight value is the weight value determined for the sub-indicator by the expert who fed back the judgment matrix; According to the judgment matrix that has passed the consistency test and is fed back by all experts, the expert weight value of each expert is determined; For any sub-indicator, the final weight value of the sub-indicator is determined according to the expert weight value of each expert and the initial weight value of the sub-indicator determined by each expert, and the final weight value is used as the weight value of the sub-indicator; Determining the priority score of each indicator by using the priority score model corresponding to each indicator in the hierarchical indicator system includes: Filtering the indicators at all leaf nodes from the hierarchical indicator system to obtain a leaf node indicator set; Execute test cases and obtain the execution results of test cases; In the case where the leaf node indicator set includes a subjective indicator, for the subjective indicator in the indicator set, the sub-requirement of the subjective indicator is determined according to the preset actual requirements, and a judgment matrix for determining the importance value of each sub-requirement is generated according to all the sub-requirements; wherein the order of the judgment matrix is equal to the number of sub-requirements; according to the judgment matrix, the importance value of each sub-requirement is determined by the preset method; according to the execution result and the importance value of each sub-requirement, the priority score of the subjective indicator is determined by the priority scoring model corresponding to the subjective indicator; In the case where the leaf node indicator set includes objective indicators, the priority score of each objective indicator is determined according to the execution result through the priority score model corresponding to each objective indicator in the hierarchical indicator system.
9. A computer-readable storage medium, characterized in that: The computer program stored in the computer-readable storage medium, when executed by one or more processors, implements the test case prioritization method according to any one of claims 1 to 7.
10. An electronic device, characterized in that: The method comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the test case priority sorting method as described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Method and system for optimizing software test case
CN103810104A
Multi-task multi-terminal mobile application testing method and system thereof
CN107783894A
