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

WebSocket interface test method, device and equipment

A testing method and interface testing technology, applied in the testing of WebSocket interface and the field of computer readable storage media, can solve the problems of front-end testing, limit the progress of front-end development work, low efficiency of interface joint debugging, etc., and achieve the effect of improving accuracy

Pending Publication Date: 2021-03-19
HANGZHOU ANHENG INFORMATION TECH CO LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If the background development work is not completed, the front-end cannot obtain data through the interface for testing, which greatly limits the development progress of the front-end, resulting in low efficiency of interface joint debugging
[0005] Since the existing Mock platform for WebSocket in the development process cannot provide WebSocket services, in order to speed up the progress of front-end development, front-end developers can only skip the link with the service and hard-code some test data related to the WebSocket interface. The testing method of the WebSocket interface not only increases the work of the front-end developers, but the coded test data often cannot accurately reflect the actual situation of the WebSocket interface

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
  • WebSocket interface test method, device and equipment
  • WebSocket interface test method, device and equipment
  • WebSocket interface test method, device and equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] The core of the present invention is to provide a testing method, device, equipment and computer-readable storage medium of a WebSocket interface, which facilitates front-end developers to test the WebSocket interface by simulating real WebSocket interface services.

[0041] 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 only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0042] figure 1 It is a flow chart of a method for testing a WebSocket interface provided by an embodiment of the present invention.

[0043] Such as figure 1As shown, the testing method...

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 discloses a WebSocket interface test method, device and equipment, and a computer readable storage medium, and the method comprises the steps: firstly obtaining WebSocket interface configuration, calling a container definition file, generating a WebSocket interface service container according to the WebSocket interface configuration, then sending the information of the WebSocket interface service container to a front-end processor, and according to the configuration of the front-end processor for the WebSocket interface service container; generating the WebSocket test case container according to the WebSocket interface test result, so that front-end developers can perform WebSocket interface test by using the WebSocket test case container, the front-end developers do not needto encode test data related to the WebSocket interface, real independent WebSocket services can be simulated for the front-end developers, and the accuracy of the WebSocket interface test result is improved.

Description

technical field [0001] The invention relates to the technical field of interface testing, in particular to a testing method, device, equipment and computer-readable storage medium of a WebSocket interface. Background technique [0002] Hypertext Transfer Protocol (hereinafter referred to as HTTP protocol) communication can only be that the client sends a request to the server, and the server returns the query result. The HTTP protocol cannot allow the server to actively push information to the client. In the early days, many websites used polling in order to implement push technology, that is, at a specific time interval (such as every second), the browser sends an HTTP request to the server, and then the server returns the latest data to the client's browser. . This traditional mode has obvious disadvantages, that is, the browser needs to continuously send requests to the server, but the HTTP request may contain a long header, and the real valid data may only be a small p...

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/36
CPCG06F11/3684G06F11/3688
Inventor 车雅楠范渊黄进
Owner HANGZHOU ANHENG INFORMATION TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More