CN117873872A - Application program interaction debugging method and device and electronic equipment - Google Patents

Application program interaction debugging method and device and electronic equipment Download PDF

Info

Publication number
CN117873872A
CN117873872A CN202311731438.2A CN202311731438A CN117873872A CN 117873872 A CN117873872 A CN 117873872A CN 202311731438 A CN202311731438 A CN 202311731438A CN 117873872 A CN117873872 A CN 117873872A
Authority
CN
China
Prior art keywords
network request
target network
data
proxy
application program
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
CN202311731438.2A
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.)
Shanghai Ruijia Information Technology Co ltd
Original Assignee
Shanghai Ruijia Information Technology 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 Shanghai Ruijia Information Technology Co ltd filed Critical Shanghai Ruijia Information Technology Co ltd
Priority to CN202311731438.2A priority Critical patent/CN117873872A/en
Publication of CN117873872A publication Critical patent/CN117873872A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention provides a debugging method and device for application program interaction and electronic equipment, wherein the method comprises the following steps: acquiring a target network request sent by an application program; determining whether the target network request starts a proxy service; wherein the proxy service is installed in a development environment of the application program; providing a visual operation interface when the target network is determined to request to start proxy service; responding to the operation of the configuration item aiming at the visual operation interface, and configuring the configuration item to obtain proxy data corresponding to the configuration item; configuring the target network request according to the proxy data to obtain simulation data aiming at the target network request; and debugging the application program interaction according to the simulation data. The embodiment of the invention can flexibly debug the application program interaction in real time under different network environments.

Description

