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

Test method and device, electronic equipment and computer storage medium

A test method and a technology for test requests, applied in the test field, can solve problems such as the limitations of the bezel program, the occupation of hardware resources, and the high frequency of interface changes

Pending Publication Date: 2021-05-07
CHINA CITIC BANK
View PDF0 Cites 1 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

[0049] 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.

[0050] 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 target service node pointed by a baffle pointer in the test link and a service of a service node located before the target service node pointed by the baffle pointer, and the baffle service comprises a service of a service node located behind the target service node pointed by the baffle pointer in the test link, and the test link comprises a plurality of service nodes; and then, sending a test request to the baffle middle station, so that the baffle middle station determines to forward the test request to the real service or the baffle service according to preset parameters, asserts the test request through the real service or the baffle service, and returns a corresponding assertion result; and marking the service nodes through pointers to achieve a pluggable baffle.

Description

technical field [0001] The embodiments of the present application relate to the technical 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...

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 Applications(China)
IPC IPC(8): G06F11/36G06F16/27G06F16/28
CPCG06F11/3688G06F11/3696G06F16/27G06F16/284
Inventor 李辉魏广源高蕊冷炜
Owner CHINA CITIC BANK
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