Micro-service test method and device

A testing method and microservice technology, applied in the field of information network, can solve the problem of low efficiency of microservice testing

Active Publication Date: 2018-05-01
上海云犀信创网络科技有限公司
View PDF3 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The embodiment of the present invention provides a microservice testing method and...

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
  • Micro-service test method and device
  • Micro-service test method and device
  • Micro-service test method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0042] Figure 1A It is a flow chart of a microservice testing method provided in Embodiment 1 of the present invention. This embodiment is applicable to various microservice testing situations. The method can be executed by the microservice testing device provided in the embodiment of the present invention. The device It can be implemented in the form of software and / or hardware, and the device can be integrated in any device that provides microservice testing functions, such as computers, etc., such as Figure 1A shown, including:

[0043] S110 , constructing a public environment and a project environment.

[0044] Wherein, the public environment includes a current version of at least one microservice, and the project environment includes an updated version of at least one microservice.

[0045] At present, in the information age, smart phones, computers and other electronic products have become necessary for people's life, study and work, and such electronic products contai...

Embodiment 2

[0066] Figure 2A It is a flow chart of a microservice testing method provided by Embodiment 2 of the present invention. On the basis of the above embodiments, this embodiment also includes: classifying the project environment according to the functions of the application program; receiving the user's access request; A target project environment and a first microservice related to the target microservice are determined according to the attribute information of the access request. refer to Figure 2A , the method provided in this embodiment may specifically include:

[0067] S210 , constructing a public environment and a project environment.

[0068] S220. Classify the project environment according to the functions of the application programs.

[0069] Specifically, since an application contains multiple functions, the project environment can be classified according to the functions of the application. In this way, when testing the target microservice, only the target projec...

Embodiment 3

[0087] image 3 Shown is a schematic structural diagram of an apparatus for a microservice testing method provided in Embodiment 3 of the present invention. This embodiment is applicable to various microservice testing situations. The device can be implemented in software and / or hardware. The device can be integrated into any device that provides microservice testing functions, such as a computer, such as image 3 As shown, it specifically includes: an environment construction module 31 , a judgment module 32 and a call request execution module 33 .

[0088] An environment construction module 31, configured to construct a public environment and a project environment, wherein the public environment includes a current version of at least one microservice, and the project environment includes an updated version of at least one microservice;

[0089] Judgment module 32, used to determine whether there is a microservice to be called in the project environment when any microservice...

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 discloses a micro-service test method and device. The method comprises the steps of establishing a public environment and project environments, wherein the public environment comprises a current version of at least one piece of micro-service, and the project environments comprise an updating version of the at least one piece of micro-service; preferentially judgingwhether to-be-called micro-service exists in the project environments or not when any micro-service calling request is acquired in a test process of to-be-tested target micro-service; and performing the calling request from the project environments if the to-be-called micro-service exists in the project environments, and performing the calling request from the public environment if the to-be-called micro-service does not exist in the project environments. According to the embodiment of the invention, the target micro-service can be rapidly tested, and the test efficiency of the micro-service can be improved.

Description

technical field [0001] The embodiment of the present invention relates to the field of information network technology, and in particular to a microservice testing method and device. Background technique [0002] With the rapid development of information technology, the application software architecture has undergone tremendous changes, and the traditional monolithic architecture has been transformed into a new microservice architecture. [0003] Microservice architecture is a new technology for deploying applications and services in the cloud. Microservices are split from the original single business system into multiple small applications that can be independently developed, involved, run, and maintained. Microservices is an architectural style, i.e. an application consists of at least one microservice. Each microservice in the system can be deployed independently, and each microservice is loosely coupled. Each microservice acts as a small application that only focuses o...

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): H04L12/26G06F11/36
CPCG06F11/3668H04L43/00
Inventor 王枫张俊业王世焜罗明强谢济帆
Owner 上海云犀信创网络科技有限公司
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