Interface simulation calling method, system and equipment and storage medium

Through the interface simulation of calling methods and systems, the problem of low efficiency of internal interface debugging and integration testing of enterprises is solved, and an easy-to-use interface simulation calling system is provided. Through the simulation calling tools and scripts, the virtual environment is built, and the interface simulation calling records are generated, which improves the interface development and testing efficiency.

CN119127660APending Publication Date: 2024-12-13CTRIP BUSINESS TRAVEL INFORMATION SERVICE (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311492805.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-09
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

The prior art lacks an interface call testing system that is easy to use and can meet various interface testing needs, making it difficult to efficiently conduct interface debugging and integration testing within the enterprise.

Method used

Provide an interface simulation call method and system, which can obtain requirements information, determine simulation call tools and scripts, build a simulation call system, and integrate it into the enterprise work management system, execute interface simulation calls, and generate interface simulation call records. The system includes an information acquisition module, a tool selection module, a script acquisition module and a system construction module. It uses virtual machine technology to simulate the interface provider and caller environment, and generates request data and response data based on data simulation technology.

Benefits of technology

It realizes interface debugging and integration testing more efficiently during development and testing, provides interface simulation calling methods and systems for internal developers to use, improves the efficiency of interface development and testing, and reduces development costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119127660A_ABST
    Figure CN119127660A_ABST
Patent Text Reader

Abstract

The invention provides an interface simulation calling method, system and device and a storage medium, and the method comprises the steps: obtaining the demand information of interface simulation calling, and the demand information comprises simulation interface information; determining a simulation calling tool according to the demand information, and configuring the simulation calling tool; acquiring a simulation calling script of the simulation interface; constructing a simulation calling system based on the simulation calling tool and the simulation calling script, and integrating the simulation calling system into an enterprise work management system; and executing interface simulation calling based on the simulation calling system, and generating an interface simulation calling record. The interface simulation calling method and system are provided for the interior of an enterprise, and interface debugging and integration testing can be carried out more efficiently in the development and testing process.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] In the process of system development, interface calling and testing are very important processes. Through interface calling and testing, the interfaces between test system components can be tested, the interfaces between the system and other external systems, and the interfaces between various sub-modules within the system can be tested, which can help enterprises quickly and accurately simulate interface calling during the development and testing phases, thereby improving development efficiency and quality. However, there is no interface calling test system in the prior art that is easy to use, can meet various interface testing requirements, and is convenient for internal enterprise staff to use directly.

[0003] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute prior art known to ordinary technicians in the field. Summary of the invention

[0004] In response to the problems in the prior art, the purpose of this application is to provide an interface simulation calling method, system, device and storage medium, to provide an interface simulation calling method and system within the enterprise, so as to facilitate more efficient interface debugging and integration testing during the development and testing process.

[0005] The present invention provides an interface simulation calling method, comprising the following steps:

[0006] Acquire interface simulation call requirement information, wherein the requirement information includes simulation interface information;

[0007] Determine a simulation calling tool according to the demand information, and configure the simulation calling tool;

[0008] Get the simulation call script of the simulation interface;

[0009] Building a simulation call system based on the simulation call tool and the simulation call script, and integrating the simulation call system into the enterprise work management system;

[0010] Based on the simulation call system, an interface simulation call is executed to generate an interface simulation call record.

[0011] In some embodiments, the constructing a simulated call system further includes:

[0012] Building a first virtual machine and a second virtual machine;

[0013] Simulating an interface provider environment in the first virtual machine;

[0014] An interface caller environment is simulated in the second virtual machine.

[0015] In some embodiments, performing an interface simulation call based on the simulation call system includes the following steps:

[0016] Automatically generate simulation request data based on data simulation technology;

[0017] Constructing a test case based on the simulated request data and the simulated interface information;

[0018] The test case is executed based on the simulation calling tool, and the simulation request data is processed based on the simulation calling script to obtain processed simulation response data.

[0019] In some embodiments, processing the simulated request data based on the simulated call script includes the following steps:

[0020] Verifying the simulated request data based on the simulated call script;

[0021] If the verification is successful, simulated response data corresponding to the simulated request data is generated based on the preset response logic in the simulated call script.

[0022] In some embodiments, determining a simulation calling tool according to the demand information includes the following steps:

