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

Mock test method, apparatus, computer device and storage medium

A test method and computer program technology, applied in the Internet field, can solve problems such as low test efficiency, inability to support project needs well, and no data source access, etc., to achieve the effect of solving low test efficiency

Pending Publication Date: 2019-02-01
ONE CONNECT SMART TECH CO LTD SHENZHEN
View PDF0 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] When using Mock test, there is no real data source access in the test environment, and there are many data source protocols, so it is considered to use mock directly to return the interface response, but the current mock test only supports a single protocol, which is not very fast. Good support programs need
If the return value verification of various protocol interfaces cannot be well verified, it will be difficult to guarantee the quality of the project and the test efficiency will be low

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

[0038] The mock test method provided by this application can be applied to such as figure 1 shown in the application environment. Wherein, the terminal 102 communicates with the server 104 through the network. When the user needs to use the mock test to test the interface response under a certain protocol, the user sends a protocol type determination instruction to the server 104 through the terminal 102, and the server 104 determines the protocol type currently tested according to the protocol type determination instruction, and feeds back the described protocol type to ...

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 present application relates to a mock test method, apparatus, computer device and storage medium, and a protocol type determination instruction sent by a receiving terminal; Determining a protocoltype under current test according to the protocol type determination instruction, and feeding back an interface configuration interface corresponding to the current protocol type to the terminal; Thereceiving terminal completes the mock test according to the configuration information inputted from the interface configuration interface to be tested. According to different protocol types, the information of the interface to be tested is configured correspondingly, and the mock test is carried out according to the configuration information, so that the mock test of the multi-protocol interfaceis supported, and the problem of low test efficiency is solved.

Description

technical field [0001] The present application relates to the technical field of the Internet, in particular to a mock testing method, device, computer equipment and storage medium. Background technique [0002] In the process of offline testing or online rehearsal, the application (APP, Application) needs to access many data interfaces to obtain data, and for some data that is not easy to construct or obtain, a virtual object needs to be created for testing test method. That is, Mock test (mock test 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 test process), Mock test is to use Mock to test during the test process Testing Use virtual data to complete offline testing or online drills. [0003] When using Mock test, there is no real data source access in the test environment, and there are many data source protocols, so it is considered to directly use mock to return the interface re...

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 Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/362G06F11/3672
Inventor 胡苗青
Owner ONE CONNECT SMART TECH CO LTD SHENZHEN