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

Online mock testing method, device and system

A test system and test method technology, applied in software testing/debugging, error detection/correction, instruments, etc., can solve problems affecting the normal operation of the application system to be tested, large intrusion of the application system to be tested, etc., to improve efficiency and reduce cost effect

Active Publication Date: 2021-07-09
ANT WEALTH (SHANGHAI) FINANCIAL INFORMATION SERVICES CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in this way, the system code of the application system under test needs to be modified no matter whether the online mock test is implemented or the system is restored after the online mock test. normal operation of the system

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
  • Online mock testing method, device and system
  • Online mock testing method, device and system
  • Online mock testing method, device and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] In order to make the purpose, technical solutions, and advantages of the embodiments of the present application clearer, the embodiments of the present application will be further described in detail below in conjunction with the embodiments and the accompanying drawings. Here, the schematic embodiments and descriptions of the embodiments of the present application are used to explain the embodiments of the present application, but are not intended to limit the embodiments of the present application.

[0032] refer to figure 1 As shown, the online mock testing system of the embodiment of the present application includes an application server 1 to be tested, and the application server 1 to be tested includes an application server 11 and a mock server 12 dynamically injected into the application server 1 to be tested in advance. ,in:

[0033] The application server 11 is configured to provide the request to the mock server 11 when receiving a request carrying a use case ...

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 present application provides an online mock testing method, device and system. The system includes an application server to be tested, and the application server to be tested includes an application server and a mock server dynamically injected into the application server to be tested in advance. The application server is used to provide a request to the mock server when receiving a request carrying a use case identifier; when receiving the mock response provided by the mock server, it returns the mock response as a response to the request; the mock server is used to The use case ID matches the corresponding mock object from the built-in mock object collection, simulates the processing request based on the mock object, and provides the mock response obtained after processing to the application server. The embodiment of the present application can reduce the mock test cost and improve the mock test efficiency.

Description

technical field [0001] The present application relates to the technical field of system automation testing, in particular to an online mock testing method, device and system. Background technique [0002] During the offline test or online drill of the system, the objects and services that need attention often depend on many internal methods and / or external interface services. The mock test is to simulate the dependencies of these internal methods and / or external interface services in a controllable manner , in order to verify whether the object under test can provide stable and reliable services in various states that may exist. [0003] At present, mock tests for internal methods are generally implemented through frameworks such as mockito, powermock, and jmockit. However, these frameworks are driven by test cases, and mock tests cannot be driven by the rpc (Remote Procedure Call Protocol, remote procedure call protocol) remote call mode. However, the current mock test 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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/36
CPCG06F11/3688
Inventor 付宇刘银蒋丰杰
Owner ANT WEALTH (SHANGHAI) FINANCIAL INFORMATION SERVICES CO LTD
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