Interface testing method and device, computer device and storage medium

An interface test and computer program technology, applied in the computer field, can solve the problems of manual switching of mock baffles, inability to flexibly respond to test scenarios, inaccurate tests, etc.

Pending Publication Date: 2019-03-08
ONE CONNECT SMART TECH CO LTD SHENZHEN
View PDF6 Cites 21 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Traditionally, the staff realizes the mock test function by manually opening or closing the mock baffle; however, manually switching the open state of the mock baffle cannot flexibly respond to actual test scenarios, which may easily lead to inaccurate tests

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
  • Interface testing method and device, computer device and storage medium
  • Interface testing method and device, computer device and storage medium
  • Interface testing method and device, computer device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] 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.

[0046] The interface testing 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. The terminal 102 sends a data acquisition request to the server 104. After the server 104 acquires the data acquisition request, when the current environment is a test environment and the server cannot acquire data from the corresponding interface according to the data acquisition request, the mock baffle is opened. Obtain test data from the maintained test...

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 the field of research and development management, in particular to an interface test method and device, a computer device and a storage medium for an automated switch mock baffle. The method comprises the following steps of intercepting a data acquisition request sent by a terminal, wherein the data acquisition request carries a first interface identifier; detecting whether the interface corresponding to the first interface identifier returns the data corresponding to the data acquisition request, and if not, identifying whether the current environment is a test environment; when the current environment is a test environment, querying the obtaining path of the test data corresponding to the first interface identifier from the test database; when the acquisition path is available, returning the test data obtained according to the acquisition path to the terminal. The method can realize the automatic switch of the mock baffle according to the return result of the data acquisition request, is more flexibly start the mock test, and ensures the accuracy of the returned data of the interface test.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to an interface test update method, device, computer equipment and storage medium. Background technique [0002] When testing the interface, mock testing is often used to simulate the actual working environment. Mock testing is a test method that creates a virtual object for testing during the testing process for some objects that are not easy to construct or obtain. . Set a mock baffle to realize the switch of the mock test. When the mock test function needs to be turned on, the mock baffle is turned on, otherwise, the baffle is turned off. [0003] Traditionally, the staff realizes the mock test function by manually opening or closing the mock baffle; however, manually switching the open state of the mock baffle cannot flexibly respond to the actual test scenario, which may easily lead to inaccurate testing. Contents of the invention [0004] Based on this, it is n...

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/36G06F16/25
CPCG06F11/3688
Inventor 张瑞
Owner ONE CONNECT SMART TECH CO LTD SHENZHEN
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