CN110851208A - Interface parameter and response data modification method and device - Google Patents

Interface parameter and response data modification method and device Download PDF

Info

Publication number
CN110851208A
CN110851208A CN201911086679.XA CN201911086679A CN110851208A CN 110851208 A CN110851208 A CN 110851208A CN 201911086679 A CN201911086679 A CN 201911086679A CN 110851208 A CN110851208 A CN 110851208A
Authority
CN
China
Prior art keywords
interface
response data
callback function
parameters
modified
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
CN201911086679.XA
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.)
JD Digital Technology Holdings Co Ltd
Original Assignee
JD Digital Technology Holdings 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 JD Digital Technology Holdings Co Ltd filed Critical JD Digital Technology Holdings Co Ltd
Priority to CN201911086679.XA priority Critical patent/CN110851208A/en
Publication of CN110851208A publication Critical patent/CN110851208A/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/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • 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
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The application provides a method and a device for modifying interface parameters and response data. The method comprises the following steps: when detecting that the browser sends an interface request, intercepting interface parameters carried by the interface request; if the interface address corresponding to the interface request is determined to be the same as the interface address of the preset interface, displaying interface parameters and an interface for a user to modify the interface parameters; determining that the first callback function is triggered, and sending the modified interface parameters to a server; intercepting response data after receiving the response data which is sent by the server and corresponds to the modified interface parameters; displaying the response data and an interface for a user to modify the response data; and determining that the second callback function is triggered, and displaying a corresponding view page according to the modified response data. Therefore, the modification of the interface parameters and the response data is realized in the process that the browser requests the server for the data, and the problem of interface overtime is avoided.

Description