Application program interaction debugging method and device and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of Internet, in particular to a debugging method for application program interaction, a debugging device for application program interaction, electronic equipment and a computer readable storage medium.
Background
In Application (App) testing, testing needs to be completed by data interaction with other terminal devices. At present, a common test mode of application program interaction is that a software client is installed in an operating system where an application program is located, then a network request sent by the application program to a server is intercepted based on the software client, and then a corresponding network response is simulated and returned for the network request through the software client, so that the interaction of the application program can be debugged according to the simulated network response.
However, the network response which can be simulated based on the software client is not flexible, and the corresponding network response can only be simulated for the network request based on a preset mode, so that the simulated network responses cannot flexibly debug the application program interaction under different network environments.
Disclosure of Invention
The embodiment of the invention provides a debugging method, a device, electronic equipment and a computer readable storage medium for application program interaction, which are used for solving the problem that the application program interaction cannot be flexibly debugged in different network environments.
The embodiment of the invention discloses a debugging method for application program interaction, which comprises the following steps:
Acquiring a target network request sent by an application program;
determining whether the target network request starts a proxy service; wherein the proxy service is installed in a development environment of the application program;
providing a visual operation interface when the target network is determined to request to start proxy service; the visual operation interface comprises a configuration item corresponding to the target network request;
responding to the operation of the configuration item aiming at the visual operation interface, and configuring the configuration item to obtain proxy data corresponding to the configuration item;
configuring the target network request according to the proxy data to obtain simulation data aiming at the target network request; the proxy data comprise configuration information aiming at different network environments, and the simulation data are data related to feedback of a server on a simulation real line aiming at the target network request under different network environments;
debugging the application program interaction according to the simulation data; the debugging at least comprises network request for debugging the application program or processing logic for debugging the network request by the application program.
The embodiment of the invention discloses a debugging device for application program interaction, which comprises the following components:
the acquisition module is used for acquiring a target network request sent by an application program;
a determining module, configured to determine whether the target network request starts a proxy service; wherein the proxy service is installed in a development environment of the application program;
the display module is used for providing a visual operation interface when determining that the target network requests to start proxy service; the visual operation interface comprises a configuration item corresponding to the target network request;
the first configuration module is used for responding to the operation of the configuration item of the visual operation interface, and configuring the configuration item to obtain proxy data corresponding to the configuration item;
the second configuration module is used for configuring the target network request according to the proxy data to obtain simulation data aiming at the target network request; the proxy data comprise configuration information aiming at different network environments, and the simulation data are data related to feedback of a server on a simulation real line aiming at the target network request under different network environments;
The debugging module is used for debugging the application program interaction according to the simulation data; the debugging at least comprises network request for debugging the application program or processing logic for debugging the network request by the application program.
The embodiment of the invention also discloses electronic equipment, which comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
the memory is used for storing a computer program;
the processor is configured to implement the method according to the embodiment of the present invention when executing the program stored in the memory.
The embodiment of the invention also discloses a computer program product which is stored in a storage medium and is executed by at least one processor to realize the method according to the embodiment of the invention.
Embodiments of the present invention also disclose a computer-readable storage medium having instructions stored thereon, which when executed by one or more processors, cause the processors to perform the method according to the embodiments of the present invention.
The embodiment of the invention has the following advantages:
In the embodiment of the invention, a target network request sent by an application program is acquired, whether the target network request starts a proxy service is determined, the proxy service is installed in a development environment of the application program, when the target network request starts the proxy service, a visual operation interface is provided, a configuration item corresponding to the target network request can be included in the visual operation interface, the configuration item is configured to obtain proxy data corresponding to the configuration item in response to the operation of the configuration item for the visual operation interface, then the target network request can be configured according to the proxy data to obtain simulation data for the target network request, wherein the proxy data can comprise configuration information for different network environments, the simulation data is data related to feedback of a server on a simulation real line for the target network request under different network environments, and the application program is debugged according to the simulation data. According to the embodiment of the invention, when the target network request sent by the application program starts the proxy service, a visual operation interface comprising the configuration items corresponding to the target network request is provided, so that a developer can obtain proxy data corresponding to the configuration items of the target network request through the operation of the configuration items of the visual operation interface, thereby obtaining simulation data generated by simulating a server on a real line under different network environments of the target network request according to the proxy data, and further debugging the interaction of the application program under different network environments according to the simulation data, so that the interaction experience of a user of the application program using the application program is improved.
Drawings
FIG. 1 is a schematic illustration of an application environment provided in an embodiment of the present invention;
FIG. 2 is a flow chart of steps of a method for debugging application interactions provided in an embodiment of the present invention;
FIG. 3 is a schematic diagram of a configuration item of a target network request provided in an embodiment of the present invention;
FIG. 4 is a schematic diagram of a debug overall scheme of an application interaction provided in an embodiment of the present invention;
FIG. 5 is a schematic diagram of configuring a target network request based on custom configuration according to an embodiment of the present invention;
FIG. 6 is a block diagram of a debugging device for application interaction provided in an embodiment of the present invention;
fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the invention.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will become more readily apparent, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description.
In order for those skilled in the art to better understand the embodiments of the present invention, some terms and keywords related to the embodiments of the present invention are described below:
network request: refers to a request message for a resource or data in a basic method for communicating with each other in a computer network.
Network response: refers to a response to a network request, wherein the data of the response is the data required by the resource or the request.
Service workbench: controlling the associated page or web site, intercepting and modifying the capabilities of a browser to access and request resources.
Interface/port: a data transmission path agreed between the requesting party (sending the network request) and the responding party (returning the network response).
Proxy service: is a special network service that allows one terminal device (typically a client) to make an indirect connection with another terminal device (typically a server) through a proxy service.
The debugging method for application program interaction provided by the embodiment of the invention can be applied to an application environment shown in figure 1. The terminal device 101 for debugging application program interaction is in data communication with the server 102 through a network, wherein the terminal device 101 comprises an application program, an interface agent tool is arranged in the application program, and the interface agent tool comprises an agent service. Specifically, the interface agent tool of the terminal device 101 obtains a target network request sent by an application program; determining whether the target network request starts a proxy service; the proxy service is installed in the development environment of the application program; providing a visual operation interface when determining that the target network requests to start the proxy service; the visual operation interface comprises configuration items corresponding to the target network requests; responding to the operation of the configuration items aiming at the visual operation interface, and configuring the configuration items to obtain proxy data corresponding to the configuration items; configuring a target network request according to the proxy data to obtain simulation data aiming at the target network request; the proxy data comprises configuration information aiming at different network environments, and the simulation data is data related to feedback of the server 102 on the simulation real line aiming at the target network request under different network environments; debugging is carried out according to the interaction of the application program of the simulation data; wherein debugging includes at least network requests of the debugging application or processing logic of the network requests by the debugging application.
In practical applications, the terminal device 101 and the server 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, robots, vehicle-mounted terminals, portable wearable devices and servers, where the server 102 may be implemented by a separate server or a server cluster composed of multiple servers.
Referring to fig. 2, a step flow chart of a method for debugging application program interaction provided in an embodiment of the present invention may specifically include the following steps:
step 201, a target network request sent by an application program is obtained.
In a specific implementation, a user may access other terminal devices (e.g., a server) through an application program (e.g., a browser) installed in a terminal device such as a mobile phone, a computer, a tablet computer, etc., and specifically, the application program may send a network request to the server, and the server may return a network response including various types of data such as video, pictures, text, links, etc. to the application program for the network request.
In the embodiment of the present invention, a network request simulation and synchronization tool (hereinafter referred to as a simulation tool for short) capable of providing a proxy Service is installed in an application program, and as an alternative example, the simulation tool may be a Service Worker. The simulation tool follows the installation of the application into project code of the development environment of the application, and then may intercept all or part of the network request sent by the application to the server as a target network request.
It should be noted that, the simulation tool in the embodiment of the present invention is installed and operated in an application program, and is not installed in an operating system where the application program is located, so that the simulation tool only intercepts network requests sent by the application program, but does not intercept network requests sent by other application programs in the operating system, that is, the simulation tool in the embodiment of the present invention is specific to only the corresponding application program, and does not affect network requests sent by other application programs in the operating system.
Step 202, determining whether the target network request starts a proxy service; wherein the proxy service is installed in a development environment of the application program.
In the development process of the application program, in order to ensure the working progress and improve the development and debugging speed of the application program, a developer can simulate and generate a corresponding network response aiming at the network request, so that the developer can debug the interaction of the application program according to the network response, the interaction effect between a user and the application program is better, and the interaction experience of the user using the application program is improved.
In the embodiment of the invention, the required target network requests can be selected according to the debugging requirements of the application program, and the target network requests can be configured to start proxy services, wherein the proxy services can be regarded as the simulation tool to take over the processing of the target network requests after the proxy services are started, and the proxy services of the simulation tool are installed in the development environment of the application program, so that the network requests sent by other application programs in the operating system of the terminal equipment are not influenced. As an alternative example, the target network request may include other types of requests (network requests of other ports) such as HTTP requests (default port of HTTP request is 80 ports), and assuming that the debug requirement needs to be a target network request of 80 ports or a specified request type of 80 ports, the proxy service may be configured to be started by the target network request of 80 ports, or the proxy service may be configured to be started by the target network request of 80 ports and of a specified request type of 80 ports (for example, GET request, OPTIONS request or POST request in HTTP request, etc.).
Step 203, providing a visual operation interface when determining that the target network requests to start proxy service; the visual operation interface comprises a configuration item corresponding to the target network request.
And 204, responding to the operation of the configuration item of the visual operation interface, and configuring the configuration item to obtain proxy data corresponding to the configuration item.
In the embodiment of the invention, the simulation tool can provide a visual operation interface for a developer, the visual operation interface can comprise configuration items corresponding to the target network request, the number of the configuration items can be one or more, the developer can carry out custom data configuration through the configuration items requested by the target network of the visual operation interface, proxy data corresponding to the configuration items can be obtained, and further, the simulation data can be obtained according to the proxy data, so that personalized generation of the simulation data is realized.
Specifically, the obtained target network request is displayed and edited through the visual operation interface, and each index of the target network request can be subjected to custom data configuration. Referring to fig. 3, a schematic diagram of a configuration item of a target network request according to an embodiment of the present invention may list various indexes (configuration items) of the target network request allowed to be configured, for example, the various configuration items of the target network request allowed to be configured may include, but are not limited to, a join request identifier, response data returned to be configured, synchronous real data, a request through a network, a delay of a set response, a failure of a set response, and so on, and if a developer wants the target network request to be configured to be failed in the set response, the developer may select or set the corresponding configuration item of the target network request through a visual operation interface of a simulation tool.
According to the embodiment of the invention, by providing the simulation tool in the application program, the proxy data of the corresponding target network request is automatically collected and processed in real time according to the configuration of the simulation tool by a developer, and the processed result (simulation data) is returned, and meanwhile, the simulation tool can provide a visual operation interface, so that the developer can conveniently and rapidly configure the target network request through the visual operation interface. In the embodiment of the invention, the capability of customizing configuration of the target network request is achieved through the visual operation interface of the simulation tool, and the function of simulating and modifying the target network request at the visual operation interface is realized, so that proxy data is flexibly and real-timely configured through configuration items according to actual development requirements, and further corresponding simulation data is obtained according to the proxy data for adjusting application program interaction, and the development efficiency of the application program is improved.
Step 205, configuring the target network request according to the proxy data to obtain simulation data aiming at the target network request; the proxy data comprises configuration information aiming at different network environments, and the simulation data is data related to feedback of a server on a simulation real line aiming at the target network request under different network environments.
Step 206, debugging the application program interaction according to the simulation data; the debugging at least comprises network request for debugging the application program or processing logic for debugging the network request by the application program.
In the embodiment of the invention, the proxy data can be configured to be proxy data for different network environments, for example, proxy data for a network environment when the network condition is bad in reality, proxy data for a network environment with server errors in reality, and the like. The proxy data is exemplary, the data is obtained after configuration items are configured for different network environments according to debugging requirements of application programs, according to the proxy data, how to return network responses corresponding to target network requests for different network environments can be determined, and then the network responses can be used as simulation data of the target network requests. For example, if the proxy data is a configuration response, the proxy data can directly return the configured response data or delay returning the response, so that the simulation data returned by the simulation server can be obtained when the simulation network environment is normal or unstable, and if the proxy data is a configuration response failure, the proxy data can return a response failure, the simulation data returned by the simulation server can be obtained when the simulation network environment is an error.
Specifically, proxy data obtained by configuring configuration items of the target network request by a developer for different network environments through a visual operation interface can be stored in a local database of the application program in advance, so that based on the fact that when the target network request is determined to start proxy service, proxy data corresponding to the target network request can be obtained from the local database of the application program, further, simulation data (the simulation data can also be called test data) obtained based on the proxy data can be obtained, network response of a real online server for the target network request under different network environments can be simulated, further, debugging can be conducted according to application program interaction corresponding to the simulation data, and the debugged application program can conduct normal interaction under various network environments.
In an exemplary embodiment, the proxy data may include at least one of: returning configured response data, synchronizing real data, requesting via a network, setting response delay, and setting response failure. In the embodiment of the invention, after determining that the target network request starts the proxy service, the simulation tool performs corresponding processing on the target network request, that is, the simulation server performs corresponding processing on the target network request, where how to specifically process proxy data obtained by reading configuration items of the target network request by a developer is determined, for example, for the target network request with a request type of GET request, if the proxy data is response data of return configuration, the simulation tool may directly return response data configured for the target network request in advance as simulation data, for the target network request with a request type of OPTIONS request, if the proxy data is a request passing network, the simulation tool may forward the network request to the server for processing, and if the proxy data is a request with a request type of POST request, the simulation tool may set response delay for 1 second and then return the response data. Of course, the proxy data described above is merely an example, and when implementing the embodiment of the present invention, the proxy data may be obtained by configuring custom data for the target network request through the visualization operation interface according to actual requirements, which is not limited in this embodiment of the present invention.
In the embodiment of the invention, after the target network request is configured according to the proxy data, the simulation data aiming at the target network request is obtained, and then the application program can be debugged according to the interaction of the simulation data, specifically, the debugging refers to the process of analyzing, diagnosing and repairing errors and problems in the application program so as to ensure that the application program can normally run and reach the expected functions and performances, wherein the network request and processing logic for debugging the application program are part of the interactive debugging process of the application program. Specifically, the network request of the application program is debugged, and specifically, the network parameters of the network request can be debugged to ensure that the network parameters are correctly sent to the server and the response is obtained; the processing logic of the debugging application on the network request may specifically determine how the application processes and parses the network response of the server, and may include, for example, ensuring that the application is able to properly parse the data format of the network response (e.g., JSON, XML, etc.), process error responses (e.g., HTTP error codes), and properly expose the network response to the user, etc. Of course, in practical applications, other content besides the network request and processing logic of the application may be adjusted, which is not limited in this embodiment of the present invention.
In the above-mentioned debugging method for application program interaction, the target network request sent by the application program is obtained, whether the target network request opens the proxy service is determined, the proxy service is installed in the development environment of the application program, when the target network request is determined to open the proxy service, a visual operation interface is provided, the visual operation interface may include a configuration item corresponding to the target network request, the configuration item is configured to obtain proxy data corresponding to the configuration item in response to the operation of the configuration item for the visual operation interface, and then the target network request may be configured according to the proxy data to obtain simulation data for the target network request, where the proxy data may include configuration information for different network environments, the simulation data is data related to feedback made by a server on a simulation real line for the target network request under different network environments, and debugging is performed on the application program interaction according to the simulation data, specifically, the debugging at least includes debugging the network request of the application program or processing logic of the network request by the debugging application program. According to the embodiment of the invention, when the target network request sent by the application program starts the proxy service, a visual operation interface comprising the configuration items corresponding to the target network request is provided, so that a developer can obtain proxy data corresponding to the configuration items of the target network request through the operation of the configuration items of the visual operation interface, thereby obtaining simulation data generated by simulating a server on a real line under different network environments of the target network request according to the proxy data, and further debugging the interaction of the application program under different network environments according to the simulation data, so that the interaction experience of a user of the application program using the application program is improved.
In an exemplary embodiment, after determining whether the target network request starts a proxy service in the step 202, the method further includes:
when the target network request is determined not to start proxy service, acquiring real data corresponding to the target network request; the real data are data related to feedback made by a server on a real line aiming at the target network request, and the real data are used for debugging the application program interaction.
In the embodiment of the invention, when the target network request is determined to not start the proxy service, the real data (the real data can also be called as online data or remote data) corresponding to the target network request can be obtained from the server, and then the real data is synchronously stored in the local database corresponding to the application program, wherein the real data can also be used for debugging the application program interaction, and in addition, the real data can also be used as simulation data after being modified according to the debugging requirement of the application program on the basis of the real data for debugging the application program interaction.
In the above exemplary embodiment, when it is determined that the proxy service is not started by the target network request, the real data corresponding to the target network request may be obtained and synchronized to the local database of the application program, so that the application program interaction may be debugged based on the real data, or the simulation data may be generated based on the real data, so that the application program interaction effect may be further improved and better interaction experience may be provided for the user.
In an exemplary embodiment, the step 101 of obtaining the target network request sent by the application program includes:
intercepting a network request sent by the application program in a specified mode, and taking the network request as a target network request; the specified mode at least comprises a specified port for specifying the domain name.
In a specific implementation, the range of the network request intercepted by the simulation tool may be set according to actual requirements, and in order to reduce the amount of data to be processed and not affect other application programs in the operating system, the simulation tool in the embodiment of the present invention is configured to only run in the application program, further, may also intercept only the network request sent by the application program in a specified manner according to the debug requirement, for example, intercept only the network request sent by the application program through a specified domain name (for example, a certain video website), or intercept only the network request sent by the application program through a specified port of the specified domain name (for example, a certain video website through 80 ports). Because the simulation tool only needs to intercept the network request sent by the application program in a specified mode as a target network request, and then the subsequent processing of determining whether to start proxy service and the like is performed on the target network request, the simulation tool can reduce the data volume to be processed, and the network requests sent by other application programs in an operating system or the network requests which are sent by the application programs and are irrelevant to debugging requirements are not affected.
In the above-described exemplary embodiment, by intercepting only the network request sent by the application program in the specified manner as the target network request, the number of target network requests that the simulation tool needs to process is reduced, so that the speed of acquiring the network response for debugging the program can be increased, and the overall development efficiency of the application program can be improved.
In an exemplary embodiment, before determining whether the target network requests to start proxy service in step 102, the method further includes:
acquiring target network request data from the target network request; the target network request data at least comprises a request method and a request path;
generating a unique identifier for the target network request according to the target network request data;
determining whether a configuration item corresponding to the unique identifier of the target network request exists;
executing the determination of whether the target network request starts a proxy service or not when determining that a configuration item corresponding to the unique identifier of the target network request exists;
and generating a configuration item corresponding to the unique identifier of the target network request when the configuration item corresponding to the unique identifier of the target network request is determined not to exist.
The target network request data of the target network request at least can include parameters such as a protocol, a domain name, a request path, a request method and the like. As an optional example, according to the request method and the request path in the target network request data of the target network request, the embodiment of the invention may generate a unique identifier for the target network request to identify the corresponding target network request, where the unique identifier may be a character string. Of course, in practical application, other ways may be used to generate the unique identifier corresponding to the target network request, as long as the corresponding network request can be uniquely identified, which is not limited in the embodiment of the present invention.
In the embodiment of the invention, a local configuration list is arranged in the local of the application program, and the unique identification of the target network request which generates the configuration item is stored in the local configuration list. After the simulation tool obtains the target network request, the request method and the request path are extracted from target network request data of the target network request, then the request method and the request path are encoded into unique identifiers (keys) to identify the corresponding target network request, whether the unique identifiers exist in a local configuration list of the application program or not is searched, if the unique identifiers exist in the local configuration list of the application program, the target network request is indicated to have generated corresponding configuration items, whether the target network request starts a proxy service can be continuously determined, when the proxy service is determined to be started, the configuration items of the target network request are obtained, a developer can configure the configuration items of the target network request to obtain proxy data by displaying the configuration items of the target network request in a visual operation interface, if the unique identifiers do not exist in the local configuration list of the application program, the configuration items corresponding to the unique identifiers of the target network request are generated, the configuration items corresponding to the unique identifiers of the application program are stored in the local configuration list of the application program, and the configuration items are stored in a persistent storage database.
In the above exemplary embodiment, the unique identifier for the target network request may be generated according to the target network request data of the target network request, and further, whether the corresponding target network request has generated a configuration item for a developer to operate may be determined by querying whether the unique identifier is in the local database of the application program, and when the target network request has not generated the configuration item, the corresponding configuration item is generated, and then proxy data may be obtained according to the configuration item of the target network request, and the target network request may be configured by using the term to obtain the simulation data, so that repeated generation of the configuration item for the same target network request is avoided.
In an exemplary embodiment, the determination of whether the target network request turns on a proxy service is made by:
determining whether a proxy identifier exists in a configuration item corresponding to the target network request;
when the configuration item corresponding to the target network request has a proxy identifier, determining that the target network request starts proxy service;
and when the configuration item corresponding to the target network request does not have the proxy identification, determining that the target network request does not start proxy service.
The proxy identifier is used for representing whether the corresponding target network request needs to start proxy service or not, and the proxy identifier can be configured in a configuration item of the target network request in advance.
In the embodiment of the invention, whether the target network request needs to start proxy service can be determined according to the debugging requirement of the application program, after the target network request is acquired, whether the configuration item corresponding to the target network request has proxy identification is determined, when the configuration item corresponding to the target network request has proxy identification, the target network request is determined to start proxy service, at the moment, proxy data obtained by configuring the configuration item of the target network request through a visual operation interface by a developer can be acquired, and further, simulation data of the target network request is generated according to the proxy data; when the configuration item corresponding to the target network request does not have the proxy identifier, determining that the target network request does not start proxy service, at this time, if the target network request has synchronized corresponding online data from the server, the target network request is not intercepted any more, the target network request is directly passed (i.e. can be directly forwarded to the server to enable the server to normally process the target network request), if the target network request does not synchronize corresponding online data from the server, the online data of the server of the target network request is obtained, and the online data of the server of the target network request is stored in the local database. In practical application, in order to facilitate the operation of a developer, the developer does not need to manually input test data, and sometimes the test data required by the developer only needs to be simulated based on online data, so that the embodiment of the invention automatically synchronizes the online data (copies one copy for generating the test data), thereby reducing the manual operation steps of the developer and further improving the development efficiency of the application program.
In the above exemplary embodiment, whether the proxy service is started or not is determined according to whether the proxy identifier exists in the configuration item corresponding to the target network request, so that the proxy service is not required to be used for all the target network requests, and the data processing amount is reduced.
In an exemplary embodiment, the proxy data corresponding to the configuration item may include at least one of the following: returning configured response data, synchronizing real data, requesting through a network, setting response delay and setting response failure; the step 205 of configuring the target network request according to the proxy data includes:
if the proxy data is the synchronous real data, returning corresponding real data aiming at the target network request;
if the proxy data is the response data of the return configuration, returning the response data which is configured in advance for the target network request;
if the proxy data is the request passing through the network, forwarding the target network request to a server for processing and obtaining a processing result of the server;
if the proxy data is the set response delay, processing the target network request after reaching a preset delay time and returning a processing result;
And if the proxy data is the setting response failure, returning a processing failure result aiming at the target network request.
Specifically, if the proxy data is synchronous real data, which means real data after the on-line server needs to process the target network request, the real data corresponding to the real on-line server stored in the local database in advance after processing the target network request can be returned as simulation data according to the target network request; if the proxy data is response data of the return configuration, which means that the simulation tool is required to return the response data which is pre-configured as simulation data aiming at the target network request, acquiring the response data which is returned to be pre-configured from a local database aiming at the target network request as the simulation data; if the proxy data is a request passing through the network, which means that a real online server is required to process the target network request, forwarding the target network request to the server for processing and obtaining a processing result of the server as simulation data; if the proxy data is the set response delay, the simulation tool needs to process after reaching the preset delay time, and processes the target network request after reaching the preset delay time and returns a processing result as simulation data; if the proxy data is a set response failure, which indicates that the simulation tool needs to return a processing failure result, the processing failure result is returned as simulation data for the target network request.
Of course, the configuration of the target network request for different proxy data is merely an example, and other proxy data may be set in practical applications, which is not limited in this embodiment of the present invention.
In the above exemplary embodiment, since the proxy data includes configuration information for different network environments, the target network request is configured according to different proxy data, so that different simulation data for different network environments can be obtained, and further, the application program interaction can be debugged according to different simulation data for different network environments, so as to realize optimization of the application program interaction for different network environments.
In an exemplary embodiment, before determining whether the target network requests to start proxy service in step 202, the method further includes:
providing a visual operation interface; the visual operation interface comprises a configuration item corresponding to the target network request;
and adding an agent identifier for the configuration item requested by the target network in response to the operation of the configuration item corresponding to the target network request.
In the embodiment of the invention, a visual operation interface is provided, the visual operation interface can comprise configuration items corresponding to target network requests, if a developer hopes that one or more target network requests of an application program are simulated through a simulation tool, agent identification can be added to the configuration items of the target network requests through the operation of the configuration items corresponding to the target network requests in the visual operation interface, and then the target network requests are intercepted when the application program sends the target network requests.
In the above exemplary embodiment, a visual operation interface including a configuration item corresponding to a target network request is provided, so that a developer can quickly set a proxy identifier for the configuration item requested by the target network according to requirements, so as to determine whether to start a proxy service according to the proxy identifier of the configuration item, thereby improving the development efficiency of the developer on an application program.
In order to provide a better understanding of the embodiments of the present invention to those skilled in the art, a specific example is described below.
Referring to fig. 4, a schematic diagram of a whole debugging scheme of application program interaction provided in an embodiment of the present invention is shown, and a specific process includes:
step 401, capturing a network request through a simulation tool installed in an application program (webpage), generating a unique identifier according to network request data in the network request, and then performing basic filtering based on the unique identifier, wherein the basic filtering comprises the steps of checking whether the unique identifier of the network request is in a local configuration list, if so, reading a configuration item of the network request, processing according to the configuration item, executing step 402, and if not, executing step 404;
Step 402, it is checked whether the network request starts the proxy service, if yes, step 403 is performed, if not, step 404 is performed.
Step 403, reading custom configuration (the custom configuration refers to the configuration performed by a developer on a configuration item requested by a target network through a visual operation interface), and then generating proxy data according to the custom configuration, or obtaining proxy data from a local database (index db) according to the custom configuration to perform configuration on the configuration item requested by the network to obtain simulation data.
Step 404, checking whether the online data of the network request of the server has been synchronized, if the online data of the network request of the server has been synchronized, not intercepting the network request, directly passing the network request, if the online data of the network request of the server has not been synchronized, obtaining the online data of the server of the network request, and updating and storing in a local database.
Step 405, initializing configuration, which specifically includes generating a unique identifier according to network request data of a network request, generating a configuration item of the network request for the unique identifier, storing the unique identifier in a local configuration list, storing the configuration item of the network request in a local database, and simultaneously, obtaining remote data (online data) of the network request.
Referring to fig. 5, a schematic diagram of configuring a target network request based on custom configuration according to an embodiment of the present invention specifically includes:
step 501, reading custom configuration (proxy data);
step 502, checking whether the network request needs to be configured to respond to failure according to the user-defined configuration; if yes, go to step 503, if not, go to step 504;
step 503, configuring failure configuration data corresponding to the response failure for the network request;
step 504, configuration response data corresponding to the successful configuration response is requested for the network.
The application of the embodiment of the invention at least has the following advantages: 1. the interface agent scheme of the browser layer is provided, so that network requests, network responses and corresponding network environments of all and part of interfaces are managed conveniently; 2. the simulation tool is convenient to install and use, and is convenient to switch along with the installation and use of the project of the application program; 3. the network request is not proxied through the operating system level, the processing of the network request by the operating system bottom layer is not influenced, and the network requests of other application programs are not influenced; 4. the remote data (online data) is automatically synchronized to the local database, and the analog data can be directly modified on the basis, so that the analog data does not need to be independently pulled from a server and stored.
It should be noted that, for simplicity of description, the method embodiments are shown as a series of acts, but it should be understood by those skilled in the art that the embodiments are not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred embodiments, and that the acts are not necessarily required by the embodiments of the invention.
Referring to fig. 6, a block diagram of a debugging device for application interaction provided in an embodiment of the present invention may specifically include the following modules:
an obtaining module 601, configured to obtain a target network request sent by an application program;
a determining module 602, configured to determine whether the target network request starts a proxy service; wherein the proxy service is installed in a development environment of the application program;
the display module 603 is configured to provide a visual operation interface when it is determined that the target network requests to start the proxy service; the visual operation interface comprises a configuration item corresponding to the target network request;
The first configuration module 604 is configured to configure the configuration item to obtain proxy data corresponding to the configuration item in response to an operation on the configuration item of the visual operation interface;
a second configuration module 605, configured to configure the target network request according to the proxy data, to obtain simulation data for the target network request; the proxy data comprise configuration information aiming at different network environments, and the simulation data are data related to feedback of a server on a simulation real line aiming at the target network request under different network environments;
a debugging module 606, configured to debug the application interaction according to the simulation data; the debugging at least comprises network request for debugging the application program or processing logic for debugging the network request by the application program.
In an exemplary embodiment, the apparatus further comprises: the real data acquisition module is used for:
when the target network request is determined not to start proxy service, acquiring real data corresponding to the target network request; the real data are data related to feedback made by a server on a real line aiming at the target network request, and the real data are used for debugging the application program interaction.
In an exemplary embodiment, the obtaining module 601 is configured to:
intercepting a network request sent by the application program in a specified mode, and taking the network request as a target network request; the specified mode at least comprises a specified port for specifying the domain name.
In an exemplary embodiment, the apparatus further comprises: the configuration item processing module is used for:
acquiring target network request data from the target network request; the target network request data at least comprises a request method and a request path;
generating a unique identifier for the target network request according to the target network request data;
determining whether a configuration item corresponding to the unique identifier of the target network request exists;
executing the determination of whether the target network request starts a proxy service or not when determining that a configuration item corresponding to the unique identifier of the target network request exists;
and generating a configuration item corresponding to the unique identifier of the target network request when the configuration item corresponding to the unique identifier of the target network request is determined not to exist.
In an exemplary embodiment, the configuration item processing module is configured to:
Determining whether a proxy identifier exists in a configuration item corresponding to the target network request;
when the configuration item corresponding to the target network request has a proxy identifier, determining that the target network request starts proxy service;
and when the configuration item corresponding to the target network request does not have the proxy identification, determining that the target network request does not start proxy service.
In an exemplary embodiment, the proxy data corresponding to the configuration item includes at least one of the following: returning configured response data, synchronizing real data, requesting through a network, setting response delay and setting response failure; the second configuration module 605 is configured to:
if the proxy data is the synchronous real data, returning corresponding real data aiming at the target network request;
if the proxy data is the response data of the return configuration, returning the response data which is configured in advance for the target network request;
if the proxy data is the request passing through the network, forwarding the target network request to a server for processing and obtaining a processing result of the server;
if the proxy data is the set response delay, processing the target network request after reaching a preset delay time and returning a processing result;
And if the proxy data is the setting response failure, returning a processing failure result aiming at the target network request.
In an exemplary embodiment, the apparatus further comprises: the agent identification adding module is used for:
providing a visual operation interface; the visual operation interface comprises a configuration item corresponding to the target network request;
and adding an agent identifier for the configuration item requested by the target network in response to the operation of the configuration item corresponding to the target network request. .
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
In addition, the embodiment of the invention also provides electronic equipment, which comprises: the processor, the memory, store the computer program on the memory and can run on the processor, the computer program realizes each course of the above-mentioned application interactive debugging method embodiment when being carried out by the processor, and can reach the same technical result, in order to avoid repetition, will not be repeated here.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, realizes the processes of the above-mentioned application program interaction debugging method embodiment, and can achieve the same technical effects, and in order to avoid repetition, the description is omitted here. Wherein the computer readable storage medium is selected from Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
The embodiment of the present invention further provides a computer program product, where the program product is stored in a storage medium, and the program product is executed by at least one processor to implement each process of the above-mentioned application program interaction debugging method embodiment, and the same technical effects can be achieved, so that repetition is avoided, and details are not repeated here.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.
The electronic device 700 includes, but is not limited to: radio frequency unit 701, network module 702, audio output unit 703, input unit 704, sensor 705, display unit 706, user input unit 707, interface unit 708, memory 709, processor 710, and power supply 711. It will be appreciated by those skilled in the art that the electronic device structure shown in fig. 7 is not limiting of the electronic device and that the electronic device may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. In the embodiment of the invention, the electronic equipment comprises, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer and the like.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 701 may be used for receiving and transmitting signals during the process of receiving and transmitting information or communication, specifically, receiving downlink data from a base station, and then processing the received downlink data by the processor 710; and, the uplink data is transmitted to the base station. Typically, the radio unit 701 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio unit 701 may also communicate with networks and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 702, such as helping the user to send and receive e-mail, browse web pages, and access streaming media, etc.
The audio output unit 703 may convert audio data received by the radio frequency unit 701 or the network module 702 or stored in the memory 709 into an audio signal and output as sound. Also, the audio output unit 703 may also provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the electronic device 700. The audio output unit 703 includes a speaker, a buzzer, a receiver, and the like.
The input unit 704 is used for receiving an audio or video signal. The input unit 704 may include a graphics processor (Graphics Processing Unit, GPU) 7041 and a microphone 7042, the graphics processor 7041 processing image data of still pictures or video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 706. The image frames processed by the graphics processor 7041 may be stored in memory 709 (or other storage medium) or transmitted via the radio unit 701 or the network module 702. The microphone 7042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 701 in the case of a telephone call mode.
The electronic device 700 also includes at least one sensor 705, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 7061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 7061 and/or the backlight when the electronic device 700 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for recognizing the gesture of the electronic equipment (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; the sensor 705 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., and will not be described again here.
The display unit 706 is used to display information input by a user or information provided to the user. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 707 is operable to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 7071 or thereabout using any suitable object or accessory such as a finger, stylus, etc.). The touch panel 7071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 710, and receives and executes commands sent from the processor 710. In addition, the touch panel 7071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 707 may include other input devices 7072 in addition to the touch panel 7071. In particular, other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
Further, the touch panel 7071 may be overlaid on the display panel 7061, and when the touch panel 7071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 710 to determine a type of a touch event, and then the processor 710 provides a corresponding visual output on the display panel 7061 according to the type of the touch event. Although in fig. 7, the touch panel 7071 and the display panel 7061 are two independent components for implementing the input and output functions of the electronic device, in some embodiments, the touch panel 7071 and the display panel 7061 may be integrated to implement the input and output functions of the electronic device, which is not limited herein.
The interface unit 708 is an interface to which an external device is connected to the electronic apparatus 700. For example, the external devices may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 708 may be used to receive input (e.g., data information, power, etc.) from an external device and to transmit the received input to one or more elements within the electronic apparatus 700 or may be used to transmit data between the electronic apparatus 700 and an external device.
The memory 709 may be used to store software programs as well as various data. The memory 709 may mainly include a storage program area that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 709 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 710 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 709 and calling data stored in the memory 709, thereby performing overall monitoring of the electronic device. Processor 710 may include one or more processing units; preferably, the processor 710 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 710.
The electronic device 700 may also include a power supply 711 (e.g., a battery) for powering the various components, and the power supply 711 may preferably be logically coupled to the processor 710 via a power management system, such as to perform functions such as managing charge, discharge, and power consumption by the power management system.
In addition, the electronic device 700 includes some functional modules, which are not shown, and will not be described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, etc.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (10)

