Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for generating automatic test case based on traffic recording

A technology of automated testing and test cases, applied in software testing/debugging, error detection/correction, instruments, etc., can solve problems such as incomplete scene verification, and achieve the effect of ensuring scene diversity

Inactive Publication Date: 2021-05-04
SICHUAN XW BANK CO LTD
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Based on the above problems, the present invention provides a method for generating automated test cases based on traffic recording, which overcomes the problem of incomplete scene verification in traditional solutions and ensures the diversity of test case scenarios. The generated cases can be executed repeatedly and the interface requests data Authenticity and diversity are preserved

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] The present invention will be further described below in conjunction with the embodiments, and the described embodiments are only a part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, other used embodiments obtained by persons of ordinary skill in the art without creative efforts all belong to the protection scope of the present invention.

[0029] In order to illustrate the technical solutions of the embodiments of this specification more clearly, the embodiments will be briefly introduced below. Apparently, the following descriptions are only some examples or embodiments of this specification, and those skilled in the art can also apply this specification to other similar scenarios without creative efforts.

[0030] A method for generating automated test cases based on traffic recordings.

[0031] The program consists of the following main steps:

[0032] Step 1: Record the traffic of the system under...

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 belongs to the technical field of software development and software testing, and discloses a method for generating an automatic test case based on traffic recording, which comprises: 1, a step of recording the traffic of a tested system, acquiring http protocol elements of the traffic, and storing analyzed data in a database according to a self-defined format; 2, a step of case model design, namely a step of performing model design based on multiple scenes to establish a model library, playing back recorded traffic stored in a database, matching recorded user-defined format data of the http protocol elements with models in the model library, generating test scenes, and storing the test scenes as a test case set; and 3, a step of generating an automatic test script based on the test case set, reading out each test scene in the case set one by one, calling an automatic generation case function module, and automatically generating a test case script. The problem that scene verification is incomplete is solved, repeated execution can be achieved, and the authenticity and diversity of interface request data are saved.

Description

technical field [0001] The invention belongs to the technical field of software development and software testing, and in particular relates to a method for generating automated test cases based on traffic recording. Background technique [0002] In the Internet industry, it is often necessary to test the system. Generally speaking, the traditional solution is that testers analyze based on tests, and then write automated test cases based on the results of test analysis. [0003] In actual operation, this processing method does not take into account the various scenarios in production and the variety of data requested in production, which may easily lead to incomplete verification of scenarios and production accidents. Contents of the invention [0004] Based on the above problems, the present invention provides a method for generating automated test cases based on traffic recording, which overcomes the problem of incomplete scene verification in traditional solutions and e...

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/3684
Inventor 黄勇雷望唐博熊阳
Owner SICHUAN XW BANK CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products