Method and device for generating test case

A test case and testing technology, applied in the field of testing, can solve problems such as fault leakage, task cycle inconsistency, single basis, etc., to achieve the effect of reducing the probability of fault leakage, increasing coverage, and improving control efficiency

Active Publication Date: 2011-03-09
ZTE CORP
View PDF5 Cites 32 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Using the above test method, although the test efficiency and test progress have been improved to a certain extent, it has brought the following technical defects: when selecting the test factor combination for generating test cases, the typical combination is only determined according to the priority of the test factors , the basis for determining the typical combination is relatively single. On the one hand, the test scenarios contained in the generated test cases may not accurately reflect the actual test requirements, which may cause the test cases to fail to cover the current test scenarios that most need to be t...

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for generating test case
  • Method and device for generating test case
  • Method and device for generating test case

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] In view of the above-mentioned technical problems existing in the prior art, the embodiment of the present invention provides a method for generating test cases, so as to improve the coverage rate of core test scenarios and improve the control efficiency of fault leakage. The method includes: combining the test factors included in the test category to generate a plurality of test factor combinations; for each test factor combination, determining the priority of the test factor combination according to the attributes of each test factor in the test factor combination, And according to the priority of the test factor combination, the test factor combination is classified into the set of corresponding priority; according to the test phase, test coverage scale or task cycle of the current test, the corresponding test factor combination is selected from the higher priority set. The number of test factor combinations; generate test cases based on the selected test factor combi...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method and a device for generating a test case, which are used for increasing the coverage on a core test scene so as to improve the efficiency for controlling fault leakage. The method comprises the following steps: combining test factors contained in a test class, and generating a plurality of test factor combinations; for each test factor combination, determining the priority of the test factor combination according to the attribute of each test factor in the test factor combination, and classifying the test factor combination into a set of the corresponding priority according to the priority of the test factor combination; selecting a corresponding quantity of test factor combinations from the set according to the test phase, the test coverage or the task cycle of the current test; and generating a test case based on the selected test factor combinations. By using the technical scheme, the coverage on a core test scene can be increased, and the efficiency for controlling fault leakage can be improved.

Description

technical field [0001] The invention relates to the field of testing, in particular to a method and device for generating test cases. Background technique [0002] At present, when performing software system testing, the function points to be tested are generally tested one by one through pre-set test cases. A test case is a set of inputs, execution conditions, and predicted results compiled for a particular purpose in order to test a program path or verify that a particular requirement is met. Test cases are mainly applicable to integration tests, system tests and regression tests. When implementing tests, testers take the set test cases as the standard and perform corresponding test operations in strict accordance with the test items and test steps set in the test cases. Situations are recorded in the test case management software to automatically generate test results documentation. When the scale of the test case expands to a certain extent, if all the items in the tes...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F11/36
Inventor 刘宗昌
Owner ZTE CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products