CN113590352A - Data calling method, device, equipment and readable storage medium - Google Patents

Data calling method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN113590352A
CN113590352A CN202110860831.6A CN202110860831A CN113590352A CN 113590352 A CN113590352 A CN 113590352A CN 202110860831 A CN202110860831 A CN 202110860831A CN 113590352 A CN113590352 A CN 113590352A
Authority
CN
China
Prior art keywords
interface
data
target
identifier
calling
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202110860831.6A
Other languages
Chinese (zh)
Inventor
俞翼飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Weikun Shanghai Technology Service Co Ltd
Original Assignee
Weikun Shanghai Technology Service Co Ltd
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 Weikun Shanghai Technology Service Co Ltd filed Critical Weikun Shanghai Technology Service Co Ltd
Priority to CN202110860831.6A priority Critical patent/CN113590352A/en
Publication of CN113590352A publication Critical patent/CN113590352A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/562Brokering proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the application discloses a data calling method, a data calling device, data calling equipment and a readable storage medium, wherein the method comprises the following steps: the gateway receives a calling request forwarded by the proxy server, wherein the calling request is used for requesting to call a target interface of a target application to acquire data in the target application, and the calling request comprises an identifier of the target interface; the gateway matches the identification of the target interface with the identifications of the N reference interfaces stored in a corresponding relation table, wherein the corresponding relation table is used for storing the corresponding relation between the identification of the reference interface and the reference data; and if the identification of the target interface is matched with the identification of the target reference interface stored in the corresponding relation table, the gateway acquires the reference data corresponding to the identification of the target reference interface in the corresponding relation table, and sends the reference data to the calling terminal so that the calling terminal adopts the reference data for testing. By adopting the embodiment of the application, the testing efficiency can be improved.

Description