1. A method for debugging application interactions, the method comprising:
acquiring a target network request sent by an application program;
determining whether the target network request starts a proxy service; wherein the proxy service is installed in a development environment of the application program;
providing a visual operation interface when the target network is determined to request to start proxy service; the visual operation interface comprises a configuration item corresponding to the target network request;
responding to the operation of the configuration item aiming at the visual operation interface, and configuring the configuration item to obtain proxy data corresponding to the configuration item;
configuring the target network request according to the proxy data to obtain simulation data aiming at the target network request; the proxy data comprise configuration information aiming at different network environments, and the simulation data are data related to feedback of a server on a simulation real line aiming at the target network request under different network environments;
debugging the application program interaction according to the simulation data; the debugging at least comprises network request for debugging the application program or processing logic for debugging the network request by the application program.
2. The method of claim 1, wherein after said determining whether said target network request initiates proxy service, said method further comprises:
when the target network request is determined not to start proxy service, acquiring real data corresponding to the target network request; the real data are data related to feedback made by a server on a real line aiming at the target network request, and the real data are used for debugging the application program interaction.
3. The method of claim 1, wherein the obtaining the target network request sent by the application program comprises:
intercepting a network request sent by the application program in a specified mode, and taking the network request as a target network request; the specified mode at least comprises a specified port for specifying the domain name.
4. The method of claim 1, wherein prior to said determining whether the target network request initiates proxy service, the method further comprises:
acquiring target network request data from the target network request; the target network request data at least comprises a request method and a request path;
Generating a unique identifier for the target network request according to the target network request data;
determining whether a configuration item corresponding to the unique identifier of the target network request exists;
executing the determination of whether the target network request starts a proxy service or not when determining that a configuration item corresponding to the unique identifier of the target network request exists;
and generating a configuration item corresponding to the unique identifier of the target network request when the configuration item corresponding to the unique identifier of the target network request is determined not to exist.
5. The method of claim 1, wherein determining whether the target network request initiates a proxy service is performed by:
determining whether a proxy identifier exists in a configuration item corresponding to the target network request;
when the configuration item corresponding to the target network request has a proxy identifier, determining that the target network request starts proxy service;
and when the configuration item corresponding to the target network request does not have the proxy identification, determining that the target network request does not start proxy service.
6. The method of claim 1, wherein the proxy data corresponding to the configuration item includes at least one of: returning configured response data, synchronizing real data, requesting through a network, setting response delay and setting response failure; the configuring the target network request according to the proxy data includes:
If the proxy data is the synchronous real data, returning corresponding real data aiming at the target network request;
if the proxy data is the response data of the return configuration, returning the response data which is configured in advance for the target network request;
if the proxy data is the request passing through the network, forwarding the target network request to a server for processing and obtaining a processing result of the server;
if the proxy data is the set response delay, processing the target network request after reaching a preset delay time and returning a processing result;
and if the proxy data is the setting response failure, returning a processing failure result aiming at the target network request.
7. The method of claim 1, wherein prior to said determining whether the target network request initiates proxy service, the method further comprises:
providing a visual operation interface; the visual operation interface comprises a configuration item corresponding to the target network request;
and adding an agent identifier for the configuration item requested by the target network in response to the operation of the configuration item corresponding to the target network request.
8. A debugging apparatus for application interaction, the apparatus comprising:
the acquisition module is used for acquiring a target network request sent by an application program;
a determining module, configured to determine whether the target network request starts a proxy service; wherein the proxy service is installed in a development environment of the application program;
the display module is used for providing a visual operation interface when determining that the target network requests to start proxy service; the visual operation interface comprises a configuration item corresponding to the target network request;
the first configuration module is used for responding to the operation of the configuration item of the visual operation interface, and configuring the configuration item to obtain proxy data corresponding to the configuration item;
the second configuration module is used for configuring the target network request according to the proxy data to obtain simulation data aiming at the target network request; the proxy data comprise configuration information aiming at different network environments, and the simulation data are data related to feedback of a server on a simulation real line aiming at the target network request under different network environments;
The debugging module is used for debugging the application program interaction according to the simulation data; the debugging at least comprises network request for debugging the application program or processing logic for debugging the network request by the application program.
9. An electronic device comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
the memory is used for storing a computer program;
the processor is configured to implement the method according to any one of claims 1-7 when executing a program stored on a memory.
10. A computer-readable storage medium having instructions stored thereon, which when executed by one or more processors, cause the processors to perform the method of any of claims 1-7.
CN202311731438.2A 2023-12-14 2023-12-14 Application program interaction debugging method and device and electronic equipment Pending CN117873872A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311731438.2A CN117873872A (en) 2023-12-14 2023-12-14 Application program interaction debugging method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311731438.2A CN117873872A (en) 2023-12-14 2023-12-14 Application program interaction debugging method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN117873872A true CN117873872A (en) 2024-04-12