[0023] Determine whether the interface simulation call requirement information includes calling tool information;

[0024] If yes, selecting a simulated calling tool according to the calling tool information;

[0025] Otherwise, the simulation calling tool is determined according to the mapping relationship between the preset simulation interface information and the simulation calling tool.

[0026] In some embodiments, the demand information also includes simulated call system requirements;

[0027] After executing the interface simulation call based on the simulation call system and generating the interface simulation call record, the following steps are also included:

[0028] Based on the preset interface test verification rules, the interface simulation call record is verified to determine whether the simulation call system meets the simulation call system requirements in the requirement information.

[0029] In some embodiments, the following steps are also included:

[0030] Obtaining an updated simulation calling script for the simulation interface;

[0031] The simulation call script in the simulation call system is updated based on the updated simulation call script.

[0032] The present application also provides an interface simulation calling system for implementing the interface simulation calling method, the system comprising:

[0033] An information acquisition module is used to acquire the demand information of the interface simulation call, wherein the demand information includes the simulation interface information and the simulation call system information;

[0034] A tool selection module, used to determine a simulation calling tool according to the demand information, and configure the simulation calling tool;

[0035] The script acquisition module is used to obtain the simulation call script of the simulation interface;

[0036] A system construction module, used to construct a simulation call system based on the simulation call tool and the simulation call script, and integrate the simulation call system into the enterprise work management system;

[0037] The simulation calling module is used to execute the interface simulation calling based on the simulation calling system and generate the interface simulation calling record.

[0038] The embodiment of the present application also provides an interface simulation calling device, including:

[0039] processor;

[0040] a memory storing executable instructions of the processor;

[0041] Wherein, the processor is configured to execute the steps of the interface simulation calling method by executing the executable instructions.

[0042] An embodiment of the present application also provides a computer-readable storage medium for storing a program, which implements the steps of the interface simulation calling method when executed by a processor.

[0043] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

[0044] The interface simulation calling method, system, device and storage medium of the present application have the following beneficial effects:

[0045] By adopting this application, first the demand information is obtained, the simulation call tool is determined, and after obtaining the simulation call script, a simulation call system is built and the simulation call system is integrated into the enterprise work management system to facilitate direct use by internal developers of the enterprise. Then, interface simulation calls can be performed based on the simulation call system to obtain interface simulation call records for subsequent interface testing and analysis, thereby providing an interface simulation call method and system within the enterprise, which facilitates more efficient interface debugging and integration testing during the development and testing process. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings.

[0047] Figure 1 is a flow chart of an interface simulation calling method according to an embodiment of the present application;

[0048] Figure 2 This is a page diagram of an interface simulation call in an embodiment of the present application;

[0049] Figure 3 This is a flowchart of executing interface simulation call in one embodiment of the present application;

[0050] Figure 4 It is a structural diagram of an interface simulation calling system according to an embodiment of the present application;

[0051] Figure 5 It is a structural diagram of an interface simulation calling device according to an embodiment of the present application;

[0052] Figure 6 It is a schematic diagram of the structure of a computer-readable storage medium according to an embodiment of the present application. DETAILED DESCRIPTION

[0053] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0054] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and thus their repeated descriptions will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices. Although "first" or "second" etc. are used in this specification to represent certain features, they are only used to represent the function and are not used as a limitation on the number and importance of specific features.

[0055] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the steps. For example, some steps may be decomposed, while some steps may be combined or partially combined. Therefore, the actual execution order may be changed according to the actual situation.

[0056] like Figure 1 As shown, the embodiment of the present application provides an interface simulation calling method, comprising the following steps:

[0057] S100: Acquire demand information of interface simulation call, where the demand information includes simulation interface information; the simulation interface information includes, for example, interface type and interface parameters of the simulation interface;

[0058] S200: Determine a simulation calling tool according to the demand information, and configure the simulation calling tool; the optional simulation calling tool may be, for example, WireMock, MockServer, etc.;

[0059] Configuring the simulation calling tool, for example, configuring the URL, request parameters, response parameters, etc. of the simulation interface in the simulation calling tool;

[0060] S300: Obtain a simulation call script of a simulation interface;

[0061] The simulation call script can be written by developers and testers themselves, or it can be automatically generated based on the input simulation interface information through preset script generation rules;

