CN104536896A - Regression test case selecting and ranking method and system oriented to function call path - Google Patents

Regression test case selecting and ranking method and system oriented to function call path Download PDF

Info

Publication number
CN104536896A
CN104536896A CN201510012683.7A CN201510012683A CN104536896A CN 104536896 A CN104536896 A CN 104536896A CN 201510012683 A CN201510012683 A CN 201510012683A CN 104536896 A CN104536896 A CN 104536896A
Authority
CN
China
Prior art keywords
test case
function
regression
regression test
modified
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510012683.7A
Other languages
Chinese (zh)
Inventor
牟永敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Information Science and Technology University
Original Assignee
Beijing Information Science and Technology University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Information Science and Technology University filed Critical Beijing Information Science and Technology University
Priority to CN201510012683.7A priority Critical patent/CN104536896A/en
Publication of CN104536896A publication Critical patent/CN104536896A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a regression test case selecting and ranking method and system oriented to a function call path. The method includes the steps that a correlation function of a modified function is looked up, the function call path where the modified function and the correlation function are located is obtained, and test cases having incidence relations with the modified function and the correlation function are selected according to the function call path and form a regression test case set; the test cases in the regression test case set are evaluated according to priority and ranked, and a ranking result is dynamically adjusted; the test cases are selected from the regression test case set having been subjected to dynamic adjustment, and a final regression test case set is determined. Compared with the prior art, the number of the regression test cases is reduced, workloads of testing personnel is greatly reduced, and testing cost is reduced.

Description

