CN108287785A - Test case sort method and equipment - Google Patents
Test case sort method and equipment Download PDFInfo
- Publication number
- CN108287785A CN108287785A CN201710014879.9A CN201710014879A CN108287785A CN 108287785 A CN108287785 A CN 108287785A CN 201710014879 A CN201710014879 A CN 201710014879A CN 108287785 A CN108287785 A CN 108287785A
- Authority
- CN
- China
- Prior art keywords
- api
- test case
- score
- source code
- app
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a kind of test case sort method and equipment.The test case sort method is used to carry out priority ranking to multiple test cases of the APP based on API, and this method includes:For each test case in the multiple test case, the API set that the test case calls is determined;According at least one of the frequency of use score of each API in the complexity score of each API in API set, API set, the coupling score of the test case, the API quantity scores of the test case, calculate the evaluation score of the test case, wherein, the coupling score of the test case reflects the coupling tightness degree between the API of test case calling;And the evaluation score according to the multiple test case, priority ranking is carried out to the multiple test case.
Description
Technical field
This invention relates generally to technical field of information processing.Specifically, the present invention relates to one kind to answer movement
The method and apparatus for carrying out priority ranking with the test case of APP.
Background technology
With popularizing for smart machine, mobile application APP obtains great development.However, since there are different shiftings
Moving platform, for example, Android, iOS etc., so the developer of APP is necessary for each App and develops a version on every platform,
This needs to expend many resources and time.For this purpose, people create some cross-platform mobile application Development Frameworks, such as
Cordova only develops an APP to realize, the cross-platform App exploitations that APP can be run on different mobile platforms.
However, there are the following problems for these cross-platform mobile application Development Frameworks:It ensures that in version before
Frame on the App that runs remain able to normal operation on the frame of new version, need the test for carrying out regression.Traditional
Test method needs all re-execute the test case created for the frame of previous release one time on the frame of new version,
And the function of capableing of normal operation before whether edition upgrading destroys checked.Obviously, such test needs very more money
It is source and time, often infeasible in practice.
To solve the above-mentioned problems, priority ranking can be carried out to test case.Traditional test case based on whitepack is excellent
First grade sort method is ranked up according to the coverage rate of source code, such as row coverage rate, branch covering rate, method coverage rate.
However, traditional test case prioritization method based on whitepack cannot be guaranteed that the API that Mobile Development frame provides can be just
Really work, therefore it is not suitable for mobile application Development Framework.
Therefore, the present invention is directed to propose a kind of method that multiple test cases to the APP based on API carry out priority ranking
And equipment, it can be in the case where the API for ensureing that Mobile Development frame provides can correctly work reasonably effectively to moving
The test case of dynamic Development Framework carries out priority ranking.
Invention content
The brief overview about the present invention is given below, in order to provide about the basic of certain aspects of the invention
Understand.It should be appreciated that this general introduction is not the exhaustive general introduction about the present invention.It is not intended to determine the pass of the present invention
Key or pith, nor is it intended to limit the scope of the present invention.Its purpose only provides certain concepts in simplified form,
In this, as the preamble in greater detail discussed later.
The purpose of the present invention is to propose to it is a kind of can be reasonably effective to the test case of Mobile Development frame into row major
The method and apparatus of grade sequence.
To achieve the goals above, according to an aspect of the invention, there is provided it is a kind of for the APP's based on API
The method that multiple test cases carry out priority ranking.This method includes:For each test case in the multiple test case, really
The API set that the fixed test case calls;According to each API in the complexity score of each API in API set, API set
Frequency of use score, the coupling score of the test case, at least one of API quantity scores of the test case, calculate the survey
Try the evaluation score of example, wherein the coupling score of the test case reflects the close journey of coupling between the API of test case calling
Degree;And the evaluation score according to the multiple test case, priority ranking is carried out to the multiple test case.
According to another aspect of the present invention, it provides a kind of excellent for multiple test cases progress to the APP based on API
The equipment of first grade sequence.The equipment includes:Gather determining device, is configured as:For each survey in the multiple test case
Example is tried, determines the API set that the test case calls;Score computing device, is configured as:According to each API's in API set
The API of the frequency of use score of each API in complexity score, API set, the coupling score of the test case, the test case
At least one of quantity score calculates the evaluation score of the test case, wherein the coupling score of the test case reflects the survey
Try the coupling tightness degree between the API that example is called;And priority ranking device, it is configured as:According to the multiple test
The evaluation score of example carries out priority ranking to the multiple test case.
In addition, according to another aspect of the present invention, additionally providing a kind of storage medium.The storage medium includes that machine can
The program code of reading, when executing said program code on information processing equipment, said program code makes at described information
It manages equipment and executes the above method according to the present invention.
In addition, in accordance with a further aspect of the present invention, additionally providing a kind of program product.Described program product includes that machine can
The instruction of execution, when executing described instruction on information processing equipment, described instruction makes described information processing equipment execute
The above method according to the present invention.
Description of the drawings
With reference to the explanation of the embodiment of the present invention, can be more readily understood that below in conjunction with the accompanying drawings the above of the present invention and
Other objects, features and advantages.Component in attached drawing is intended merely to show the principle of the present invention.In the accompanying drawings, identical or class
As technical characteristic or component will be indicated using same or similar reference numeral.In attached drawing:
Fig. 1 shows the flow chart of prioritization method according to an embodiment of the invention;
Fig. 2 shows illustrative API couplings to scheme;
Fig. 3 shows the block diagram of priority ranking equipment according to an embodiment of the invention;
Fig. 4 shows the schematic frame for the computer that can be used for implementing method and apparatus according to an embodiment of the invention
Figure.
Specific implementation mode
The exemplary embodiment of the present invention is described in detail hereinafter in connection with attached drawing.It rises for clarity and conciseness
See, does not describe all features of actual implementation mode in the description.It should be understood, however, that developing any this reality
Much decisions specific to embodiment must be made during embodiment, to realize the objectives of developer,
For example, meet restrictive condition those of related to system and business, and these restrictive conditions may be with embodiment
It is different and change.In addition, it will also be appreciated that although development is likely to be extremely complex and time-consuming, to benefiting
For those skilled in the art of present disclosure, this development is only routine task.
Herein, it is also necessary to which explanation is a bit, in order to avoid having obscured the present invention because of unnecessary details, in the accompanying drawings
The apparatus structure closely related with scheme according to the present invention and/or processing step are illustrate only, and is omitted and the present invention
The little other details of relationship.In addition, it may also be noted that described in the attached drawing of the present invention or a kind of embodiment
Elements and features can be combined with elements and features shown in one or more other attached drawings or embodiment.
The basic thought of the present invention is to consider relationship between API complexities, API frequency of use and API, API
Quantity come to test case carry out priority ranking.
Below with reference to Fig. 1 describe it is according to an embodiment of the invention for multiple test cases of the APP based on API into
The flow of the method for row major grade sequence.
Fig. 1 shows the flow chart of prioritization method according to an embodiment of the invention.As shown in Figure 1, this is preferential
Grade sort method includes the following steps:For each test case in the multiple test case, the API that the test case calls is determined
Gather (step S1);According to the frequency of use of each API in the complexity score of each API in API set, API set
At least one of score, the coupling score of the test case, API quantity scores of the test case, calculate the evaluation of the test case
Score, wherein the coupling score of the test case reflects the coupling tightness degree (step between the API of test case calling
S2);And the evaluation score according to the multiple test case, priority ranking (step S3) is carried out to the multiple test case.
In step sl, for each test case in the multiple test case, the API set that the test case calls is determined
It closes.
Specifically, the test case can be run, the API set that all API called with the determining test case are constituted.
The source code of the test case and the source code of APP can be analyzed, the code snippet that the tested example to position App is triggered, and
The API Calls to Mobile Development frame covered in the code snippet are obtained, to determine API set.
In step s 2, made according to each API in the complexity score of each API in API set, API set
With at least one of frequency score, the coupling score of the test case, the API quantity scores of the test case, the test case is calculated
Evaluation score.
Complicated API is relative to simple API, it is easier to introduce loophole (bug).Therefore, it considers involved by test case
The complexity score of API, to calculate the evaluation score of test case.
Specifically, the complexity score of API embodies the API in all API, needed for number of parameters and/or calling
Amount of source code in terms of distribution, according to the number of parameters of API and/or call API needed for amount of source code calculate.Wherein,
It includes calling the line number of the source code needed for API to call the amount of source code needed for API.
Assuming that the number for the parameter that API has is np, to call the API to need the line number of source code write be nl.
The complexity score A C of API can be calculated by following formula (1).
AC=wnormalized (np)+(1-w) normalized (nl) (1)
Wherein, normalized () indicates normalized function, and w is weighting coefficient.
According to the different distributions of np and nl, different normalized functions may be used.For example, if np or nl obeys mark
Quasi normal distribution then may be used Z-score (Z score model) to be normalized, normalized function represented following
In the formula (2) of normalized (), μ is the mean value of all samples, and σ is the standard deviation of all samples, x*For dependent variable, x is
Independent variable.
x*=(x- μ)/σ (2)
If np or nl obediences are uniformly distributed, minimum value-maximum value normalized function may be used, return in following representatives
One changes in the formula (3) of function normalized (), and min represents the minimum value of all samples, and max represents all samples most
Big value, x*For dependent variable, x is independent variable.
x*=(x-min)/(max-min) (3)
It stores the number of parameters of each API in API statistical information datas library, called needed for each API in all App
Source code line number and the numbers that are called in the source code of all APP of each API.Each calling of API API
The line number nl for the source code write is needed to be equal to the average value for the line number for calling the source code needed for the API in all App.
Whenever APP change or update when, APP call API number of parameters, call API needed for amount of source code, API
The number being called in the source code of APP is also updated.
The frequency of use score of API exists according to the API numbers and all API being called in the source code of all APP
The sum being called in the source code of all APP calculates.The API that the API ratios being commonly used are not frequently used is easier to meet with
bug。
As described above, being stored with what each API was called in the source code of all APP in API statistical information datas library
Number.When being changed APP or is updated, which can also update.
The frequency of use score A F of API can for example be calculated by following formula (4).
AF=(invoke_times (API))/(invoke_times (all APIs)) (4)
Wherein, invoke_times () indicates the call number retrieved from API statistical information datas library, API table
The API of its frequency of use score will be calculated by showing, allAPIs indicates all API.
It should be noted that the complexity score of API and the frequency of use score of API and are described below both for the score of API
Test case coupling score and test case quantity score both for test case score.Due to the complexity score of API
It is that the API being directed in the API set that test case calls is calculated with frequency of use score, so complexity score and frequency of use
Score finally also embodies the information of test case.
The coupling score of test case reflects the coupling tightness degree between the API of test case calling.The coupling of test case
Closing score can calculate according to the sum of the input/output relation between the API in API set, the API in API set.
If in the source code for the App that the test case is called, there are direct input/output relations by two API, then
There is coupled relations by the two API.Fig. 2 shows illustrative API couplings to scheme.In fig. 2, each node is an API
It calls, if two API, there is coupled relation, there are sides between the two nodes.For following API Calls set,
Fig. 2 shows the coupled relation between API.
A=API_invoke1 ();
B=API_invoke2 (a);
C=API_invoke3 ();
D=API_invoke4 (b);
Wherein, a, b, c, d indicate the input and output of API Calls.API_invoke1、API_invoke2、API_
Invoke3, API_invoke4 indicate API Calls.
The coupling score A CD of test case can be calculated by following formula (5).
In formula (5), molecule number_of_edges is the number on side in coupling figure, and N is that test case is called
The sum of API.For example, it is assumed that N is equal to 4, and the number on the side in Fig. 2 is 2, then the ACD being calculated according to formula (5) is equal to
1/3。
ACD=(number_of_edges)/(N (N-1)/2) (5)
The sum for the API that the API quantity score of test case is called according to total, all test case of the API in API set
It calculates.
Specifically, the API quantity scores of test case are equal to the sum and all test cases calling of the API in API set
The quotient of the sum of API.
The evaluation score A PI_coverage_score of test case is equal to the complexity score of each API in API set
ACi, each API in API set frequency of use score A Fi, the coupling score A CD of the test case, the test case API numbers
The weighted sum of point n/N is measured, such as shown in following formula (6).
Wherein, N is the sum for the API that all test cases call, and n is the sum of the API in API set, w1、w2、w3It is to add
Weight coefficient.
In step s3, according to the evaluation score of the multiple test case, priority row is carried out to the multiple test case
Sequence.
The evaluation score of test case is higher, and ranking is more forward.Test case in the top can be tested preferentially.Also it can incite somebody to action
The test case of the most preceding predetermined number of ranking is selected, and abandons other test cases.
Priority ranking equipment according to an embodiment of the invention is described next, with reference to Fig. 3.
Fig. 3 shows the block diagram of priority ranking equipment according to an embodiment of the invention.As shown in figure 3, root
Include according to priority ranking equipment 300 of the invention:Gather determining device 31, is configured as:For in the multiple test case
Each test case, determine the test case call API set;Score computing device 32, is configured as:According in API set
The complexity score of each API, the frequency of use score of each API in API set, the coupling score of the test case, should
At least one of API quantity scores of test case calculate the evaluation score of the test case, wherein the test case couples
Divide the coupling tightness degree between the API for reflecting test case calling;And priority ranking device 33, it is configured as:Root
According to the evaluation score of the multiple test case, priority ranking is carried out to the multiple test case.
In one embodiment, set determining device 31 is further configured to:The test case is run, to determine API set
It closes.
In one embodiment, set determining device 31 is further configured to:Analyze the test case and the source generation of APP
Code, to determine API set.
In one embodiment, score computing device 32 is further configured to:According to the number of parameters and/or tune of API
The complexity score of API is calculated with the amount of source code needed for API.
In one embodiment, it includes calling the line number of the source code needed for API to call the amount of source code needed for API.
In one embodiment, the complexity score of API embodies the API in all API, in number of parameters and/or
The distribution in terms of amount of source code needed for calling.
In one embodiment, score computing device 32 is further configured to the source code in all APP according to the API
In be called number and all API in the source code of all APP be called sum calculate API frequency of use score.
In one embodiment, score computing device 32 is further configured to according to defeated between the API in API set
The sum for entering the API in output relation, API set calculates the coupling score of the test case.
In one embodiment, score computing device 32 be further configured to the sum according to the API in API set,
The sum for the API that all test cases call calculates the API quantity scores of the test case.
In one embodiment, when APP is changed or is updated, the number of parameters for the API that APP is called is called needed for API
The number that amount of source code, API are called in the source code of APP is also updated.
Due to the processing point in each device and unit included in priority ranking equipment 300 according to the present invention
It is not similar with the processing in each step included in prioritization method described above, therefore for simplicity,
The detailed description of these devices and unit is omitted herein.
In addition, it is still necessary to, it is noted that each component devices, unit can be by softwares, firmware, hard in above equipment here
The mode of part or combinations thereof is configured.The workable specific means of configuration or mode are well known to those skilled in the art,
This is repeated no more.By software or firmware realization, from storage medium or network to specialized hardware structure
Computer (such as all-purpose computer 400 shown in Fig. 4) installation constitutes the program of the software, which is being equipped with various journeys
When sequence, it is able to carry out various functions etc..
Fig. 4 shows the schematic frame for the computer that can be used for implementing method and apparatus according to an embodiment of the invention
Figure.
In Fig. 4, central processing unit (CPU) 401 is according to the program stored in read-only memory (ROM) 402 or from depositing
The program that storage part 408 is loaded into random access memory (RAM) 403 executes various processing.In RAM 403, also according to need
Store the data required when CPU 401 executes various processing etc..CPU 401, ROM 402 and RAM 403 are via bus
404 are connected to each other.Input/output interface 405 is also connected to bus 404.
Components described below is connected to input/output interface 405:Importation 406 (including keyboard, mouse etc.), output section
Divide 407 (including display, such as cathode-ray tube (CRT), liquid crystal display (LCD) etc. and loud speakers etc.), storage section
408 (including hard disks etc.), communications portion 409 (including network interface card such as LAN card, modem etc.).Communications portion 409
Communication process is executed via network such as internet.As needed, driver 410 can be connected to input/output interface 405.
Detachable media 411 such as disk, CD, magneto-optic disk, semiconductor memory etc. can be installed in driver as needed
On 410 so that the computer program read out is mounted to as needed in storage section 408.
It is such as removable from network such as internet or storage medium in the case of series of processes above-mentioned by software realization
Unload the program that the installation of medium 411 constitutes software.
It will be understood by those of skill in the art that this storage medium be not limited to it is shown in Fig. 4 wherein have program stored therein,
Separately distribute with equipment to provide a user the detachable media 411 of program.The example of detachable media 411 includes disk
(including floppy disk (registered trademark)), CD (comprising compact disc read-only memory (CD-ROM) and digital versatile disc (DVD)), magneto-optic disk
(including mini-disk (MD) (registered trademark)) and semiconductor memory.Alternatively, storage medium can be ROM 402, storage section
Hard disk for including in 408 etc., wherein computer program stored, and user is distributed to together with the equipment comprising them.
The present invention also proposes a kind of program product for the instruction code being stored with machine-readable.Described instruction code is by machine
When device reads and executes, above-mentioned method according to an embodiment of the invention can perform.
Correspondingly, the storage medium of the program product for carrying the above-mentioned instruction code for being stored with machine-readable also wraps
It includes in disclosure of the invention.The storage medium includes but not limited to floppy disk, CD, magneto-optic disk, storage card, memory stick etc.
Deng.
In the feature above in the description of the specific embodiment of the invention, describing and/or showing for a kind of embodiment
It can be used in one or more other embodiments in a manner of same or similar, with the feature in other embodiment
It is combined, or substitute the feature in other embodiment.
It should be emphasized that term "comprises/comprising" refers to the presence of feature, element, step or component when being used herein, but simultaneously
It is not excluded for the presence or additional of one or more other features, element, step or component.
In addition, the method for the present invention be not limited to specifications described in time sequencing execute, can also according to it
His time sequencing, concurrently or independently execute.Therefore, the execution sequence of method described in this specification is not to this hair
Bright technical scope is construed as limiting.
Although above by being had been disclosed to the present invention to the description of specific embodiments of the present invention, it answers
The understanding, above-mentioned all embodiments and example are exemplary, and not restrictive.Those skilled in the art can be in institute
Various modifications, improvement or equivalent of the design to the present invention in attached spirit and scope by the claims.These modification, improve or
Person's equivalent should also be as being to be considered as included in protection scope of the present invention.
Note
1. a kind of method that multiple test cases for the APP based on API carry out priority ranking, including:
For each test case in the multiple test case,
Determine the API set that the test case calls;
According to the frequency of use score of each API in the complexity score of each API in API set, API set,
At least one of the coupling score of the test case, API quantity scores of the test case, calculate the evaluation score of the test case,
Wherein, the coupling score of the test case reflects the coupling tightness degree between the API of test case calling;And
According to the evaluation score of the multiple test case, priority ranking is carried out to the multiple test case.
2. the method as described in note 1, wherein determine that the API set that the test case calls includes:
The test case is run, to determine API set.
3. the method as described in note 1, wherein determine that the API set that the test case calls includes:
The test case and the source code of APP are analyzed, to determine API set.
4. the method as described in note 1, wherein the complexity score of API is according to the number of parameters of API and/or calls API
Required amount of source code calculates.
5. the method as described in note 4, wherein it includes the source code called needed for API to call the amount of source code needed for API
Line number.
6. the method as described in note 4, wherein the complexity score of API embodies the API in all API, in parameter
The distribution in terms of amount of source code needed for number and/or calling.
7. note 1 as described in method, wherein the frequency of use score of API according to the API all APP source code
In be called number and all API in the source code of all APP be called sum calculate.
8. the method as described in note 1, wherein the coupling score of the test case is according to defeated between the API in API set
The sum for entering the API in output relation, API set calculates.
9. the method as described in note 1, wherein the API quantity score of the test case is according to the total of the API in API set
The sum for the API that several, all test cases call calculates.
10. the method as described in note 1, wherein when APP is changed or is updated, the number of parameters for the API that APP is called is adjusted
It is also updated with the amount of source code needed for API, the API number being called in the source code of APP.
11. the equipment that a kind of multiple test cases for the APP based on API carry out priority ranking, including:
Gather determining device, is configured as:For each test case in the multiple test case, the test case tune is determined
API set;
Score computing device, is configured as:According in the complexity score of each API in API set, API set
Each at least one of frequency of use score, the coupling score of the test case, the API quantity scores of the test case of API, meter
Calculate the evaluation score of the test case, wherein the coupling score of the test case reflects the coupling between the API of test case calling
Tightness degree;And
Priority ranking device, is configured as:According to the evaluation score of the multiple test case, to the multiple test case
Carry out priority ranking.
12. the equipment as described in note 11, wherein set determining device is further configured to:The test case is run, with
Determine API set.
13. the equipment as described in note 11, wherein set determining device is further configured to:Analyze the test case and
The source code of APP, to determine API set.
14. the equipment as described in note 11, wherein score computing device is further configured to:According to the parameter number of API
Mesh and/or the complexity score for calling the amount of source code calculating API needed for API.
15. the equipment as described in note 14, wherein it includes the source generation called needed for API to call the amount of source code needed for API
The line number of code.
16. the equipment as described in note 14, wherein the complexity score of API embodies the API in all API, is joining
Keep count of and/or call the distribution in terms of required amount of source code.
17. the equipment as described in note 11, wherein score computing device is further configured to:According to the API all
The sum that the number and all API being called in the source code of APP are called in the source code of all APP calculates making for API
Use frequency score.
18. the equipment as described in note 11, wherein score computing device is further configured to:According in API set
The sum of the API in input/output relation, API set between API calculates the coupling score of the test case.
19. the equipment as described in note 11, wherein score computing device is further configured to:According in API set
The sum for the API that total, all test case of API calls calculates the API quantity scores of the test case.
20. the equipment as described in note 11, wherein when APP is changed or is updated, the number of parameters for the API that APP is called,
The number that the amount of source code needed for API, API are called in the source code of APP is called also to be updated.
Claims (10)
1. a kind of method for carrying out priority ranking to multiple test cases using APP based on application programming interfaces API,
Including:
For each test case in the multiple test case,
Determine the API set that the test case calls;
According to the frequency of use score of each API in the complexity score of each API in API set, API set, the survey
At least one of coupling score, the API quantity scores of the test case for trying example, calculate the evaluation score of the test case, wherein
The coupling score of the test case reflects the coupling tightness degree between the API of test case calling;And
According to the evaluation score of the multiple test case, priority ranking is carried out to the multiple test case.
2. the method for claim 1, wherein determining that the API set that the test case calls includes:
It runs the test case or analyzes the test case and the source code of APP, to determine API set.
3. the method for claim 1, wherein the complexity score of API according to the number of parameters of API and/or calls API
Required amount of source code calculates.
4. method as claimed in claim 3, wherein it includes the source code called needed for API to call the amount of source code needed for API
Line number.
5. method as claimed in claim 3, wherein the complexity score of API embodies the API in all API, in parameter
The distribution in terms of amount of source code needed for number and/or calling.
6. the method for claim 1, wherein the frequency of use score of API according to the API all APP source code
In be called number and all API in the source code of all APP be called sum calculate.
7. the method for claim 1, wherein the coupling score of the test case is according to defeated between the API in API set
The sum for entering the API in output relation, API set calculates.
8. the method for claim 1, wherein the API quantity score of the test case is according to the total of the API in API set
The sum for the API that several, all test cases call calculates.
9. the method for claim 1, wherein when APP is changed or is updated, the number of parameters for the API that APP is called is adjusted
It is also updated with the amount of source code needed for API, the API number being called in the source code of APP.
10. the equipment that a kind of multiple test cases for the APP based on API carry out priority ranking, including:
Gather determining device, is configured as:For each test case in the multiple test case, determine what the test case called
API set;
Score computing device, is configured as:According to each of the complexity score of each API in API set, API set
At least one of the frequency of use score of API, the coupling score of the test case, API quantity scores of the test case, calculating should
The evaluation score of test case, wherein the coupling that the coupling score of the test case reflects between the API of test case calling is close
Degree;And
Priority ranking device, is configured as:According to the evaluation score of the multiple test case, the multiple test case is carried out
Priority ranking.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710014879.9A CN108287785B (en) | 2017-01-09 | 2017-01-09 | Test case ordering method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710014879.9A CN108287785B (en) | 2017-01-09 | 2017-01-09 | Test case ordering method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108287785A true CN108287785A (en) | 2018-07-17 |
CN108287785B CN108287785B (en) | 2021-06-22 |
Family
ID=62819550
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710014879.9A Active CN108287785B (en) | 2017-01-09 | 2017-01-09 | Test case ordering method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108287785B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111008148A (en) * | 2019-12-20 | 2020-04-14 | 广州品唯软件有限公司 | Code testing method and device and computer readable storage medium |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060074881A1 (en) * | 2004-10-02 | 2006-04-06 | Adventnet, Inc. | Structure independent searching in disparate databases |
CN101908020A (en) * | 2010-08-27 | 2010-12-08 | 南京大学 | Method for prioritizing test cases based on classified excavation and version change |
CN102004641A (en) * | 2010-11-23 | 2011-04-06 | 武汉大学 | Topology potential-based software requirement case priority sorting method |
CN102253889A (en) * | 2011-08-07 | 2011-11-23 | 南京大学 | Method for dividing priorities of test cases in regression test based on distribution |
CN102289408A (en) * | 2011-09-08 | 2011-12-21 | 武汉大学 | regression test case sequencing method based on error propagation network |
CN102880545A (en) * | 2012-08-30 | 2013-01-16 | 中国人民解放军63928部队 | Method for dynamically adjusting priority sequence of test cases |
CN103678121A (en) * | 2013-11-18 | 2014-03-26 | 杭州电子科技大学 | Testing case priority ordering method for embedded binary system software |
CN103902449A (en) * | 2012-12-28 | 2014-07-02 | 百度在线网络技术(北京)有限公司 | Method and device for generating search engine relevance ranking test case |
CN104536896A (en) * | 2015-01-12 | 2015-04-22 | 牟永敏 | Regression test case selecting and ranking method and system oriented to function call path |
US9021440B1 (en) * | 2014-08-11 | 2015-04-28 | Pmc-Sierra Us, Inc. | System and method for automated test script generation |
CN105446885A (en) * | 2015-12-28 | 2016-03-30 | 西南大学 | Regression testing case priority ranking technology based on needs |
CN105528289A (en) * | 2015-12-04 | 2016-04-27 | 中国矿业大学 | Regression test case prioritization method based on branch coverage and similarity |
-
2017
- 2017-01-09 CN CN201710014879.9A patent/CN108287785B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060074881A1 (en) * | 2004-10-02 | 2006-04-06 | Adventnet, Inc. | Structure independent searching in disparate databases |
CN101908020A (en) * | 2010-08-27 | 2010-12-08 | 南京大学 | Method for prioritizing test cases based on classified excavation and version change |
CN102004641A (en) * | 2010-11-23 | 2011-04-06 | 武汉大学 | Topology potential-based software requirement case priority sorting method |
CN102253889A (en) * | 2011-08-07 | 2011-11-23 | 南京大学 | Method for dividing priorities of test cases in regression test based on distribution |
CN102289408A (en) * | 2011-09-08 | 2011-12-21 | 武汉大学 | regression test case sequencing method based on error propagation network |
CN102880545A (en) * | 2012-08-30 | 2013-01-16 | 中国人民解放军63928部队 | Method for dynamically adjusting priority sequence of test cases |
CN103902449A (en) * | 2012-12-28 | 2014-07-02 | 百度在线网络技术(北京)有限公司 | Method and device for generating search engine relevance ranking test case |
CN103678121A (en) * | 2013-11-18 | 2014-03-26 | 杭州电子科技大学 | Testing case priority ordering method for embedded binary system software |
US9021440B1 (en) * | 2014-08-11 | 2015-04-28 | Pmc-Sierra Us, Inc. | System and method for automated test script generation |
CN104536896A (en) * | 2015-01-12 | 2015-04-22 | 牟永敏 | Regression test case selecting and ranking method and system oriented to function call path |
CN105528289A (en) * | 2015-12-04 | 2016-04-27 | 中国矿业大学 | Regression test case prioritization method based on branch coverage and similarity |
CN105446885A (en) * | 2015-12-28 | 2016-03-30 | 西南大学 | Regression testing case priority ranking technology based on needs |
Non-Patent Citations (1)
Title |
---|
郑锦勤: "基于函数调用路径的回归测试用例选择排序方法研究", 《计算机应用研究》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111008148A (en) * | 2019-12-20 | 2020-04-14 | 广州品唯软件有限公司 | Code testing method and device and computer readable storage medium |
CN111008148B (en) * | 2019-12-20 | 2024-02-02 | 广州品唯软件有限公司 | Code testing method and device and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108287785B (en) | 2021-06-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7644368B2 (en) | System and method for regression tests of user interfaces | |
US9390375B2 (en) | Reuse of on-demand enterprise system customization knowledge utilizing collective experience | |
US9037595B2 (en) | Creating graphical models representing control flow of a program manipulating data resources | |
US7398474B2 (en) | Method and system for a digital device menu editor | |
US20100057504A1 (en) | Functional extensions for business objects | |
US20090260011A1 (en) | Command line transactions | |
US20030097650A1 (en) | Method and apparatus for testing software | |
EP1603033A2 (en) | Method and apparatus for generating forms using form types | |
US20070083419A1 (en) | Assessing information technology components | |
US20070083504A1 (en) | Selecting information technology components for target market offerings | |
US20040225972A1 (en) | Automation of the development, testing, and release of a flow framework and methodology to design integrated circuits | |
US6769113B1 (en) | Enterprise process models and enterprise application for information technologies | |
US20070283352A1 (en) | Sub-task mechanism for development of task-based user interfaces | |
US10380526B2 (en) | System and method for providing a process player for use with a business process design environment | |
US7930677B2 (en) | Method, system and computer program for tracking software development | |
Antoniol et al. | Object-oriented function points: An empirical validation | |
JP2009532760A (en) | Asynchronous fault handling in process-centric programs | |
US7793271B2 (en) | Bi-directional product development process simulation | |
US20070083405A1 (en) | Market-driven design of information technology components | |
CN112270376A (en) | Model training method and device, electronic equipment, storage medium and development system | |
US8448194B2 (en) | Value container propagation in development tools, business process management, and business rules management solutions | |
US8375365B2 (en) | Customization verification | |
Kapova et al. | State dependence in performance evaluation of component-based software systems | |
CN108287785A (en) | Test case sort method and equipment | |
Mainkar | Expert Android Programming: Master skills to build enterprise grade Android applications |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |