WO2020192141A1 - Procédé et dispositif de simulation d'interface, appareil informatique, et support d'informations - Google Patents

Procédé et dispositif de simulation d'interface, appareil informatique, et support d'informations Download PDF

Info

Publication number
WO2020192141A1
WO2020192141A1 PCT/CN2019/118071 CN2019118071W WO2020192141A1 WO 2020192141 A1 WO2020192141 A1 WO 2020192141A1 CN 2019118071 W CN2019118071 W CN 2019118071W WO 2020192141 A1 WO2020192141 A1 WO 2020192141A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface
configuration data
request
target
database
Prior art date
Application number
PCT/CN2019/118071
Other languages
English (en)
Chinese (zh)
Inventor
陈旭敏
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2020192141A1 publication Critical patent/WO2020192141A1/fr

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • G06F8/447Target code generation

Definitions

  • This application relates to an interface simulation method, device, computer equipment and storage medium.
  • front-end development and back-end development are often involved.
  • front-end development and back-end development are usually developed independently by different developers.
  • the inventor realizes that in the front-end development process, it is often necessary to base on the back-end interface that can be used for business logic. If the back-end interface development is not completed, the front-end cannot be developed, resulting in front-end and back-end work The coupling is very high, which seriously reduces the front-end development efficiency.
  • an interface simulation method, device, computer equipment, and storage medium are provided.
  • An interface simulation method includes: obtaining interface configuration data corresponding to the interface to be simulated, and saving the interface configuration data as an interface configuration data record in a database, and the interface configuration data record includes a configuration interface name field and a request parameter field And return parameter fields; receive the interface simulation request sent by the terminal for the interface to be simulated; parse the received interface simulation request to obtain the first target interface name and target request parameters; traverse the database, from Query the configuration interface name field and the request parameter field in the database for interface configuration data records that match the first target interface name and the target request parameter respectively; return the parameter field in the queried interface configuration data record Determining the first target return parameter corresponding to the interface simulation request; and sending the first target return parameter to the terminal.
  • An interface simulation device includes: an interface configuration data acquisition module, used to acquire interface configuration data corresponding to the interface to be simulated, and save the interface configuration data as an interface configuration data record in a database, the interface configuration data record includes Configure the interface name field, request parameter field, and return parameter field; interface simulation request receiving module, used to receive the interface simulation request sent by the terminal for the interface to be simulated; parsing module, used to simulate the received interface request Parse to obtain the first target interface name and target request parameters; the query module is used to traverse the database, and query the configuration interface name field and the request parameter field from the database, respectively, with the first target interface name and the target request parameter.
  • a computer device including a memory and one or more processors, the memory stores computer readable instructions, when the computer readable instructions are executed by the processor, the one or more processors execute The following steps: Obtain the interface configuration data corresponding to the interface to be simulated, and save the interface configuration data as an interface configuration data record in the database.
  • the interface configuration data record includes a configuration interface name field, a request parameter field, and a return parameter field ; Receive the interface simulation request for the interface to be simulated sent by the terminal; parse the received interface simulation request to obtain the first target interface name and target request parameters; traverse the database, from the database Query the interface configuration data record whose configuration interface name field and the request parameter field respectively match the first target interface name and the target request parameter; determine the return parameter field in the queried interface configuration data record as the The first target return parameter corresponding to the interface simulation request; and sending the first target return parameter to the terminal.
  • One or more non-volatile computer-readable storage media storing computer-readable instructions.
  • the one or more processors execute the following steps: Obtain the interface to be simulated Corresponding interface configuration data, save the interface configuration data as an interface configuration data record in the database, the interface configuration data record includes the configuration interface name field, the request parameter field, and the return parameter field;
  • the interface simulation request of the interface to be simulated is parsed to obtain the first target interface name and target request parameters;
  • the database is traversed, and the configuration interface name field and request are queried from the database Interface configuration data records whose parameter fields respectively match the first target interface name and the target request parameters; determine the return parameter field in the queried interface configuration data record as the first corresponding to the interface simulation request Target return parameter; and sending the first target return parameter to the terminal.
  • Fig. 1 is an application scenario diagram of an interface simulation method according to one or more embodiments.
  • Fig. 2 is a schematic flowchart of an interface simulation method according to one or more embodiments.
  • Fig. 3 is a block diagram of an interface simulation device according to one or more embodiments.
  • Figure 4 is a block diagram of a computer device according to one or more embodiments.
  • the interface simulation method provided in this application can be applied to the application environment as shown in FIG. 1.
  • the terminal 102 communicates with the server 104 through the network.
  • the server 104 first obtains the interface configuration data from the terminal 102 and saves these interface configuration data as an interface configuration data record in the database.
  • the terminal When subsequently receiving the interface simulation request sent by the terminal, it can analyze the interface simulation request to Get the target interface name and target request parameters carried therein, and then traverse the database according to the target interface name and target request parameters, and query the configuration interface name field and request parameter field from the database for the interface configuration that matches the target interface name and target request parameter respectively
  • the return parameter field in the queried interface configuration data record is determined as the target return parameter corresponding to the interface simulation request, and the target return parameter is sent to the terminal, thereby realizing the simulation of the interface.
  • the terminal 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, and tablet computers.
  • the server 104 may be implemented by an independent server or a server cluster composed of multiple servers.
  • an interface simulation method is provided. Taking the method applied to the server in FIG. 1 as an example for description, the method includes the following steps:
  • Step S202 Obtain interface configuration data corresponding to the interface to be simulated, and save the interface configuration data as an interface configuration data record in the database.
  • the interface to be simulated refers to the interface that needs to be simulated.
  • the interface configuration data is the interface data configured by the front-end developers according to the interface specification.
  • the interface specification can be the interface formulated by the front-end developers and the back-end developers after the requirements are determined.
  • Documents, interface configuration data includes interface name, interface address, request method, request parameter, return parameter, etc.
  • the configuration interface name refers to the interface name corresponding to the interface to be simulated.
  • the request method includes but is not limited to post request and get request, request parameter It refers to the parameters that the interface to be simulated needs to pass in when it is called, and the return parameters refer to the parameters returned by the interface to be simulated when it is called.
  • the server obtains the interface configuration data corresponding to the interface to be simulated from the terminal, and after obtaining the interface configuration data, can save the interface configuration data to the database.
  • interface configuration data record is a row of data in the data table, including configuration Interface name field, request parameter field and return parameter field.
  • the configuration interface name field is used to save the configuration interface name in the interface configuration data
  • the request parameter field is used to save the request parameter in the interface configuration data
  • the return parameter field is used to save the interface configuration. Return parameters in the data.
  • the interface configuration data record may also include other fields, for example, the interface address field, the request mode field, and so on. It is also understandable that for the same interface, there may be multiple interface configuration data records, and each record contains different request parameters and different return parameters. In some embodiments, the interface name and request parameters can be set as the joint primary key to facilitate subsequent data query.
  • obtaining the interface configuration data by the server includes: receiving the interface configuration data obtained through the visual configuration interface sent by the terminal.
  • the terminal can display a visual configuration interface.
  • the visual configuration interface can include an interface name configuration box, a request parameter configuration box, an interface address configuration box, a return parameter configuration box, etc., and front-end developers can check the interface in each configuration box. Configure it.
  • the visual configuration interface displayed by the terminal may also include a custom configuration box, and front-end developers can perform custom data configuration on the interface according to the custom configuration box.
  • Step S204 Receive an interface simulation request sent by the terminal for the interface to be simulated.
  • an interface simulation request can be sent to the server through the terminal.
  • the interface simulation request carries the interface name, request method, and request corresponding to the interface to be simulated. Parameters and other data.
  • Step S206 Parse the received interface simulation request to obtain the first target interface name and target request parameters.
  • the server parses the interface simulation request according to the request mode corresponding to the interface simulation request to obtain the first target interface name and target request parameters. For example, when the request method is a get request, the interface name and request parameters are parsed from the URL corresponding to the interface simulation request, and the parsed interface name and request parameters are determined as the first target interface name and target request parameters; when the request method is post When requesting, the interface name and request parameters are parsed from the request body corresponding to the interface simulation request, and the parsed interface name and request parameters are determined as the first target interface name and target request parameters.
  • step S208 the database is traversed, and the interface configuration data records in which the configuration interface name field and the request parameter field respectively match the first target interface name and the target request parameter are searched from the database.
  • Step S210 Determine the return parameter field in the queried interface configuration data record as the first target return parameter corresponding to the interface simulation request.
  • Step S212 Send the first target return parameter to the terminal.
  • the server After the server obtains the first target interface name and target request parameters, it traverses the database according to the first target interface name and the current request parameters, and judges whether there are both the configuration interface name field and the request parameter field in each interface configuration data record in the database. An interface configuration data record with the same name and target request parameter as the first target interface. If it exists, it can be determined as the first target return parameter corresponding to the interface simulation request based on the return parameter in the record, and the first target return parameter Send to the terminal.
  • an error prompt message can be sent to the terminal.
  • the database upon receiving the interface simulation request for the interface to be simulated, the database will query the return parameters of the interface to be simulated, and the parameters will be returned. Return to the terminal, thereby realizing the simulation of the interface function, allowing front-end developers to call the interface when the interface has not been developed, realizing the decoupling of front-end and back-end development work, and improving the efficiency of front-end development work.
  • the aforementioned interface configuration data record further includes a dependent interface name field, and after the return parameter field in the queried interface configuration data record is determined as the first target return parameter corresponding to the interface simulation request, the aforementioned method It also includes: determining the dependent interface name field in the queried interface configuration data record as the second target interface name; traversing the database, querying the configuration interface name field and request parameter field from the database, respectively, and the second target interface name and target The interface configuration data record matching the request parameter; determining the return parameter field in the queried interface configuration data record as the second target return parameter corresponding to the interface simulation request; sending the first target return parameter to the terminal, including: The first target return parameter and the second target return parameter are sent to the terminal.
  • the back-end when the back-end is developing interfaces, some functions of some interfaces overlap with other interfaces.
  • dependencies between interfaces for example, For example, if the function of interface B is included in interface A, interface A can be set to depend on interface B. At this time, interface B is a dependent interface of interface A, and the interface name corresponding to interface B is the dependent interface name corresponding to interface A.
  • the front-end developer when configuring the interface to be simulated, the front-end developer can also configure the dependent interface name corresponding to the interface to be simulated. In this way, the interface configuration data of the interface to be simulated received by the server includes the dependent interface name. Save the dependent interface name to the dependent interface name field in the interface configuration data record.
  • the server when the server receives the interface simulation request of the interface to be simulated and queries the interface configuration data record from the database according to the first target interface name and target request parameters carried in the interface simulation request, it can use the queried interface configuration data record Obtain the dependent interface name in, and then determine the dependent interface name as the second target interface name, and continue to traverse the database to find the interface configuration whose configuration interface name field and request parameter field match the second target interface name and target request parameter respectively Data record, the second target return parameter is obtained again from the queried interface configuration data, and the second target return parameter is the first in the interface configuration data record queried from the database according to the first target interface name and target request parameters The target return parameters together constitute the return parameters corresponding to the interface simulation request, and the finally obtained return parameters are sent to the terminal.
  • the above method before saving the interface configuration data as an interface configuration data record in the database, the above method further includes: obtaining a data format corresponding to the interface configuration data; and saving the interface configuration data as a piece of interface configuration data in the database Records include: when the data format is a preset format, save the interface configuration data as an interface configuration data record in the database; when the data format is not a preset format, generate a format modification reminder message, and send the format modification reminder message to terminal.
  • the preset format is a format agreed upon by front-end developers and back-end developers according to requirements, for example, JSON format, XML format, etc.
  • the server after the server obtains the interface configuration data, it first needs to obtain the format of each item in the interface configuration data to determine whether the format of all data in the interface configuration data is a preset format, and if so, configure the interface
  • the data is correspondingly saved to each field in the database. If any of the data is not in the preset format, the server will fail to save the configuration interface data, and the server will generate a format modification reminder message and send it to the terminal, and the terminal will modify the format reminder message Display to remind users to modify the corresponding data.
  • the terminal can again send the modified interface configuration data to the server, and the server again determines whether the format of the interface configuration data is a preset format, and if so, it can be saved to the corresponding field in the database.
  • the format of the interface configuration data is verified before the interface configuration data is saved in the database, which can ensure the correctness and consistency of the data format in the database, thereby improving the accuracy of the interface simulation.
  • the interface configuration data after the interface configuration data is saved in the database, it further includes: receiving a query request sent by the terminal, the query request carrying the query interface name; traversing the database, and querying the configuration interface name field from the database for the query interface name. Matching interface configuration data records; return the queried interface configuration data records to the terminal; receive the terminal's modification request for the queried interface configuration data records, and query the corresponding user authority according to the user ID carried in the modification request; When the received user authority meets the preset conditions, the database is updated according to the modification data corresponding to the modification request.
  • the user corresponding to the terminal needs to modify the interface configuration data saved in the database, he can first send a query request to the server through the terminal, and carry the query interface name in the query request.
  • the query interface name refers to the interface to be queried Corresponding interface name.
  • the server traverses the database according to the query interface name. When it finds the interface configuration data record whose configuration interface field matches the query interface name, it returns the queried interface configuration data record to the terminal.
  • the terminal displays the received interface configuration data, and the user corresponding to the terminal can modify the interface configuration data displayed on the terminal and send a modification request to the server.
  • the server After the server receives the modification request, it needs to verify the user authority corresponding to the modification request. When verifying, it can query the corresponding user authority according to the user ID carried in the modification request. , And then determine whether the queried user authority meets the preset conditions, if it is met, replace the interface configuration data before the modification corresponding to the interface to be queried in the database with the modified interface configuration data; if not, return the modification to the terminal Failed prompt message.
  • the preset condition refers to the preset user authority that can modify the data in the database.
  • steps in the flowchart of FIG. 2 are displayed in sequence as indicated by the arrows, these steps are not necessarily performed in sequence in the order indicated by the arrows. Unless specifically stated in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least some of the steps in FIG. 2 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution of these sub-steps or stages The sequence is not necessarily performed sequentially, but may be performed alternately or alternately with at least a part of other steps or sub-steps or stages of other steps.
  • an interface simulation device 300 including:
  • the interface configuration data acquisition module 302 is used to acquire the interface configuration data corresponding to the interface to be simulated, and save the interface configuration data as an interface configuration data record in the database.
  • the interface configuration data record includes the configuration interface name field, request parameter field, and return Parameter field
  • the interface simulation request receiving module 304 is configured to receive the interface simulation request sent by the terminal for the interface to be simulated;
  • the parsing module 306 is configured to analyze the received interface simulation request to obtain the first target interface name and target request parameters;
  • the query module 308 is used to traverse the database and query the interface configuration data records in which the configuration interface name field and the request parameter field respectively match the first target interface name and the target request parameter;
  • the first target return parameter determination module 310 is configured to determine the return parameter field in the queried interface configuration data record as the first target return parameter corresponding to the interface simulation request;
  • the sending module 312 is configured to send the first target return parameter to the terminal.
  • the interface configuration data record further includes a dependent interface name field;
  • the above device further includes: a second target return parameter determination module, configured to determine the dependent interface name field in the queried interface configuration data record Is the second target interface name; traverse the database, query the interface configuration data records that match the second target interface name and target request parameter in the configuration interface name field and request parameter field from the database; record the queried interface configuration data
  • the return parameter field in is determined as the second target return parameter corresponding to the interface simulation request; the sending module is also used to send the first target return parameter and the second target return parameter to the terminal.
  • the interface configuration data obtaining module is further configured to receive the interface configuration data obtained through the visual configuration interface sent by the terminal.
  • the above-mentioned device further includes: a data format acquisition module for acquiring the data format corresponding to the interface configuration data; the interface configuration data acquisition module is also used for saving the interface configuration data when the data format is a preset format Configure data records for an interface in the database; and when the data format is not a preset format, generate format modification reminder information, and send the format modification reminder information to the terminal.
  • the above-mentioned device further includes: an interface configuration data modification module, configured to receive a query request sent by the terminal, the query request carries the query interface name; traverse the database, and query the configuration interface name field and query interface name from the database Matching interface configuration data records; return the queried interface configuration data records to the terminal; receive the terminal's modification request for the queried interface configuration data record, and query the corresponding user authority based on the user identifier carried in the modification request; and When the queried user authority meets the preset conditions, the database is updated according to the modification data corresponding to the modification request.
  • an interface configuration data modification module configured to receive a query request sent by the terminal, the query request carries the query interface name; traverse the database, and query the configuration interface name field and query interface name from the database Matching interface configuration data records; return the queried interface configuration data records to the terminal; receive the terminal's modification request for the queried interface configuration data record, and query the corresponding user authority based on the user identifier carried in the modification request; and When the queried
  • Each module in the above-mentioned interface simulation device can be implemented in whole or in part by software, hardware, and a combination thereof.
  • the foregoing modules may be embedded in the form of hardware or independent of the processor in the computer device, or may be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the foregoing modules.
  • a computer device is provided.
  • the computer device may be a server, and its internal structure diagram may be as shown in FIG. 4.
  • the computer equipment includes a processor, a memory, a network interface and a database connected through a system bus.
  • the processor of the computer device is used to provide computing and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system, computer readable instructions, and a database.
  • the internal memory provides an environment for the operation of the operating system and computer-readable instructions in the non-volatile storage medium.
  • the computer equipment database is used to store interface configuration data.
  • the network interface of the computer device is used to communicate with an external terminal through a network connection.
  • the computer-readable instructions are executed by the processor to realize an interface simulation method.
  • FIG. 4 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied.
  • the specific computer device may Including more or fewer parts than shown in the figure, or combining some parts, or having a different arrangement of parts.
  • a computer device includes a memory and one or more processors.
  • the memory stores computer-readable instructions.
  • the one or more processors perform the following steps: Obtain the corresponding interface to be simulated Interface configuration data, save the interface configuration data as an interface configuration data record in the database.
  • the interface configuration data record includes the configuration interface name field, request parameter field and return parameter field; receiving the interface simulation request sent by the terminal to simulate the interface Analyze the received interface simulation request to obtain the first target interface name and target request parameters; traverse the database, query the configuration interface name field and request parameter field from the database, respectively, and the first target interface name and target request parameters The matched interface configuration data record; the return parameter field in the queried interface configuration data record is determined as the first target return parameter corresponding to the interface simulation request; and the first target return parameter is sent to the terminal.
  • the interface configuration data record further includes a dependent interface name field; after determining the return parameter field in the queried interface configuration data record as the first target return parameter corresponding to the interface simulation request, the processor executes
  • the computer-readable instructions also implement the following steps: determine the dependent interface name field in the queried interface configuration data record as the second target interface name; traverse the database, and query the configuration interface name field and the request parameter field from the database respectively An interface configuration data record matching the second target interface name and the target request parameter; determining the return parameter field in the queried interface configuration data record as the second target return parameter corresponding to the interface simulation request; and returning the first target The parameter and the second target return parameter are sent to the terminal.
  • the processor further implements the following steps when executing the computer-readable instructions: receiving interface configuration data sent by the terminal, where the interface configuration data is data acquired by the terminal through a visual configuration interface.
  • the processor before saving the interface configuration data as an interface configuration data record in the database, the processor also implements the following steps when executing the computer-readable instructions: acquiring the data format corresponding to the interface configuration data; when the data format is preset When formatting, save the interface configuration data as an interface configuration data record in the database; and when the data format is not a preset format, generate format modification reminder information, and send the format modification reminder information to the terminal.
  • the processor executes the following steps when executing the computer-readable instructions: receiving a query request sent by the terminal, the query request carrying the query interface name; traversing the database, from the database Query the interface configuration data record whose configuration interface name field matches the query interface name; return the queried interface configuration data record to the terminal; receive the terminal’s modification request for the queried interface configuration data record, according to the modification request carried
  • the user ID queries the corresponding user authority; and when the queried user authority meets the preset conditions, the database is updated according to the modification data corresponding to the modification request.
  • One or more non-volatile computer-readable storage media storing computer-readable instructions.
  • the one or more processors execute the following steps: Obtain the interface to be simulated Corresponding interface configuration data, save the interface configuration data as an interface configuration data record in the database.
  • the interface configuration data record includes the configuration interface name field, request parameter field and return parameter field; the interface simulation sent by the receiving terminal to simulate the interface Request; parse the received interface simulation request to obtain the first target interface name and target request parameters; traverse the database, query the configuration interface name field and request parameter field from the database and the first target interface name and target request parameter respectively A matching interface configuration data record; determining the return parameter field in the queried interface configuration data record as the first target return parameter corresponding to the interface simulation request; and sending the first target return parameter to the terminal.
  • the interface configuration data record further includes a dependent interface name field; after the return parameter field in the queried interface configuration data record is determined as the first target return parameter corresponding to the interface simulation request, the computer can read
  • the following steps are also implemented: determine the dependent interface name field in the queried interface configuration data record as the second target interface name; traverse the database, query the configuration interface name field and request parameter field from the database, respectively An interface configuration data record matching the second target interface name and target request parameters; determining the return parameter field in the queried interface configuration data record as the second target return parameter corresponding to the interface simulation request; and setting the first target The return parameter and the second target return parameter are sent to the terminal.
  • obtaining the interface configuration data corresponding to the interface to be simulated includes: receiving the interface configuration data sent by the terminal, where the interface configuration data is the data obtained by the terminal through the visual configuration interface.
  • the computer-readable instructions when executed by the processor further implement the following steps: obtain the data format corresponding to the interface configuration data; when the data format is When the format is preset, the interface configuration data is saved as an interface configuration data record in the database; and when the data format is not a preset format, a format modification reminder message is generated, and the format modification reminder message is sent to the terminal.
  • the following steps are also implemented: receiving a query request sent by the terminal, the query request carrying the query interface name; traversing the database, from the database The query configuration interface name field matches the interface configuration data record in the query interface name; returns the queried interface configuration data record to the terminal; receives the terminal’s request for modification of the queried interface configuration data record, according to the modification request carried
  • the user ID inquires the corresponding user authority; and when the queried user authority meets the preset conditions, the database is updated according to the modification data corresponding to the modification request.
  • Non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Channel (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDRSDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous chain Channel
  • memory bus Radbus direct RAM
  • RDRAM direct memory bus dynamic RAM
  • RDRAM memory bus dynamic RAM

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

La présente invention porte sur un procédé de simulation d'interface consistant : à acquérir des données de configuration d'interface correspondant à une interface en attente de simulation, et à stocker, dans une base de données, les données de configuration d'interface sous forme d'enregistrement de données de configuration d'interface, l'enregistrement de données de configuration d'interface comprenant un champ de nom d'interface de configuration, un champ de paramètre de demande et un champ de paramètre de retour ; à recevoir, en provenance d'un terminal, une demande de simulation d'interface en vue de la simulation de l'interface ; à analyser la demande de simulation d'interface reçue afin d'acquérir un premier nom d'interface cible et un paramètre de demande cible ; à parcourir la base de données afin de rechercher un enregistrement de données de configuration d'interface comprenant le champ de nom d'interface de configuration et le champ de paramètre de demande correspondant respectivement au premier nom d'interface cible et au paramètre de demande cible ; à déterminer le champ de paramètre de retour dans l'enregistrement de données de configuration d'interface trouvé comme étant un premier paramètre de retour cible correspondant à la demande de simulation d'interface ; et à envoyer le premier paramètre de retour cible au terminal.
PCT/CN2019/118071 2019-03-25 2019-11-13 Procédé et dispositif de simulation d'interface, appareil informatique, et support d'informations WO2020192141A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910228302.7 2019-03-25
CN201910228302.7A CN110109656A (zh) 2019-03-25 2019-03-25 接口模拟方法、装置、计算机设备和存储介质

Publications (1)

Publication Number Publication Date
WO2020192141A1 true WO2020192141A1 (fr) 2020-10-01

Family

ID=67484566

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/118071 WO2020192141A1 (fr) 2019-03-25 2019-11-13 Procédé et dispositif de simulation d'interface, appareil informatique, et support d'informations

Country Status (2)

Country Link
CN (1) CN110109656A (fr)
WO (1) WO2020192141A1 (fr)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110109656A (zh) * 2019-03-25 2019-08-09 平安科技(深圳)有限公司 接口模拟方法、装置、计算机设备和存储介质
CN110955712A (zh) * 2019-11-26 2020-04-03 北京天元创新科技有限公司 基于多数据源的开发api处理方法及装置
CN111352610A (zh) * 2020-03-03 2020-06-30 五八有限公司 接口返回值修改方法、装置、电子设备及存储介质
CN112035282B (zh) * 2020-09-01 2023-07-25 北京百度网讯科技有限公司 应用于云平台的api管理方法、装置、设备以及存储介质
CN113779468A (zh) * 2021-01-15 2021-12-10 北京沃东天骏信息技术有限公司 用于处理页面接口数据的方法和装置
CN112925803A (zh) * 2021-04-09 2021-06-08 泰康保险集团股份有限公司 一种接口的数据处理方法及装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108255905A (zh) * 2017-05-04 2018-07-06 平安科技(深圳)有限公司 接口调用数据处理方法、装置和计算机设备
CN108268570A (zh) * 2017-01-04 2018-07-10 武汉斗鱼网络科技有限公司 一种开发接口的方法及装置
CN108804336A (zh) * 2018-06-15 2018-11-13 深圳壹账通智能科技有限公司 交互系统测试方法、装置、计算机设备和存储介质
CN109446063A (zh) * 2018-09-18 2019-03-08 深圳壹账通智能科技有限公司 接口测试方法、装置、计算机设备和存储介质
CN110109656A (zh) * 2019-03-25 2019-08-09 平安科技(深圳)有限公司 接口模拟方法、装置、计算机设备和存储介质

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104881343B (zh) * 2014-02-27 2017-03-15 北京京东尚科信息技术有限公司 一种测试方法和测试系统
CN106155891B (zh) * 2015-04-02 2019-07-05 阿里巴巴集团控股有限公司 接口测试方法、接口描述数据库生成方法及装置
CN108427631B (zh) * 2017-02-14 2022-04-12 北京京东尚科信息技术有限公司 一种应用测试系统、方法、电子设备和可读存储介质
CN108268253B (zh) * 2017-05-05 2020-01-03 平安科技(深圳)有限公司 接口代码生成方法及终端设备
CN107480053B (zh) * 2017-07-21 2021-08-17 销冠网络科技有限公司 一种软件测试数据生成方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108268570A (zh) * 2017-01-04 2018-07-10 武汉斗鱼网络科技有限公司 一种开发接口的方法及装置
CN108255905A (zh) * 2017-05-04 2018-07-06 平安科技(深圳)有限公司 接口调用数据处理方法、装置和计算机设备
CN108804336A (zh) * 2018-06-15 2018-11-13 深圳壹账通智能科技有限公司 交互系统测试方法、装置、计算机设备和存储介质
CN109446063A (zh) * 2018-09-18 2019-03-08 深圳壹账通智能科技有限公司 接口测试方法、装置、计算机设备和存储介质
CN110109656A (zh) * 2019-03-25 2019-08-09 平安科技(深圳)有限公司 接口模拟方法、装置、计算机设备和存储介质

Also Published As

Publication number Publication date
CN110109656A (zh) 2019-08-09

Similar Documents

Publication Publication Date Title
WO2020192141A1 (fr) Procédé et dispositif de simulation d'interface, appareil informatique, et support d'informations
CN108573371B (zh) 数据审批方法、装置、计算机设备和存储介质
CN109474578B (zh) 报文消息校验方法、装置、计算机设备和存储介质
WO2020151333A1 (fr) Procédé de chargement de page, appareil, dispositif informatique et support d'informations
US11537606B2 (en) Solution for implementing computing service based on structured query language statement
WO2021164161A1 (fr) Procédé et appareil d'étiquetage de données d'image, et dispositif informatique et support de stockage
WO2020192134A1 (fr) Procédé et appareil de gestion d'exceptions basés sur spring mvc, et dispositif informatique et support de stockage
WO2021217846A1 (fr) Procédé et appareil de traitement de données d'interface, et dispositif informatique et support de stockage
TW201439792A (zh) 資料庫訪問系統及方法
US10795882B2 (en) Blockchain-based data compression and searching
CN111309593A (zh) Json接口校验的方法、装置、设备及计算机可读存储介质
WO2019037418A1 (fr) Procédé et appareil de gestion de codes, dispositif d'ordinateur et support de stockage lisible par ordinateur
CN109190353B (zh) 用于自动生成证书文档的方法和计算设备
US10289620B1 (en) Reporting and data governance management
CN115599359A (zh) 一种代码生成方法、装置、设备及介质
CN112214456B (zh) 一种房产数据处理方法、装置和电子设备
WO2021036681A1 (fr) Procédé et appareil de vérification de données, dispositif informatique et support d'enregistrement
CN111522881A (zh) 业务数据处理方法、装置、服务器及存储介质
US10318524B2 (en) Reporting and data governance management
CA3151209A1 (fr) Methode de requete de donnees, dispositif, equipement informatique et support de stockage
CN111897728B (zh) 接口调试方法及相关设备
CN105989021A (zh) 一种文件处理方法和装置
CN108984543B (zh) 一种数据处理方法及设备
CN116450682B (zh) 基于数据合并的模型生成方法、装置、设备及介质
CN111221817B (zh) 业务信息数据存储方法、装置、计算机设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19921151

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 14.02.2022)

122 Ep: pct application non-entry in european phase

Ref document number: 19921151

Country of ref document: EP

Kind code of ref document: A1