Regression test case towards function call path is selected and sort method and system
Technical field
The present invention relates to software test field, particularly, relate to a kind of regression test case towards function call path and select and sort method and system.
Background technology
In the development phase, in order to repair defect that software exists, improve software function or improve the runnability etc. of software, need update routine code.Regression test, as a kind of important method of software test, runs through whole software cycle, for checking correctness and the integrality of software function, effectively can ensure that the amendment of program code does not have side effects to influenced part and potential influenced part.But show according to relevant statistics, regression test expense generally accounts for more than 80% of software system test budget.In order to reduce regression tested cost, regression test case selection technique and regression test case ordering techniques are more and more applied.
First regression test case selection technique finds out the part changed in program code by static analysis, then select the test case covering all change of program parts.Regression test case ordering techniques sorts to regression test case according to specific ranking criteria, and under the prerequisite of satisfied constraint, regression test case performs from high to low successively according to weight.
But when carrying out regression test, tester is it is most desirable that only test the part of software program code amendment, affected part and potential affected part.Therefore, in order to reduce test case number, reduce regression test workload, the present invention proposes a kind of regression test case towards function call path newly and select and sort method and system.
Summary of the invention
The object of this invention is to provide a kind of regression test case towards function call path to select and sort method and system, for solving in regression test process, because constantly repair the problems such as the test job amount that the defect that exists in software causes is large, testing efficiency is low.
Technical scheme of the present invention comprises: a kind of regression test case towards function call path is selected and sort method, comprise: search the correlation function being modified function, obtain the function call path being modified function and correlation function place, and according to described function call path, select to be modified with described the test case that function and correlation function exist incidence relation, composition regression test case collection; The test case that regression test case is concentrated is carried out priority value and sorted, and dynamic conditioning is carried out to ranking results; And concentrate selection test case from the regression test case after dynamic conditioning, determine final regression test case collection.
Preferably, describedly search the correlation function being modified function, obtain the function call path being modified function and correlation function place specifically to comprise: according to the function call relationship graph of tested function, search and the correlation function being modified function, delete the infeasible paths in function call relationship graph, obtain the function call path being modified function and correlation function place.
Preferably, according to described function call path, select to be modified with described the test case that function and correlation function exist incidence relation, specifically comprise: according to test case and the mapping relations be modified between function and function call path corresponding to correlation function, find out function and call the test case that path exists mapping relations, set up and be modified function and the incidence relation between correlation function and test case, to select to be modified with described the test case that function and correlation function exist incidence relation.
Preferably, the described test case concentrated regression test case carries out priority value and sequence specifically comprises: according to the absolute contribution degree of test case, Flaw detectability and defective effect degree, calculate the priority value of each test case that regression test case is concentrated, then carry out prioritization according to priority value.
Preferably, describedly dynamic conditioning is carried out to ranking results specifically comprise: Test Case Prioritization regression test case concentrated according to priority value, the test case of sequence first is concentrated in the non-implementation of test cases that execution regression test case is concentrated, and the coverage function concentration function that the test case of deleting this sequence first is corresponding, if described coverage function collection non-NULL, then adjust the priority value that all test cases are concentrated in non-implementation of test cases, if described coverage function collection is empty, then according to priority value performs remaining test case successively.
Preferably, describedly determine that final regression test case collection comprises: according to priority value, from first test case, analyze the function call path that each test case exists mapping relations, whether relation of inclusion is there is according between respective function inclusion relation for sets discriminant function path, function call path, remove involved function call path, form final regression test case collection.
Preferably, describedly determine that final regression test case collection comprises: according to priority value, from first test case, until execute the test case of all correlation functions, the test case after deletion, forms final regression test case collection.
Technical scheme of the present invention also comprises a kind of regression test case towards function call path and selects and ordering system, comprise: regression test case selects module, for searching the correlation function being modified function, obtain the function call path being modified function and correlation function place, and according to described function call path, select to be modified with described the test case that function and correlation function exist incidence relation, composition regression test case collection; Regression test case prioritization module, carries out priority value for the test case concentrated regression test case and sorts, and carrying out dynamic conditioning to ranking results; And regression test case determination module, selecting test case for concentrating from the regression test case after dynamic conditioning, determining final regression test case collection.
Preferably, described regression test case selects module, for according to described function call path, select to be modified with described the test case that function and correlation function exist incidence relation, specifically comprise: according to test case and the mapping relations be modified between function and function call path corresponding to correlation function, find out function and call the test case that path exists mapping relations, set up and be modified function and the incidence relation between correlation function and test case, to select to be modified with described the test case that function and correlation function exist incidence relation.
Preferably, described regression test case prioritization module, specifically comprise for carrying out dynamic conditioning to ranking results: Test Case Prioritization regression test case concentrated according to priority value, the test case of sequence first is concentrated in the non-implementation of test cases that execution regression test case is concentrated, and the coverage function concentration function that the test case of deleting this sequence first is corresponding, if described coverage function collection non-NULL, then adjust the priority value that all test cases are concentrated in non-implementation of test cases, if described coverage function collection is empty, then according to priority value performs remaining test case successively.
The invention has the beneficial effects as follows:
1, the present invention only selects and the test case being modified function, influenced function exists incidence relation, obviously can reduce the number of regression test case integrated test use-case.
2, the test case of the present invention to prioritization is determined again, makes function reach minimum to the number of times be performed, significantly can reduce the number of test case.
3, the present invention adopt selection, sequence determine that the module value of the regression test case collection of optimization method is higher than the module value first selecting again prioritization again.
In sum, the present invention compared with prior art, decreases the quantity of regression test case, greatly reduces the workload of tester, and reduces testing cost.
Accompanying drawing explanation
Fig. 1 is that the regression test case towards function call path of the present invention selects the schematic flow sheet with sort method;
Fig. 2 selects the configuration diagram with sort method towards the regression test case in function call path in embodiments of the present invention;
Fig. 3 is the function call relationship graph for illustrating in embodiments of the present invention;
Fig. 4 is the function call relationship graph for Fig. 3, the relation schematic diagram between the function of acquisition and test case;
Fig. 5 is the function call relationship graph in application example of the present invention.
Embodiment
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is described in detail.Should be understood that, embodiment described herein, only for instruction and explanation of the present invention, is not limited to the present invention.
For carrying out clear description to principle of the present invention and feature, now provide the definition of the part term occurred in following embodiment.The definition of these terms, only for explaining the present invention, does not limit protection scope of the present invention.
1, function call path: function call path obtains according to function call relationship graph, be one by the function name sequence of program entry point to exit point, be expressed as path i={ f i0, f i1, f i2f in.Wherein, f ijrepresentative function name, f ijwith f ij+1between neighbouring relations represent f ijhave invoked f ij+1or f ijwith f ij+1order performs.
2, test case sum functions calls the mapping relations between path: in software test, the test case sum functions mapping relations called between path are defined as a binary relation, an i.e. paths path in a given program P and P, t is a test case, input t when if P runs, the postrun path of program is converted into path, then mapping relations (t, path) are set up.
3, test case performs collection of functions: test use cases T={t 1, t 2, t 3t n, collection of functions FS={f 1, f 2, f 3f m, test case t i(t i∈ T) execution collection of functions EF (t i) (EF (t i) ∈ FS) be a function set, wherein comprise implementation of test cases t itime performed function call path path iin all functions.
4, correlation function: there is the function of incidence relation with Modification growth function, the i.e. function that directly calls of Modification growth function and the function that directly calls Modification growth function.
5, function pair: being modified the function number that function and its correlation function form is the function set of 2.
6, absolute contribution degree: in test process, the function number that tested use-case t performs.
7, relative contribution: tested use-case t performs, and not by the function number of other any test cases execution performed.
8, selection-relative contribution: tested use-case t performs, and the function do not performed by other any test cases performed is to number.
9, collection of functions EF_UE is not performed: in regression test process, not by function set that any test case performed.
10, collection of functions EF_E is performed: in regression test process, at least by function set that a test case performed.
As shown in Figure 1, present embodiment gives a kind of regression test case towards function call path and selects and sort method, comprise: search the correlation function being modified function, obtain the function call path being modified function and correlation function place, and according to described function call path, select to be modified with described the test case that function and correlation function exist incidence relation, composition regression test case collection; The test case that regression test case is concentrated is carried out priority value and sorted, and dynamic conditioning is carried out to ranking results; And concentrate selection test case from the regression test case after dynamic conditioning, determine final regression test case collection.
It should be noted that, the arrow shown in Fig. 1 is only illustrated the preferred executive mode of the one of each step not limit the execution sequence of each step.
Accordingly, present embodiment gives a kind of regression test case towards function call path and selects and ordering system, comprise: regression test case selects module, for searching the correlation function being modified function, obtain the function call path being modified function and correlation function place, and according to described function call path, select to be modified with described the test case that function and correlation function exist incidence relation, composition regression test case collection; Regression test case prioritization module, carries out priority value for the test case concentrated regression test case and sorts, and carrying out dynamic conditioning to ranking results; And regression test case determination module, selecting test case for concentrating from the regression test case after dynamic conditioning, determining final regression test case collection.
The regression test case corresponding with ordering system and its should be selected to select with the specific implementation process of sort method towards the regression test case in function call path consistent, and therefore hereafter only introduce described regression test case and select the specific implementation process with ordering system.
According to foregoing, should select mainly to divide three parts to realize with sort method towards the regression test case in function call path, its concrete Organization Chart as shown in Figure 2, is respectively regression test case selection, regression test case prioritization and regression test case and determines.Introduce the specific implementation process of these three parts below.
One, regression test case is selected
1, the association between function
In order to ensure the integrality and the correctness that are modified program, can after certain function be modified, pass through function call relationship graph, determine the fan leaves coefficient and the fan-in ratio of Modification growth function, find out other functions with Modification growth function with incidence relation, so that tester checks whether these functions are subject to the impact of Modification growth function and need to revise accordingly.
Associating 2, between function with test case
The incidence relation set up between function to test case can help tester to find out the test case relevant with correlation function, selects regression test case in this, as reference information, thus simplifies test process.The function call path at correlation function place is the middle bridge of the incidence relation set up between function and test case.The incidence relation step set up between function and test case is as follows:
Step a, searches the correlation function being modified function, obtains all function call path path being modified function and correlation function place k.
Step b, calls the mapping relations between path according to test case sum functions, finds out function and calls path path kthere is the test case of mapping relations;
Step c, sets up and is modified function and the incidence relation between correlation function and test case.
Wherein, describedly search the correlation function being modified function, obtain the method being modified all function call paths at function and correlation function place specifically to comprise: according to the function call relationship graph of tested function, search and the correlation function being modified function, delete the infeasible paths in function call relationship graph, obtain the function call path being modified function and correlation function place.
For the function call relationship graph shown in Fig. 3, if function f 6be modified, then according to Fig. 3, function f 6direct call function f 7, function f 4sum functions f 5direct call function f 6, then function f 6the fan leaves coefficient be 1, fan-in ratio is 2, therefore function f 6directly related function has f 4, f 5and f 7.Function f 4, f 6and f 7at function call path path 1on, f 4, f 5and f 7at function call path path 2on, call the mapping relations between path according to test case function, concentrate from initial test case and select test case t 1, t 2composition regression test case collection { t 1, t 2.Relation between function and test case as shown in Figure 4.
Two, regression test case prioritization
1, priorities of test cases value algorithm
(1) test case absolute contribution degree
Test case absolute contribution degree refers to test case t iexecution collection of functions EF (t i) in function number | EF (t i) |.In regression test process, the test case selecting absolute contribution degree large preferentially performs, can achievement function coverage criteria as early as possible, meets Test coverage demand.Therefore test case absolute contribution degree is applied in the prioritization of test case, makes the large test case of absolute contribution degree have higher priority.Test case t is calculated with formula (1) iabsolute contribution degree to the influence value of its priority
I i PF = M i max { M } - - - ( 1 )
Wherein, M ifor test case t ithe function number performed | EF (t i) |, i.e. test case t iabsolute contribution degree, max{M} is the maximal value that regression test case concentrates absolute contribution degree.
(2) test case Flaw detectability
Test case Flaw detectability refers to, in measuring executing process, and test case t ithe defect number detected.Test case t is calculated with formula (2) iflaw detectability to the influence value of priority
I i PE = E i max { E } - - - ( 2 )
Wherein, E irepresent test case t ithe defect number detected, i.e. test case t iflaw detectability, max{E} is the maximal value of regression test case central hot water supply system detectability.
(3) test case defective effect degree
Test case defective effect degree refers to test case t ithe impact that certain defect detected performs program.Here use because the inexecutable function number of certain defect represents the disturbance degree of this defect.Test case t is calculated with formula (3) idefective effect degree to the influence value of priority
I i PEI = Σ 0 n C j max { C } - - - ( 3 )
Wherein, n represents test case t ithe total number of the defect detected, C jrepresent because test case t ithe inexecutable function number of a jth defect detected, i.e. test case t ithe disturbance degree of the jth defect detected, max{C} represents the maximal value of all defect disturbance degree sum that the test case that regression test case is concentrated detects.
(4) priorities of test cases value
Integration test use-case absolute contribution degree, test case Flaw detectability and test case defective effect degree, test case t ipriority value I ican be calculated by formula (4):
I i = ω 1 · I i PE + ω 2 · I i PE + ω 3 · I i PEI - - - ( 4 )
Wherein, represent test case t iabsolute contribution degree to the influence value of priority, represent test case t iflaw detectability to the influence value of priority, represent test case t idefective effect degree to the influence value of priority.ω 1, ω 2and ω 3be respectively with corresponding weight, and ω 1+ ω 2+ ω 3=1.In actual items, can according to project demands situation, adjustment ω 1, ω 2and ω 3value.
2, priorities of test cases dynamic adjustment algorithm
Along with regression tested is carried out, tested function constantly to perform by tested use-case, therefore, the collection of functions in regression test be divided into two parts, be defined as follows:
Collection of functions EF_UE and EF_E will constantly can change along with the execution of test, the test case t be not performed accordingly irelative contribution also can adjust to some extent.Here only test case t is considered jthe function in collection of functions EF_UE can be performed as much as possible, test case can be made to execute all functions relevant to this regression test quickly.The dynamic adjusting method of present embodiment is: in the process of test, according to the change of EF_UE and EF_E, calculates the relative contribution of test case, the priority value of adjustment test case.The test case relative contribution optimized is to the influence value of its priority calculate according to formula (5):
I i PFU = M i U max { M } - - - ( 5 )
Wherein, for | EF (t i) ∩ EF_UE|, i.e. test case t irelative contribution.
The arthmetic statement of dynamic conditioning is as follows:
Input: T_Ch: the regression test case collection after selection
FS: the collection of functions relevant to this regression test
Export: the regression test case collection T_ChSor after prioritization
Variable: EF_UE: do not perform collection of functions
TC_UE: non-implementation of test cases collection
For above-mentioned algorithm realization, first select the test case t that non-implementation of test cases collection TC_UE medium priority value is maximum 1, and test case t is deleted in TC_UE 1, do not performing EF_UE deletion test case t in collection of functions 1coverage function collection EF (t 1) in function.If do not perform collection of functions EF_UE non-NULL, judge residue test case t jeF (t j) whether be empty with the common factor of EF_UE, the priority value of each test case of dynamic conditioning; If EF_UE is empty, then illustrate that all functions relevant to this regression test are to being all at least performed once, now EF_UE can not change again, then the value of priorities of test cases also can not change again, and therefore according to priority value performs remaining test case successively.Repeat above process, until TC_UE is empty.
Three, regression test case is determined
For final prioritization result, the determination of regression test case collection, has two kinds of methods:
Method 1: from first test case, analyze the function call path that there are mapping relations with each test case, whether relation of inclusion is there is according between respective function inclusion relation for sets discriminant function path, function call path, remove involved function call path, form final regression test case collection.
Method 2: from first test case, until execute the test case of all correlation functions, the test case after deletion, forms final regression test case collection.
In order to reduce the number of regression test case integrated test use-case further, needing to make the function be associated with Modification growth function be performed number of times and reaching minimum.The test case that the regression test case that calculating manner of execution 1, method 2 are determined respectively is concentrated, number of times p, q that function is performed, p >=q.Therefore, preferred employing method 2 determines final regression test case collection.
In addition, function call relationship graph according to Fig. 3, the regression test case collection obtained after the relevance of the function be modified in program and other functions is analyzed, the same function of function call path meeting multi-fold that wherein test case is corresponding, but, for the function revised in program, only need test the function be modified and the function affected by it, therefore can delete the test case of the function covered in regression test without impact, namely selection-relative contribution is the test case of 0, makes the least number of times that function performs tested use-case.
For final priorities of test cases ranking results T_ChSor={t o1, t o2t on, from first test case t o1start, deleting selection-relative contribution is the test case of 0, then test case set { t oc1, t oc2t oci(wherein, i<n) form final regression test case collection.
Illustrate by the regression test case selection of system converse routine demonstration towards function call path and the computation process of sort method with an application example below.Wherein, the value of the StackSize in program is set to 10; In program test process, that find existing defects is function Push ().
The first step, analyzes the code of system converse routine, draws function call relationship graph, as shown in Figure 5.
Second step, according to Fig. 5, finds the correlation function of function Push (), deletes redundant path, obtains 2 function call paths, and lists all functions pair that 2 paths comprise, as shown in table 1.
Table 1
3rd step, selects function to call the test case that path exists mapping relations, calculates the priority value of each test case, carry out prioritization to the test case selected, as shown in table 2.(wherein, get ω 123=1/3)
Table 2
4th step, implementation of test cases, and in test process, according to the priority orders of feedback information dynamic conditioning test case.In system converse routine, test case t 2priority value higher than test case t 1, so the execution sequence of test case is t 2, t 1.
5th step, selects test case again, determines final regression test case collection.In test process, test case t 2after execution, correlation function Initial () and the IsFull () of function Push () are performed, and function to (Initial, Push) and (Push, IsFull) all at test case t 2on the function call path mapped, according to the regression test case collection defining method in paper, test case t 1selection-relative contribution be 0, then final regression test case collection is { t 2.
In sum, present embodiment passes through the incidence relation of analysis of modified function and other functions, and with function to being performed least number of times for principle, the method is only tested revising affected code section because of system, compared with the prior art, further reduce the quantity of regression test case, greatly reduce the workload of tester, and reduce testing cost.
Below the preferred embodiment of the present invention is described in detail by reference to the accompanying drawings; but; the present invention is not limited to the detail in above-mentioned embodiment; within the scope of technical conceive of the present invention; can carry out multiple simple variant to technical scheme of the present invention, these simple variant all belong to protection scope of the present invention.
It should be noted that in addition, each the concrete technical characteristic described in above-mentioned embodiment, in reconcilable situation, can be combined by any suitable mode.In order to avoid unnecessary repetition, the present invention illustrates no longer separately to various possible array mode.
In addition, also can carry out combination in any between various different embodiment of the present invention, as long as it is without prejudice to thought of the present invention, it should be considered as content disclosed in this invention equally.

Claims (10)

1. the regression test case towards function call path is selected and a sort method, it is characterized in that, comprising:
Search the correlation function being modified function, obtain the function call path being modified function and correlation function place, and according to described function call path, select to be modified with described the test case that function and correlation function exist incidence relation, composition regression test case collection;
The test case that regression test case is concentrated is carried out priority value and sorted, and dynamic conditioning is carried out to ranking results; And
Concentrate from the regression test case after dynamic conditioning and select test case, determine final regression test case collection.
2. regression test case according to claim 1 is selected and sort method, it is characterized in that, describedly search the correlation function being modified function, obtain the function call path being modified function and correlation function place specifically to comprise: according to the function call relationship graph of tested function, search and the correlation function being modified function, delete the infeasible paths in function call relationship graph, obtain the function call path being modified function and correlation function place.
3. regression test case according to claim 1 is selected and sort method, it is characterized in that, according to described function call path, select to be modified with described the test case that function and correlation function exist incidence relation, specifically comprise: according to test case and the mapping relations be modified between function and function call path corresponding to correlation function, find out function and call the test case that path exists mapping relations, set up and be modified function and the incidence relation between correlation function and test case, to select to be modified with described the test case that function and correlation function exist incidence relation.
4. regression test case according to claim 1 is selected and sort method, it is characterized in that, the described test case concentrated regression test case carries out priority value and sequence specifically comprises: according to the absolute contribution degree of test case, Flaw detectability and defective effect degree, calculate the priority value of each test case that regression test case is concentrated, then carry out prioritization according to priority value.
5. regression test case according to claim 1 is selected and sort method, it is characterized in that, describedly dynamic conditioning is carried out to ranking results specifically comprise: Test Case Prioritization regression test case concentrated according to priority value, the test case of sequence first is concentrated in the non-implementation of test cases that execution regression test case is concentrated, and the coverage function concentration function that the test case of deleting this sequence first is corresponding, if described coverage function collection non-NULL, then adjust the priority value that all test cases are concentrated in non-implementation of test cases, if described coverage function collection is empty, then according to priority value performs remaining test case successively.
6. regression test case according to claim 1 is selected and sort method, it is characterized in that, describedly determine that final regression test case collection comprises: according to priority value, from first test case, analyze the function call path that each test case exists mapping relations, whether there is relation of inclusion according between respective function inclusion relation for sets discriminant function path, function call path, remove involved function call path, form final regression test case collection.
7. regression test case according to claim 1 is selected and sort method, it is characterized in that, describedly determine that final regression test case collection comprises: according to priority value, from first test case, until execute the test case of all correlation functions, test case after deletion, forms final regression test case collection.
8. the regression test case towards function call path is selected and an ordering system, it is characterized in that, comprising:
Regression test case selects module, for searching the correlation function being modified function, obtain the function call path being modified function and correlation function place, and according to described function call path, select to be modified with described the test case that function and correlation function exist incidence relation, composition regression test case collection;
Regression test case prioritization module, carries out priority value for the test case concentrated regression test case and sorts, and carrying out dynamic conditioning to ranking results; And
Regression test case determination module, selecting test case for concentrating from the regression test case after dynamic conditioning, determining final regression test case collection.
9. regression test case according to claim 8 is selected and ordering system, it is characterized in that, described regression test case selects module, for according to described function call path, select to be modified with described the test case that function and correlation function exist incidence relation, specifically comprise: according to test case and the mapping relations be modified between function and function call path corresponding to correlation function, find out function and call the test case that path exists mapping relations, set up and be modified function and the incidence relation between correlation function and test case, to select to be modified with described the test case that function and correlation function exist incidence relation.
10. regression test case according to claim 8 is selected and ordering system, it is characterized in that, described regression test case prioritization module, specifically comprise for carrying out dynamic conditioning to ranking results: Test Case Prioritization regression test case concentrated according to priority value, the test case of sequence first is concentrated in the non-implementation of test cases that execution regression test case is concentrated, and the coverage function concentration function that the test case of deleting this sequence first is corresponding, if described coverage function collection non-NULL, then adjust the priority value that all test cases are concentrated in non-implementation of test cases, if described coverage function collection is empty, then according to priority value performs remaining test case successively.
CN201510012683.7A 2015-01-12 2015-01-12 Regression test case selecting and ranking method and system oriented to function call path Pending CN104536896A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510012683.7A CN104536896A (en) 2015-01-12 2015-01-12 Regression test case selecting and ranking method and system oriented to function call path

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510012683.7A CN104536896A (en) 2015-01-12 2015-01-12 Regression test case selecting and ranking method and system oriented to function call path

Publications (1)

Publication Number Publication Date
CN104536896A true CN104536896A (en) 2015-04-22

Family

ID=52852426

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510012683.7A Pending CN104536896A (en) 2015-01-12 2015-01-12 Regression test case selecting and ranking method and system oriented to function call path

Country Status (1)

Country Link
CN (1) CN104536896A (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105117335A (en) * 2015-08-26 2015-12-02 卡斯柯信号有限公司 Method for automated verification and regression test of software unit
CN105808438A (en) * 2016-03-11 2016-07-27 北京信息科技大学 Test case reuse method based on function call path
CN106227658A (en) * 2016-07-15 2016-12-14 珠海市魅族科技有限公司 The management method of a kind of test case, system and device
CN106776348A (en) * 2017-02-06 2017-05-31 腾讯科技(深圳)有限公司 Testing case management and device
CN107992424A (en) * 2017-12-15 2018-05-04 平安科技(深圳)有限公司 Automatic test analysis method, application server and computer-readable recording medium
CN108009083A (en) * 2017-11-28 2018-05-08 武汉斗鱼网络科技有限公司 Functional information acquisition methods and device in a kind of Software function test
CN108287785A (en) * 2017-01-09 2018-07-17 富士通株式会社 Test case sort method and equipment
CN108536600A (en) * 2018-04-12 2018-09-14 平安普惠企业管理有限公司 Regression testing method, unit and computer readable storage medium
CN108694123A (en) * 2018-05-14 2018-10-23 中国平安人寿保险股份有限公司 A kind of regression testing method, computer readable storage medium and terminal device
CN110109816A (en) * 2018-02-01 2019-08-09 华为技术有限公司 Test cases selection method and apparatus
CN110825621A (en) * 2019-10-16 2020-02-21 四川大学 Regression test case priority calculation method based on dynamic risk
CN111367820A (en) * 2020-04-30 2020-07-03 中国银行股份有限公司 Test case sorting method and device
CN112463636A (en) * 2020-12-11 2021-03-09 苏州浪潮智能科技有限公司 Test case sequencing management method and system
CN113672494A (en) * 2020-05-13 2021-11-19 美商新思科技有限公司 Intelligent regression test selection for software development
CN113886250A (en) * 2021-09-30 2022-01-04 四川大学 Drawing method of function call dynamic thermodynamic diagram

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103049377A (en) * 2012-12-14 2013-04-17 中国信息安全测评中心 Parallel symbolic execution method based on path cluster reductions
CN103593291A (en) * 2013-11-18 2014-02-19 北京邮电大学 Method and device applied to unit testing including multiple function testing modules
CN103678097A (en) * 2012-09-05 2014-03-26 百度在线网络技术(北京)有限公司 Method and device for selecting regression test case
US8806450B1 (en) * 2008-06-26 2014-08-12 Juniper Networks, Inc. Static analysis in selective software regression testing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8806450B1 (en) * 2008-06-26 2014-08-12 Juniper Networks, Inc. Static analysis in selective software regression testing
CN103678097A (en) * 2012-09-05 2014-03-26 百度在线网络技术(北京)有限公司 Method and device for selecting regression test case
CN103049377A (en) * 2012-12-14 2013-04-17 中国信息安全测评中心 Parallel symbolic execution method based on path cluster reductions
CN103593291A (en) * 2013-11-18 2014-02-19 北京邮电大学 Method and device applied to unit testing including multiple function testing modules

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
杨广华等: "基于需求的测试用例优先级排序", 《计算机工程与设计》 *
牟永敏: "基于函数调用路径的测试用例优先级排序", 《计算机工程》 *

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105117335B (en) * 2015-08-26 2017-11-10 卡斯柯信号有限公司 A kind of automatic Verification and regression testing method for software unit
CN105117335A (en) * 2015-08-26 2015-12-02 卡斯柯信号有限公司 Method for automated verification and regression test of software unit
CN105808438A (en) * 2016-03-11 2016-07-27 北京信息科技大学 Test case reuse method based on function call path
CN105808438B (en) * 2016-03-11 2018-07-10 北京信息科技大学 A kind of Reuse of Test Cases method based on function call path
CN106227658A (en) * 2016-07-15 2016-12-14 珠海市魅族科技有限公司 The management method of a kind of test case, system and device
CN108287785A (en) * 2017-01-09 2018-07-17 富士通株式会社 Test case sort method and equipment
CN106776348A (en) * 2017-02-06 2017-05-31 腾讯科技(深圳)有限公司 Testing case management and device
CN106776348B (en) * 2017-02-06 2022-09-09 腾讯科技(深圳)有限公司 Test case management method and device
CN108009083A (en) * 2017-11-28 2018-05-08 武汉斗鱼网络科技有限公司 Functional information acquisition methods and device in a kind of Software function test
CN107992424A (en) * 2017-12-15 2018-05-04 平安科技(深圳)有限公司 Automatic test analysis method, application server and computer-readable recording medium
WO2019114209A1 (en) * 2017-12-15 2019-06-20 平安科技(深圳)有限公司 Automatic testing and analysis method, automatic testing and analysis system, application server and computer-readable storage medium
CN110109816A (en) * 2018-02-01 2019-08-09 华为技术有限公司 Test cases selection method and apparatus
CN108536600A (en) * 2018-04-12 2018-09-14 平安普惠企业管理有限公司 Regression testing method, unit and computer readable storage medium
CN108694123A (en) * 2018-05-14 2018-10-23 中国平安人寿保险股份有限公司 A kind of regression testing method, computer readable storage medium and terminal device
CN110825621A (en) * 2019-10-16 2020-02-21 四川大学 Regression test case priority calculation method based on dynamic risk
CN111367820A (en) * 2020-04-30 2020-07-03 中国银行股份有限公司 Test case sorting method and device
CN111367820B (en) * 2020-04-30 2023-04-25 中国银行股份有限公司 Sequencing method and device for test cases
CN113672494A (en) * 2020-05-13 2021-11-19 美商新思科技有限公司 Intelligent regression test selection for software development
CN112463636A (en) * 2020-12-11 2021-03-09 苏州浪潮智能科技有限公司 Test case sequencing management method and system
CN112463636B (en) * 2020-12-11 2023-01-06 苏州浪潮智能科技有限公司 Test case sequencing management method and system
CN113886250A (en) * 2021-09-30 2022-01-04 四川大学 Drawing method of function call dynamic thermodynamic diagram
CN113886250B (en) * 2021-09-30 2023-04-11 四川大学 Drawing method of function call dynamic thermodynamic diagram

Similar Documents

Publication Publication Date Title
CN104536896A (en) Regression test case selecting and ranking method and system oriented to function call path
Kahouli et al. Do energy consumption, urbanization, and industrialization play a role in environmental degradation in the case of Saudi Arabia?
Gill et al. A test of environmental Kuznets curve (EKC) for carbon emission and potential of renewable energy to reduce green house gases (GHG) in Malaysia
Carfora et al. The causal relationship between energy consumption, energy prices and economic growth in Asian developing countries: A replication
Destek Renewable energy consumption and economic growth in newly industrialized countries: Evidence from asymmetric causality test
CN102880545A (en) Method for dynamically adjusting priority sequence of test cases
CN103123607B (en) Software regression testing method based on formal conceptual analysis
Attari et al. Carbon emissions and industrial growth: an ARDL analysis for Pakistan
CN103257921B (en) Improved random forest algorithm based system and method for software fault prediction
CN105808438B (en) A kind of Reuse of Test Cases method based on function call path
CN104376413A (en) Power grid planning scheme evaluation system based on analytic hierarchy process and data envelopment analysis
CN102708053B (en) The method that the context environmental influence of function call is determined in Program path
Liu et al. Exploring the dynamic relationship between energy efficiency, trade, economic growth, and CO2 emissions: Evidence from novel fourier ARDL approach
Xu et al. A decision tree-based on-line preventive control strategy for power system transient instability prevention
CN104536881A (en) Public testing error report priority sorting method based on natural language analysis
CN103823939A (en) Virtual maintenance-based quantitative evaluation method for maintenance safety qualitative factors
CN105701013A (en) Software defect data feature selection method based on mutual information
Zhang et al. Evaluation of the triangle-relationship of industrial pollution, foreign direct investment, and economic growth in China’s transformation
Koengkan The positive influence of urbanization on energy consumption in Latin American countries: an approach with ARDL and NARDL modeling
Hou et al. Load modeling practice in a smart grid environment
Ling et al. Business process model alignment: An approach to support fast discovering complex matches
CN104050082A (en) Test data automatic generation method oriented toward modified condition/decision coverage
Fallahzadeh et al. Accelerating Continuous Integration with Parallel Batch Testing
Şanlı et al. Do economic complexity and macroeconomic stability asymmetrically affect carbon emissions in OECD? Evidence from nonlinear panel ARDL approach
CN106203853A (en) A kind of power marketing inspection sampling proportion determines method and system

Legal Events

Date Code Title Description
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150422