CN109947656A - A kind of testing case management and device - Google Patents

A kind of testing case management and device Download PDF

Info

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
test case
priority
version
test
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
Application number
CN201910252296.9A
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 QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201910252296.9A priority Critical patent/CN109947656A/en
Publication of CN109947656A publication Critical patent/CN109947656A/en
Pending legal-status Critical Current

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

Test case management method and device
Technical Field
The present application relates to the field of computers, and in particular, to a test case management method and apparatus.
Background
In the process of software development and testing, with the change and change of the tested software, testers need to continuously update and add new test cases, which leads to the continuous increase of the scale of the test case set and the gradual increase of the cost for comprehensively executing the test case set. Under the circumstances, in order to reduce the execution cost of the test case and improve the use efficiency of the test case in the test process, a great deal of research work is carried out on the selection and use problems of the test case. The test case sequencing technology focuses on researching the execution strategy of the test cases in the test process, and different test cases can contribute different degrees to the completion of a test target, so that the different test cases can be sequenced according to the importance degrees and then used, and the use efficiency of the test cases is improved.
The test case sequencing technology is originally proposed as an auxiliary technology of the full-scale regression case. After the test case set to be reused is selected from the full regression cases, excessive resources may be consumed by further simplifying and optimizing the test case set. At present, the test case sets to be multiplexed are generally sorted according to the existing priority, and the test cases are sequentially selected and executed.
Therefore, the fixed priority easily causes that the test case cannot be completely adapted to different test versions, and easily causes incomplete test, so that the accuracy of the test result is not high.
Disclosure of Invention
The embodiment of the application provides a test case management method and a test case management device, which are used for dynamically adjusting the priority of a test case, so that the test range is effectively determined and the test result is improved.
In a first aspect, an embodiment of the present application provides a test case management method, which specifically includes:
the method comprises the steps that a test case management device obtains a first test case and a first priority of the first test case; then the test case management device adopts the first test case to test a first version to be tested, and determines the defects related to the first test case; the test case management device records the priority information of the defects; the test case management device calculates a second priority of the first test case according to the priority information of the defect and the first priority, wherein the second priority is the updated priority of the first test case; the test case management device determines an execution sequence of the first test case in a second version to be tested according to the second priority, wherein the second version to be tested is an updated version of the first version to be tested.
In this embodiment, the priority information of the defect may be used to indicate a severity of the defect relative to the test version, and the priority of the test case may be used to indicate an execution priority of the test case.
It can be understood that each version to be tested in the present embodiment includes a plurality of test cases, and each test case can perform test case management by using the above scheme.
In the embodiment of the application, the test case management device associates the test case with the defect, and determines the test case range of the next test version and the update priority of the test case according to the priority information of the defect and the priority of the test case, so that the execution sequence of the test case is dynamically adjusted, and the functions of effectively determining the test range and improving the test result are realized.
Optionally, the calculating, by the test case management apparatus, the second priority of the first test case according to the priority information of the defect and the first priority includes:
the test case management device calculates a second priority of the first test case by using a first formula according to the priority information of the defect and the first priority;
the first formula is:
wherein,second priority for indicating the ith test case, pjA first priority for indicating the ith test case, qnA weight value for indicating the nth priority defect corresponding to the ith test case, jnThe method is used for indicating the number of the nth priority defects corresponding to the ith test case.
Optionally, the test case management method further includes: and the test case management device tests the second version to be tested according to the updated execution sequence of the first test case.
Optionally, the testing the second version to be tested according to the updated execution sequence of the first test case by the test case management device includes:
the test case management device calculates the average priority of the test cases of the second version to be tested;
the test case management device judges whether the second priority of the first test case is greater than the average priority; if so, the test case management device tests the second version to be tested by adopting the first test case.
Optionally, the test case management method further includes: the test case management device compiles a test case set, wherein the test case set comprises identity identification information of each test case and initial priority information of each test case; the test case management device records the initial priority information of each test case. Thus, when the test case management device reconstructs the test version, the test case management device can adopt the stored initial priority information for testing again.
In a second aspect, an embodiment of the present application provides a test case management apparatus, which specifically includes:
in one implementation, the test case management apparatus includes:
the system comprises an acquisition module, a judgment module and a control module, wherein the acquisition module is used for acquiring a first test case and a first priority of the first test case;
the execution module is used for executing the first test case set to test a first to-be-tested version and determining the defects related to the first test case set;
a recording module for recording priority information of the defect;
the calculation module is used for calculating a second priority of the first test case according to the priority information of the defect and the first priority, wherein the second priority is the priority of the first test case;
and the determining module is used for determining an execution sequence of the first test case in the second version to be tested according to the second priority, wherein the second version to be tested is an updated version of the first version to be tested.
Optionally, the calculating module is specifically configured to calculate a second priority of the first test case by using a first formula according to the priority information of the defect and the first priority;
the first formula is:
wherein,second priority for indicating the ith test case, pjA first priority for indicating the ith test case, qnA weight value for indicating the nth priority defect corresponding to the ith test case, jnThe method is used for indicating the number of the nth priority defects corresponding to the ith test case.
Optionally, the execution module is further configured to execute the second test case to test the second version to be tested according to the execution sequence of the second test case.
Optionally, the execution module is specifically configured to calculate an average priority of the test case of the second version to be tested; judging whether the second priority of the second test case is greater than the average priority; and if so, executing the second test case to test the second version to be tested.
Optionally, the apparatus further includes a compiling module, where the compiling module is configured to compile a test case set, where the test case set includes identity information of each test case and initial priority information of each test case;
and the recording module is used for recording the initial priority information of each test case.
In another possible implementation manner, the test case management apparatus specifically includes: a processor and a memory, wherein the memory stores a computer readable program, and the processor is configured to execute the program in the memory to perform the method according to the first aspect.
In a third aspect, an embodiment of the present application provides a computer-readable storage medium, which includes instructions, when the instructions are executed on a computer, the computer performs the method of the first aspect.
In a fourth aspect, embodiments of the present application provide a computer program product comprising instructions for executing the method of the first aspect when the computer program product runs on a computer.
According to the technical scheme, the test case management device associates the test case with the defect, and determines the test case range of the next test version and the update priority of the test case according to the priority information of the defect and the priority of the test case, so that the execution sequence of the test case is dynamically adjusted, and the functions of effectively determining the test range and improving the test result are realized.
Drawings
FIG. 1 is a schematic diagram of an embodiment of a test case management method in an embodiment of the present application;
FIG. 2 is a schematic diagram of an embodiment of a test case management apparatus in an embodiment of the present application;
fig. 3 is a schematic diagram of another embodiment of a test case management apparatus in an embodiment of the present application.
Detailed Description
The embodiment of the application provides a test case management method and a test case management device, which are used for dynamically adjusting the priority of a test case, so that the test range is effectively determined and the test result is improved.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In the process of software development and testing, with the change and change of the tested software, testers need to continuously update and add new test cases, which leads to the continuous increase of the scale of the test case set and the gradual increase of the cost for comprehensively executing the test case set. Under the circumstances, in order to reduce the execution cost of the test case and improve the use efficiency of the test case in the test process, a great deal of research work is carried out on the selection and use problems of the test case. The test case sequencing technology focuses on researching the execution strategy of the test cases in the test process, and different test cases can contribute different degrees to the completion of a test target, so that the different test cases can be sequenced according to the importance degrees and then used, and the use efficiency of the test cases is improved. The test case sequencing technology is originally proposed as an auxiliary technology of the full-scale regression case. After the test case set to be reused is selected from the full regression cases, excessive resources may be consumed by further simplifying and optimizing the test case set. At present, the test case sets to be multiplexed are generally sorted according to the existing priority, and the test cases are sequentially selected and executed. Therefore, the fixed priority easily causes that the test case cannot be completely adapted to different test versions, and easily causes incomplete test, so that the accuracy of the test result is not high.
In order to solve the problem, the embodiment of the present application provides the following technical solutions: the method comprises the steps that a test case management device obtains a first test case and a first priority of the first test case; then the test case management device executes the first test case to test a first version to be tested, and determines the defects related to the first test case; the test case management device records the defect information, wherein the defect information comprises priority information of the defect; the test case management device calculates a second priority of the first test case according to the priority information of the defect and the first priority, wherein the second priority is the updated priority of the first test case; and the test case management device determines an execution sequence of the first test case in a second version to be tested according to the second priority, wherein the second version to be tested is an updated version of the first version to be tested.
Specifically, referring to fig. 1, an embodiment of a test case management method in the embodiment of the present application includes:
101. the test case management device acquires a first test case and a first priority of the first test case.
Before the test case management device tests the first test version, the test case management device obtains the first test case and the first priority of the first test case.
In this embodiment, each test version requires multiple test cases for testing, and therefore before the test case management device tests the first test version, the test case management device obtains the first priority of each test case in the first test case set and the first test case set. The first test case set comprises a test range of the first version to be tested, and the test range is used for indicating all test cases for testing the first version to be tested; the test cases in the first test case set have corresponding priorities, and the test cases are sorted according to the priorities to generate an execution sequence. It will be appreciated that the priority may be expressed in particular using a corresponding priority magnitude. For example, the first test case set includes a test case a, a test case B, a test case C, a test case D, and a test case E; the priority level of the test case a is 1, the priority level of the test case B is 2, the priority level of the test case C is 3, the priority level of the test case D is 4, and the priority level of the test case E is 4.5.
In this embodiment, when the test case management apparatus is in an initial state, the corresponding test case needs to be written, and the identity information and the initial priority information of the test case are recorded.
102. The test case management device adopts the first test case to test a first version to be tested and determines the defects associated with the first test case.
In this embodiment, after the test case management apparatus tests the first test version according to the execution sequence of the first test case, the defect associated with the first test case is obtained. Specifically, for a first test version, within the test case range, the test case management device executes each test case in the first test case set according to the execution sequence of each test case in the first test case set to test the first version to be tested, and determines the defects associated with each test case in the first test case set.
The first test case set is assumed to be ranked earlier in the execution sequence according to the larger the priority magnitude, so that the test case management device tests the first version to be tested according to the sequence of the test case E, the test case D, the test case C, the test case B and the test case A. And testing the defects of the first version to be tested by the test case, namely the defects related to the test case. For example, the test case E tests 2 defects, the test case D tests 3 defects, the test case C tests 4 defects, the test case B tests 2 defects, and the test case a tests 1 defect.
103. The test case management device records the priority information of the defect.
When testing the version to be tested, the defect tested by the test case has corresponding priority, and the priority information pair of the defect has corresponding weight value. Therefore, the test case management apparatus records and stores the priority information of the defect.
It can be understood that the priority information of the defect may be predefined, for example, the defect is prioritized according to the defect severity program, for example, the defect is divided into four priorities, which are the first priority, the second priority, the third priority and the fourth priority according to the severity degree from high to low, and the weight values corresponding to the four priorities are defined as follows: the first priority has a weight value of 4, the second priority has a weight value of 3, the third priority has a weight value of 2, and the fourth priority has a weight value of 1.
104. And the test case management device calculates a second priority of the first test case according to the priority information of the defect and the first priority, wherein the second priority is the updated priority of the first test case.
And the test case management device calculates a second priority of the first test case according to the priority information of the defect and the first priority, wherein the second priority is the updated priority of the first test case.
Specifically, the test case management device may calculate the second priority of each test case in the first test case set according to a first formula, where the first formula is
Wherein,second priority for indicating the ith test case, pjA first priority for indicating the ith test case, qnA weight value for indicating the nth priority defect corresponding to the ith test case, jnIs used for indicating the nth priority lack corresponding to the ith test caseA number of traps, the N to indicate a total number of test cases.
For example, the first test case set includes 20 test cases, where the first priority of the 6 th test case is 2, and the 6 th test case tests 4 defects, where the priorities of the 4 defects are 2, 3, 1, and 4, respectively, and the corresponding weights are 2, 3, 1, and 4. Thus, the second priority of the 6 th test case is 2+2 (2 × 1+3 × 1+4 × 1) ═ 22. And sequentially updating the priority of each test case in the first test case set to be recorded as the second priority.
105. The test case management device determines an execution sequence of each test case in a second test case set of a second version to be tested according to the second priority, wherein the second version to be tested is an updated version of the first version to be tested.
The test case management device determines a second test case set of the second version to be tested according to the second priority, and determines an execution sequence of each test case in the second test case set according to the second priority, wherein the second version to be tested is an updated version of the first version to be tested. I.e. the second version to be tested is the next version of the first version to be tested.
It can be understood that, in the embodiment of the present application, after determining the second test case set of the second version to be tested, the test case management apparatus executes each test case according to the execution sequence of each test case in the second test case set. The selection criteria of each case in the second test case set may be as follows: the test case management device averages the second priority of each test case in the first test case set and the priority of the newly added new test case, and then selects the test case with the priority greater than the average as the second test case set. For example, the first test case set includes 20 test cases, and 10 test cases are added for the second version to be tested; then, if the average value of the priorities of the 30 test cases is 15, selecting the test case with the priority greater than 15 as the second test case set (assuming that 20 test cases exist); then the test case management device generates an execution sequence according to the priority of each test case in the second test case set from high to low.
The following describes the test case management method in a specific implementation scenario, which specifically includes:
in an initial state, the test case management device compiles and acquires a test case to generate a first test case set, and records test case information, wherein the test case information comprises a test case identity, first priority information of the test case, a test step of the test case, an expected result of the test case, and after the test case is executed, the test result of the test case, a defect association item of the test case and update priority information (namely, second priority information) of the test case are also recorded; then the test case management device tests a first version to be tested according to the first test case set to obtain a test result of the first version to be tested, wherein the test result of the first version to be tested comprises defect priority information associated with the test case; then the test case management device calculates to obtain the updated priority information (namely, second priority information) of the test case according to the defect priority information and the first priority information of the test case set; the test case management device determines a test case set of a second version to be tested according to the updated priority information and the priority information of the newly added test case; and finally, the test case management device tests the second version to be tested according to the test case suite of the second version to be tested. The test case management device may test the third version to be tested or the fourth version to be tested, etc. by cycling through this operation.
In this embodiment, the test case management device associates the test case with the defect, and determines the test case range of the next test version and the update priority of the test case according to the priority information of the defect and the priority of the test case, so as to dynamically adjust the execution sequence of the test case, and implement the functions of effectively determining the test range and improving the test result.
The test case management method in the embodiment of the present application is described above, and the test case management apparatus in the embodiment of the present application is described below.
Specifically, referring to fig. 2, an embodiment of a test case management device in the embodiment of the present application includes:
an obtaining module 201, configured to obtain a first test case and a first priority of the first test case;
the execution module 202 is configured to test a first version to be tested by using the first test case, and determine a defect related to the first test case;
a recording module 203 for recording the priority information of the defect;
a calculating module 204, configured to calculate a second priority of the first test case according to the priority information of the defect and the first priority, where the second priority is a priority of the updated first test case;
the determining module 205 is configured to determine, according to the second priority, an execution sequence of the first test case in a second version to be tested, where the second version to be tested is an updated version of the first version to be tested.
Optionally, the calculating module 204 is specifically configured to calculate a second priority of the first test case by using a first formula according to the priority information of the defect and the first priority;
the first formula is:
wherein,second priority for indicating the ith test case, pjA first priority for indicating the ith test case, qnA weight value for indicating the nth priority defect corresponding to the ith test case, jnThe number of the nth priority defects corresponding to the ith test case is indicated, and the N is used for indicating the total number of the test cases.
Optionally, the execution module 202 is further configured to test the second version to be tested according to the updated execution sequence of the first test case.
Optionally, the execution module 202 is specifically configured to calculate an average priority of the test case of the second version to be tested;
judging whether the second priority of the first test case is greater than the average priority; if so, testing the second version to be tested by adopting the first test case, wherein the average priority is calculated according to the priority of the test case of the second version to be tested.
Optionally, the apparatus further includes a compiling module 206, where the compiling module 206 is configured to compile a test case set, where the test case set includes identity information of each test case and initial priority information of each test case;
the recording module 203 is configured to record the initial priority information of each test case.
In this embodiment, in the embodiment of the present application, the test case management device associates the test case with the defect, and determines the test case range of the next test version and the update priority of the test case according to the priority information of the defect and the priority of the test case, so as to dynamically adjust the execution sequence of the test case, and implement the functions of effectively determining the test range and improving the test result.
Specifically, referring to fig. 3, another embodiment of the test case management apparatus in the embodiment of the present application includes:
a transceiver 301, a processor 302, and a bus 303;
the transceiver 301 is connected to the processor 302 via the bus 303;
the bus 303 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 3, but this does not mean only one bus or one type of bus.
The processor 302 may be a Central Processing Unit (CPU), a Network Processor (NP), or a combination of a CPU and an NP.
The processor 302 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD), or a combination thereof. The PLD may be a Complex Programmable Logic Device (CPLD), a field-programmable gate array (FPGA), a General Array Logic (GAL), or any combination thereof.
Referring to fig. 3, the test case management apparatus may further include a memory 304. The memory 304 may include a volatile memory (volatile memory), such as a random-access memory (RAM); the memory may also include a non-volatile memory (non-volatile memory), such as a flash memory (flash memory), a Hard Disk Drive (HDD) or a solid-state drive (SSD); the memory 304 may also comprise a combination of the above-described types of memory.
Optionally, the memory 304 may also be used to store program instructions, and the processor 302 may call the program instructions stored in the memory 304, and may perform one or more steps in the embodiment shown in fig. 1, or in an alternative embodiment thereof, implement the function of the behavior of the test case management device in the above-described method.
The processor 302 performs the following steps:
acquiring a first test case and a first priority of the first test case; executing the first test case to test a first version to be tested, and determining defects related to the first test case;
the memory 304 performs the following steps:
recording priority information of the defect;
the processor 302 performs the following steps:
calculating a second priority of the first test case according to the priority information of the defect and the first priority, wherein the second priority is the priority of the first test case; and determining an execution sequence of the first test case in a second version to be tested according to the second priority, wherein the second version to be tested is an updated version of the first version to be tested.
Optionally, the processor 302 executes the following steps:
the second priority of the first test case set is calculated by a first formula according to the priority information of the defects and the first priority;
the first formula is:
wherein,second priority for indicating the ith test caseP isjA first priority for indicating the ith test case, qnA weight value for indicating the nth priority defect corresponding to the ith test case, jnThe method is used for indicating the number of the nth priority defects corresponding to the ith test case.
Optionally, the processor 302 executes the following steps:
and testing the second version to be tested according to the updated execution sequence of the first test case.
Optionally, the processor 302 executes the following steps:
judging whether the second priority of the first test case is greater than the average priority; if yes, testing the second version to be tested by adopting the first test case, wherein the average priority is obtained by calculation according to the priority of the test case of the second version to be tested
Optionally, the processor 302 is further configured to perform the following steps:
compiling a test case set, wherein the test case set comprises identity identification information of each test case and initial priority information of each test case;
the memory 304 performs the following steps:
and recording the initial priority information of each test case.
In this embodiment, in the embodiment of the present application, the test case management device associates the test case with the defect, and determines the test case range of the next test version and the update priority of the test case according to the priority information of the defect and the priority of the test case, so as to dynamically adjust the execution sequence of the test case, and implement the functions of effectively determining the test range and improving the test result.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (11)

