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

Interface testing method and system

An interface testing and interface technology, applied in the Internet field, can solve problems such as incorrect modification, mistaken deletion of source code files, mistaken addition and compilation of temporary files, maintenance burden, time waste, etc., so as to improve development efficiency, reduce time costs, The effect of reducing the occupancy of storage resources and computing resources

Active Publication Date: 2022-02-18
TENCENT TECH (SHENZHEN) CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Considering that business development may rely on multiple interfaces of multiple services of multiple developers, the cost of communication is higher
In addition, both the inquiring party and the inquired party are constantly repeating this communication process, and the communication time increases with the number of communication times, which seriously wastes time.
[0005] 2) The interface caller repeatedly generates test codes, wasting the company's storage and computing resources
[0006] 3) The caller of the interface has checked out the complete project code. Although the purpose is only to test the interface, the possibility of mistaken modification, mistaken deletion of source code files and mistaken addition of temporary files for compilation cannot be completely ruled out, which will cause serious damage to the project code. pollution, which brings additional burden for subsequent maintenance

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 and system
  • Interface testing method and system
  • Interface testing method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0039] This embodiment provides an interface testing system. image 3 is a structural block diagram of the interface testing system provided by the embodiment of the present invention, such as image 3 As shown, the system includes a management module 10 , an analysis module 20 , a test program construction module 30 , a test page construction module 40 and a storage module 50 .

[0040] Wherein, the management module 10 is used for obtaining protocol data, and the protocol data includes protocol description file, protocol type and service deployment information.

[0041] The parsing module 20 is used to obtain the protocol description file from the management module 10 , process the protocol description file to obtain metadata, and return the metadata to the management module 10 .

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 relates to the technical field of the Internet, in particular to an interface testing method and system. The present invention builds an interface testing system, and after the interface developer enters the protocol data into the testing system, the system will analyze the protocol description file to extract metadata, use metadata, protocol type and service deployment information to automatically generate a test program, and automatically build a front-end based on metadata Test the page and maintain the protocol-related information; when the subsequent interface caller tests the protocol, by viewing the protocol maintenance information and selecting the test protocol, the test page corresponding to the selected protocol can be automatically loaded, and further by setting the interface included under the protocol information, the selected interface can be tested and the test result can be obtained automatically. During the entire test process, there is no need for the interface caller to communicate with the interface developer, nor is it necessary to check out the complete project code, which greatly reduces time and communication costs, reduces the occupation of storage resources and computing resources, and improves development efficiency.

Description

technical field [0001] The invention relates to the technical field of the Internet, in particular to an interface testing method and system. Background technique [0002] With the growth of business scale, more and more background service grpc interfaces are involved. How to quickly verify and test grpc interfaces before new service development has become a problem that must be faced. [0003] At present, developers can only test through the existing interface testing method. The sequence diagram of the existing interface testing method is as follows figure 1 shown. See figure 1 , developer 1 represents the service developer, who submits the service code and proto file to the version control system and completes the service deployment. Developer 2 represents a new business developer who wants to test the grpc interface request parameters and response results of the service. According to the existing test method, first obtain the source code of the service from the versio...

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): H04L43/50
CPCH04L43/50
Inventor 张杰衡阵
Owner TENCENT TECH (SHENZHEN) CO LTD