CN109947656A - A kind of testing case management and device - Google Patents
A kind of testing case management and device Download PDFInfo
- Publication number
- CN109947656A CN109947656A CN201910252296.9A CN201910252296A CN109947656A CN 109947656 A CN109947656 A CN 109947656A CN 201910252296 A CN201910252296 A CN 201910252296A CN 109947656 A CN109947656 A CN 109947656A
- Authority
- CN
- China
- Prior art keywords
- priority
- test case
- test
- version
- tested
- 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
Links
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
The embodiment of the present application discloses a kind of testing case management and device, for dynamically adjusting the priority of test case, to effectively determine test scope and improve test result.The embodiment of the present application method includes: to obtain the first priority of the first test case and first test case;First testing case first version to be tested is executed, determines defect relevant to first test case;Record the precedence information of the defect;The second priority of first test case is calculated according to the precedence information of the defect and first priority, second priority is the updated priority of the first test case;Determine that the execution sequence of the second test case of the second version to be tested, second version to be tested are the more new version of the described first version to be tested according to second priority.
Description
Technical field
This application involves computer field more particularly to a kind of testing case managements and device.
Background technique
In software development and test process, with the change and variation of tested software, tester needs to constantly update
The new test case with increase, this results in the scale of test use cases to be continuously increased, and the cost for implementing integrally it is gradually increased.
In the case, in order to reduce test case executory cost, the service efficiency of test case in test process is improved, people are directed to
The selection of test case and a large amount of research work has been carried out using problem.Wherein Test Case Prioritization technology studies emphatically test
The implementation strategy of test case in the process, since different test cases may have different contributions for the completion of test target
Degree, therefore used after different test cases being ranked up by its significance level, to improve making for test case
Use efficiency.
Test Case Prioritization technology is initially that a kind of ancillary technique for returning use-case as full dose is suggested.In full dose
It returns and is selected after the test use cases being multiplexed in use-case, further progress is carried out to it and simplifies and optimizes and may expend
More resources.It is at present usually to be ranked up test use cases to be multiplexed according to existing priority, and successively select and hold
Row test case.
Fixed priority is easy to cause test case that can not be adapted to different beta versions completely in this way, is easy to cause survey
Examination is incomplete, so that test result accuracy is not high.
Summary of the invention
The embodiment of the present application provides a kind of testing case management and device, for dynamically adjusting test case
Priority, to effectively determine test scope and improve test result.
In a first aspect, the embodiment of the present application provides a kind of testing case management, specifically include:
First priority of test case management device acquisition the first test case and first test case;Then should
Test case management device uses first testing case first version to be tested, determining and first test case
Relevant defect;The test case management device records the precedence information of the defect;The test case management device according to
The precedence information of the defect and first priority calculate the second priority of first test case, and described second
Priority is the updated priority of the first test case;The test case management device is true according to second priority
For fixed first test case in the execution sequence of the second version to be tested, second version to be tested is described first to be measured
The more new version of test run sheet.
In the present embodiment, the precedence information of the defect can serve to indicate that serious journey of the defect relative to beta version
Degree, the priority of the test case can serve to indicate that the execution priority of the test case.
It is understood that the version to be tested of each in the present embodiment includes multiple test cases, each test is used
Example can use above scheme and carry out test case management.
In the embodiment of the present application, the test case management device is associated with defect by test case, and according to defect
The priority of precedence information and the test case determines the test case range and the test case of next beta version
Priority is updated, so that dynamic adjusts the execution sequence of the test case, effectively determining test scope is realized and improves test
As a result function.
Optionally, which calculates according to the precedence information of the defect and first priority
Second priority of first test case includes:
The test case management device is public using first according to the precedence information of the defect and first priority
Formula calculates the second priority of first test case;
First formula are as follows:
Wherein,It is used to indicate second priority of i-th test case, the pjIt is used to indicate i-th survey
First priority of example on probation, the qnIt is used to indicate the weight of the corresponding nth priority defect of i-th test case
Value, the jnIt is used to indicate the number of the corresponding nth priority defect of i-th test case.
Optionally, testing case management further include: the test case management device is according to updated described
Second version to be tested described in the execution sequential test of one test case.
Optionally, the test case management device is according to the execution sequential test institute of updated first test case
Stating the second version to be tested includes:
The test case management device calculates the average priority of the test case of second version to be tested;
It is described average preferential that the test case management device judges whether the second priority of first test case is greater than
Grade;If so, the test case management device is using the second version to be tested described in first testing case.
Optionally, testing case management further include: the test case management device writes test use cases, described
Test use cases include the identification information of each test case, the initial priority information of each test case;The test case
Managing device records the initial priority information of each test case.In this way when the test case management device reconstructs the test
When version, which can be tested using the initial priority information saved again.
Second aspect, the embodiment of the present application provide a kind of test case management device, specifically include:
In a kind of implementation, which includes:
Module is obtained, for obtaining the first priority of the first test case and first test case;
Execution module is tested the first version to be tested for executing first test use cases, is determined and described first
The relevant defect of test use cases;
Logging modle, for recording the precedence information of the defect;
Computing module, for calculating first test according to the precedence information of the defect and first priority
The second priority of use-case, second priority are the priority of first test case;
Determining module, for determining first test case in second version to be tested according to second priority
Sequence is executed, second version to be tested is the more new version of the described first version to be tested.
Optionally, the computing module, specifically for according to the defect precedence information and first priority
The second priority of first test case is calculated using the first formula;
First formula are as follows:
Wherein,It is used to indicate second priority of i-th test case, the pjIt is used to indicate i-th survey
First priority of example on probation, the qnIt is used to indicate the weight of the corresponding nth priority defect of i-th test case
Value, the jnIt is used to indicate the number of the corresponding nth priority defect of i-th test case.
Optionally, the execution module is also used to execute described second according to the execution sequence of second test case
Second version to be tested described in testing case.
Optionally, the execution module, specifically for calculate second version to be tested test case it is average preferential
Grade;Judge whether the second priority of second test case is greater than the average priority;It is surveyed if so, executing described second
Example on probation tests second version to be tested.
Optionally, described device further includes writing module, described to write module, for writing test use cases, the survey
Trying set of uses case includes the identification information of each test case, the initial priority information of each test case;
Logging modle, for recording the initial priority information of each test case.
In alternatively possible implementation, which is specifically included: processor and memory, wherein
There is computer-readable program in the memory, the processor is by running the program in the memory, to be used for
At method described in above-mentioned first aspect.
The third aspect, the embodiment of the present application provides a kind of computer readable storage medium, including instruction, when described instruction exists
When running on computer, the computer executes method described in above-mentioned first aspect.
Fourth aspect, the embodiment of the present application provide a kind of computer program product comprising instruction, when the computer journey
When sequence product is run on computers, the computer executes method described in above-mentioned first aspect.
As can be seen from the above technical solutions, in the embodiment of the present application, the test case management device by test case with
Defect is associated, and determines that the test of next beta version is used according to the precedence information of defect and the priority of the test case
The update priority of example range and the test case is realized effectively true so that dynamic adjusts the execution sequence of the test case
Determine test scope and improves the function of test result.
Detailed description of the invention
Fig. 1 is one embodiment schematic diagram of testing case management in the embodiment of the present application;
Fig. 2 is one embodiment schematic diagram of test case management device in the embodiment of the present application;
Fig. 3 is another embodiment schematic diagram of test case management device in the embodiment of the present application.
Specific embodiment
The embodiment of the present application provides a kind of testing case management and device, for dynamically adjusting test case
Priority, to effectively determine test scope and improve test result.
The description and claims of this application and term " first ", " second ", " third ", " in above-mentioned attached drawing
The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage
The data that solution uses in this way are interchangeable under appropriate circumstances, so that the embodiments described herein can be in addition to illustrating herein
Or the sequence other than the content of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that
Cover it is non-exclusive include, for example, containing the process, method, system, product or equipment of a series of steps or units need not limit
In step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, produce
The other step or units of product or equipment inherently.
In software development and test process, with the change and variation of tested software, tester needs to constantly update
The new test case with increase, this results in the scale of test use cases to be continuously increased, and the cost for implementing integrally it is gradually increased.
In the case, in order to reduce test case executory cost, the service efficiency of test case in test process is improved, people are directed to
The selection of test case and a large amount of research work has been carried out using problem.Wherein Test Case Prioritization technology studies emphatically test
The implementation strategy of test case in the process, since different test cases may have different contributions for the completion of test target
Degree, therefore used after different test cases being ranked up by its significance level, to improve making for test case
Use efficiency.Test Case Prioritization technology is initially that a kind of ancillary technique for returning use-case as full dose is suggested.In full dose
It returns and is selected after the test use cases being multiplexed in use-case, further progress is carried out to it and simplifies and optimizes and may expend
More resources.It is at present usually to be ranked up test use cases to be multiplexed according to existing priority, and successively select and hold
Row test case.Fixed priority is easy to cause test case that can not be adapted to different beta versions completely in this way, is easy to lead
Test is caused not exclusively, so that test result accuracy is not high.
In order to solve this problem, the embodiment of the present application provides the following technical solutions: test case management device obtains the
First priority of one test case and first test case;Then the test case management device executes described first and surveys
Example on probation tests the first version to be tested, determines defect relevant to first test case;The test case management device
The defect information is recorded, the defect information includes the precedence information of the defect;The test case management device according to
The precedence information of the defect and first priority calculate the second priority of first test case, and described second
Priority is the updated priority of the first test case;The test case management device is true according to second priority
For fixed first test case in the execution sequence of the second version to be tested, second version to be tested is described first to be tested
The more new version of version.
Referring specifically to shown in Fig. 1, one embodiment of testing case management includes: in the embodiment of the present application
101, test case management device obtains the first priority of the first test case and first test case.
Before testing first beta version, which obtains the test case management device
Take first priority of first test case He first test case.
In the present embodiment, each beta version requires multiple test cases to be tested, therefore the test case
For managing device before testing first beta version, which obtains first test use cases
The first priority of each test case is concentrated with first test case.Wherein, first test case concentrate include this
The test scope of one version to be tested, the test scope are used to indicate the whole test cases for testing first version to be tested;
First test case concentrates each test case to have corresponding priority, and the test case is arranged according to the priority
Sequence generates and executes sequence.It is understood that the priority can be indicated with specifically used corresponding priority magnitude.Than
It includes test case A, test case B, test case C, test case D and test case E that such as first test case, which is concentrated,;
And the priority magnitude of test case A is 1, the priority magnitude of test case B is 2, the priority amount of test case C
Value is that the priority magnitude of 3, test case D is 4 and the priority magnitude of test case E is 4.5.
In the present embodiment, which in the initial state, needs to write corresponding test case, and remember
Record the test case identification information and initial priority information.
102, the test case management device uses the version to be tested of the first testing case first, and determines and be somebody's turn to do
The associated defect of first test case.
In the present embodiment, the test case management device is according to the execution sequential test of first test case first survey
After test run sheet, defect associated with first test case will acquire.Specifically, it for the first beta version, is surveying
Within the scope of example on probation, the execution sequence for each test case which concentrates according to first test case is held
Each testing case of row first test case concentration first version to be tested, and determining and first test use cases
In each associated defect of test case.
Assuming that first test case concentration is bigger with priority magnitude, and before sorting more in executing sequence, the survey in this way
Example managing device is tried out in the sequence according to test case E, test case D, test case C, test case B and test case A
Test first version to be tested.Wherein, testing case goes out the defect of first version to be tested, the as test case
Associated defect.For example test case E tests out 2 defects, test case D tests out 3 defects, the test case
C tests out 4 defects, and test case B tests out 2 defects, and test case A tests out 1 defect.
103, the test case management device records the precedence information of the defect.
When testing version to be tested, the defect which goes out has corresponding priority, and with the defect
Precedence information to corresponding weighted value.Therefore the test case management device carries out the precedence information of the defect
Record saves.
It is understood that the precedence information of the defect can pre-define, for example it is according to the defect order of severity
The defect divides priority, for example defect is divided into four priority, and it is excellent to be followed successively by first from big to small according to severity
First grade, the second priority, third priority and the 4th priority, and it is as follows to define this corresponding weighted value of four priority:
The weighted value of first priority is 4, the weighted value of second priority is 3, the weighted value of the third priority is 2 and should
The weighted value of 4th priority is 1.
104, the test case management device according to the precedence information of the defect and first priority calculate this first
Second priority of test case, second priority are the updated priority of the first test case.
The test case management device calculates first test according to the precedence information and first priority of the defect
Second priority of use-case, second priority are the updated priority of the first test case.
Specifically, which can calculate first test case according to the first formula and concentrate respectively
Second priority of test case, wherein first formula is
Wherein,It is used to indicate second priority of i-th test case, the pjIt is used to indicate i-th survey
First priority of example on probation, the qnIt is used to indicate the weight of the corresponding nth priority defect of i-th test case
Value, the jnIt is used to indicate the number of the corresponding nth priority defect of i-th test case, the N is used to indicate test
The total number of use-case.
For example, it includes 20 test cases that first test case, which is concentrated, wherein the first of the 6th article of test case is preferential
Grade is that the 2, the 6th article of testing case has gone out 4 strip defects, and wherein the priority of this 4 strip defect is respectively 2,3,1,4, accordingly
Weighted value be 2,3,1,4.Therefore, the second priority of the 6th article of test case be 2+2* (2*1+3*1+1*1+4*1)=
22.Successively updating first test case concentrates the priority of each test case to be denoted as second priority.
105, the test case management device determines that the second test of the second version to be tested is used according to second priority
The execution sequence for each test case that example is concentrated, second version to be tested are the more new version of first version to be tested.
The test case management device determines the second test case of second version to be tested according to second priority
Collection, and determines that second test case concentrates the execution sequence of each test case according to second priority, wherein this second to
Beta version is the more new version of first version to be tested.I.e. second version to be tested is under first version to be tested
Version.
It is understood that the test case management device is determining second version to be tested in the embodiment of the present application
After second test use cases, the execution sequence for each test case concentrated according to second test case executes each test and uses
Example.Wherein, the selection criteria for each use-case which concentrates can be such that the test case management device by this
One test case concentrate each test case the second priority and the priority of increased new test case is averaged again
Then value selects the priority to be greater than the test case of the average value as second test use cases.For example, first test
Set of uses case includes 20 test cases, in order to which second version to be tested has increased 10 test cases newly;Then this 30 tests
The average value of the priority of use-case is 15, then selects test case of the priority greater than 15 (false as second test use cases
If there are 20);Then the test case management device concentrates the priority of each test case further according to second test case
It is ranked up generation from high to low and executes sequence.
The testing case management is described with a specific implement scene below, is specifically included:
In original state, which writes and obtains the first test use cases of Test cases technology, and
Test case information is recorded, wherein the test case information includes test case identity, and the first of the test case is preferential
Grade information, the testing procedure of the test case, the test case expected results, and the test case execution after can also
Record the update precedence information of the test result of the test case, the Defect Correlation item of the test case and the test case
(i.e. the second precedence information);Then the test case management device tests the first test run to be measured according to the first test use cases
This, obtains the test result of the first version to be tested, the test result of first version to be tested includes related to test case
The defect precedence information of connection;Then the test case management device is according to the defect precedence information and the test use cases
The update precedence information (the i.e. second preferential letter information) of test case is calculated in first precedence information;The test case pipe
Reason device determines the survey of the second version to be tested according to the precedence information of the update precedence information and newly-increased test case
Try set of uses case;Finally the test case management device further according to the test use cases of second version to be tested test this second to
Beta version.The test case management device can recycle this operation test third version to be tested or the 4th version to be tested etc.
Deng.
In the present embodiment, the test case management device is associated with defect by test case, and according to the preferential of defect
The priority of grade information and the test case determines the test case range and the update of the test case of next beta version
Priority is realized so that dynamic adjusts the execution sequence of the test case and effectively determines test scope and raising test result
Function.
Described above is the testing case managements in the embodiment of the present application, are described below in the embodiment of the present application and test
Case management device.
Referring specifically to shown in Fig. 2, test case management device one embodiment includes: in the embodiment of the present application
Module 201 is obtained, for obtaining the first priority of the first test case and first test case;
Execution module 202 determines and described first for using first testing case first version to be tested
The relevant defect of test case;
Logging modle 203, for recording the precedence information of the defect;
Computing module 204, for calculating described first according to the precedence information of the defect and first priority
Second priority of test case, second priority are the updated priority of the first test case;
Determining module 205, for determining first test case in the second test run to be measured according to second priority
This execution sequence, second version to be tested are the more new version of the described first version to be tested.
Optionally, the computing module 204, specifically for according to the precedence information of the defect and described first preferential
Grade calculates the second priority of first test case using the first formula;
First formula are as follows:
Wherein,It is used to indicate second priority of i-th test case, the pjIt is used to indicate i-th survey
First priority of example on probation, the qnIt is used to indicate the weight of the corresponding nth priority defect of i-th test case
Value, the jnIt is used to indicate the number of the corresponding nth priority defect of i-th test case, the N is used to indicate test
The total number of use-case.
Optionally, the execution module 202 is also used to be surveyed according to the execution sequence of updated first test case
Try the described second version to be tested.
Optionally, the execution module 202, specifically for calculating the average preferential of the second version test case to be tested
Grade;
Judge whether second priority of first test case is greater than the average priority;If so, adopting
The second version to be tested described in first testing case, the average priority are according to the described second test run to be measured
The priority of this test case is calculated.
Optionally, described device further includes writing module 206, described to write module 206, for writing test use cases,
The test use cases include the identification information of each test case, the initial priority information of each test case;
Logging modle 203, for recording the initial priority information of each test case.
In the present embodiment, in the embodiment of the present application, the test case management device is associated with defect by test case, and
The test case range of next beta version is determined according to the priority of the precedence information of defect and the test case and is somebody's turn to do
The update priority of test case, so that dynamic adjusts the execution sequence of the test case, realize effectively determine test scope with
And improve the function of test result.
Referring specifically to shown in Fig. 3, another embodiment of test case management device includes: in the embodiment of the present application
Transceiver 301, processor 302 and bus 303;
The transceiver 301 is connected with the processor 302 by the bus 303;
The bus 303 can be Peripheral Component Interconnect standard (peripheral component interconnect, letter
Claim PCI) and bus or expanding the industrial standard structure (extended industry standard architecture, referred to as
EISA) bus etc..The bus can be divided into address bus, data/address bus, control bus etc..For convenient for indicating, only with one in Fig. 3
Bar thick line indicates, it is not intended that an only bus or a type of bus.
Processor 302 can be central processing unit (central processing unit, abbreviation CPU), network processing unit
The combination of (network processor, abbreviation NP) or CPU and NP.
Processor 302 can further include hardware chip.Above-mentioned hardware chip can be specific integrated circuit
(application-specific integrated circuit, abbreviation ASIC), programmable logic device
(programmable logic device, abbreviation PLD) or combinations thereof.Above-mentioned PLD can be Complex Programmable Logic Devices
(complex programmable logic device, abbreviation CPLD), field programmable gate array (field-
Programmable gate array, abbreviation FPGA), Universal Array Logic (generic array logic, abbreviation GAL) or
Any combination thereof.
Shown in Figure 3, which can also include memory 304.The memory 304 may include
Volatile memory (volatile memory), for example, random access memory (random-access memory, referred to as
RAM);Memory also may include nonvolatile memory (non-volatile memory), such as flash memory (flash
Memory), hard disk (hard disk drive, abbreviation HDD) or solid state hard disk (solid-state drive, abbreviation SSD);It deposits
Reservoir 304 can also include the combination of the memory of mentioned kind.
Optionally, memory 304 can be also used for storage program instruction, and processor 302 calls to be stored in the memory 304
Program instruction, the one or more steps or in which optional embodiment in embodiment shown in Fig. 1 can be executed, it is real
The function of test case management device behavior in the existing above method.
The processor 302 executes following steps:
Obtain the first priority of the first test case and first test case;Execute first test case
The first version to be tested is tested, determines defect relevant to first test case;
The memory 304 executes following steps:
Record the precedence information of the defect;
The processor 302 executes following steps:
The second excellent of first test case is calculated according to the precedence information of the defect and first priority
First grade, second priority are the priority of first test case;Described first is determined according to second priority
Test case the second version to be tested execution sequence, second version to be tested be the described first version to be tested more
New version.
Optionally, the processor 302 executes following steps:
For calculating described first using the first formula according to the precedence information of the defect and first priority
Second priority of test use cases;
First formula are as follows:
Wherein,It is used to indicate second priority of i-th test case, the pjIt is used to indicate i-th test
First priority of use-case, the qnIt is used to indicate the weighted value of the corresponding nth priority defect of i-th test case,
The jnIt is used to indicate the number of the corresponding nth priority defect of i-th test case.
Optionally, the processor 302 executes following steps:
According to the second version to be tested described in the execution sequential test of updated first test case.
Optionally, the processor 302 executes following steps:
Judge whether second priority of first test case is greater than the average priority;If so, adopting
The second version to be tested described in first testing case, the average priority are according to the described second test run to be measured
The priority of this test case is calculated
Optionally, the processor 302, is also used to execute following steps:
Test use cases are write, the test use cases include the identification information of each test case, each test case
Initial priority information;
The memory 304 executes following steps:
Record the initial priority information of each test case.
In the present embodiment, in the embodiment of the present application, the test case management device is associated with defect by test case, and
The test case range of next beta version is determined according to the priority of the precedence information of defect and the test case and is somebody's turn to do
The update priority of test case, so that dynamic adjusts the execution sequence of the test case, realize effectively determine test scope with
And improve the function of test result.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit
It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the application
Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey
The medium of sequence code.
The above, above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although referring to before
Embodiment is stated the application is described in detail, those skilled in the art should understand that: it still can be to preceding
Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these
It modifies or replaces, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution.
Claims (11)
1. a kind of testing case management characterized by comprising
Obtain first the first priority of test case;
Using first testing case first version to be tested, lack relevant to first test use cases is determined
It falls into;
Record the precedence information of the defect;
The second priority of first test case is calculated according to the precedence information of the defect and first priority,
Second priority is the updated priority of the first test case;
According to second priority determine first test case in the execution sequence of the second version to be tested, described second
Version to be tested is the more new version of the described first version to be tested.
2. the method according to claim 1, wherein according to the precedence information of the defect and described first excellent
The second priority that first grade calculates first test case includes:
First test case is calculated using the first formula according to the precedence information of the defect and first priority
Concentrate the second priority of each test case;
First formula are as follows:
Wherein,It is used to indicate second priority of i-th test case, the pjIt is used to indicate i-th test case
The first priority, the qnIt is used to indicate the weighted value of the corresponding nth priority defect of i-th test case, the jn
It is used to indicate the number of the corresponding nth priority defect of i-th test case.
3. method according to claim 1 or 2, which is characterized in that the method also includes:
According to the second version to be tested described in the execution sequential test of updated first test case.
4. according to the method described in claim 3, it is characterized in that, the holding according to updated first test case
Second version to be tested described in row sequential test includes:
Judge whether the second priority of first test case is greater than average priority, if so, surveying using described first
Example on probation tests second beta version, and the average priority is the test case according to the described second version to be tested
Priority is calculated.
5. a kind of test case management device characterized by comprising
Module is obtained, for obtaining the first priority of the first test case and first test case;
Execution module, it is determining to be used with first test for using first testing case first version to be tested
The relevant defect of example;
Logging modle, for recording the precedence information of the defect;
Computing module, for calculating first test case according to the precedence information of the defect and first priority
The second priority, second priority be the updated priority of the first test case;
Determining module, for determining first test case in the execution of the second version to be tested according to second priority
Sequence, second version to be tested are the more new version of the described first version to be tested.
6. device according to claim 5, which is characterized in that the computing module, specifically for according to the defect
Precedence information and first priority calculate the second priority of first test case using the first formula;
First formula are as follows:
Wherein,It is used to indicate second priority of i-th test case, the pjIt is used to indicate i-th test case
The first priority, the qnIt is used to indicate the weighted value of the corresponding nth priority defect of i-th test case, the jn
It is used to indicate the number of the corresponding nth priority defect of i-th test case.
7. device according to claim 5 or 6, which is characterized in that the execution module is also used to according to updated institute
State the second version to be tested described in the execution sequential test of the first test case.
8. device according to claim 7, which is characterized in that the execution module is specifically used for judging that described first surveys
Whether the second priority of example on probation is greater than average priority, if so, using second described in first testing case
Beta version, the average priority are calculated according to the priority of the test case of the described second version to be tested.
9. a kind of test case management device characterized by comprising processor and memory, wherein deposited in the memory
There is computer-readable program, the processor is by running the program in the memory, for completing Claims 1-4
Any one of described in method.
10. a kind of computer readable storage medium, including instruction, when described instruction is run on computers, the computer
The claims 1 are executed to the method described in any one of claim 4.
11. a kind of computer program product comprising instruction, described when the computer program product is run on computers
Computer executes the claims 1 to the method described in any one of claim 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910252296.9A CN109947656A (en) | 2019-03-29 | 2019-03-29 | A kind of testing case management and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910252296.9A CN109947656A (en) | 2019-03-29 | 2019-03-29 | A kind of testing case management and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109947656A true CN109947656A (en) | 2019-06-28 |
Family
ID=67013031
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910252296.9A Pending CN109947656A (en) | 2019-03-29 | 2019-03-29 | A kind of testing case management and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109947656A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113342651A (en) * | 2021-06-01 | 2021-09-03 | 南京大学 | Recovery method for testing case defect and case fuzzy association relation |
CN114153709A (en) * | 2021-11-05 | 2022-03-08 | 苏州浪潮智能科技有限公司 | Server test behavior analysis method and device and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102063376A (en) * | 2011-02-16 | 2011-05-18 | 哈尔滨工程大学 | Test case selection method |
CN102662833A (en) * | 2012-03-21 | 2012-09-12 | 天津书生软件技术有限公司 | Method for managing test cases |
US20160162392A1 (en) * | 2014-12-09 | 2016-06-09 | Ziheng Hu | Adaptive Framework Automatically Prioritizing Software Test Cases |
US20170083432A1 (en) * | 2015-09-17 | 2017-03-23 | International Business Machines Corporation | Prioritization of test cases |
CN106610891A (en) * | 2015-10-22 | 2017-05-03 | 中兴通讯股份有限公司 | Test method and device |
CN108694123A (en) * | 2018-05-14 | 2018-10-23 | 中国平安人寿保险股份有限公司 | A kind of regression testing method, computer readable storage medium and terminal device |
CN109344048A (en) * | 2018-08-17 | 2019-02-15 | 中国平安人寿保险股份有限公司 | A kind of test method, storage medium and server |
-
2019
- 2019-03-29 CN CN201910252296.9A patent/CN109947656A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102063376A (en) * | 2011-02-16 | 2011-05-18 | 哈尔滨工程大学 | Test case selection method |
CN102662833A (en) * | 2012-03-21 | 2012-09-12 | 天津书生软件技术有限公司 | Method for managing test cases |
US20160162392A1 (en) * | 2014-12-09 | 2016-06-09 | Ziheng Hu | Adaptive Framework Automatically Prioritizing Software Test Cases |
US20170083432A1 (en) * | 2015-09-17 | 2017-03-23 | International Business Machines Corporation | Prioritization of test cases |
CN106610891A (en) * | 2015-10-22 | 2017-05-03 | 中兴通讯股份有限公司 | Test method and device |
CN108694123A (en) * | 2018-05-14 | 2018-10-23 | 中国平安人寿保险股份有限公司 | A kind of regression testing method, computer readable storage medium and terminal device |
CN109344048A (en) * | 2018-08-17 | 2019-02-15 | 中国平安人寿保险股份有限公司 | A kind of test method, storage medium and server |
Non-Patent Citations (2)
Title |
---|
朱凌燕: "基于缺陷的测试用例优先级排序方法", 《电子技术与软件工程 》 * |
杨广华等: "基于需求的测试用例优先级排序", 《计算机工程与设计》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113342651A (en) * | 2021-06-01 | 2021-09-03 | 南京大学 | Recovery method for testing case defect and case fuzzy association relation |
CN113342651B (en) * | 2021-06-01 | 2023-11-03 | 南京大学 | Recovery method for testing fuzzy association relation between case defects and cases |
CN114153709A (en) * | 2021-11-05 | 2022-03-08 | 苏州浪潮智能科技有限公司 | Server test behavior analysis method and device and storage medium |
CN114153709B (en) * | 2021-11-05 | 2024-01-12 | 苏州浪潮智能科技有限公司 | Server test behavior analysis method, device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111274126B (en) | Test case screening method, device and medium | |
CN109062802A (en) | A kind of method for testing software, computer readable storage medium and terminal device | |
Chan et al. | Detecting concerted demographic response across community assemblages using hierarchical approximate Bayesian computation | |
US10089109B2 (en) | System and method for evaluating human resources in a software development environment | |
TW202004559A (en) | Feature interpretation method and device for GBDT model | |
CN105468510A (en) | Method and system for evaluating and tracking software quality | |
CN116340072B (en) | Fault detection method and device for multi-core chip | |
CN108694123A (en) | A kind of regression testing method, computer readable storage medium and terminal device | |
Pomeranz et al. | A measure of quality for n-detection test sets | |
CN108876470A (en) | Tagging user extended method, computer equipment and storage medium | |
CN109947656A (en) | A kind of testing case management and device | |
CN114881343B (en) | Short-term load prediction method and device for power system based on feature selection | |
CN110008119A (en) | Report test method, device, computer equipment and storage medium | |
US8402421B2 (en) | Method and system for subnet defect diagnostics through fault compositing | |
CN110472659A (en) | Data processing method, device, computer readable storage medium and computer equipment | |
CN108733707A (en) | A kind of determining function of search stability and device | |
JP2006220487A (en) | Apparatus and method of estimating position and position estimating program | |
CN109857653A (en) | A kind of unsupervised Defective program module recognition method based on Active Learning | |
CN110888809A (en) | Test task risk prediction method and device | |
CN102929754A (en) | System and method for analyzing performance of mobile equipment expanded storage card | |
CN116644102A (en) | Intelligent investment object selection method, system terminal and computer readable storage medium | |
CN112015911B (en) | Method for searching massive knowledge maps | |
CN112035736B (en) | Information pushing method, device and server | |
CN112633651A (en) | Road congestion degree evaluation method and device, equipment and storage medium | |
CN115904857A (en) | Bottleneck node screening method and device and computer equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190628 |
|
RJ01 | Rejection of invention patent application after publication |