1. A test case management method is characterized by comprising the following steps:
acquiring a first priority of a first test case;
testing a first version to be tested by adopting the first test case, and determining defects related to the first test case set;
recording priority information of the defect;
calculating a second priority of the first test case according to the priority information of the defect and the first priority, wherein the second priority is the updated priority of the first test case;
and determining an execution sequence of the first test case in a second version to be tested according to the second priority, wherein the second version to be tested is an updated version of the first version to be tested.
2. The method of claim 1, wherein calculating the second priority of the first test case based on the priority information of the defect and the first priority comprises:
calculating a second priority of each test case in the first test case set by using a first formula according to the priority information of the defect and the first priority;
the first formula is:
wherein,second priority for indicating the ith test case, pjA first priority for indicating the ith test case, qnA weight value for indicating the nth priority defect corresponding to the ith test case, jnThe method is used for indicating the number of the nth priority defects corresponding to the ith test case.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
and testing the second version to be tested according to the updated execution sequence of the first test case.
4. The method of claim 3, wherein testing the second version to be tested according to the updated execution sequence of the first test case comprises:
and judging whether the second priority of the first test case is greater than the average priority, if so, testing the second test version by adopting the first test case, and calculating the average priority according to the priority of the test case of the second version to be tested.
5. A test case management apparatus, comprising:
the system comprises an acquisition module, a judgment module and a control module, wherein the acquisition module is used for acquiring a first test case and a first priority of the first test case;
the execution module is used for testing a first version to be tested by adopting the first test case and determining the defects related to the first test case;
a recording module for recording priority information of the defect;
the calculation module is used for calculating a second priority of the first test case according to the priority information of the defect and the first priority, wherein the second priority is the updated priority of the first test case;
and the determining module is used for determining an execution sequence of the first test case in a second version to be tested according to the second priority, wherein the second version to be tested is an updated version of the first version to be tested.
6. The apparatus according to claim 5, wherein the calculating module is specifically configured to calculate the second priority of the first test case by using a first formula according to the priority information of the defect and the first priority;
the first formula is:
wherein,a second priority for indicating an ith test case, saidpjA first priority for indicating the ith test case, qnA weight value for indicating the nth priority defect corresponding to the ith test case, jnThe method is used for indicating the number of the nth priority defects corresponding to the ith test case.
7. The apparatus of claim 5 or 6, wherein the execution module is further configured to test the second version to be tested according to the updated execution sequence of the first test case.
8. The apparatus of claim 7, wherein the execution module is specifically configured to determine whether a second priority of the first test case is greater than an average priority, if so, test the second test version using the first test case, and the average priority is calculated according to a priority of a test case of the second to-be-tested version.
9. A test case management apparatus, comprising: a processor and a memory, wherein the memory has a computer readable program stored therein, and the processor is configured to execute the program in the memory to perform the method of any of claims 1 to 4.
10. A computer-readable storage medium comprising instructions which, when executed on a computer, cause the computer to perform the method of any of claims 1 to 4.
11. A computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of any one of claims 1 to 4.
CN201910252296.9A 2019-03-29 2019-03-29 A kind of testing case management and device Pending CN109947656A (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (7)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Title
朱凌燕: "基于缺陷的测试用例优先级排序方法", 《电子技术与软件工程 》 *
杨广华等: "基于需求的测试用例优先级排序", 《计算机工程与设计》 *

Cited By (4)

* Cited by examiner, † Cited by third party
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
US10402249B2 (en) Method and apparatus for failure classification
CN107025153B (en) Disk failure prediction method and device
CN107766236B (en) Test task automatic management method, device, equipment and storage medium
CN101593146B (en) Method and device for automatically testing page
CN111324303B (en) SSD garbage recycling method, SSD garbage recycling device, computer equipment and storage medium
CN108388509B (en) Software testing method, computer readable storage medium and terminal equipment
US11231854B2 (en) Methods and apparatus for estimating the wear of a non-volatile memory
CN110297767B (en) Automatic execution method, device, equipment and storage medium for test cases
CN111045881A (en) Slow disk detection method and system
WO2017131669A1 (en) Recommendations based on the impact of code changes
CN112333246B (en) ABtest experiment method and device, intelligent terminal and storage medium
CN109947656A (en) A kind of testing case management and device
CN111562884B (en) Data storage method and device and electronic equipment
CN112685275B (en) Algorithm policy search method and device, electronic equipment and storage medium
CN114595130A (en) Software stability evaluation method and device, storage medium and equipment
CN112506820B (en) USB port hardware parameter analysis method, device, equipment and storage medium
CN117170949A (en) Test method, test device, electronic equipment and readable storage medium
CN114355171B (en) Reconfigurable chip performance bottleneck detection platform, detection method and electronic equipment
CN111932142A (en) Method, device, equipment and storage medium for scheme grouping and data grouping
CN110888809A (en) Test task risk prediction method and device
CN114090357A (en) Hard disk performance test method and device, electronic equipment and storage medium
CN108269004B (en) Product life analysis method and terminal equipment
CN117951529B (en) Sample acquisition method, device and equipment for hard disk data fault prediction
CN117192343B (en) Chip testing method based on auxiliary system, electronic equipment and medium
CN113554126B (en) Sample evaluation method, device, equipment and computer readable storage medium

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