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
CN113254355BActive Publication Date: 2021-11-02云账户技术(天津)有限公司

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
云账户技术(天津)有限公司
Publication Date
2021-11-02

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

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.
Need to check novelty before this filing date? Find 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