Data calling method, device, equipment and readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data calling method, apparatus, device, and readable storage medium.
Background
When a tester tests, a pile of related test data needs to be created to ensure the interaction of the system, once the tested service depends on a lot, the coupling between the middle foreground and the background is high, and the test needs to depend on the return values of other modules, and the objects have complicated structures and high time consumption or do not have test conditions, the test process can be directly blocked, however, many times, the tester does not need to care about the internal logic of the dependent low-level object, and only needs to obtain the expected return value of the dependent object to continue the subsequent process, so a mock test tool needs to be used, the test process can be ensured not to be blocked, the test efficiency is greatly improved, and the test quality is improved.
In the prior art, when a calling party needs to request to call an interface in a certain application to acquire data, if desired data needs to be acquired, a tester needs to manually modify an interface calling address from an original application interface to a new mock address in a configuration file of the calling party.
Disclosure of Invention
The embodiment of the application provides a data calling method, a data calling device, data calling equipment and a readable storage medium, and can improve testing efficiency.
In a first aspect, the present application provides a data calling method, including:
the gateway receives a call request forwarded by the proxy server, wherein the call request is used for requesting to acquire data in a target application through a target interface of the target application, and the call request comprises an identifier of the target interface of the target application;
the gateway matches the identifier of the target interface with the identifiers of N reference interfaces stored in a corresponding relation table, wherein the corresponding relation table is used for storing the corresponding relation between the identifier of the reference interface and reference data, and N is a positive integer;
if the identification of the target interface is matched with the identification of the target reference interface stored in the corresponding relation table, the gateway acquires the reference data corresponding to the identification of the target reference interface in the corresponding relation table, and sends the reference data to the calling terminal so that the calling terminal performs testing based on the reference data.
With reference to the first aspect, in a possible implementation manner, the invocation request further includes an identifier of the target application, the gateway receives the invocation request forwarded by the proxy server, and the invocation terminal sends the invocation request to the proxy server, the proxy server matches the identifier of the target application with preset identifiers of M reference applications, and forwards the identifier of the target application to the gateway when one of the identifiers of the M reference applications is matched with the identifier of the target application, where M is a positive integer.
With reference to the first aspect, in a possible implementation manner, the method further includes:
the gateway acquires the identifiers of N reference interfaces in the reference application and reference data corresponding to the identifier of each reference interface in the N reference interfaces;
and the gateway creates the corresponding relation table according to the reference data corresponding to the identifications of the N reference interfaces and the identification of each reference interface.
With reference to the first aspect, in a possible implementation manner, the acquiring, by the gateway, the identifiers of the N reference interfaces in the reference application includes:
the gateway acquires the identifiers of N abnormal interfaces in the reference application, wherein data returned when any abnormal interface is called by the calling terminal is not reference data;
the gateway determines the identities of the N exceptional interfaces as the identities of the N reference interfaces.
With reference to the first aspect, in a possible implementation manner, the method further includes:
if the identification of the target interface is not matched with the identifications of the N reference interfaces stored in the corresponding relation table, the gateway forwards the calling request to the target application so that the target application returns the data requested by the calling request to the calling terminal.
With reference to the first aspect, in a possible implementation manner, the invocation request further includes an identifier of the invocation terminal, where the identifier of the invocation terminal is used to identify the invocation terminal; the method further comprises the following steps:
the gateway determines the legality of the calling terminal according to the identification of the calling terminal;
if the calling terminal is a legal terminal, the gateway executes the step of matching the identifier of the target interface with the identifiers of the N reference interfaces stored in the corresponding relation table.
With reference to the first aspect, in a possible implementation manner, the method further includes:
if the calling terminal is an illegal terminal, the gateway generates error prompt information, and the error prompt information is used for indicating that the calling terminal does not have the authority of calling the target interface of the target application;
and the gateway sends the error prompt message to the calling terminal.
In a second aspect, the present application provides a data calling apparatus, including:
the data receiving module is used for receiving a calling request forwarded by the proxy server, wherein the calling request is used for requesting to acquire data in a target application through a target interface of the target application, and the calling request comprises an identifier of the target interface of the target application;
the data matching module is used for matching the identification of the target interface with the identifications of N reference interfaces stored in a corresponding relation table, the corresponding relation table is used for storing the corresponding relation between the identification of the reference interface and the reference data, and N is a positive integer;
and the data testing module is used for acquiring reference data corresponding to the identifier of the target reference interface in the corresponding relation table if the identifier of the target interface is matched with the identifier of the target reference interface stored in the corresponding relation table, and sending the reference data to the calling terminal so that the calling terminal performs testing based on the reference data.
With reference to the second aspect, in a possible implementation manner, the invocation request further includes an identifier of the target application, the gateway receives the invocation request forwarded by the proxy server, and the invocation terminal sends the invocation request to the proxy server, the proxy server matches the identifier of the target application with preset identifiers of M reference applications, and forwards the identifier of the target application to the gateway when one of the identifiers of the M reference applications is matched with the identifier of the target application, where M is a positive integer.
With reference to the second aspect, in a possible implementation manner, the data invoking device further includes:
the identification acquisition module is used for acquiring identifications of N reference interfaces in the reference application and reference data corresponding to the identification of each reference interface in the N reference interfaces;
and the relationship creating module is used for creating the corresponding relationship table according to the reference data corresponding to the identifications of the N reference interfaces and the identification of each reference interface.
With reference to the second aspect, in a possible implementation manner, the identifier obtaining module is specifically configured to:
acquiring identifiers of N abnormal interfaces in the reference application, wherein data returned when any abnormal interface is called by a calling terminal is not reference data;
and determining the identifications of the N abnormal interfaces as the identifications of the N reference interfaces.
With reference to the second aspect, in a possible implementation manner, the data invoking device further includes:
and the data forwarding module is used for forwarding the calling request to the target application if the identifier of the target interface is not matched with the identifiers of the N reference interfaces stored in the corresponding relation table, so that the target application returns the data requested by the calling request to the calling terminal.
With reference to the second aspect, in a possible implementation manner, the invocation request further includes an identifier of the invocation terminal, where the identifier of the invocation terminal is used to identify the invocation terminal; the data calling device further comprises:
the data verification module is used for determining the legality of the calling terminal according to the identification of the calling terminal;
the data matching module is specifically configured to, when the calling terminal is a legal terminal, match the identifier of the target interface with the identifiers of the N reference interfaces stored in the correspondence table.
With reference to the second aspect, in a possible implementation manner, the data invoking device further includes:
the information sending module is used for generating error prompt information if the calling terminal is an illegal terminal, wherein the error prompt information is used for indicating that the calling terminal does not have the authority of calling the target interface of the target application;
the information sending module is used for sending the error prompt information to the calling terminal.
In a third aspect, the present application provides a computer device comprising: a processor, a memory, a network interface;
the processor is connected with a memory and a network interface, wherein the network interface is used for providing a data communication function, the memory is used for storing a computer program, and the processor is used for calling the computer program so as to enable a computer device comprising the processor to execute the method.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon a computer program adapted to be loaded and executed by a processor to cause a computer device having the processor to perform the above-mentioned method.
In a fifth aspect, the present application provides a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the method provided in the various alternatives in one aspect of the embodiments of the application.
In the embodiment of the application, a gateway receives a call request forwarded by a proxy server, wherein the call request is used for requesting to acquire data in a target application through a target interface of the target application, and the call request comprises an identifier of the target interface of the target application; the gateway matches the identification of the target interface with the identifications of N reference interfaces stored in a corresponding relation table, wherein the corresponding relation table is used for storing the corresponding relation between the identification of the reference interface and reference data, and N is a positive integer; and if the identification of the target interface is matched with the identification of the target reference interface stored in the corresponding relation table, the gateway acquires the reference data corresponding to the identification of the target reference interface in the corresponding relation table, and sends the reference data to the calling terminal so that the calling terminal performs testing based on the reference data. By storing the identifiers of the N reference interfaces to be processed and the reference data corresponding to the identifier of each reference interface into the corresponding relationship table, when a call request is received, it can be determined whether the identifier of the target interface in the call request matches the identifiers of the N reference interfaces stored in the corresponding relationship table. If the identifier of the target interface is matched with the identifier of the target reference interface stored in the corresponding relation table, it indicates that the data returned by the target interface is not the expected data, and the data acquired by the calling terminal is not the expected data, which may affect the normal operation of the test process. Therefore, the reference data (namely the expected data) is obtained from the corresponding relation table and sent to the calling terminal, so that the normal operation of the test flow can be ensured, the test flow is prevented from being blocked, and the test efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of a data calling method according to an embodiment of the present application;
fig. 2 is a schematic application scenario diagram of another data calling method provided in an embodiment of the present application;
fig. 3 is a schematic flowchart of a data calling method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another data calling method provided in an embodiment of the present application;
fig. 5 is a schematic flowchart of another data calling method provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a data call device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a schematic view of an application scenario of a data calling method according to an embodiment of the present application. As shown in fig. 1, fig. 1 includes three applications, namely a first application, a second application and a third application. When the calling terminal needs to call data in at least one application, the calling terminal sends a calling request to the proxy server, and the calling request comprises an identifier of the application to be called by the calling terminal. And the proxy server determines the application called by the calling terminal according to the application identifier in the calling request and sends the calling request to the application so as to enable the application to return data to the calling terminal. The calling terminal may perform a test based on the data. For example, the calling terminal sends the calling request to the proxy server, the proxy server determines the application called by the calling terminal according to the identifier of the application in the calling request, for example, if the application called by the calling terminal is determined to be the first application, the calling request is sent to the first application, so that the first application returns data to the calling terminal, and the calling terminal can perform a test based on the data.
In a possible implementation manner, when the calling terminal needs to call data in the first application, the second application, and the third application to complete the test, because data returned by the interface in the first application is not expected data, for example, when the returned data is abnormal due to an abnormal interface in the first application or the interface in the first application cannot return data, the test flow is blocked, the operation of the test flow is affected, and the test efficiency is low. In view of this, the embodiment of the present application provides a data calling method, where a gateway processes a call request forwarded by a proxy server, and matches an identifier of a target interface in the call request with identifiers of N reference interfaces stored in a correspondence table; if the identifier of the target interface is matched with the identifier of the target reference interface stored in the corresponding relation table, which can indicate that the data returned by the target interface of the target application is not expected data, the gateway acquires the reference data (i.e. expected data) corresponding to the identifier of the target reference interface in the corresponding relation table, and sends the reference data to the calling terminal, so that the calling terminal performs testing based on the reference data. By judging the identification of the target interface of the target application in the calling request, when the data returned by the target interface is determined not to be expected data, the preset reference data (expected data) is returned to the calling terminal, so that the calling terminal can perform subsequent testing based on the reference data, the subsequent testing process is prevented from being blocked, and the testing efficiency is improved.
Referring to fig. 2, fig. 2 is a schematic view of an application scenario of another data calling method according to an embodiment of the present application. As shown in fig. 2, fig. 2 includes three applications, namely a first application, a second application and a third application. When the calling terminal needs to call data in at least one application, the calling terminal sends a calling request to the proxy server, and the calling request comprises an identifier of the application to be called by the calling terminal. Further, the proxy server determines whether the identifier of the application is the identifier of the reference application, and if the identifier of the application in the call request is the identifier of the reference application, for example, when the call terminal requests to acquire data from the first application, it indicates that the data returned by the target interface in the first application is not the expected data, and the proxy server forwards the call request to the gateway for processing. Further, the gateway may match the identifier of the target interface with the identifier of the reference interface stored in the correspondence table, acquire reference data (i.e., expected data) when the identifier of the target interface matches the identifier of the target reference interface stored in the correspondence table, and send the reference data to the calling terminal, so that the calling terminal performs a test based on the reference data. Optionally, if the proxy server determines that the identifier of the application is not the identifier of the reference application, for example, when the calling terminal requests to acquire data from the second application or the third application, it indicates that the data returned by the target interface in the application is expected data, and the proxy server forwards the calling request to the second application or the third application, so that the second application or the third application returns the data to the calling terminal, and the calling terminal may perform a test based on the data. When the data returned by the target interface is determined not to be the expected data, the preset reference data (expected data) is returned to the calling terminal, so that the calling terminal can perform subsequent testing based on the reference data, the test flow is prevented from being blocked, and the test efficiency is improved.
It is understood that the call terminal, the gateway, and the proxy server mentioned in the embodiments of the present application may be an electronic device, including but not limited to a mobile phone, a tablet computer, a desktop computer, a notebook computer, a palm computer, a vehicle-mounted device, an Augmented Reality/Virtual Reality (AR/VR) device, a helmet display, a wearable device, a smart speaker, a digital camera, a camera, and other Mobile Internet Devices (MID) with network access capability. The above-mentioned server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as cloud service, a cloud database, cloud computing, a cloud function, cloud storage, Network service, cloud communication, middleware service, domain name service, security service, vehicle-road cooperation, a Content Delivery Network (CDN), a big data and artificial intelligence platform, and the like.
Further, please refer to fig. 3, where fig. 3 is a schematic flowchart of a data calling method according to an embodiment of the present application. As shown in fig. 3, the data call method includes, but is not limited to, the following steps:
s101, the gateway receives the call request forwarded by the proxy server.
In the embodiment of the application, when the calling terminal needs to acquire data in the target application through the target interface of the target application, the calling terminal can send the calling request to the proxy server, when the proxy server receives the calling request, the calling request can be forwarded to the gateway, and the gateway receives the calling request forwarded by the proxy server.
The calling request is used for requesting to acquire data in the target application through a target interface of the target application, and the calling request comprises an identifier of the target interface. The target application may include at least one interface therein, the at least one interface including a target interface. The target application may refer to an application that includes one or more interfaces that return data that is not expected data, or the target application may refer to an application that includes one or more exception interfaces that may refer to interfaces that are not capable of returning data, e.g., an exception interface may refer to an interface that is not configured to complete and is not capable of returning any data. The target interface may refer to an interface for which the data returned by the one or more interfaces is not the desired data. The identification of the target interface may include a request path of the target interface and a request type of the target interface, an interface address of the target interface, a name of the target interface, a number of the target interface, etc. for uniquely indicating the identification of the target interface. When the calling terminal calls the target application, the data returned by the target interface in the target application is not expected data, so that the test flow of the calling terminal is blocked, and the next test cannot be performed.
Optionally, the invocation request further includes an identifier of the target application, where the identifier of the target application may include a name of the target application, a storage path of the target application, an icon of the target application, a number of the target application, and the like, which are used to uniquely indicate the identifier of the target application.
Specifically, the calling terminal may send a calling request to the proxy server, and because the calling request includes the identifier of the target application, the proxy server may match the identifier of the target application with the preset identifiers of M reference applications, and if one identifier of the M reference applications matches the identifier of the target application, the proxy server may forward the calling request to the gateway. Where M is a positive integer, and the identities of the M reference applications may be preset in the proxy server. For example, the tester may pre-select M applications that need to be processed, and determine the identities of the M applications that need to be processed as the identities of the M reference applications. That is to say, by determining in advance which applications need to be processed, that is, data returned by one or more interfaces in the applications that need to be processed is not expected data, when receiving a call request sent by a call terminal, a proxy server may determine whether an identifier of a target application in the call request matches identifiers of M reference applications that need to be processed, and if the identifier of the target application matches an identifier of any one of the identifiers of the M reference applications that need to be processed, which indicates that data returned by one or more interfaces in the target application is not expected data, the proxy server may forward the call request to a gateway, and the gateway performs subsequent processing. The matching of one identifier of the M identifiers of the reference applications with the identifier of the target application may mean that the identifier of the target application is the same as any one identifier of the M identifiers of the reference applications.
S102, the gateway matches the identification of the target interface with the identifications of the N reference interfaces stored in the corresponding relation table.
In the embodiment of the application, after receiving the call request, the gateway may match the identifier of the target interface with the identifiers of the N reference interfaces stored in the correspondence table. The correspondence table is used for storing the correspondence between the identifier of the reference interface and the reference data, and N is a positive integer. The gateway can compare the identifier of the target interface with the identifiers of the N reference interfaces stored in the corresponding relation table, and if any one of the identifiers of the N reference interfaces stored in the corresponding relation table is the same as the identifier of the target interface, the identifier of the target interface is matched with the identifier of the reference interface stored in the corresponding relation table; and if the identification of the target interface is different from the identifications of the N reference interfaces stored in the corresponding relation table, indicating that the identification of the target interface is not matched with the identification of the reference interface stored in the corresponding relation table.
Optionally, the gateway may create a correspondence table in advance, so as to perform matching based on the correspondence table and the identifier of the target interface. Specifically, the gateway may obtain identifiers of N reference interfaces in the reference application, and reference data corresponding to the identifier of each of the N reference interfaces; and creating a corresponding relation table according to the identifiers of the N reference interfaces and the reference data corresponding to the identifier of each reference interface.
Optionally, the tester may select a reference application that needs to be processed and N reference interfaces that need to be processed in the reference application, and if it is known that none of the N reference interfaces can return expected data, the tester may set reference data (i.e., expected data) corresponding to each of the N reference interfaces, and the gateway stores the identifier of the N reference interfaces and the reference data corresponding to the identifier of each reference interface in the correspondence table. As shown in table 1, the identifier of the reference application in table 1 is a first application, the first application may include 4 interfaces, which are interface 1, interface 2, interface 3, and interface 4, respectively, data returned by interface 1 and interface 2 in the first application is not expected data, data returned by interface 3 and interface 4 in the first application is expected data, the reference interface is interface 1 and interface 2, the reference data corresponding to interface 1 is a1, and the reference data corresponding to reference interface 2 is a 2:
TABLE 1 table of correspondences
Figure BDA0003184952360000091
Optionally, the gateway obtains identifiers of N abnormal interfaces in the reference application, where data returned when any abnormal interface is called by the calling terminal is not reference data; and the gateway determines the identifications of the N abnormal interfaces as the identifications of the N reference interfaces. That is to say, when the calling terminal calls any one of the N abnormal interfaces in the reference application, the data returned by the abnormal interface is not the reference data (i.e., the expected data), or when the calling terminal calls the abnormal interface, the abnormal interface cannot return any data, and then the identifiers of the N abnormal interfaces are determined as the identifiers of the N reference interfaces. The identification of the abnormal interface may include a name of the abnormal interface, a storage path of the abnormal interface, a number of the abnormal interface, and the like for uniquely indicating the identification of the abnormal interface. In a specific implementation, a tester may determine that returned data is not reference data or N interfaces that cannot return any data, and determine that the returned data is N abnormal interfaces, and the gateway may obtain the identifiers of the N abnormal interfaces in the reference application, thereby obtaining the identifiers of the N reference interfaces.
Optionally, after the tester determines the N reference interfaces and the reference data corresponding to each reference interface, the gateway may modify the configuration file in the proxy server according to the configured N reference interfaces and the reference data corresponding to each reference interface, and load and operate the configuration file. When the calling terminal needs to call any one reference interface in the reference application, the calling request can be sent to the proxy server, the calling request comprises the identifier of the interface needing to be called, the proxy server forwards the calling request to the gateway, the gateway determines the identifier of the reference interface matched with the identifier of the interface needing to be called from the corresponding relation table according to the identifier of the interface needing to be called, reference data corresponding to the identifier of the reference interface is returned to the calling terminal, and the calling terminal can perform testing based on the reference data, so that the situation that a testing flow is blocked because some interface in the reference application is abnormal and expected data cannot be returned is avoided, and the testing efficiency is improved.
S103, if the identification of the target interface is matched with the identification of the target reference interface stored in the corresponding relation table, the gateway acquires the reference data corresponding to the identification of the target reference interface in the corresponding relation table, and sends the reference data to the calling terminal so that the calling terminal can test based on the reference data.
In the embodiment of the application, if any one of the identifiers of the N reference interfaces stored in the correspondence table is the same as the identifier of the target interface, it indicates that the identifier of the target interface matches with the identifier of the reference interface stored in the correspondence table, that is, the identifier of the target reference interface in the correspondence table matches with the identifier of the target interface, and the gateway acquires the reference data corresponding to the identifier of the target reference interface in the correspondence table, and sends the reference data to the calling terminal, so that the calling terminal performs a test based on the reference data.
If the identifier of the target interface matches the identifier of the target reference interface in the corresponding relationship table, it indicates that the target interface in the target application is an interface that needs to be processed (that is, the data acquired by calling the target interface by the calling terminal is not the expected data). In other words, since the data returned by the target interface of the target application is not the expected data, the subsequent test flow may be affected, and for this case, by returning the set reference data to the calling terminal, the calling terminal may obtain the expected data and perform the test without affecting the subsequent test flow.
Optionally, if the identifier of the target interface is not matched with the identifiers of the N reference interfaces stored in the correspondence table, the gateway forwards the call request to the target application, so that the target application returns the data requested by the call request to the call terminal, and the call terminal performs a test based on the data requested by the call request. Specifically, if each identifier of the N identifiers of the reference interfaces stored in the correspondence table is different from the identifier of the target interface, it indicates that the identifier of the target interface is not matched with the identifier of the reference interface stored in the correspondence table, that is, the target interface does not need to be processed, that is, the target interface can return expected data, the gateway forwards the call request to the target application, so that the target application returns the data requested by the call request to the call terminal, and the call terminal performs a test based on the data requested by the call request.
Optionally, the gateway may further store a computation logic, and compute the input parameter in the call request based on the computation logic, so as to dynamically obtain the reference data. Specifically, the gateway may receive a call request forwarded by the proxy server, where the call request includes an input parameter; the gateway matches the identification of the target interface with the identifications of the N reference interfaces stored in the corresponding relation table; and under the condition that the identification of the target interface in the calling request is determined to be matched with the identification of the target reference interface stored in the corresponding relation table, calculating the input parameter based on the calculation logic to obtain reference data, and sending the reference data to the calling terminal so as to test the calling terminal based on the reference data. The calculation logic may include a calculation formula, a functional expression, a conversion unit, and the like. The computational logic may be obtained from a configuration file of the calling terminal or a target interface of the target application, or may be configured in the gateway by a tester. By storing the computation logic in the gateway, the returned data can be dynamically computed based on the computation logic, so that the accuracy of data acquisition is improved.
Optionally, the gateway in the embodiment of the present application may also be configured as a plug-in, and the plug-in is installed between the proxy server and the application when the application needs to be processed; after the processing is finished, the plug-in can be disassembled, so that the plug-in becomes effective and is disassembled without modifying the configuration of the calling terminal, the terminal does not need to be restarted, and the testing efficiency is improved.
In the embodiment of the application, a gateway receives a call request forwarded by a proxy server, wherein the call request is used for requesting to acquire data in a target application through a target interface of the target application, and the call request comprises an identifier of the target interface of the target application; the gateway matches the identification of the target interface with the identifications of N reference interfaces stored in a corresponding relation table, wherein the corresponding relation table is used for storing the corresponding relation between the identification of the reference interface and reference data, and N is a positive integer; and if the identification of the target interface is matched with the identification of the target reference interface stored in the corresponding relation table, the gateway acquires the reference data corresponding to the identification of the target reference interface in the corresponding relation table, and sends the reference data to the calling terminal so that the calling terminal performs testing based on the reference data. By storing the identifiers of the N reference interfaces to be processed and the reference data corresponding to the identifier of each reference interface into the corresponding relationship table, when a call request is received, it can be determined whether the identifier of the target interface in the call request matches the identifiers of the N reference interfaces stored in the corresponding relationship table. If the identifier of the target interface is matched with the identifier of the target reference interface stored in the corresponding relation table, it indicates that the data returned by the target interface is not the expected data, and the data acquired by the calling terminal is not the expected data, which may affect the normal operation of the test process. Therefore, the reference data (namely the expected data) is obtained from the corresponding relation table and sent to the calling terminal, so that the normal operation of the test flow can be ensured, the test flow is prevented from being blocked, and the test efficiency is improved.
Further, please refer to fig. 4, where fig. 4 is a schematic flowchart of another data invoking method provided in the embodiment of the present application. As shown in fig. 4, the data call method includes, but is not limited to, the following steps:
s201, the calling terminal sends a calling request to the proxy server.
S202, the proxy server receives the calling request, matches the identification of the target application in the calling request with the preset identifications of the M reference applications, and forwards the calling request to the gateway under the condition that one identification in the M reference applications is matched with the identification of the target application.
S203, the gateway receives the call request forwarded by the proxy server.
S204, the gateway matches the identification of the target interface with the identifications of the N reference interfaces stored in the corresponding relation table.
And S205, if the identification of the target interface is matched with the identification of the target reference interface stored in the corresponding relation table, the gateway acquires the reference data corresponding to the identification of the target reference interface in the corresponding relation table, and sends the reference data to the calling terminal.
And S206, calling the terminal to test based on the reference data.
S207, if the identification of the target interface is not matched with the identifications of the N reference interfaces stored in the corresponding relation table, the gateway forwards the calling request to the target application.
And S208, the target application returns the data requested by the calling request to the calling terminal.
And S209, the calling terminal tests based on the data requested by the calling request.
This embodiment describes respective processing manners of the calling terminal, the proxy server, the gateway, and the target application as a whole, where the processing manner of each terminal has been described in steps S101 to S103 in the embodiment corresponding to fig. 3, and is not described herein again.
In the embodiment of the application, the identifiers of the N reference interfaces to be processed and the reference data corresponding to the identifier of each reference interface are stored in the corresponding relationship table, and when a call request is received, whether the identifier of the target interface in the call request is matched with the identifiers of the N reference interfaces stored in the corresponding relationship table can be judged. If the identifier of the target interface is matched with the identifier of the target reference interface stored in the corresponding relation table, it indicates that the data returned by the target interface is not the expected data, and the data acquired by the calling terminal is not the expected data, which may affect the normal operation of the test process. Therefore, the reference data (namely the expected data) is obtained from the corresponding relation table and sent to the calling terminal, so that the normal operation of the test flow can be ensured, the test flow is prevented from being blocked, and the test efficiency is improved.
Further, when the gateway receives the call request forwarded by the proxy server, the gateway can acquire the identifier of the call terminal in the call request, so that the validity of the call terminal is determined, the call request is processed based on the validity of the call terminal, and the test safety can be improved. Referring to fig. 5, fig. 5 is a schematic flowchart of another data calling method according to an embodiment of the present application. As shown in fig. 5, the data call method includes, but is not limited to, the following steps:
s301, the gateway receives the call request forwarded by the proxy server.
In this embodiment of the application, the specific implementation manner of step S301 may refer to the implementation manner of step S101 corresponding to fig. 3, which is not described herein again.
S302, the gateway determines the legality of the calling terminal according to the identification of the calling terminal.
In the embodiment of the application, the calling request further includes an identifier of the calling terminal, the identifier of the calling terminal is used for identifying the calling terminal, and the identifier of the calling terminal may include a name of the calling terminal, a storage path of the calling terminal, a number of the calling terminal, an icon of the calling terminal, and the like, which are used for uniquely indicating the identifier of the calling terminal. The calling request also comprises the identification of the calling terminal, so that the gateway can determine the identification of the calling terminal in the calling request when receiving the calling request, and the legality of the calling terminal is determined according to the identification of the calling terminal.
Optionally, the determining, by the gateway, the validity of the calling terminal according to the identifier of the calling terminal may include the following steps: the gateway acquires the identification of at least one preset legal terminal; and if the identification of the at least one preset legal terminal comprises an identification matched with the identification of the calling terminal, determining the calling terminal as a legal terminal. Optionally, the gateway may obtain the identifier of the terminal after the authority identifier, and determine that the calling terminal is a legal terminal if the identifier of the calling terminal belongs to the identifier of the terminal after the authority identifier. Where the authority may include a police, judicial, administrative, or other authority. Or, the gateway may obtain a history call record of the target application, and determine that the calling terminal is a valid terminal if the identifier of one terminal in the history call record matches with the identifier of the calling terminal. The history calling record includes an identifier of the terminal, and the history calling record of the target application may include an identifier of any terminal that acquires data in the target application through a target interface in the target application. Or, the gateway may obtain a purchase record for the target application, and determine that the calling terminal is a valid terminal if the identifier of one terminal in the purchase record matches the identifier of the calling terminal. The purchase record of the target application may include an identifier of the terminal that purchases the call authority of the target application. That is, if there is a match between the identifier of one terminal and the identifier of the calling terminal in the purchase record of the target application, it indicates that the calling terminal has the authority to call the target application. It can be understood that, any one of the four manners described above may be used to determine the validity of the calling terminal, or one or more manners of the four manners described above may be combined to determine the validity of the calling terminal, which is not limited in this embodiment of the application. By determining the legality of the calling terminal, the safety of the target application in the calling process can be improved.
And S303, if the calling terminal is a legal terminal, the gateway matches the identifier of the target interface with the identifiers of the N reference interfaces stored in the corresponding relation table.
In this embodiment of the application, if the calling terminal is a legal terminal, the specific implementation manner in step S102 may be referred to in a manner that the gateway matches the identifier of the target interface with the identifiers of the N reference interfaces stored in the correspondence table, and details are not described here. In addition, after the gateway matches the identifier of the target interface with the identifiers of the N reference interfaces stored in the corresponding relationship table, if the identifier of the target interface matches the identifier of the target reference interface stored in the corresponding relationship table, the gateway obtains reference data corresponding to the identifier of the target reference interface in the corresponding relationship table, and sends the reference data to the calling terminal, so that the calling terminal performs testing based on the reference data. If the identification of the target interface is not matched with the identifications of the N reference interfaces stored in the corresponding relation table, the gateway forwards the calling request to the target application so that the target application returns the data requested by the calling request to the calling terminal.
And S304, if the calling terminal is an illegal terminal, the gateway generates error prompt information.
In the embodiment of the application, if the calling terminal is an illegal terminal, the gateway generates error prompt information. For example, if the identifier of the calling terminal does not belong to the identifier of the terminal after the authority identifier, determining that the calling terminal is an illegal terminal; or if the identifier of the terminal does not match with the identifier of the calling terminal in the history calling record, determining that the calling terminal is an illegal terminal; or if the identifier of the terminal does not match with the identifier of the calling terminal in the purchase record of the target application, determining that the calling terminal is an illegal terminal. The error prompt information is used for indicating that the calling terminal does not have the authority to call the target interface of the target application, and may include voice prompt information, text prompt information and the like, and the error prompt information may be that "you do not have the authority to call the target application, the calling authority to buy the target application" is output in a voice or text mode, and the like.
S305, the gateway sends the error prompt information to the calling terminal.
In the embodiment of the application, the gateway can send the error prompt information to the calling terminal, the calling terminal can operate according to the error prompt information, and when the calling terminal has the right of calling the target application, the calling terminal sends the calling request for the target application again to acquire data from the target application.
In the embodiment of the application, when the gateway receives the calling request forwarded by the proxy server, the identifier of the calling terminal in the calling request can be obtained, so that the legality of the calling terminal is determined, and under the condition that the calling terminal is a legal terminal, the identifier of the target interface is matched with the identifiers of the N reference interfaces stored in the corresponding relation table by the gateway, so that the calling request is correspondingly processed according to the matching result, malicious terminals can be prevented from calling the target application, and the testing safety is improved.
The method of the embodiments of the present application is described above, and the apparatus of the embodiments of the present application is described below.
Referring to fig. 6, fig. 6 is a schematic diagram illustrating a structure of a data call apparatus according to an embodiment of the present application, where the data call apparatus may be a computer program (including program code) running in a computer device, for example, the data call apparatus is an application software; the apparatus may be used to perform the corresponding steps in the methods provided by the embodiments of the present application. The data calling apparatus 60 includes:
a data receiving module 61, configured to receive a call request forwarded by a proxy server, where the call request is used to request to obtain data in a target application through a target interface of the target application, and the call request includes an identifier of the target interface of the target application;
a data matching module 62, configured to match the identifier of the target interface with identifiers of N reference interfaces stored in a correspondence table, where the correspondence table is used to store a correspondence between the identifier of the reference interface and reference data, and N is a positive integer;
and a data testing module 63, configured to, if the identifier of the target interface matches the identifier of the target reference interface stored in the correspondence table, obtain reference data corresponding to the identifier of the target reference interface in the correspondence table, and send the reference data to the calling terminal, so that the calling terminal performs a test based on the reference data.
Optionally, the invocation request further includes an identifier of the target application, the gateway receives the invocation request forwarded by the proxy server, and the invocation request is sent to the proxy server by the invocation terminal, the proxy server matches the identifier of the target application with preset identifiers of M reference applications, and forwards the invocation request to the gateway when one identifier exists in the identifiers of the M reference applications and is matched with the identifier of the target application, where M is a positive integer.
Optionally, the data invoking device 60 further includes:
an identifier obtaining module 64, configured to obtain identifiers of N reference interfaces in the reference application, and reference data corresponding to an identifier of each reference interface in the N reference interfaces;
a relationship creating module 65, configured to create the correspondence table according to the reference data corresponding to the identifier of each of the N reference interfaces and the identifier of each of the reference interfaces.
Optionally, the identifier obtaining module 64 is specifically configured to:
acquiring identifiers of N abnormal interfaces in the reference application, wherein data returned when any abnormal interface is called by a calling terminal is not reference data;
and determining the identifications of the N abnormal interfaces as the identifications of the N reference interfaces.
Optionally, the data invoking device 60 further includes:
a data forwarding module 66, configured to forward the call request to the target application if the identifier of the target interface is not matched with the identifiers of the N reference interfaces stored in the correspondence table, so that the target application returns the data requested by the call request to the call terminal.
Optionally, the calling request further includes an identifier of the calling terminal, where the identifier of the calling terminal is used to identify the calling terminal; the data call device 60 further includes:
the data verification module 67 is used for determining the validity of the calling terminal according to the identifier of the calling terminal;
the data matching module 62 is specifically configured to match the identifier of the target interface with the identifiers of the N reference interfaces stored in the correspondence table when the calling terminal is a legal terminal.
Optionally, the data invoking device 60 further includes:
an information sending module 68, configured to generate an error prompt message if the calling terminal is an illegal terminal, where the error prompt message is used to indicate that the calling terminal does not have the authority to call the target interface of the target application;
the message sending module 68 is configured to send the error prompt message to the calling terminal.
It should be noted that, for the content that is not mentioned in the embodiment corresponding to fig. 6, reference may be made to the description of the method embodiment, and details are not described here again.
In the embodiment of the application, a gateway receives a call request forwarded by a proxy server, wherein the call request is used for requesting to acquire data in a target application through a target interface of the target application, and the call request comprises an identifier of the target interface of the target application; the gateway matches the identification of the target interface with the identifications of N reference interfaces stored in a corresponding relation table, wherein the corresponding relation table is used for storing the corresponding relation between the identification of the reference interface and reference data, and N is a positive integer; and if the identification of the target interface is matched with the identification of the target reference interface stored in the corresponding relation table, the gateway acquires the reference data corresponding to the identification of the target reference interface in the corresponding relation table, and sends the reference data to the calling terminal so that the calling terminal performs testing based on the reference data. By storing the identifiers of the N reference interfaces to be processed and the reference data corresponding to the identifier of each reference interface into the corresponding relationship table, when a call request is received, it can be determined whether the identifier of the target interface in the call request matches the identifiers of the N reference interfaces stored in the corresponding relationship table. If the identifier of the target interface is matched with the identifier of the target reference interface stored in the corresponding relation table, it indicates that the data returned by the target interface is not the expected data, and the data acquired by the calling terminal is not the expected data, which may affect the normal operation of the test process. Therefore, the reference data (namely the expected data) is obtained from the corresponding relation table and sent to the calling terminal, so that the normal operation of the test flow can be ensured, the test flow is prevented from being blocked, and the test efficiency is improved.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a computer device according to an embodiment of the present disclosure. As shown in fig. 7, the computer device 70 may include: the processor 701, the network interface 704 and the memory 705, and the computer device 70 may further include: a user interface 703, and at least one communication bus 702. Wherein a communication bus 702 is used to enable connective communication between these components. The user interface 703 may include a Display screen (Display) and a Keyboard (Keyboard), and the optional user interface 703 may also include a standard wired interface and a standard wireless interface. The network interface 704 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 705 may be a high-speed RAM memory or a non-volatile memory (e.g., at least one disk memory). The memory 705 may optionally be at least one memory device located remotely from the processor 701. As shown in fig. 7, the memory 705, which is a kind of computer-readable storage medium, may include therein an operating system, a network communication module, a user interface module, and a device control application program.
In the computer device 70 shown in fig. 7, the network interface 704 may provide a network communication function; the user interface 703 is mainly used as an interface for providing input to the user; and processor 701 may be used to invoke a device control application stored in memory 705 to implement:
the gateway receives a call request forwarded by the proxy server, wherein the call request is used for requesting to acquire data in a target application through a target interface of the target application, and the call request comprises an identifier of the target interface of the target application;
the gateway matches the identifier of the target interface with the identifiers of N reference interfaces stored in a corresponding relation table, wherein the corresponding relation table is used for storing the corresponding relation between the identifier of the reference interface and reference data, and N is a positive integer;
if the identification of the target interface is matched with the identification of the target reference interface stored in the corresponding relation table, the gateway acquires the reference data corresponding to the identification of the target reference interface in the corresponding relation table, and sends the reference data to the calling terminal so that the calling terminal performs testing based on the reference data.
It should be understood that the computer device 70 described in this embodiment of the application may perform the description of the data invoking method in the embodiment corresponding to fig. 3, fig. 4, and fig. 5, and may also perform the description of the data invoking device in the embodiment corresponding to fig. 6, which is not described herein again. In addition, the beneficial effects of the same method are not described in detail.
In the embodiment of the application, a gateway receives a call request forwarded by a proxy server, wherein the call request is used for requesting to acquire data in a target application through a target interface of the target application, and the call request comprises an identifier of the target interface of the target application; the gateway matches the identification of the target interface with the identifications of N reference interfaces stored in a corresponding relation table, wherein the corresponding relation table is used for storing the corresponding relation between the identification of the reference interface and reference data, and N is a positive integer; and if the identification of the target interface is matched with the identification of the target reference interface stored in the corresponding relation table, the gateway acquires the reference data corresponding to the identification of the target reference interface in the corresponding relation table, and sends the reference data to the calling terminal so that the calling terminal performs testing based on the reference data. By storing the identifiers of the N reference interfaces to be processed and the reference data corresponding to the identifier of each reference interface into the corresponding relationship table, when a call request is received, it can be determined whether the identifier of the target interface in the call request matches the identifiers of the N reference interfaces stored in the corresponding relationship table. If the identifier of the target interface is matched with the identifier of the target reference interface stored in the corresponding relation table, it indicates that the data returned by the target interface is not the expected data, and the data acquired by the calling terminal is not the expected data, which may affect the normal operation of the test process. Therefore, the reference data (namely the expected data) is obtained from the corresponding relation table and sent to the calling terminal, so that the normal operation of the test flow can be ensured, the test flow is prevented from being blocked, and the test efficiency is improved.
Embodiments of the present application also provide a computer-readable storage medium storing a computer program, the computer program comprising program instructions, which, when executed by a computer, cause the computer to perform the method according to the foregoing embodiments, and the computer may be a part of the above-mentioned computer device. Such as the processor 701 described above. By way of example, the program instructions may be executed on one computer device, or on multiple computer devices located at one site, or distributed across multiple sites and interconnected by a communication network, which may comprise a blockchain network.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present application and is not to be construed as limiting the scope of the present application, so that the present application is not limited thereto, and all equivalent variations and modifications can be made to the present application.