[0062] The simulation call script is used to simulate the request and response logic of the interface, including the validation rules for request parameters, the generation logic of response parameters, etc.

[0063] S400: constructing a simulation calling system based on the simulation calling tool and the simulation calling script, and integrating the simulation calling system into an enterprise work management system;

[0064] The enterprise work management system here refers to the management system used by internal employees of the enterprise to manage the work affairs of various departments within the enterprise and the flow of affairs between departments;

[0065] S500: Execute an interface simulation call based on the simulation call system to generate an interface simulation call record, which at least includes the time of the simulation call, request parameters, response duration, response parameters, etc.

[0066] By adopting the interface simulation calling method of the present application, the demand information is obtained through step S100, the simulation calling tool is determined through step S200, and after the simulation calling script is obtained through step S300, a simulation calling system is constructed through step S400 and the simulation calling system is integrated into the enterprise work management system to facilitate direct use by internal developers of the enterprise. Through step S500, an interface simulation calling can be performed based on the simulation calling system to obtain an interface simulation calling record for subsequent interface testing and analysis, thereby providing an interface simulation calling method and system within the enterprise, which facilitates more efficient interface debugging and integration testing during the development and testing process.

[0067] The step S400: constructing a simulation call system based on the simulation call tool and the simulation call script, at least includes establishing a correspondence between the name, version, domain name and other simulation interface information of the simulation interface and the storage location of the simulation call script, and configuring the correspondence in the simulation call tool, and rendering and generating a page for interface simulation call. Developers can select the interface and version to be simulated in the interface simulation call page, call the simulation call tool, send request data to the simulation interface, simulate the response logic of the interface through the simulation call script, and obtain response data.

[0068] Figure 2 A schematic diagram of a page for interface simulation call is shown. After the simulation call system is integrated into the enterprise work management system, the page can be integrated into the enterprise work management system, and an entry button for interface simulation call is set in the enterprise work management system. By clicking the entry button, the user can enter the page. Figure 2 In the interface, you can select the interface that needs to be simulated. In the interface version, you can configure the interface version that needs to be simulated. In the interface domain name, you can configure the interface domain that needs to be simulated. In AppKey and AppSecurity, you can configure encryption parameters. The request data can be entered by the developer or automatically generated using data simulation technology. Click the send button to send the request data to the simulation interface. The simulated interface call script generates response data and displays it in the response data box.

[0069] In this embodiment, in step S400, building a simulated call system further includes:

[0070] Constructing a first virtual machine and a second virtual machine; the first virtual machine and the second virtual machine may be configured on one or more servers;

[0071] Simulating the interface provider environment in the first virtual machine. Specifically, configuration may be performed in the first virtual machine to simulate the operating system, application program, etc. of the interface provider;

[0072] The interface caller environment is simulated in the second virtual machine. Specifically, configuration may be performed in the second virtual machine to simulate the operating system, application program, etc. of the interface caller.

[0073] Therefore, the present application can use virtualization technology to run multiple virtual machines on the same server or multiple servers, each virtual machine simulating an independent environment, thereby simulating the environment of the interface provider and the environment of the interface caller, thereby realizing interface simulation calling.

[0074] In addition, the present application can also realize the complete automation of simulation call based on test cases and automated testing tools. By using automated testing tools, user operations can be simulated, test cases can be automatically executed, and test reports can be automatically generated.

[0075] like Figure 3 As shown, in this embodiment, in step S500, executing the interface simulation call based on the simulation call system includes the following steps:

[0076] S510: Automatically generate simulation request data based on data simulation technology;

[0077] Here, based on data simulation technology, for example, random simulated request data can be generated based on random data generation rules, or simulated request data can be generated based on preset request data templates for interface testing and debugging, so as to perform testing without real data;

[0078] S520: Construct a test case based on the simulation request data and the simulation interface information;

[0079] S530: Execute the test case based on the simulation calling tool, process the simulation request data based on the simulation calling script, and obtain processed simulation response data.

[0080] To design the interface simulation call system, you need to understand the basic principles and specifications of interface design, including RESTful API, SOAP, XML, JSON, etc., and you need to master at least one programming language, such as Java, Python, C#, etc., in order to write simulation interface call scripts, master the basic principles and protocols of network communication, such as HTTP, TCP / IP, etc., master some testing tools, such as Postman, SoapUI, etc., in order to test the correctness and performance of simulation interface call scripts, understand the basic principles and specifications of interface security, such as OAuth, JWT, etc., master how to record logs of simulation interface call scripts, so that you can configure scripts that automatically generate log records to troubleshoot problems and analyze performance, and master how to deploy simulation interface call scripts to ensure their availability and stability.

