Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Interface simulation method and system, medium and electronic equipment

An analog method and interface technology, applied in software engineering design, electrical digital data processing, version control, etc., can solve problems such as unusable, manual coding, etc., and achieve the effect of reducing management costs

Active Publication Date: 2019-11-22
BEIJING BYTEDANCE NETWORK TECH CO LTD
View PDF4 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, simulation tools usually can only process a single data, and rely on input parameters to control the type and content of the generated data; further, even if the simulation tool supports nested calls to generate data types with complex structures, the nested The logic of the call still needs to be manually coded
[0005] Therefore, in the long-term research and development, the inventor has conducted a lot of research on the problems of manual configuration and unusability when the network is disconnected during the interface simulation process, and proposed an interface simulation method to solve one of the above technical problems

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 simulation method and system, medium and electronic equipment
  • Interface simulation method and system, medium and electronic equipment
  • Interface simulation method and system, medium and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0032] refer to figure 1 As shown, it is an implementation flowchart of an interface simulation method provided by the embodiment of the present invention. The execution subject of this method is the front end, and the front end can be any module that needs to call the back-end interface, or various modules that apply the module applications, web pages, etc. Specifically, the interface simulation method may include the following steps:

[0033] S1. Obtain a pre-agreed interface description file;

[0034] Specifically, before program development, the front-end and back-end developers need to jointly negotiate the interface (API), and write an interface description file (Interface Description File, IDS file) according to the negotiation result, so that the front-end and back-end developers can pass a unified documents for communication.

[0035] The interface description file includes an interface definition or description file written according to an interface description sp...

Embodiment 2

[0073] see Figure 5 , the embodiment of the present invention provides an interface simulation system 500, which is applied to front-end equipment, and includes: a file acquisition module 510 , an interface analysis module 520 and a code generation module 530 .

[0074] The file acquisition module 510 is configured to acquire a pre-agreed interface description file. Specifically, before program development, the front-end and back-end developers need to jointly negotiate the interface (API), and write an interface description file (Interface Description File, IDS file) according to the negotiation result, so that the front-end and back-end developers can pass a unified documents for communication.

[0075] The interface description file includes an interface definition or description file written according to an interface description specification (IDS). Wherein, the interface description specification is generally a specification that uses a structured language to fully des...

Embodiment 3

[0101] An embodiment of the present disclosure provides a non-volatile computer storage medium, where the computer storage medium stores computer-executable instructions, and the computer-executable instructions can execute the interface simulation method in any of the foregoing method embodiments.

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 invention provides an interface simulation method and system, a medium and electronic equipment. The method comprises the following steps: acquiring a pre-appointed interface description file; analyzing an interface description file to obtain interface information, with the interface information including a request path, a request mode, a request data type and a response data type, and one piece of interface information corresponding to one analog interface; and generating a corresponding interface simulation code according to the interface information, so that the front end calls the interface simulation code to perform interface simulation, and the interface simulation comprises request delay simulation and data simulation. The method is implemented locally and does not depend on a network. Meanwhile, analog data can be automatically generated, and manual configuration is not needed.

Description

technical field [0001] The invention relates to the technical field of network development, in particular to an interface simulation method, system, medium and electronic equipment. Background technique [0002] In the process of project development, developers are more and more inclined to separate the front-end and back-end development methods. Specifically, the backend (also known as the server) only provides business logic processing, and provides an external service interface (Application Programming Interface, application programming interface); and the front end (also known as the client) obtains data by calling the interface provided by the backend , and display it to the user through the page. But in many cases, the interface provider cannot complete the development of the interface in time, resulting in the inability of the interface caller to carry out subsequent function development smoothly. [0003] In order to solve the above problems, interface simulation (...

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): G06F8/30G06F8/71G06F8/73
CPCG06F8/313G06F8/71G06F8/73Y02D10/00
Inventor 邬亮凌艺宾
Owner BEIJING BYTEDANCE NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products