Claims (10)

1. A data calling method, comprising:
the gateway receives a call request forwarded by a proxy server, wherein the call request is used for requesting to acquire data in a target application through a target interface of the target application, and the call request comprises an identifier of the target interface of the target application;
the gateway matches the identifier of the target interface with identifiers of N reference interfaces stored in a corresponding relation table, wherein the corresponding relation table is used for storing the corresponding relation between the identifier of the reference interface and reference data, and N is a positive integer;
and if the identification of the target interface is matched with the identification of the target reference interface stored in the corresponding relation table, the gateway acquires the reference data corresponding to the identification of the target reference interface in the corresponding relation table, and sends the reference data to a calling terminal so that the calling terminal performs testing based on the reference data.
2. The method according to claim 1, wherein the invocation request further includes an identifier of the target application, the gateway receives the invocation request forwarded by the proxy server, and the invocation terminal sends the invocation request to the proxy server, and the proxy server matches the identifier of the target application with preset identifiers of M reference applications, and forwards the matching result to the gateway when there is a match between one of the identifiers of the M reference applications and the identifier of the target application, where M is a positive integer.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
the gateway acquires the identifiers of N reference interfaces in the reference application and reference data corresponding to the identifier of each reference interface in the N reference interfaces;
and the gateway creates the corresponding relation table according to the reference data corresponding to the identifications of the N reference interfaces and the identification of each reference interface.
4. The method of claim 3, wherein the gateway obtains identities of N reference interfaces in a reference application, comprising:
the gateway acquires the identifiers of N abnormal interfaces in the reference application, wherein data returned when any abnormal interface is called by the calling terminal is not reference data;
and the gateway determines the identifications of the N abnormal interfaces as the identifications of the N reference interfaces.
5. The method of claim 1, further comprising:
if the identification of the target interface is not matched with the identifications of the N reference interfaces stored in the corresponding relation table, the gateway forwards the calling request to the target application so that the target application returns the data requested by the calling request to the calling terminal.
6. The method according to claim 1, wherein the call request further includes an identifier of the calling terminal, and the identifier of the calling terminal is used for identifying the calling terminal;
the method further comprises the following steps:
the gateway determines the legality of the calling terminal according to the identifier of the calling terminal;
and if the calling terminal is a legal terminal, the gateway performs the step of matching the identifier of the target interface with the identifiers of the N reference interfaces stored in the corresponding relation table.
7. The method of claim 6, further comprising:
if the calling terminal is an illegal terminal, the gateway generates error prompt information, and the error prompt information is used for indicating that the calling terminal does not have the authority of calling a target interface of the target application;
and the gateway sends the error prompt message to the calling terminal.
8. A data call apparatus, comprising:
the data receiving module is used for receiving a calling request forwarded by a proxy server, wherein the calling request is used for requesting to acquire data in a target application through a target interface of the target application, and the calling request comprises an identifier of the target interface of the target application;
the data matching module is used for matching the identification of the target interface with the identifications of N reference interfaces stored in a corresponding relation table, the corresponding relation table is used for storing the corresponding relation between the identification of the reference interface and the reference data, and N is a positive integer;
and the data testing module is used for acquiring reference data corresponding to the identifier of the target reference interface in the corresponding relation table if the identifier of the target interface is matched with the identifier of the target reference interface stored in the corresponding relation table, and sending the reference data to a calling terminal so that the calling terminal tests based on the reference data.
9. A computer device, comprising: a processor, a memory, and a network interface;
the processor is coupled to the memory and the network interface, wherein the network interface is configured to provide data communication functionality, the memory is configured to store program code, and the processor is configured to invoke the program code to cause the computer device to perform the method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program adapted to be loaded and executed by a processor to cause a computer device having the processor to perform the method of any of claims 1-7.
CN202110860831.6A 2021-07-28 2021-07-28 Data calling method, device, equipment and readable storage medium Pending CN113590352A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110860831.6A CN113590352A (en) 2021-07-28 2021-07-28 Data calling method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110860831.6A CN113590352A (en) 2021-07-28 2021-07-28 Data calling method, device, equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN113590352A true CN113590352A (en) 2021-11-02