[0081] This application is implemented based on interface technology, simulation technology, automated testing technology, database technology, etc. Interface is a bridge for data exchange between different systems. Interface technology is the key technology for realizing data exchange between different systems. Interface calls within an enterprise are usually implemented using technologies such as SOAP and REST. Based on interface technology, this application further adopts interface simulation technology, which can simulate interface calls of external systems so that internal developers can test and debug without external systems. The interface simulation technology adopted includes, for example, simulating HTTP requests and responses, simulating SOAP messages, etc. Simulation technology refers to the technology of testing the system by simulating the real environment. In interface testing, simulation technology can help enterprises quickly build a test environment and reduce testing costs and time. Automated testing technology refers to the technology of using tools or scripts to automatically execute test cases. In interface testing, automated testing technology can help enterprises quickly execute a large number of test cases and improve testing efficiency and quality. Database technology is the core technology of internal data management in an enterprise. The interface simulation call system needs to manage and maintain the data within the enterprise.

[0082] The interface simulation call system of this application can also be configured with API management tools to manage the API within the enterprise, including API registration, documentation, monitoring and other functions. The API management tool can be used to manage the API of the interface provider, thereby realizing interface simulation calls. The interface simulation call system can also use containerization technology to package the application and its dependencies into a container, which is convenient for deployment and operation in different environments, thereby realizing interface simulation calls. Therefore, this application can meet the needs of internal interface simulation calls in enterprises, improve the efficiency of interface development and testing, and reduce development costs.

[0083] The interface simulation call system can help developers and testers within the enterprise to better perform interface testing and development. By simulating real interface calls, the functions and performance of the system can be better tested and verified, thereby improving the quality and stability of the interface simulation call system. In addition, the system can also improve the efficiency of development and testing. Developers can develop and test without actual interfaces, thus avoiding dependence on and impact on other systems. Testers can test at any time and any place without waiting for the availability of actual interfaces. Based on the interface simulation call system and method, enterprises can develop and deploy new enterprise work management systems more quickly and better ensure the quality and reliability of enterprise work management systems.

[0084] Furthermore, the interface simulation calling system of the present application can be implemented based on performance testing technology, such as simulating multiple concurrent users to make interface calls, recording interface call time, etc. The interface simulation calling system can be integrated with other systems to ensure the integration and collaboration capabilities of the interface simulation calling system, and can be implemented based on some integration testing technologies, such as simulating interface calls of other systems, recording data flows between systems, etc.

[0085] In this embodiment, processing the simulation request data based on the simulation call script includes the following steps:

[0086] Verifying the simulated request data based on the simulated call script;

[0087] The simulation call script is pre-configured with data content verification rules, which can verify the data content of the simulation request data. The simulation call script can also be configured with security verification rules to perform security verification on the simulation request data, such as identity authentication, access control, etc., to ensure the security of the interface call and prevent unauthorized access and attacks;

[0088] If the verification is successful, simulated response data corresponding to the simulated request data is generated based on the preset response logic in the simulated call script.

[0089] In this embodiment, determining the simulation calling tool according to the demand information includes the following steps:

[0090] Determine whether the interface simulation call requirement information includes calling tool information;

[0091] If yes, selecting a simulated calling tool according to the calling tool information;

[0092] Otherwise, the simulation calling tool is determined according to the mapping relationship between the preset simulation interface information and the simulation calling tool.

[0093] In this embodiment, the requirement information also includes simulation call system requirements, and the simulation call system requirements include, for example, functional and performance requirements for the simulation call system.

[0094] The step S500: after executing the interface simulation call based on the simulation call system and generating the interface simulation call record, further includes the following steps:

[0095] Based on the preset interface test verification rules, the interface simulation call record is verified to determine whether the simulation call system meets the simulation call system requirements in the requirement information. If not, the simulation call system needs to be adjusted and tested and verified again.

[0096] In this embodiment, the interface simulation calling method further includes the following steps:

[0097] Obtaining an updated simulation calling script for the simulation interface;

