Software testing data generation method and device

A technology for data generation and software testing, which is applied in software testing/debugging, electrical digital data processing, special data processing applications, etc. It can solve the problems that Docker containers cannot provide data, manual maintenance is difficult, and operation costs are high, and achieve automatic generation efficiency High, improve test efficiency, complete data link effect

Active Publication Date: 2017-12-15
销冠网络科技有限公司
View PDF25 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

All of these have their advantages and disadvantages. SQL generation requires testers to fully understand the business code and data structure, which is equivalent to reimplementing the business method with SQL, and the operation cost is high; the Docker container cannot provide enough sample data, because the data of the container itself needs to be prepared , the production traffic playback needs to keep the local test and production environment exactly the same, and the test data generation is mostly to serve the test of new requirements
The method of calling the business interface generation is the most reliable way, but because the business interface is independent, when the business scenario path is deep, a business scenario will cover a large number of interfaces, making manual maintenance difficult, and interface input parameters also need to be manually modified. Data generation efficiency is no different from manual operation

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
  • Software testing data generation method and device
  • Software testing data generation method and device
  • Software testing data generation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be described in further detail below in conjunction with specific embodiments and with reference to the accompanying drawings.

[0038] Such as figure 1 As shown, a method for generating software test data in an embodiment of the present invention includes:

[0039] S1. Automatically analyze the interface document of each interface of the server, and generate and save the interface request data of the standard structure;

[0040] S2. Parameterizing each of the interface request data;

[0041] S3. Encapsulate the business process including multiple associated interfaces into independent data generation rules, and define each data generation rule through tags; the reason why the business process needs to be encapsulated is because: the above process only generates a single request method, and a business process often includes multiple interfaces, s...

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 software testing data generation method and device. The method comprises the steps that an interface document of each interface of a server is automatically analyzed, interface request data of a standard structure is generated and saved; each piece of the interface request data is parameterized; service processes including multiple associated interfaces are packaged into independent data generation rules, and each data generation rule is defined through a label; the data generation rule corresponding to the label is called through the label and is used for generating the needed service data. By means of the method, operation can be visualized, and a data sample can be controlled; in a software system with complicated service logic, deep path and high coupling, it is unnecessary for testing personnel to learn the complicated prepositional service logic of a current tested object, it is only necessary to input the corresponding label and attribute to generate the needed testing data, moreover, the data link is complete, the accuracy is high, and the efficiency of automated generation is high.

Description

technical field [0001] The invention relates to data preparation and maintenance, in particular to a method and device for generating software test data. Background technique [0002] Most products nowadays, especially Internet products, use databases to save data. Each function of the product also depends on the corresponding business data, so in software testing, the preparation and maintenance of test data becomes a very important aspect. Especially for software systems with complex business logic, deep paths, and high coupling, when the test object is at the end of the business, it is time-consuming and labor-intensive to manually prepare the pre-service data that the test object depends on. Similarly, the preparation and management of test data is also a prerequisite for continuous integration and automated testing. Otherwise, due to business constraints, automated use cases cannot be executed repeatedly, and their meaning of existence will be lost. [0003] The metho...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36G06F17/30
CPCG06F11/3688G06F16/252
Inventor 李环焕
Owner 销冠网络科技有限公司
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