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

Automatic association method for automatic interface test

A technology of automated testing and interface testing, which is applied in software testing/debugging, error detection/correction, transmission systems, etc. It can solve the problems of increased difficulty for interface testers, large time for writing codes and debugging codes, etc., and achieves low requirements for code ability , reduce difficulty and improve work efficiency

Active Publication Date: 2017-08-08
SICHUAN CHANGHONG ELECTRIC CO LTD
View PDF4 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] For the above scenarios, most of them are implemented by code code, which undoubtedly increases the difficulty for interface testers, and spends a lot of time writing and debugging code

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 association method for automatic interface test

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0027] like figure 1 As shown, an automatic association method for interface automated testing, including a data module, an association module and a request module, the data module is used to provide the interface test data of each interface, and the association module is used to analyze the transmission of the data module The interface test data that comes over generates association files, association judgments, and association processing. The request module is used to process interface requests and responses. The automatic association method is as follows:

[0028] A. The interface test data of each interface is prepared in the data module, each interface in the data module contains an interface test data, and the specific content of the interface test data includes request data and associated data, and the request Data includes addresses, parameters, response messages, and message bodies;

[0029] If the request data of this interface needs to be associated with other inte...

Embodiment 2

[0041] like figure 1 As shown, an automatic association method for interface automated testing, including a data module, an association module and a request module, the data module is used to provide the interface test data of each interface, and the association module is used to analyze the transmission of the data module The interface test data that comes over generates association files, association judgments, and association processing. The request module is used to process interface requests and responses. The automatic association method is as follows:

[0042] Step 1. The interface test data is prepared in the data module, and the interface data can be data in a json format, as follows:

[0043] 1.1. Each piece of interface information includes request data (headers, url, method, body), interface name (name) and assertion information (tests). If the request data of this interface needs to be associated with other interfaces, then the request data Set the value of the d...

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 an automatic association method for an automatic interface test. The automatic association method comprises a data module, an association module and a request module, the data module is used for providing interface test data for each interface, the association module is used for analyzing the interface test data transmitted by the data module to generate an association file, and performing association judgment and association processing, and the request module is used for processing interface requests and making response. According to the automatic association method disclosed by the invention, a separate mode of data and service is adopted, and interface test personnel only need to prepare the interface test data to realize automatic interface association. Moreover, the test data are easy to maintain, the requirements on the code ability are low, the difficulty of the automatic interface test is greatly reduced, and the working efficiency is improved.

Description

technical field [0001] The invention relates to the field of automated testing, in particular to an automatic association method for interface automated testing. Background technique [0002] With the development of cloud computing and big data, many manufacturers provide external services based on the form of services. It is necessary to ensure the effectiveness and reliability of services through interface testing. Therefore, interface automation testing has emerged as the times require. Most of the existing interface automation testing schemes provide a set of systematic methods, but do not provide a solution for how to realize interface automatic correlation, which leads to difficulties in carrying out interface automation testing. [0003] In the implementation of interface automated testing, it is no longer a simple single interface test, there is a need to associate interfaces, such as: [0004] 1) The input of one interface requires a certain field or part of the re...

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): H04L12/26H04L29/06G06F11/36
CPCG06F11/3688H04L43/50H04L63/0807
Inventor 严金勇师洛蓓
Owner SICHUAN CHANGHONG ELECTRIC 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