Unlock instant, AI-driven research and patent intelligence for your innovation.

Interface testing method, device, computer equipment and storage medium based on http

A technology of interface testing and interface, which is applied in computing, software testing/debugging, error detection/correction, etc. It can solve problems such as difficulty in realizing data drive, increasing difficulty in writing test cases, poor readability and maintainability of test data, etc.

Active Publication Date: 2020-12-25
PINGAN INT SMART CITY TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, it is implemented through test code, which will increase the difficulty of writing test cases, poor readability and maintainability of test data, and difficult to achieve data-driven, resulting in low efficiency of interface testing

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
  • Interface testing method, device, computer equipment and storage medium based on http
  • Interface testing method, device, computer equipment and storage medium based on http
  • Interface testing method, device, computer equipment and storage medium based on http

Examples

Experimental program
Comparison scheme
Effect test

specific Embodiment approach

[0120] see Figure 4 , Figure 4 A specific implementation manner before step S1 is shown, including:

[0121] S01: Obtain the data packet and application protocol type of the application.

[0122] Specifically, the data package of the application program contains all data related to the application program test, specifically including interface data, JAVA classes, configuration files, and data to ensure the normal operation of the test. The data package is generally a compressed data package, such as a Jar package ( JavaArchive, Java archive file), War package (WebArchive file, web application file), etc. Application protocol types include but are not limited to http protocol, dubbo protocol, webservice protocol, socket protocol, rest request protocol and protocolbuffer protocol, etc.

[0123] S02: Analyze the data packet to obtain the interface data of the application program, and convert the interface data into a preset data format according to the application protocol t...

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

This application relates to the technical field of software testing, and discloses an HTTP-based interface testing method, device, computer equipment, and storage medium, wherein the method includes: receiving and reading test data of test cases, and analyzing the test Analyze the data, then match the test data and the request parameters corresponding to the interface, initiate an http interface request, then receive and parse the return request response of the http interface request, and obtain the interface response assertion and assertion expected result from the returned request response, through the analysis interface Respond to the assertion, obtain the interface response result, and perform matching calculation on the interface response result and the assertion expected result, obtain the marked interface test result, and finally generate the test result according to the marked interface test result. This application also relates to block chain technology, and test data is stored in the block chain. This application improves the efficiency of interface testing through the design of interface assertion.

Description

technical field [0001] The application relates to the field of software testing, in particular to an HTTP-based interface testing method, device, computer equipment and storage medium. Background technique [0002] With the development of Internet technology, more and more software projects are being developed, and interface testing is a very important testing link in software project engineering. Interface testing mainly tests the interfaces provided by these software projects (or understood as software systems) to the outside to verify the correctness and stability of these interfaces. The focus of the interface test is to check the exchange of data, specifically by passing the test parameters of the interface to the server, and then receiving the return result returned by the server, and verifying the correctness of the return result to complete the interface test. [0003] When performing HTTP interface testing, in order to support data-driven testing, the data needs to...

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/36G06F40/151H04L29/08
CPCG06F11/3688G06F40/151H04L67/02
Inventor 艾可德
Owner PINGAN INT SMART CITY TECH CO LTD