Supercharge Your Innovation With Domain-Expert AI Agents!

Mock test method and device, electronic equipment and computer readable storage medium

A test method and configuration management technology, which is applied in computing, software testing/debugging, electrical digital data processing, etc., can solve the problems of inconvenient unified configuration, cumbersome operation steps, and high implementation cost

Pending Publication Date: 2020-12-25
PINGAN INT SMART CITY TECH CO LTD
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The first method: build an independent Mock-Server (online interface simulation server), but this method needs to develop an interface proxy server, and the implementation cost is high
[0005] The second method: use packet capture software to intercept network requests, and replace the return value of the interface with the data in the local file, but the operation steps of this method are cumbersome, it is inconvenient to configure uniformly, and the implementation cost is high

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0048] The invention provides a Mock test method. refer to figure 1 As shown, it is a schematic flow chart of the Mock testing method provided by an embodiment of the present invention. The method may be performed by a device, and the device may be implemented by software and / or hardware.

[0049] In this embodiment, the Mock test method includes:

[0050] S1: The intercepting server intercepts the interface address request sent by the requesting end, and obtains the request address information included in the interface address request;

[0051] S2: calling a script engine, and using the script engine to obtain interface address information corresponding to the request address information;

[0052] S3: Send the interface address information to the virtual interface server and the virtual interface configuration ma...

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 relates to the technical field of Mock testing, and provides a Mock testing method and device, electronic equipment and a computer readable storage medium, and the method comprises the steps: intercepting an interface address request sent by a request end through an interception server, and obtaining request address information contained in the interface address request; calling a script engine, and obtaining interface address information corresponding to the request address information by utilizing the script engine; sending the interface address information to a virtual interface server and a virtual interface configuration management terminal so as to enable the virtual interface server to provide a corresponding virtual interface according to the interface address information and enable the virtual interface configuration management terminal to generate corresponding response information according to the virtual interface; and receiving response information, and sending the response information to the request end, so that the request end performs testing by using the virtual interface according to the response information. According to the invention, the Mock testdifficulty is reduced and the implementation cost is reduced.

Description

technical field [0001] The invention relates to the technical field of Mock testing, in particular to a Mock testing method, device, electronic equipment and a computer-readable storage medium. Background technique [0002] At present, many developers separate the front-end and back-end during the development process, so as to support the back-end interface for different terminals (such as web, ios, android), thereby improving development efficiency. But at the same time, there is a problem that the front-end UI depends on the back-end interface. Before the development of the back-end interface is completed, how the front-end simulates the back-end interface for testing has become an urgent problem to be solved. [0003] The more commonly used methods are as follows: [0004] The first method: build an independent Mock-Server (online interface simulation server), but this method needs to develop an interface proxy server, and the implementation cost is high. [0005] The s...

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/3688G06F11/3696
Inventor 艾可德
Owner PINGAN INT SMART CITY 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