Simulation method and device for service calling, storage medium and electronic equipment

A technology of service invocation and simulation method, which is applied in the field of service invocation simulation method and device, storage medium and electronic equipment, and can solve problems such as poor flexibility of mock service deployment, and achieve the effect of solving poor flexibility and improving flexibility

Pending Publication Date: 2022-05-27
QINGDAO HAIER TECH +1
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Embodiments of the present invention provide a method and device for simulating a service call, a storage medium, and an electronic device, so as to at least solve the technical problem of poor flexibility of mock service deployment

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
  • Simulation method and device for service calling, storage medium and electronic equipment
  • Simulation method and device for service calling, storage medium and electronic equipment
  • Simulation method and device for service calling, storage medium and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] In order to make those skilled in the art better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only Embodiments are part of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0020] It should be noted that the terms "first", "second" and the like in the description and claims of the present invention and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used may be interchanged under appropriate ...

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 service calling simulation method and device, a storage medium and electronic equipment. The method comprises the steps that under the condition that a simulation strategy table is added to a database of a target service, a simulation assembly is inserted into the target service, the simulation strategy table comprises a calling processing strategy associated with a target position of the target service, and the simulation assembly carries execution data corresponding to the calling processing strategy; intercepting the target calling request under the condition that the target calling request is received at the target position of the target service; querying a target processing strategy associated with the target position in a simulation strategy table; and under the condition that the target processing strategy is in the enabled state, calling target execution data corresponding to the target processing strategy in the simulation component so as to respond to the target calling request according to the target processing strategy. According to the invention, the technical problem of poor flexibility of mock service deployment is solved.

Description

technical field [0001] The present invention relates to the field of testing, and in particular, to a method and device for simulating service invocation, a storage medium and an electronic device. Background technique [0002] When testing web interface calls, if you want to quickly test various scenarios, you usually deploy a Mock service, and use the Mock service to simulate and return various required simulation results. [0003] Mock means that in the process of testing, some behaviors that are not easy to construct and obtain are simulated by Mock objects. For example, when the call test is performed, the system to be called has not been developed and deployed. At this time, it is necessary to simulate the behavior of the called system through the mock operation, such as: the return of the simulated interface, the timeout return of the simulated interface, and the simulation of other returns. scene etc. [0004] However, the current existing mock service can only moc...

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/3688
Inventor 刘金代
Owner QINGDAO HAIER TECH
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