[0098] The simulation call script in the simulation call system is updated based on the updated simulation call script, thereby achieving regular maintenance and updating of the simulation call system to ensure its consistency and stability with the actual interface.

[0099] like Figure 4 As shown, the present application also provides an interface simulation calling system for implementing the interface simulation calling method, the system comprising:

[0100] The information acquisition module M100 is used to acquire the demand information of the interface simulation call, wherein the demand information includes the simulation interface information and the simulation call system information; the simulation interface information includes, for example, the interface type and interface parameters of the simulation interface;

[0101] The tool selection module M200 is used to determine the simulation calling tool according to the demand information and configure the simulation calling tool; the optional simulation calling tool may be, for example, WireMock, MockServer, etc.; configure the simulation calling tool, for example, configure the URL, request parameters, response parameters, etc. of the simulation interface in the simulation calling tool;

[0102] The script acquisition module M300 is used to acquire the simulation call script of the simulation interface; the simulation call script can be written by the developer and tester themselves, or it can be automatically generated based on the input simulation interface information through the preset script generation rules; the simulation call script is used to simulate the request and response logic of the interface, including the verification rules for the request parameters, the generation logic of the response parameters, etc.;

[0103] The system construction module M400 is used to construct a simulation call system based on the simulation call tool and the simulation call script, and integrate the simulation call system into the enterprise work management system; the enterprise work management system here refers to a management system used by internal employees of the enterprise to manage the work affairs of various departments within the enterprise and the flow of affairs between departments;

[0104] The simulation calling module M500 is used to perform interface simulation calling based on the simulation calling system and generate interface simulation calling records, which at least include the time of the simulation calling, request parameters, response duration, response parameters, etc.

[0105] By adopting the interface simulation calling system of the present application, the demand information is obtained through the information acquisition module M100, the simulation calling tool is determined through the tool selection module M200, and after the simulation calling script is obtained through the script acquisition module M300, the simulation calling system is constructed through the system construction module M400 and the simulation calling system is integrated into the enterprise work management system, which is convenient for internal developers of the enterprise to use directly. The simulation calling module M500 can perform interface simulation calls based on the simulation calling system to obtain interface simulation calling records for subsequent interface testing and analysis, thereby providing an interface simulation calling method and system within the enterprise, which facilitates more efficient interface debugging and integration testing during the development and testing process.

[0106] An embodiment of the present application also provides an interface simulation calling device, comprising a processor; a memory, in which executable instructions of the processor are stored; wherein the processor is configured to execute the steps of the interface simulation calling method by executing the executable instructions.

[0107] Those skilled in the art will appreciate that various aspects of the present application may be implemented as a system, method or program product. Therefore, various aspects of the present application may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to as "circuit", "module" or "platform" herein.

[0108] Refer to the following Figure 5 The electronic device 600 according to this embodiment of the present application is described. Figure 5 The electronic device 600 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0109] like Figure 5 As shown, the electronic device 600 is in the form of a general computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 connecting different system components (including the storage unit 620 and the processing unit 610), a display unit 640, etc.

[0110] The storage unit stores program codes, which can be executed by the processing unit 610, so that the processing unit 610 executes the steps according to various exemplary embodiments of the present application described in the above interface simulation calling method section of this specification. For example, the processing unit 610 can execute the following steps: Figure 1 Follow the steps shown in .

[0111] The storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 6201 and / or a cache memory unit 6202 , and may further include a read-only memory unit (ROM) 6203 .

[0112] The storage unit 620 may also include a program / utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include the implementation of a network environment.

[0113] Bus 630 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0114] The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 600, and / or communicate with any device that enables the electronic device 600 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 650. Furthermore, the electronic device 600 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 via a bus 630. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0115] In the interface simulation calling device, the program in the memory implements the steps of the interface simulation calling method when being executed by the processor. Therefore, the device can also obtain the technical effect of the above-mentioned interface simulation calling method.

[0116] The embodiment of the present application also provides a computer-readable storage medium for storing a program, which implements the steps of the interface simulation calling method when executed by a processor. In some possible implementations, various aspects of the present application can also be implemented in the form of a program product, which includes a program code. When the program product is executed on a terminal device, the program code is used to cause the terminal device to execute the steps of various exemplary implementations of the present application described in the above-mentioned interface simulation calling method section of this specification.

