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

Method and system for simulating data through MOCK

A technology for simulating data and data requests, applied in software design and other directions, can solve problems such as low development efficiency

Pending Publication Date: 2021-05-18
SHANGHAI XINGRONG AUTOMOBILE TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

like figure 2 As shown, the current working method between the client and the server is that the client makes a request, and the server makes a judgment and gives a response. Therefore, for the development of the server and the client, it is usually necessary to develop the server first, and the development of the server is completed. , and then the client develops again, which is equivalent to the serial method, and the development efficiency is 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
  • Method and system for simulating data through MOCK
  • Method and system for simulating data through MOCK
  • Method and system for simulating data through MOCK

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0016] Such as figure 1 as well as image 3 As shown, the embodiment of this specification provides a method for simulating data through MOCK, including:

[0017] S101. The software client sends a data request to the MOCK client program. The software client is the client of the developed software system, and the MOCK client program can be embedded in the software client as a dependent library.

[0018] S102. The MOCK client program adds corresponding parameters to the interface address of the MOCK server program according to the data request, and sends a request to the MOCK server program according to the address after adding the parameters. Among them, the MOCK server program is set on the server, and multiple MOCK files that can be modified in real time are stored on the server, and simulation data for a dedicated request is stored in one MOCK file.

[0019] In this embodiment, the parameters include a first parameter and a second parameter. The MOCK server program can m...

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

According to a method and system for simulating data through MOCK, in the development process of a software system, data of a server side are simulated through a MOCK tool, the client side can be developed according to the simulation data, the client side and the server side of the software system can be developed in parallel, and the development efficiency is improved; and in addition, in the method and system, a MOCK file does not need to be loaded when a MOCK server side program is started, a user can modify the data in the MOCK file at any time according to wanted simulation data, and the real-time requirement in the software development process is met; meanwhile, only one MOCK server program is needed, a plurality of MOCK client side programs can obtain required simulation data from different MOCK files through the same MOCK server side program, and the simulation data in the same MOCK file can also be used by the plurality of MOCK client side programs through the same MOCK server side program, so that the working efficiency is also improved, and the repeated labor is reduced.

Description

technical field [0001] The invention belongs to the technical field of software system development, in particular to a method and system for simulating data through MOCK. Background technique [0002] Most software systems adopt the C / S structure (Client / Server), that is, the structure of the client and the server. Such as figure 2 As shown, the current working method of the client and the server is that the client makes a request, and the server makes a judgment and gives a response. Therefore, for the development of the server and the client, it is usually necessary to develop the server first, and the development of the server is completed. , and then the client is developed, which is equivalent to the serial method, and the development efficiency is low. Contents of the invention [0003] Based on this, aiming at the above technical problems, a method and system for simulating data through MOCK are provided. [0004] In order to solve the problems of the technologie...

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): G06F8/20
CPCG06F8/24
Inventor 刘义雷刘祥磊金训
Owner SHANGHAI XINGRONG AUTOMOBILE TECH CO LTD