Interface parameter and response data modification method and device
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method and an apparatus for modifying interface parameters and response data.
Background
When a browser interface (i.e. an address where the browser and the server perform data transmission) is debugged, the browser is required to report interface parameters to the server, and the server returns corresponding response data, and then the debugging is performed according to the interface parameters and the response data. In the process of debugging the browser interface, comprehensive data is required to be tested, however, due to account numbers or test environments and the like, the types and the quantity of interface parameters and response data are limited, so that the debugging requirements can be met only by modifying the interface parameters and the response data.
The existing method is realized by a packet capturing tool, and specifically, a breakpoint is made for an interface, that is, the method is suspended for a period of time in the process that a browser sends an interface request to a server, interface parameters of the request can be intercepted and modified when the interface request is sent again in the period of time, and response data corresponding to the interface request can also be intercepted and modified when the response data is acquired.
However, the packet grabbing tool needs to download and install and needs to break the protocol interface to use more functions, and when the protocol interface is broken, the security certificate needs to be installed at the computer and the mobile phone, and the debugging time is long in a breakpoint mode.
Disclosure of Invention
The application provides a method and a device for modifying interface parameters and response data, so as to modify the interface parameters and the response data.
In a first aspect, the present application provides a method for modifying interface parameters and response data, including:
when detecting that a browser sends an interface request, intercepting interface parameters carried by the interface request;
if the interface address corresponding to the interface request is determined to be the same as the interface address of a preset interface, displaying the interface parameters and an interface for a user to modify the interface parameters;
determining that the first callback function is triggered, and sending the modified interface parameters to a server;
after response data which are sent by a server and correspond to the modified interface parameters are received, intercepting the response data;
displaying the response data and an interface for a user to modify the response data;
and determining that the second callback function is triggered, and displaying a corresponding view page according to the modified response data.
Optionally, the method further includes:
and storing the corresponding relation among the interface address of the preset interface, the interface parameter of the preset interface and the first callback function.
Optionally, the determining that the first callback function is triggered includes:
and receiving the modified interface parameters submitted by the user through the first callback function, and determining that the first callback function is triggered.
Optionally, the method further includes:
and storing the corresponding relation between the response data and the second callback function.
Optionally, the determining that the second callback function is triggered includes:
and receiving the modified response data submitted by the user through the second callback function, and determining that the second callback function is triggered.
In a second aspect, the present application provides an interface parameter and response data modification apparatus, comprising:
the first interception module is used for intercepting interface parameters carried by an interface request when the browser is detected to send the interface request;
the display module is used for displaying the interface parameters and an interface for modifying the interface parameters by a user when determining that the interface address corresponding to the interface request is the same as the interface address of a preset interface;
a processing module for determining that a first callback function is triggered;
the sending module is used for sending the modified interface parameters to the server;
the second interception module is used for intercepting response data which is sent by the server and corresponds to the modified interface parameters;
the display module is further configured to: displaying the response data and an interface for a user to modify the response data;
the processing module is further configured to: determining that a second callback function is triggered;
the display module is further configured to: and displaying the corresponding view page according to the modified response data.
Optionally, the processing module is further configured to:
and storing the corresponding relation among the interface address of the preset interface, the interface parameter of the preset interface and the first callback function.
Optionally, the processing module includes:
the first receiving unit is used for receiving the modified interface parameters submitted by the user through the first callback function;
a first determining unit, configured to determine that the first callback function is triggered.
Optionally, the processing module is further configured to:
and storing the corresponding relation between the response data and the second callback function.
Optionally, the processing module includes:
the second receiving unit is used for receiving the modified response data submitted by the user through the second callback function;
a second determining unit, configured to determine that the second callback function is triggered.
According to the method and the device for modifying the interface parameters and the response data, when it is detected that a browser sends an interface request according to an interface address, the interface parameters carried by the interface request are intercepted, if the interface address is determined to be the same as the interface address of a preset interface, the interface parameters and an interface used for modifying the interface parameters by a user are displayed, the interface parameters are modified by the user through the interface, then it is determined that a first callback function is triggered, the modified interface parameters are sent to a server, after response data corresponding to the modified interface parameters sent by the server are received, the response data are intercepted, the response data and the interface used for modifying the response data by the user are displayed, the response data are modified by the user through the interface, finally it is determined that a second callback function is triggered, and a corresponding view page is displayed according to the modified response data. Therefore, the modification of the interface parameters and the response data is realized in the process that the browser requests the server for the data, and compared with a packet capturing tool, the software and the safety certificate do not need to be downloaded and installed, so that the occupied time of the mode adjusting time is reduced, and the problem of interface overtime is avoided.
Drawings
In order to more clearly illustrate the technical solutions in the present application or the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a flow chart of an embodiment of a method for modifying interface parameters and response data provided herein;
FIG. 2 is a schematic diagram of an interface displaying interface parameters and for user modification of the interface parameters;
FIG. 3 is a schematic diagram of an interface displaying response data and for user modification of the response data;
FIG. 4 is a flow chart of an embodiment of a method for modifying interface parameters and response data provided herein;
FIG. 5 is a schematic structural diagram of an interface parameter and response data modification apparatus provided in the present application;
FIG. 6 is a schematic structural diagram of an interface parameter and response data modification apparatus provided in the present application;
FIG. 7 is a schematic structural diagram of an interface parameter and response data modification apparatus provided in the present application;
fig. 8 is a schematic diagram of a hardware structure of an electronic device provided in the present application.
Detailed Description
To make the purpose, technical solutions and advantages of the present application clearer, the technical solutions in the present application will be clearly and completely described below with reference to the drawings in the present application, and it is obvious that the described embodiments are some, but not all embodiments of the present application. 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.
First, some terms in the embodiments of the present application are explained below to facilitate understanding by those skilled in the art.
1. And the interface refers to an address for data transmission between the browser and the server.
The modification of the existing interface parameters and response data is realized by a packet capturing tool, and specifically, a breakpoint is made for an interface, that is, the interface is paused for a period of time in the process that a browser sends an interface request to a server, the interface parameters of the request can be intercepted and modified when the interface request is sent again in the period of time, and the response data can also be intercepted and modified when the response data corresponding to the interface request is acquired. However, the packet grabbing tool needs to download and install and needs to break the protocol interface to use more functions, and when the protocol interface is broken, the security certificate needs to be installed at the computer and the mobile phone, so that the debugging time is long in a breakpoint mode. To solve the problem, the application provides an interface parameter and response data modification method and device, by intercepting the interface parameters carried by the interface request when detecting that the browser sends the interface request according to the interface address, if the interface address is determined to be the same as the interface address of the preset interface, the interface parameters and an interface for user modification of the interface parameters are displayed, the interface parameters are modified by the user through the interface, then determining that the first callback function is triggered, sending the modified interface parameters to the server, and after receiving response data which is sent by the server and corresponds to the modified interface parameters, intercepting the response data, displaying the response data and an interface for modifying the response data by a user, modifying the response data by the user through the interface, finally determining that a second callback function is triggered, and displaying a corresponding view page according to the modified response data. Therefore, the modification of the interface parameters and the response data is realized in the process that the browser requests the server for the data, and compared with a packet capturing tool, the software and the safety certificate do not need to be downloaded and installed, so that the occupied time of the mode adjusting time is reduced, and the problem of interface overtime is avoided. The following describes a specific implementation process of the interface parameter and response data modification method according to the embodiment of the present application in detail by using specific embodiments with reference to the accompanying drawings.
Fig. 1 is a flowchart of an embodiment of a method for modifying interface parameters and response data according to the present application, where an execution main body of the embodiment may be a browser, and specifically may be a software module or a hardware module integrated in the browser, and the browser may be installed on a terminal device such as a mobile phone and a computer, as shown in fig. 1, the method of the embodiment may include:
s101, when detecting that the browser sends an interface request, intercepting interface parameters carried by the interface request.
Specifically, when the browser requests data from the server according to the interface address, the browser sends an interface request according to the interface address, wherein the interface request carries interface parameters. In this implementation, when the browser detects that an interface request is to be sent, the browser intercepts an interface parameter carried by the interface request.
And S102, if the interface address corresponding to the interface request is determined to be the same as the interface address of the preset interface, displaying the interface parameters and an interface for a user to modify the interface parameters.
Specifically, if it is determined that the interface address corresponding to the interface request is the same as the interface address of the preset interface, that is, the interface corresponding to the interface request is determined to be the preset interface requiring interface parameter modification, the interface parameter and the interface for the user to modify the interface parameter are displayed. Fig. 2 is a schematic diagram of an interface for displaying interface parameters and modifying the interface parameters by a user, as shown in fig. 2, the interface displays a prompt message "the interface intercepts the interface parameters, and you can modify the interface parameters", and simultaneously displays the intercepted interface parameters, and fig. 2 shows 4 interface parameters (parameters 1:4c71d9d87102c95df77d2, parameters 2:1, parameters 3:50, and parameters 4: 39, respectively). The user in this embodiment is a developer, and the developer may modify the parameter values of the 4 interface parameters shown in the figure according to the displayed interface.
S103, determining that the first callback function is triggered, and sending the modified interface parameters to a server.
In this embodiment, as an implementable manner, before S101, the method of this embodiment may further include:
and storing the corresponding relation among the interface address of the preset interface, the interface parameter of the preset interface and the first callback function.
Correspondingly, determining that the first callback function is triggered may specifically be:
and receiving the modified interface parameters submitted by the user through the first callback function, and determining that the first callback function is triggered.
Specifically, after the user modifies the interface parameter, the user clicks "ok" shown in fig. 2, and then submits the modified interface parameter through the first callback function, and if the submitted modified interface parameter is different from the interface parameter of the preset interface, it indicates that the interface parameter has been modified, and then it is determined that the first callback function is triggered, and then the modified interface parameter is sent to the server. If the submitted modified interface parameter is the same as the interface parameter of the preset interface, the interface parameter is not modified, the first callback function is determined to be triggered, and the unmodified interface parameter is sent to the server.
And S104, intercepting the response data after receiving the response data which is sent by the server and corresponds to the modified interface parameters.
And S105, displaying the response data and an interface for modifying the response data by a user.
Specifically, fig. 3 is a schematic diagram of an interface displaying response data and for a user to modify the response data, as shown in fig. 3, the interface displaying a prompt message "intercept response data, modifiable", user-modifiable.
And S106, determining that the second callback function is triggered, and displaying a corresponding view page according to the modified response data.
In this embodiment, as an implementable manner, before S101, the method of this embodiment may further include:
and storing the corresponding relation between the response data and the second callback function.
Correspondingly, determining that the second callback function is triggered may specifically be:
and receiving the modified response data submitted by the user through the second callback function, and determining that the second callback function is triggered.
Specifically, after the user modifies the response data, after the user clicks "ok" shown in fig. 3, the modified response data is submitted through the second callback function, if the submitted modified response data is different from the stored response data, it is indicated that the response data has been modified, it is determined that the second callback function is triggered, and then the corresponding view page is displayed according to the modified response data. If the submitted response data is the same as the stored response data, the response data is not modified, the second callback function is determined to be triggered, and then the corresponding view page is displayed according to the unmodified response data.
In the embodiment, the same purpose is achieved by intercepting and modifying the interface parameters and the response data through codes, and debugging in the project can be achieved without downloading installation software, setting an agent and installing a certificate.
In the method for modifying interface parameters and response data provided by this embodiment, when it is detected that the browser sends an interface request according to an interface address, the interface parameters carried in the interface request are intercepted, if it is determined that the interface address is the same as the interface address of the preset interface, the interface parameters and an interface for a user to modify the interface parameters are displayed, the user modifies the interface parameters through the interface, then it is determined that the first callback function is triggered, the modified interface parameters are sent to the server, after response data corresponding to the modified interface parameters sent by the server is received, the response data is intercepted, the response data and the interface for the user to modify the response data are displayed, the user modifies the response data through the interface, it is finally determined that the second callback function is triggered, and a corresponding view page is displayed according to the modified response data. Therefore, the modification of the interface parameters and the response data is realized in the process that the browser requests the server for the data, and compared with a packet capturing tool, the software and the safety certificate do not need to be downloaded and installed, so that the occupied time of the mode adjusting time is reduced, and the problem of interface overtime is avoided.
The following describes the technical solution of the embodiment of the method shown in fig. 1 in detail by using a specific embodiment.
Fig. 4 is a flowchart of an embodiment of a method for modifying interface parameters and response data provided in the present application, and as shown in fig. 4, the method of the present embodiment may include:
s201, storing the corresponding relation among the interface address of the preset interface, the interface parameter of the preset interface and the first callback function.
Specifically, the interface address of the predetermined interface, the interface parameter of the predetermined interface, and the first callback function may be encapsulated in a common function. When the preset interface calls the function, the method corresponding to the function is executed.
S202, storing the corresponding relation between the response data and the second callback function.
Specifically, the response data and the second callback function may be packaged into a common function.
S203, when detecting that the browser sends the interface request, intercepting the interface parameters carried by the interface request.
And S204, if the interface address corresponding to the interface request is determined to be the same as the interface address of the preset interface, displaying the interface parameters and an interface for a user to modify the interface parameters.
S205, determining that the first callback function is triggered, and sending the modified interface parameters to a server.
Specifically, the user can click to determine to trigger the first callback function after modifying the interface parameters in a reassignment mode, and send the modified interface parameters to the server.
And S206, intercepting the response data after receiving the response data which is sent by the server and corresponds to the modified interface parameters.
And S207, displaying the response data and an interface for modifying the response data by a user.
And S208, determining that the second callback function is triggered, and displaying a corresponding view page according to the modified response data.
Optionally, the method for modifying the interface parameter and the method for modifying the response data may be encapsulated in a js file, and the js file is introduced when in use.
Fig. 5 is a schematic structural diagram of an interface parameter and response data modification apparatus provided in the present application, and as shown in fig. 5, the apparatus of this embodiment may include: a first intercepting module 11, a display module 12, a processing module 13, a sending module 14 and a second intercepting module 15, wherein,
the first intercepting module 11 is configured to intercept an interface parameter carried by an interface request when detecting that the browser sends the interface request;
the display module 12 is configured to display the interface parameter and an interface for a user to modify the interface parameter when it is determined that an interface address corresponding to the interface request is the same as an interface address of a preset interface;
the processing module 13 is configured to determine that the first callback function is triggered;
the sending module 14 is configured to send the modified interface parameters to the server;
the second intercepting module 15 is configured to intercept response data sent by the server and corresponding to the modified interface parameter;
the display module 12 is further configured to: displaying the response data and an interface for a user to modify the response data;
the processing module 13 is further configured to: determining that a second callback function is triggered;
the display module 12 is further configured to: and displaying the corresponding view page according to the modified response data.
Optionally, the processing module 13 is further configured to:
and storing the corresponding relation among the interface address of the preset interface, the interface parameter of the preset interface and the first callback function.
The apparatus provided in the embodiment of the present application may implement the method embodiment, and specific implementation principles and technical effects thereof may be referred to the method embodiment, which is not described herein again.
Fig. 6 is a schematic structural diagram of an interface parameter and response data modification apparatus provided in the present application, and as shown in fig. 6, the apparatus of this embodiment is based on the apparatus shown in fig. 5, and further, the processing module may include: a first receiving unit 131 and a first determining unit 132, wherein,
the first receiving unit 131 is configured to receive the modified interface parameter submitted by the user through the first callback function;
the first determining unit 132 is configured to determine that the first callback function is triggered.
Further, the processing module 13 is further configured to:
and storing the corresponding relation between the response data and the second callback function.
The apparatus provided in the embodiment of the present application may implement the method embodiment, and specific implementation principles and technical effects thereof may be referred to the method embodiment, which is not described herein again.
Fig. 7 is a schematic structural diagram of an interface parameter and response data modification apparatus provided in the present application, and as shown in fig. 7, the apparatus of this embodiment is based on the apparatus shown in fig. 5, and further, the processing module may include: a second receiving unit 133 and a second determining unit 134, wherein,
the second receiving unit 133 is configured to receive modified response data submitted by the user through the second callback function;
the second determining unit 134 is configured to determine that the second callback function is triggered.
The apparatus provided in the embodiment of the present application may implement the method embodiment, and specific implementation principles and technical effects thereof may be referred to the method embodiment, which is not described herein again.
Fig. 8 is a schematic diagram of a hardware structure of an electronic device provided in the present application. As shown in fig. 8, the electronic device 20 of the present embodiment may include: a memory 21 and a processor 22;
a memory 21 for storing a computer program;
a processor 22 for executing the computer program stored in the memory to implement the interface parameter and response data modification method in the above-described embodiments. Reference may be made in particular to the description relating to the method embodiments described above.
Alternatively, the memory 21 may be separate or integrated with the processor 22.
When the memory 21 is a device separate from the processor 22, the electronic device 20 may further include:
a bus 23 for connecting the memory 21 and the processor 22.
Optionally, this embodiment further includes: a communication interface 24, the communication interface 24 being connectable to the processor 22 via a bus 23. The processor 22 may control the communication interface 23 to implement the above-described receiving and transmitting functions of the electronic device 20.
The electronic device provided by this embodiment can be used to execute the above method, and its implementation manner and technical effect are similar, and this embodiment is not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of modules is only one logical division, and other divisions may be realized in practice, for example, a plurality of modules may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
Modules described as separate parts may or may not be physically separate, and parts displayed as modules 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 modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing unit, or each module may exist alone physically, or two or more modules are integrated into one unit. The unit formed by the modules can be realized in a hardware form, and can also be realized in a form of hardware and a software functional unit.
The integrated module implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present application.
It should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise a high-speed RAM memory, and may further comprise a non-volatile storage NVM, such as at least one disk memory, and may also be a usb disk, a removable hard disk, a read-only memory, a magnetic or optical disk, etc.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The computer-readable storage medium may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (12)