[0117] refer to Figure 6 As shown, a program product 800 for implementing the above method according to an embodiment of the present application is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be executed on a terminal device, such as a personal computer. However, the program product of the present application is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.

[0118] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0119] The computer readable storage medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by an instruction execution system, an apparatus, or a device or used in combination with it. The program code contained on the readable storage medium may be transmitted with any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.

[0120] Program code for performing the operations of the present application may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).

[0121] When the program in the computer storage medium is executed by the processor, the steps of the interface simulation calling method are implemented. Therefore, the computer storage medium can also obtain the technical effect of the above-mentioned interface simulation calling method.

[0122] The above content is a further detailed description of the present application in combination with specific preferred implementation methods, and it cannot be determined that the specific implementation of the present application is limited to these descriptions. For ordinary technicians in the technical field to which the present application belongs, several simple deductions or substitutions can be made without departing from the concept of the present application, which should be deemed to fall within the scope of protection of the present application.

Claims

1. An interface simulation calling method, It is characterized in that The steps include: Acquire interface simulation call requirement information, wherein the requirement information includes simulation interface information; Determine a simulation calling tool according to the demand information, and configure the simulation calling tool; Get the simulation call script of the simulation interface; Building a simulation call system based on the simulation call tool and the simulation call script, and integrating the simulation call system into the enterprise work management system; Based on the simulation call system, an interface simulation call is executed to generate an interface simulation call record.

2. The interface simulation calling method according to claim 1, It is characterized in that The construction of the simulation call system also includes: Building a first virtual machine and a second virtual machine; Simulating an interface provider environment in the first virtual machine; An interface caller environment is simulated in the second virtual machine.

3. The interface simulation calling method according to claim 1, It is characterized in that Executing interface simulation calling based on the simulation calling system includes the following steps: Automatically generate simulation request data based on data simulation technology; Constructing a test case based on the simulated request data and the simulated interface information; The test case is executed based on the simulation calling tool, and the simulation request data is processed based on the simulation calling script to obtain processed simulation response data.

4. The interface simulation calling method according to claim 3, It is characterized in that Processing the simulated request data based on the simulated call script includes the following steps: Verifying the simulated request data based on the simulated call script; If the verification is successful, simulated response data corresponding to the simulated request data is generated based on the preset response logic in the simulated call script.

5. The interface simulation calling method according to claim 1, It is characterized in that Determining a simulation calling tool according to the demand information includes the following steps: Determine whether the interface simulation call requirement information includes calling tool information; If yes, selecting a simulated calling tool according to the calling tool information; Otherwise, the simulation calling tool is determined according to the mapping relationship between the preset simulation interface information and the simulation calling tool.

6. The interface simulation calling method according to claim 1, It is characterized in that The demand information also includes simulation call system requirements; After executing the interface simulation call based on the simulation call system and generating the interface simulation call record, the following steps are also included: Based on the preset interface test verification rules, the interface simulation call record is verified to determine whether the simulation call system meets the simulation call system requirements in the requirement information.

7. The interface simulation calling method according to claim 1, It is characterized in that The following steps are also included: Obtaining an updated simulation calling script for the simulation interface; The simulation call script in the simulation call system is updated based on the updated simulation call script.

8. An interface simulation calling system, It is characterized in that For implementing the interface simulation calling method according to any one of claims 1 to 7, the system comprises: An information acquisition module is used to acquire the demand information of the interface simulation call, wherein the demand information includes the simulation interface information and the simulation call system information; A tool selection module, used to determine a simulation calling tool according to the demand information, and configure the simulation calling tool; The script acquisition module is used to obtain the simulation call script of the simulation interface; A system construction module, used to construct a simulation call system based on the simulation call tool and the simulation call script, and integrate the simulation call system into the enterprise work management system; The simulation calling module is used to execute the interface simulation calling based on the simulation calling system and generate the interface simulation calling record.

9. An interface simulation calling device, It is characterized in that include: processor; a memory storing executable instructions of the processor; The processor is configured to execute the steps of the interface simulation calling method according to any one of claims 1 to 7 by executing the executable instructions.

10. A computer-readable storage medium for storing a program, It is characterized in that When the program is executed by a processor, the steps of the interface simulation calling method described in any one of claims 1 to 7 are implemented.