Test method and device, electronic equipment and computer storage medium

A test method and technology for testing requests, applied in the field of testing, can solve problems such as inflexible baffle programs, high frequency of interface changes, and large limitations of baffle programs

Pending Publication Date: 2021-05-07
CHINA CITIC BANK
View PDF0 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the inventors of the present application found in the process of specific examples that the use of the baffle program itself has great limitations
First of all, the baffle program itself is not flexible enough. Each service that needs to be mocked needs to write a baffle separately, and the result returned by calling the baffle program is a static result, and it is impossible to return a specific response according to different inputs.
Second, when the interface of the microservice under test changes, the bezel program needs to be modified and upgraded in a targeted manner. In the early stage of development, the frequency of interface changes is very high
Third, the baffle program needs to be deployed separately and takes up hardware resources
Fourth, the implantation of the baffle may require modifying the calling address in the code configuration file. If there is intrusion into the service code, the removal of the baffle also needs to be removed manually.

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
  • Test method and device, electronic equipment and computer storage medium
  • Test method and device, electronic equipment and computer storage medium
  • Test method and device, electronic equipment and computer storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] Embodiments of the present application are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary only for explaining the present application, and are not construed as limiting the present application.

[0044] Those skilled in the art will understand that unless otherwise stated, the singular forms "a", "an", "said" and "the" used herein may also include plural forms. It should be further understood that the word "comprising" used in the specification of the present application refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, Integers, steps, operations, elements, components, and / or groups thereof. It will be under...

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 embodiment of the invention relates to the technical field of testing, and discloses a testing method and device, electronic equipment and a computer storage medium, and the testing method comprises the steps: receiving a testing request sent by a client for any micro-service, wherein the any micro-service is a real service and / or a baffle service, the real service comprises a service of a service node marked by a baffle pointer in the test link, the baffle service comprises services of service nodes except the service node marked by the baffle pointer in the test link, and the test link comprises a plurality of service nodes; then, obtaining routing information of each service node included in any micro-service; and then, based on the routing information of each service node included in any micro-service, testing the test request and returning a corresponding test result. According to the method provided by the embodiment of the invention, the service nodes are marked in a pointer manner, so that the zero-invasion and pluggable baffle is achieved, and meanwhile, the baffle can be freely adjusted left and right like a vernier.

Description

technical field [0001] The embodiments of the present application relate to the field of testing, and specifically, the present application relates to a testing method, device, electronic equipment, and computer storage medium. Background technique [0002] In the field of Internet distributed technology, the architecture model of microservices has gradually occupied the mainstream position. After the application module is split into microservices, the dependencies and collaboration network between services become intricate. How to improve the testability of microservices with external dependencies will directly affect the cycle and quality of software delivery. [0003] In the existing microservice testing technology, the way of developing interface baffle program is often used to solve the external dependency problem. For example, when testing an interface, mock testing is often used to simulate the actual working environment. Mock testing is to create a virtual object fo...

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/36H04L29/08
CPCG06F11/3684G06F11/3692G06F11/3696H04L67/1001H04L67/63
Inventor 李辉魏广源高蕊冷炜
Owner CHINA CITIC BANK
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