ip-based Mock data test method, electronic equipment and storage medium

A data testing and data technology, applied in electrical digital data processing, software testing/debugging, error detection/correction, etc., can solve the problem of low efficiency

CN112732567AActive Publication Date: 2021-04-30PING AN BANK CO LTD
6 Cites 3 Cited by

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
Publication Date
2021-04-30

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention relates to a data test technology, and discloses an ip-based mock data test method, which comprises the steps of obtaining a recording type request according to a target variable field extracted from a user request; analyzing and obtaining an ip field in the recording type request, and judging whether the request is forwarded or not according to the ip field; when the ip field is not forwarded to serve as the field value of the target variable field, obtaining a to-be-executed recording request; when the source ip field of the tracking request is forwarded, taking the source ip field as a field value of a target variable field to obtain a to-be-executed recording request; carrying out mock recording on a pre-constructed mock platform by utilizing the to-be-executed recording request to obtain mock data; and testing the to-be-tested data set by utilizing the mock data. In addition, the invention also relates to a blockchain technology, and the to-be-tested data set can be stored in a node of a blockchain. The invention further provides an ip-based mock data testing device, equipment and a medium. According to the invention, the problem of low efficiency of using a mock tool to carry out data testing can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The present invention relates to the technical field of data testing, in particular to a mock data testing method, device, electronic equipment and computer-readable storage medium based on IP. Background technique

[0002] Data testing is a common method for system development or maintenance. At present, most common data testing methods are mock data testing methods. In the existing mock data testing methods, it is necessary to analyze the content of the test request sent by the user to construct a Test data, and obtain a mock tool that can perform data testing on the test data, and use the obtained mock tool to test the test data.

[0003] In the process of data testing using this method, since the number of user requests is often very large, this method requires a large amount of computing resources when analyzing the content of test requests, resulting in low analysis efficiency, and requires testers when obtaining mock tools Manual acquisition fu...

Examples

Embodiment Construction

[0059] It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0060] The embodiment of the present application provides an ip-based mock data testing method. The execution subject of the mock data testing method based on ip includes but is not limited to at least one of the electronic equipment that can be configured to execute the method provided by the embodiment of the present application, such as a server end and a terminal. In other words, the ip-based mock data testing method can be executed by software or hardware installed on a terminal device or a server device, and the software can be a block chain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc.

[0061] refer to figure 1 As shown, it is a schematic flow chart of the ip-based mock data testing method provided by an embodiment of the ...