Method and device for generating software test data

A technology for data generation and software testing, which is applied in software testing/debugging, database management systems, structured data retrieval, etc. It can solve problems such as manual maintenance difficulties, high operating costs, and the inability of Docker containers to provide data, and achieve automatic generation efficiency High, complete data link, improve the effect of test efficiency

Active Publication Date: 2021-08-17
销冠网络科技有限公司
View PDF0 Cites 0 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
  • Method and device for generating software test data
  • Method and device for generating software test data
  • Method and device for generating software test data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] In order to make the objects, technical solutions, and advantages of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings.

[0038] like figure 1 As shown, a software test data generation method of the present invention, including:

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

[0040] S2. Request data parameters of each of the interfaces;

[0041] S3. Package the business process including multiple associated interfaces into independent data generation rules, define each of the data generation rules to define each of the data generation rules; the service packages are required to be encapsulated because the above process is only generated a single request. Method, and a business process often contains multiple interfaces, such as users register this business process: You need to ...

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 device for generating software test data, comprising: automatically analyzing the interface document of each interface of the server, generating and saving interface request data of a standard structure; parameterizing each of the interface request data; A business process including multiple associated interfaces is encapsulated into independent data generation rules, and each data generation rule is defined through a label; the data generation rule corresponding to the label is invoked through the label to generate the required business data. The method in the present invention can make the operation visualized and the data sample controllable. In a software system with complex business logic, deep path and high coupling, the tester does not need to understand the complex pre-business logic of the current test object, but only needs to The required test data can be generated by entering the corresponding tags and attributes, and the data link is complete, with high accuracy and high automatic generation efficiency.

Description

Technical field [0001] The present invention relates to preparation and maintenance of data, and more particularly to a software test data generation method and apparatus. Background technique [0002] Now most products, especially Internet products, are now using databases to save data. Each function of the product also relies on the corresponding business data, so in software testing, the preparation and maintenance of test data is a very important aspect. Especially for software systems with complex service logic, high path, high coupling, when the test object is in the end of the business, it is time-consuming time-consuming. Similarly, the preparation and management of test data is also the premise of continuous integration and automation tests. Otherwise, due to business restrictions, it will cause automation cases that cannot be repeatedly executed, and it has lost its meaning. [0003] The way to test data generation can be roughly divided into: generate directly using SQ...

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 Patents(China)
IPC IPC(8): G06F11/36G06F16/25
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