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

Dynamic construction method and system for cross-language protocol test request

A technology of protocol testing and construction methods, which is applied in software testing/debugging, error detection/correction, inter-program communication, etc., and can solve problems such as high cost, complex structure, and invisibility

Active Publication Date: 2018-10-02
ELONGNET INFORMATION TECH (BEIJING) CO LTD
View PDF6 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] At present, software development projects based on cross-language services (for example, based on Thrift and protobuf) have the following common problems: 1. Huge structure; 2. Many structural attributes; 3. Complex structure
[0004] 1. There is no public open source tool (such as postman, restclient) that supports the http protocol to support thrift and protobuf;
[0005] 2. Use python scripts and java codes to construct requests, and the modes are all local and cannot be shared. Local requests will also involve the support of the thrift environment, the installation of the language jdk, and other processes;
[0006] 3. When the interface file is changed, the process of locally compiling and then modifying the script is required every time. For different parameters, the script needs to be modified repeatedly;
[0007] 4. For the general mode of constructing requests based on html pages, if the interface file is changed, it will go through the process of recompiling, modifying html pages, modifying server requests, and assembling parameters;
[0008] 5. According to the interface properties, to find the top-level structure, it is not intuitive and time-consuming to reverse layer by layer according to the interface definition file;
like figure 1 As shown, the change of the interface file or the introduction of the new thrift file requires re-development and re-maintenance, which costs a lot

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
  • Dynamic construction method and system for cross-language protocol test request
  • Dynamic construction method and system for cross-language protocol test request
  • Dynamic construction method and system for cross-language protocol test request

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] Those skilled in the art can understand that although the following description involves many technical details related to the embodiments of the present invention, this is only an example for illustrating the principle of the present invention, and does not imply any limitation. The present invention can be applied to occasions other than the technical details exemplified below, as long as they do not deviate from the principle and spirit of the present invention.

[0026] In addition, in order to avoid making the description in this manual limited to redundant, in the description in this manual, some technical details that can be obtained in the existing technical documents may be omitted, simplified, modified, etc. understandable to human beings, and this does not affect the adequacy of the disclosure of this specification.

[0027] Below, the implementation of the technical solution will be further described in detail in conjunction with the accompanying drawings. ...

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 a dynamic construction method and system for a cross-language protocol test request. The method comprises the following steps of 1, configuring remote service information andremote method information of remote services to form a configuration file; 2, according to the configuration file, dynamically generating and displaying a list of remote methods which can be called toa user; 3, according to the remote services and the remote methods selected from the list by the user, determining the remote services based on the configuration file, analyzing parameter informationfrom an interface file, and according to the parameter information, dynamically generating and displaying a parameter list to the user; 4, according to required parameters selected from the parameterlist by the user, dynamically generating and displaying a parameter input interface to the user, and inputting contents of the required parameters in the parameter input interface by the user; 5, according to the specific contents of the required parameters input by the user, forming the cross-language protocol test request, calling the remote methods through the cross-language protocol test request; and 6, structuring a received executive result and displaying the result to the user.

Description

technical field [0001] The invention relates to the technical field of computer program testing, in particular to a method for dynamically constructing a cross-language protocol testing request. Background technique [0002] At present, software development projects based on cross-language services (for example, based on Thrift and protobuf) have the following common problems: 1. Huge structure; 2. Many structural attributes; 3. Complex structure levels. Therefore, in the process of development, debugging or software testing, the construction of the client request is relatively difficult. [0003] At present, there are still the following problems in the construction of client requests for cross-language protocols in the industry: [0004] 1. There is no public open source tool (such as postman, restclient) that supports the http protocol to support thrift and protobuf; [0005] 2. Use python scripts and java codes to construct requests, and the modes are all local and can...

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
IPC IPC(8): G06F11/36G06F9/54
CPCG06F9/547G06F11/3672
Inventor 江浩
Owner ELONGNET INFORMATION TECH (BEIJING) 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