Family

ID=90576382

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311731438.2A Pending CN117873872A (en) 2023-12-14 2023-12-14 Application program interaction debugging method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN117873872A (en)

Similar Documents

Publication Publication Date Title
CN108345543B (en) Data processing method, device, equipment and storage medium
CN110704328B (en) Interface testing method and device, electronic equipment and readable storage medium
WO2018077041A1 (en) Method and apparatus for running application
CN110224920B (en) Sharing method and terminal equipment
WO2018006841A1 (en) Qr code information transmission method, device and apparatus
CN109739402B (en) Fast application processing method and terminal equipment
CN111049980A (en) Application sharing method, electronic equipment and computer readable storage medium
WO2017161994A1 (en) Method and device for displaying page, and computer storage medium
CN113238868B (en) Task processing method, device, server, equipment, system and storage medium
CN111209031B (en) Data acquisition method, device, terminal equipment and storage medium
CN111143002A (en) Application sharing method, electronic equipment and computer readable storage medium
CN111399819B (en) Data generation method, device, electronic equipment and storage medium
CN115756881A (en) Data processing method, device, equipment and storage medium based on SDK
CN112749074B (en) Test case recommending method and device
WO2018209802A1 (en) Method for displaying device identifier, mobile terminal, and terminal device
CN109271779A (en) A kind of installation packet inspection method, terminal device and server
CN111159738B (en) Authority configuration method, application login method and device
CN115904514B (en) Method for realizing cloud rendering pixel flow based on three-dimensional scene and terminal equipment
CN116610508A (en) Heat dissipation test method and device, electronic equipment and storage medium
CN112486567B (en) Method and device for sending merging request of codes, electronic equipment and storage medium
CN117873872A (en) Application program interaction debugging method and device and electronic equipment
CN110928769B (en) Method and device for positioning based on applet simulation, electronic equipment and storage medium
CN111475141B (en) Method and device for generating list and electronic equipment
CN110855550B (en) Communication method, electronic device, and storage medium
CN113542206B (en) Image processing method, device and computer readable storage medium

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