Test system, test method, mock platform, interceptor and client

A test system and client technology, applied in the information field, can solve problems such as low test efficiency, cumbersome operation, and use errors, and achieve the effects of improving effective usage, reducing the number of operations, and reducing installation and settings

Active Publication Date: 2017-11-21
TENCENT TECH (BEIJING) CO LTD
View PDF8 Cites 32 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] On the one hand, when the mock service is provided by the above method, the mock data is obtained by modifying the address. After the mock test is completed, the developer also needs to manually restore the access address to the real address of the interface or class that needs to be accessed
Due to various reasons, developers may forget to modify the access address in the configuratio

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
  • Test system, test method, mock platform, interceptor and client
  • Test system, test method, mock platform, interceptor and client
  • Test system, test method, mock platform, interceptor and client

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0090] Such as figure 1 As shown, the present embodiment provides a test system, the system includes:

[0091] The mock platform 110 is used to store mock data, and reads the mock data when the test requested by the client 100 includes a mock test, and provides the mock data to the client 100; the mock platform 110 and the The client 100 is set separately.

[0092] In this embodiment, the mock platform 110 is an independent platform from the client 100 and corresponds to different physical devices. The mock platform and the client 100 may be connected through various networks, for example, the mock platform 110 may be a cloud platform capable of establishing a network connection with the client 100 . The mock platform can be shared by multiple clients 100, and the mock data in the mock platform can also be shared by multiple clients. The Chinese corresponding to the mock is simulation.

[0093] In this embodiment, when testing the client 100 , if the requested test include...

Embodiment 2

[0096] Such as figure 2 As shown, the present embodiment provides a test system, the system includes:

[0097] The mock platform 110 is used to store mock data, and reads the mock data when the test requested by the client 100 includes a mock test, and provides the mock data to the client 100; the mock platform 110 and the The client 100 is set separately.

[0098] The interceptor 120 is set separately from the client 100, and is used to receive the test request information provided by the client 100, and judge the type of test requested based on the test request information; when the test requested includes the mock test , then notify the mock platform.

[0099] In this embodiment, the interceptor 120 is set on the network side, and can be used as a network element parallel to the mock platform, or as a sub-network element in the mock platform. The interceptor 120 will be used to determine the type of test requested by the client. The type of test here may include test ty...

Embodiment 3

[0110] Such as figure 2 As shown, the present embodiment provides a test system, the system includes:

[0111] The mock platform 110 is used to store mock data, and reads the mock data when the test requested by the client 100 includes a mock test, and provides the mock data to the client 100; the mock platform 110 and the The client 100 is separated and set;

[0112] The service logic processing platform 130 is configured to execute service logic based on the test request information and provide service logic execution data to the client 100 when the test requested by the client 100 includes a service function test.

[0113] The business logic platform 130 stores business logic of various business functions, and is used to execute business logic based on test request information when receiving a service function request from a client, and provide business logic execution data to the client.

[0114] Apparently, the test system described in this embodiment can not only be u...

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 provides a test system, a test method, a mock platform, an interceptor and a client. The test system comprises the interceptor and a simulated mock platform, wherein the interceptor is separated from the client and used for receiving test request information provided by the client, judging the type of a requested test based on the test request information, and notifying the mock platform when the requested test includes a mock test; and the simulated mock platform is separated from the client and used for storing mock data, reading the mock data when the test requested by the client includes the mock test and providing the mock data for the client.

Description

technical field [0001] The invention relates to the field of information technology, in particular to a test system, a test method, a simulation mock platform, an interceptor and a client. Background technique [0002] The mock mock service is a service that provides mock tests. Mock testing is a testing method in which virtual objects are used to create objects that are not easy to construct or obtain during code, program, or application testing. For example, when unit testing code or programs or applications, it is often encountered that code modules written need to rely on other classes or externally dependent interfaces. If at this time, these classes or interfaces may not have been written or developed, or the environment for externally dependent interface services requires more cost, in order to test or reduce costs, you can define mock objects to simulate the required interfaces or class behavior. The mock object here is one of the above virtual objects. [0003] ...

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/3672G06F11/3688G06F11/3696
Inventor 李勇李翔龙潭王博
Owner TENCENT TECH (BEIJING) CO LTD
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