1. A method for modifying interface parameters and response data, comprising:
when detecting that a browser sends an interface request, intercepting interface parameters carried by the interface request;
if the interface address corresponding to the interface request is determined to be the same as the interface address of a preset interface, displaying the interface parameters and an interface for a user to modify the interface parameters;
determining that the first callback function is triggered, and sending the modified interface parameters to a server;
after response data which are sent by a server and correspond to the modified interface parameters are received, intercepting the response data;
displaying the response data and an interface for a user to modify the response data;
and determining that the second callback function is triggered, and displaying a corresponding view page according to the modified response data.
2. The method of claim 1, further comprising:
and storing the corresponding relation among the interface address of the preset interface, the interface parameter of the preset interface and the first callback function.
3. The method of claim 2, wherein determining that the first callback function is triggered comprises:
and receiving the modified interface parameters submitted by the user through the first callback function, and determining that the first callback function is triggered.
4. The method of claim 1, further comprising:
and storing the corresponding relation between the response data and the second callback function.
5. The method of claim 4, wherein said determining that the second callback function is triggered comprises:
and receiving the modified response data submitted by the user through the second callback function, and determining that the second callback function is triggered.
6. An interface parameter and response data modification apparatus, comprising:
the first interception module is used for intercepting interface parameters carried by an interface request when the browser is detected to send the interface request;
the display module is used for displaying the interface parameters and an interface for modifying the interface parameters by a user when determining that the interface address corresponding to the interface request is the same as the interface address of a preset interface;
a processing module for determining that a first callback function is triggered;
the sending module is used for sending the modified interface parameters to the server;
the second interception module is used for intercepting response data which is sent by the server and corresponds to the modified interface parameters;
the display module is further configured to: displaying the response data and an interface for a user to modify the response data;
the processing module is further configured to: determining that a second callback function is triggered;
the display module is further configured to: and displaying the corresponding view page according to the modified response data.
7. The apparatus of claim 6, wherein the processing module is further configured to:
and storing the corresponding relation among the interface address of the preset interface, the interface parameter of the preset interface and the first callback function.
8. The apparatus of claim 7, wherein the processing module comprises:
the first receiving unit is used for receiving the modified interface parameters submitted by the user through the first callback function;
a first determining unit, configured to determine that the first callback function is triggered.
9. The apparatus of claim 7, wherein the processing module is further configured to:
and storing the corresponding relation between the response data and the second callback function.
10. The apparatus of claim 9, wherein the processing module comprises:
the second receiving unit is used for receiving the modified response data submitted by the user through the second callback function;
a second determining unit, configured to determine that the second callback function is triggered.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the interface parameter and response data modification method of any one of claims 1 to 5.
12. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the interface parameter and response data modification method of any of claims 1-5 via execution of the executable instructions.
CN201911086679.XA 2019-11-08 2019-11-08 Interface parameter and response data modification method and device Pending CN110851208A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911086679.XA CN110851208A (en) 2019-11-08 2019-11-08 Interface parameter and response data modification method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911086679.XA CN110851208A (en) 2019-11-08 2019-11-08 Interface parameter and response data modification method and device

