Automatic test case generation method and system

A test case and automatic generation technology, applied in software testing/debugging, program control devices, etc., can solve the problems of time-consuming test case writing and low coverage.

Inactive Publication Date: 2013-03-27
ALIBABA GRP HLDG LTD
View PDF4 Cites 37 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The technical problem to be solved in this application is to provide a method and system for automatic

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
  • Automatic test case generation method and system
  • Automatic test case generation method and system
  • Automatic test case generation method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0050] refer to figure 1 , showing a first embodiment of a test case automatic generation method of the present application, including the following steps:

[0051] In step 101, data of test parameters of a preset model and a parameter combination strategy are obtained, and multiple sets of test data are generated according to the parameter combination strategy.

[0052] Among them, the parameter combination strategy is defined according to the needs, for example, expand the test parameters according to the Cartesian product, or expand the test parameters according to the principle of changing only one type of parameters each time, and so on. The test parameter refers to an API (Application Programming Interface, application programming interface) or a parameter of an interface function or a logical parameter required by a preset model.

[0053] Among them, the test parameters are expanded according to the Cartesian product, such as {"d1": [a, b]", "d2": [c, d]"}, which will ...

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 application of the invention provides an automatic test case generation method, which comprises the following steps of: 101) acquiring test parameters and parameter combination strategies, and generating groups of test data according to the parameter combination strategies; 102) selecting a group of test data, and determining input parameters and expected output of test actions according to a preset model; 103) on the basis of the determined input parameters and the expected output of the test actions, calling the sequence of test actions according to the preset model to create a dynamic test path, wherein the dynamic test path is an array container in which the test actions and calibration actions are orderly stored; and 104) outputting the dynamic test path to obtain a group of test cases. The application of the invention additionally provides an automatic test case generation system. The automatic test case generation method and the automatic test case generation system provided by the application of the invention can solve the problems that the test cases are tine-consuming to compile and the coverage rate is low.

Description

technical field [0001] The present application relates to the technical field of computer testing, in particular to a method and system for automatically generating test cases. Background technique [0002] Computer products usually need to be tested before they are put into use, for example, testing the product according to the functional design specifications of the known product to verify whether each function of the product meets the requirements, or testing the product according to the internal working process of the product, To verify whether each internal operation of the product meets the design specification requirements and so on. [0003] Among them, automated testing is usually implemented by writing test codes based on test cases, and test cases refer to a set of test inputs, execution conditions, and expected results developed for specific goals. When testing, programmers usually write test codes based on test cases. Because there are many test cases and test...

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): G06F9/44G06F11/36
Inventor 易棉生
Owner ALIBABA GRP HLDG LTD
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