MOCK system and data testing method based on MOCK system
A database and test data technology, applied in electrical digital data processing, software testing/debugging, error detection/correction, etc., can solve problems such as high maintenance cost, data redundancy, and inability to associate upstream and downstream interfaces, and achieve improved efficiency. Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0044] read on figure 1 , shows a schematic diagram of program modules of Embodiment 1 of the MOCK system of the present invention. In this embodiment, the MOCK system 10 may include or be divided into one or more program modules, one or more program modules are stored in a storage medium and executed by one or more processors to complete this invention. The program module referred to in the embodiment of the present invention refers to a series of computer program instruction segments capable of completing specific functions, which is more suitable for describing the execution process of the MOCK system 10 in the storage medium than the program itself. The following description will specifically introduce the functions of each program module of the present embodiment:
[0045] The first server 100 is configured to receive a query request for test data sent by the front end, and send the query request to the calling server.
[0046] In an exemplary embodiment, the test data...
Embodiment 2
[0070] In this embodiment, the MOCK system 10 can also have the following functions:
[0071] Exemplarily, the log server 140 is also used for:
[0072] Acquiring target scene parameters in the test data; querying candidate history logs including the target scene parameters through the query interface. Calculating the similarity value between each candidate history log including the target scene parameter and the target scene data; obtaining the candidate history log whose similarity value is greater than a preset threshold as the historical target log. When there are multiple historical target logs, the multiple historical target logs are respectively processed according to preset rules to obtain multiple interface data; the multiple interface data are sent to the first server to obtain Make the first server transmit a plurality of the interface data to the front end for page display.
[0073] In an exemplary embodiment, when the historical logs queried by the search engine...
Embodiment 3
[0081] refer to figure 2 , shows a flow chart of the steps of the data testing method based on the MOCK system in Embodiment 3 of the present invention. It can be understood that the flowchart in this method embodiment is not used to limit the sequence of execution steps. The MOCK system includes a first server, an invocation server, a log server, a MOCK server and a second server, which will be described exemplarily below. details as follows.
[0082] Step S200, the first server receives a test data query request sent by the front end, and sends the query request to the calling server.
[0083]In an exemplary embodiment, the test data that needs to be simulated is received through the front-end page of the first server, the test data may be a URL, such as a Taobao order request URL, and the target scenario parameter is a Taobao order. The front end generates a query request according to the test data, so that the first server can query the history log corresponding to the...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