Family

ID=78251643

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110860831.6A Pending CN113590352A (en) 2021-07-28 2021-07-28 Data calling method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113590352A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115396501A (en) * 2022-08-31 2022-11-25 北京奇艺世纪科技有限公司 Information processing method and device, electronic equipment and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110704218A (en) * 2019-08-30 2020-01-17 深圳壹账通智能科技有限公司 Data processing method, data processing device, computer equipment and storage medium
CN110990205A (en) * 2019-11-28 2020-04-10 腾讯科技(深圳)有限公司 Interface call testing method, device and computer readable storage medium
CN111209202A (en) * 2020-01-06 2020-05-29 北京字节跳动网络技术有限公司 Terminal application testing method and device
CN112199281A (en) * 2020-09-30 2021-01-08 中国平安财产保险股份有限公司 Data processing method and device, terminal equipment and readable storage medium
CN112631910A (en) * 2020-12-22 2021-04-09 平安普惠企业管理有限公司 Front-end testing method and device, computer equipment and storage medium
CN112667501A (en) * 2020-12-23 2021-04-16 平安普惠企业管理有限公司 Link testing method and device based on automatic baffle and related equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110704218A (en) * 2019-08-30 2020-01-17 深圳壹账通智能科技有限公司 Data processing method, data processing device, computer equipment and storage medium
CN110990205A (en) * 2019-11-28 2020-04-10 腾讯科技(深圳)有限公司 Interface call testing method, device and computer readable storage medium
CN111209202A (en) * 2020-01-06 2020-05-29 北京字节跳动网络技术有限公司 Terminal application testing method and device
CN112199281A (en) * 2020-09-30 2021-01-08 中国平安财产保险股份有限公司 Data processing method and device, terminal equipment and readable storage medium
CN112631910A (en) * 2020-12-22 2021-04-09 平安普惠企业管理有限公司 Front-end testing method and device, computer equipment and storage medium
CN112667501A (en) * 2020-12-23 2021-04-16 平安普惠企业管理有限公司 Link testing method and device based on automatic baffle and related equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
LUCA CAVALLARO ET AL.: "An Approach to Adapt Service Requests to Actual Service Interfaces", 《SEAMS’08》, 13 May 2008 (2008-05-13), pages 129 - 136, XP058223147, DOI: 10.1145/1370018.1370041 *
陈懿: "自动化测试系统在光网络设备的应用研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》, 5 January 2012 (2012-01-05), pages 136 - 263 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115396501A (en) * 2022-08-31 2022-11-25 北京奇艺世纪科技有限公司 Information processing method and device, electronic equipment and readable storage medium
CN115396501B (en) * 2022-08-31 2024-01-30 北京奇艺世纪科技有限公司 Information processing method and device, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN108933713B (en) Method and device for realizing sandbox debugging based on shadow link and business server
CN111414407A (en) Data query method and device of database, computer equipment and storage medium
CN109618176B (en) Processing method, equipment and storage medium for live broadcast service
CN114095567B (en) Data access request processing method and device, computer equipment and medium
CN112035344A (en) Multi-scenario test method, device, equipment and computer readable storage medium
CN113067859B (en) Communication method and device based on cloud mobile phone
CN114567650A (en) Data processing method and Internet of things platform system
CN113590352A (en) Data calling method, device, equipment and readable storage medium
CN114240060A (en) Risk control method, risk processing system, risk processing device, server, and storage medium
CN112860398A (en) Data processing method, device, equipment and medium based on rule engine
CN112650689A (en) Test method, test device, electronic equipment and storage medium
CN108632348B (en) Service checking method and device
CN114124883B (en) Data access method and device based on cloud storage address, computer equipment and medium
CN114764713A (en) Method and device for generating merchant patrol task, electronic equipment and storage medium
CN112417402B (en) Authority control method, authority control device, authority control equipment and storage medium
CN114372078A (en) Data security protection method and device
CN113986995A (en) Request distribution method and device, storage medium and electronic equipment
CN114519181A (en) Interface access control method and device, electronic equipment and storage medium
CN113760707A (en) Interface testing method, device, equipment and computer readable storage medium
CN110647757A (en) Data processing method based on intelligent contract and related device
CN112261072A (en) Service calling method, device, equipment and storage medium
CN113986760A (en) Microservice Mock testing method and device, computer equipment and storage medium
CN115987683B (en) Node access control method, device, equipment and medium in block chain network
CN111131471B (en) Operation method and device of service system and electronic equipment
CN115391632A (en) Data query system, method, device and computer equipment based on RestFul protocol

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination