Unlock instant, AI-driven research and patent intelligence for your innovation.

A remote mock testing method and device

A test method and remote technology, applied in the direction of program control device, software testing/debugging, software simulation/interpretation/simulation, etc., can solve problems such as inability to construct data and business scenarios with virtual objects, mock test methods cannot remotely mock objects, etc. To achieve the effect of maintaining simulation

Active Publication Date: 2018-04-27
BEIJING DIDI INFINITY TECH & DEV
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The technical problem to be solved by the present invention is that the existing mock test method cannot construct various data and business scenarios through virtual objects in the case of interface testing, resulting in the problem that the existing mock test method cannot remotely mock objects

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
  • A remote mock testing method and device
  • A remote mock testing method and device
  • A remote mock testing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] In order to make the purpose, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are the Some, but not all, embodiments are disclosed. Based on the embodiments in the present disclosure, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present disclosure.

[0038] like figure 1 As shown, this embodiment discloses a remote mock testing method, which may include the following steps 101 to 104:

[0039] 101. The test program deployed on the local server creates a program file for the mock object according to the preset test content;

[0040] 102. The test program calls the remote service program deployed on the virtual machine of ...

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 remote mock testing method and device, which belong to the technical field of software testing. The method includes: a test program deployed on a local server creates a program file for a mock object according to preset test content; the test program calls The remote service program deployed on the virtual machine of the local server, so that the remote service program loads the program file for the mock object; the test program receives the loading result returned by the remote service program; the test program judges whether the loading result meets the expected loading result, and Implement remote mock testing. In the present invention, the test program is directly deployed on the local server, and the remote service program is deployed on the virtual machine of the local server, which realizes the isolation of the remote environment, and the call of the virtual machine as a remote interface can simulate the real production environment, which solves the problem of existing The mock test method cannot remotely mock the object in the case of interface testing.

Description

technical field [0001] The invention relates to the technical field of software testing, in particular to a remote mock testing method and device. Background technique [0002] The mock test method is a test method that uses a virtual object to create a test method for some objects that are not easy to construct or obtain during the software test process. [0003] Existing mock test methods are usually used in unit tests or functional tests executed by a single machine. The interface test is performed by calling the interface remotely, usually by sending an http request. [0004] Therefore, in the case of interface testing, the existing mock testing method cannot construct various data and business scenarios through virtual objects, resulting in the problem that the existing mock testing method cannot remotely mock objects. Contents of the invention [0005] The technical problem to be solved by the present invention is that the existing mock testing method cannot constr...

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/36G06F9/455
Inventor 温一刚
Owner BEIJING DIDI INFINITY TECH & DEV