Test template for automatically generating test case according to preset rules and test method

A test case and automatic generation technology, applied in the database field, to reduce time, simplify test complexity, and improve test coverage.

Inactive Publication Date: 2016-04-20
TIANJIN NANKAI UNIV GENERAL DATA TECH
View PDF5 Cites 22 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Abnormal testing is inevitable in all testing processes, but there are many trigger points and test factors in abnormal testing, and it is difficult to manually exhaustive...

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
  • Test template for automatically generating test case according to preset rules and test method
  • Test template for automatically generating test case according to preset rules and test method
  • Test template for automatically generating test case according to preset rules and test method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0049] Embodiment 1: described in the present invention is the test template and test method that automatically generates test cases according to preset rules, wherein, the format of the test templates that automatically generates test cases according to preset rules is yaml format, as follows:

[0050]

[0051]

[0052] The test template is divided into two parts, a parameter definition area and a test case execution step definition area. 1. The parameters in the parameter definition area are specified in the form of "parameter name: parameter value", and the quantity and content of the parameter name and parameter value can be specified at will. These parameters are further divided into mandatory parameters and optional parameters. Among them, the mandatory parameters must be written according to the rules in each test template, while optional parameters can be set freely. At the same time, there can be multiple or one parameter values, and multiple parameter values ​​...

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 test template for automatically generating a test case according to preset rules and a test method, and mainly relates to the field of databases. The test template comprises a parameter definition area and an execution step definition area, wherein parameters in the parameter definition area can be defined randomly, the execution step definition area assigns test scripts called by each step, each test script comprises a description function, a detail function and a process function, the description function is used for realizing output of summary information of the step, the detail function is used for realizing specific test steps executed in the step, and the process function is used for realizing the test process required to be executed in the step. According to the test template and the test method, the test case is automatically combined through an executable self-describing optional-parameter process, the test time can be greatly shortened, and manpower demand for a test is reduced.

Description

technical field [0001] The invention relates to the field of databases, in particular to a test template and a test method for automatically generating test cases according to preset rules. Background technique [0002] In the process of test implementation, manually writing test cases requires a lot of labor costs, and the test cases of the same function will have different degrees of similarities in execution steps, test premise, and expected inspection. These repetitive tasks are necessary. However, it takes up a lot of testing time, and the format and style of test cases written by each tester are different, so if the style can be unified and text test cases can be automatically generated through simple organization, the test workload can be greatly reduced. And it can also make the content of the document uniform and detailed. [0003] In all testing processes, abnormal testing is inevitable, but there are many trigger points and test factors for abnormal testing, and ...

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
CPCG06F11/3668
Inventor 武新崔维力张娜郭彬
Owner TIANJIN NANKAI UNIV GENERAL DATA TECH
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