Publications (1)

Publication Number Publication Date
CN110851208A true CN110851208A (en) 2020-02-28

Family

ID=69600009

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911086679.XA Pending CN110851208A (en) 2019-11-08 2019-11-08 Interface parameter and response data modification method and device

Country Status (1)

Country Link
CN (1) CN110851208A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111985186A (en) * 2020-08-26 2020-11-24 平安国际智慧城市科技股份有限公司 Dictionary entry conversion method, API gateway system, equipment and storage medium
CN113572824A (en) * 2021-07-07 2021-10-29 北京奇艺世纪科技有限公司 Dynamic updating method and device for timeout duration, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101291335A (en) * 2008-06-13 2008-10-22 中兴通讯股份有限公司 Method and apparatus for acquiring dynamic data of server based on browser
US9336123B1 (en) * 2012-02-14 2016-05-10 Cadence Design Systems, Inc. Method and system for automatically establishing a component description format (CDF) debugging environment
CN107294808A (en) * 2017-07-05 2017-10-24 网易(杭州)网络有限公司 The methods, devices and systems of interface testing
CN108255730A (en) * 2018-01-23 2018-07-06 平安普惠企业管理有限公司 Software interface test approach, test equipment, storage medium and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101291335A (en) * 2008-06-13 2008-10-22 中兴通讯股份有限公司 Method and apparatus for acquiring dynamic data of server based on browser
US9336123B1 (en) * 2012-02-14 2016-05-10 Cadence Design Systems, Inc. Method and system for automatically establishing a component description format (CDF) debugging environment
CN107294808A (en) * 2017-07-05 2017-10-24 网易(杭州)网络有限公司 The methods, devices and systems of interface testing
CN108255730A (en) * 2018-01-23 2018-07-06 平安普惠企业管理有限公司 Software interface test approach, test equipment, storage medium and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
中国IT培训工程编委会: "《AutoCAD 2002入门与进阶》", 30 April 2002, 珠海出版社 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111985186A (en) * 2020-08-26 2020-11-24 平安国际智慧城市科技股份有限公司 Dictionary entry conversion method, API gateway system, equipment and storage medium
CN113572824A (en) * 2021-07-07 2021-10-29 北京奇艺世纪科技有限公司 Dynamic updating method and device for timeout duration, electronic equipment and storage medium
CN113572824B (en) * 2021-07-07 2023-01-10 北京奇艺世纪科技有限公司 Dynamic updating method and device for timeout duration, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US20140013429A1 (en) Method for processing an operating application program and device for the same
CN114257551A (en) Distributed current limiting method and system and storage medium
CN103108320A (en) Method and system for monitoring application program of mobile device
CN110851208A (en) Interface parameter and response data modification method and device
CN109660422B (en) Network card bandwidth testing method, device, terminal and storage medium based on multiple processes
KR20130008340A (en) Web-based system and method for sharing testing devices
CN111858296A (en) Interface test method, device, equipment and storage medium
CN111338628B (en) Component rendering method and device
CN111061448A (en) Log information display method and device, electronic equipment and storage medium
CN108509228B (en) Page loading method, terminal equipment and computer readable storage medium
US11836693B2 (en) Subscription processing method, device, electronic device and readable storage medium
CN109274656B (en) Interface parameter decryption method and device, computer equipment and storage medium
CN105809027B (en) Permission control method and device for application program
CN112631949B (en) Debugging method and device, computer equipment and storage medium
CN110334537B (en) Information processing method and device and server
CN112818336A (en) Data access method, data access device and computer readable storage medium
CN107220543B (en) Method and device for processing service request of mobile terminal
CN112612550A (en) File configuration method and device
CN114443460A (en) Operating environment switching method, device, equipment and storage medium
CN111459258A (en) Power consumption management method and device, electronic equipment and medium
CN113138918B (en) Debugging method applied to terminal with multiple systems, terminal and storage medium
CN111352802A (en) Monitoring processing method, device, equipment and storage medium of network bus
CN111008375B (en) Data protection method and device
CN111464688A (en) Working mode switching method and device
CN109284157A (en) Method, apparatus, equipment and the computer readable storage medium for playing frame is automatically closed

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200228

RJ01 Rejection of invention patent application after publication