grpc interface test method, device, electronic device and readable storage medium

A technology of interface testing and interface, which is applied in the computer field, can solve the problems such as cumbersome GPRC interface testing process, non-persistence of use cases, and many potential safety hazards, and achieve the effects of high test execution efficiency, realization of use case persistence, and improved security

Active Publication Date: 2021-11-02
云账户技术(天津)有限公司
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Embodiments of the present invention provide a GRPC interface testing method, device, electronic equipment, and readable storage medium to solve the problems in the prior art that the GPRC interface testing process is cumbersome, low testing efficiency, many potential safety hazards, and use cases cannot be persisted

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
  • grpc interface test method, device, electronic device and readable storage medium
  • grpc interface test method, device, electronic device and readable storage medium
  • grpc interface test method, device, electronic device and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0045] GRPC is a high-performance, open-source and general-purpose RPC (Remote Procedure Call, remote procedure call) framework, oriented to server and client, based on HTTP / 2 design. Developed by Google and open source, it is language-neutral and currently supports C, Java and Go languages, among which the C version supports C, C++, Node.js, C#, etc.

[0046] In GRPC, the client application can directly call the method of the server application on ano...

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 provides a GRPC interface testing method, device and electronic equipment, which relate to the field of computer technology. The method includes: configuring a test case based on a configuration interface, and the configuration content of the test case at least includes: basic information of the use case, the address of the interface server, and the address of the interface server. Port number, interface method name, and interface request parameters; splicing the configuration content of the test case and packaging it into the first instruction; generating a subprocess, using the first instruction as the input of the subprocess, and executing the first instruction; when the first instruction is executed Call the interface of the interface server and obtain the return value of the interface request parameter; obtain the return value of the interface request parameter as the output content of the subprocess, and generate the test result of the test case according to the output content; display the basic information of the test case on the configuration interface and test results. It solves the problems of cumbersome GPRC interface testing process, low testing efficiency, many safety hazards and inability to persist use cases in the prior art.

Description

technical field [0001] The embodiment of the present invention relates to the field of computer technology, in particular to a GRPC interface testing method, device, electronic equipment and readable storage medium. Background technique [0002] GRPC is a high-performance, general-purpose open source RPC (Remote Procedure Call Protocol, remote procedure call protocol) framework, which is widely used in inter-service calls due to its support for multiple languages, clear interface definitions, and fast transmission speed. Test work follows. [0003] Interface testing is a relatively important task in the testing work, but currently there is no more general testing method for GRPC interface testing. Disadvantages of existing GRPC interface testing methods: 1) Converting GRPC interface to HTTP interface for testing requires a large investment, the interface is exposed to the outside world, and there are security issues; 2) Obtain the proto file, compile the proto file, and sim...

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/36
CPCG06F11/3684G06F11/3688
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