CN111143149A - Request data playback method and device, computer equipment and storage medium - Google Patents

Request data playback method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111143149A
CN111143149A CN201911352017.2A CN201911352017A CN111143149A CN 111143149 A CN111143149 A CN 111143149A CN 201911352017 A CN201911352017 A CN 201911352017A CN 111143149 A CN111143149 A CN 111143149A
Authority
CN
China
Prior art keywords
request
interface test
interface
parameters
header
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.)
Granted
Application number
CN201911352017.2A
Other languages
Chinese (zh)
Other versions
CN111143149B (en
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.)
Shenzhen Qianhai Huanrong Lianyi Information Technology Service Co Ltd
Original Assignee
Shenzhen Qianhai Huanrong Lianyi Information Technology Service Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Qianhai Huanrong Lianyi Information Technology Service Co Ltd filed Critical Shenzhen Qianhai Huanrong Lianyi Information Technology Service Co Ltd
Priority to CN201911352017.2A priority Critical patent/CN111143149B/en
Publication of CN111143149A publication Critical patent/CN111143149A/en
Application granted granted Critical
Publication of CN111143149B publication Critical patent/CN111143149B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing

Abstract

The embodiment of the invention provides a method and a device for requesting data to be displayed back, computer equipment and a storage medium. Wherein the method comprises the following steps: sending an interface test request to a server, wherein the interface test request comprises a request header and request parameters; receiving an interface test result returned by a server, and extracting a request header and request parameters of the interface test request from the interface test result, wherein the interface test result comprises the request header and the request parameters of the interface test request; and displaying the request head and the request parameters of the interface test request in an interface test interface of the terminal. The embodiment of the invention can realize that the request head and the request parameters of the interface test request are displayed in the interface test interface of the terminal, thereby facilitating the tester to check the request head and the request parameters of the interface test request and greatly improving the test efficiency of the tester.

Description

Request data playback method and device, computer equipment and storage medium
Technical Field
The invention relates to the technical field of internet, in particular to a method and a device for requesting data to be displayed back, computer equipment and a storage medium.
Background
In the existing interface test platform, no matter the test of a single interface or the collective test, only the echo of a response data header and a body exists.
However, for the analysis of the returned result, such as the information error of the originating request, the network reason or other reasons, it is usually necessary to check whether the parameter information (request header and request parameters) of the originating request is correctly input, and it is necessary to manually query the request header and request parameters of the request according to the existing method, which results in extremely inefficient analysis.
Disclosure of Invention
The embodiment of the invention provides a request data redisplay method, a request data redisplay device, computer equipment and a storage medium, and aims to solve the problem that parameter information of an initiating request cannot be quickly checked in the prior art.
In a first aspect, an embodiment of the present invention provides a method for requesting data to be displayed back, including:
sending an interface test request to a server, wherein the interface test request comprises a request header and request parameters;
receiving an interface test result returned by a server, and extracting a request header and request parameters of the interface test request from the interface test result, wherein the interface test result comprises the request header and the request parameters of the interface test request;
and displaying the request head and the request parameters of the interface test request in an interface test interface of the terminal.
A further technical solution is that, the server assigns a request header and a request parameter of the interface test request to a variable of the interface test request, and the extracting the request header and the request parameter of the interface test request from the interface test result includes:
and extracting a request header and request parameters of the interface test request from the variable.
A further technical solution is that a response board is arranged in an interface test interface of the terminal, and the displaying of the request header and the request parameters of the interface test request in the interface test interface of the terminal includes:
a request plate is newly added in a response plate of an interface test interface of the terminal;
and displaying a request header and request parameters of the interface test request in the request plate.
A further technical solution is that the displaying the request header and the request parameters of the interface test request in the interface test interface of the terminal includes:
adding a plate or a page in an interface test interface of the terminal;
and displaying a request head and request parameters of the interface test request in a plate or a page newly added to an interface test interface of the terminal.
A further technical solution is that the displaying the request header and the request parameters of the interface test request in the request plate includes:
and displaying a request header and request parameters of the interface test request in a JSON format in the request plate.
In a second aspect, an embodiment of the present invention further provides a device for requesting data to be displayed back, including:
the system comprises a sending unit, a receiving unit and a processing unit, wherein the sending unit is used for sending an interface test request to a server, and the interface test request comprises a request header and request parameters;
the first extraction unit is used for receiving an interface test result returned by a server and extracting a request header and request parameters of the interface test request from the interface test result, wherein the interface test result comprises the request header and the request parameters of the interface test request;
and the first display unit is used for displaying the request head and the request parameters of the interface test request in an interface test interface of the terminal.
A further technical solution is that the server assigns a request header and a request parameter of the interface test request to a variable of the interface test request, and the first extracting unit includes:
and the second extraction unit is used for extracting the request header and the request parameters of the interface test request from the variable.
The further technical scheme is that a response plate is arranged in an interface test interface of the terminal, and the first display unit comprises:
a first adding unit, configured to add a request board block in a response board block of an interface test interface of a terminal;
and the second display unit is used for displaying the request head and the request parameters of the interface test request in the request plate.
The further technical scheme is that the first display unit comprises:
the second adding unit is used for adding a plate or a page in the interface test interface of the terminal;
and the third display unit is used for displaying the request head and the request parameters of the interface test request in a plate or a page newly added to the interface test interface of the terminal.
The further technical scheme is that the second display unit comprises:
and the fourth display unit is used for displaying the request head and the request parameters of the interface test request in a JSON format in the request plate.
In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the above method when executing the computer program.
In a fourth aspect, the present invention also provides a computer-readable storage medium, which stores a computer program, and the computer program can implement the above method when being executed by a processor.
The embodiment of the invention provides a method and a device for requesting data to be displayed back, computer equipment and a storage medium. Wherein the method comprises the following steps: sending an interface test request to a server, wherein the interface test request comprises a request header and request parameters; receiving an interface test result returned by a server, and extracting a request header and request parameters of the interface test request from the interface test result, wherein the interface test result comprises the request header and the request parameters of the interface test request; and displaying the request head and the request parameters of the interface test request in an interface test interface of the terminal. The embodiment of the invention can realize that the request head and the request parameters of the interface test request are displayed in the interface test interface of the terminal, thereby facilitating the tester to check the request head and the request parameters of the interface test request and greatly improving the test efficiency of the tester.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of a request data playback method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for requesting data to be displayed back according to an embodiment of the present invention;
FIG. 3 is a sub-flowchart illustrating a method for requesting data to be displayed back according to an embodiment of the present invention;
FIG. 4 is a sub-flowchart illustrating a method for requesting data to be displayed back according to an embodiment of the present invention;
FIG. 5 is a block diagram illustrating an exemplary apparatus for requesting data to be displayed back according to an embodiment of the present invention;
FIG. 6 is a schematic block diagram of a first extraction unit of a request data playback device according to an embodiment of the present invention;
FIG. 7 is a schematic block diagram of a first display unit of a request data playback device according to an embodiment of the present invention;
FIG. 8 is a schematic block diagram of a first display unit of a request data playback device according to another embodiment of the present invention;
fig. 9 is a schematic block diagram of a second display unit of the request data playback device according to the embodiment of the present invention;
fig. 10 is a schematic block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. 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 invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Referring to fig. 1-2, fig. 1 is a schematic view illustrating an application scenario of a request data playback method according to an embodiment of the present invention. Fig. 2 is a schematic flow chart of a request data display method according to an embodiment of the present invention. The request data playback method is applied to the terminal 10. The terminal 10 sends an interface test request to the server 20, wherein the interface test request comprises a request header and request parameters; the terminal 10 receives an interface test result returned by the server 20, and extracts a request header and request parameters of the interface test request from the interface test result, wherein the interface test result includes the request header and the request parameters of the interface test request; the terminal 10 displays the request header and the request parameters of the interface test request in the interface test interface of the terminal 10.
Fig. 2 is a flowchart illustrating a request data playback method according to an embodiment of the present invention. As shown, the method includes the following steps S1-S3.
And S1, sending an interface test request to the server, wherein the interface test request comprises a request header and request parameters.
In specific implementation, the terminal sends an interface test request to the server. The interface test request includes a request header and request parameters.
S2, receiving an interface test result returned by the server, and extracting a request header and request parameters of the interface test request from the interface test result, wherein the interface test result comprises the request header and the request parameters of the interface test request.
In specific implementation, the server adds a request header and request parameters of the interface test request to the interface test result returned to the terminal. And the terminal receives the interface test result returned by the server and extracts the request head and the request parameters of the interface test request from the interface test result returned by the server.
In one embodiment, the server assigns a request header and request parameters of the interface test request in a variable of the interface test request.
The step of extracting the request header and the request parameters of the interface test request from the interface test result specifically comprises the following steps: and extracting a request header and request parameters of the interface test request from the variable.
In the specific implementation, the data (namely, the interface test result) returned by the server to the terminal is given in the variable. Specifically, the server newly defines a variable corresponding to the request header and the request parameter of the interface test request, and assigns the request header and the request parameter of the interface test request to the variable. The terminal correspondingly extracts the request head and the request parameters of the interface test request from the variable.
And S3, displaying the request header and the request parameters of the interface test request in the interface test interface of the terminal.
In specific implementation, the terminal displays the request head and the request parameters of the interface test request in an interface test interface of the terminal, so that a tester can conveniently check the request head and the request parameters of the interface test request, and the test efficiency of the tester is greatly improved. The interface test interface refers to an interface of software for interface test displayed on the terminal.
Referring to fig. 3, in an embodiment, a response board is disposed in the interface test interface of the terminal. The Response board, namely Response TAB, is used for displaying the test result of the interface.
The step of displaying the request header and the request parameters of the interface test request in the interface test interface of the terminal specifically includes the following steps S31-S32.
And S31, adding a request board in the response board of the interface test interface of the terminal.
In specific implementation, a request board is newly added in a response board of an interface test interface of the terminal. And the request plate, namely, RequestTAB, is used for displaying a request header and request parameters of the interface test request.
And S32, displaying the request header and the request parameters of the interface test request in the request plate.
In a specific implementation, a request header and request parameters of the interface test request are displayed in the request plate. The test result, the request head and the request parameters of the interface test request are displayed in the same plate, so that the tester can compare and check more intuitively, and the test efficiency of the tester is further improved.
In an embodiment, the displaying, in the request board block, the request header and the request parameters of the interface test request in the above steps specifically includes the following steps: and displaying a request header and request parameters of the interface test request in a JSON format in the request plate.
In specific implementation, a request header and request parameters of the interface test request are displayed in a JSON format in the request plate. The JSON format can more visually display the request head and the request parameters of the interface test request, so that testers can efficiently look up the request head and the request parameters, and the working efficiency of the testers is greatly improved.
It should be noted that JSON (JSON Object Notation) is a lightweight data exchange format.
Referring to fig. 4, in an embodiment, the displaying the request header and the request parameters of the interface test request in the interface test interface of the terminal in the above steps specifically includes the following steps S41-S42.
And S41, adding a board or a page in the interface test interface of the terminal.
In specific implementation, a board or a page is newly added in an interface test interface of the terminal.
And S42, displaying the request head and the request parameters of the interface test request in a board or a page newly added to the interface test interface of the terminal.
In specific implementation, a request header and request parameters of the interface test request are displayed in a board or a page newly added to an interface test interface of the terminal. Specifically, a request header and request parameters of the interface test request are displayed in a JSON format in a newly added board or page of an interface test interface of the terminal.
By applying the technical scheme of the embodiment of the invention, an interface test request is sent to a server, wherein the interface test request comprises a request head and request parameters; receiving an interface test result returned by a server, and extracting a request header and request parameters of the interface test request from the interface test result, wherein the interface test result comprises the request header and the request parameters of the interface test request; and displaying the request head and the request parameters of the interface test request in an interface test interface of the terminal, so that a tester can conveniently check the request head and the request parameters of the interface test request, and the test efficiency of the tester is greatly improved.
Fig. 5 is a schematic block diagram of a request data playback device 40 according to an embodiment of the present invention. As shown in fig. 5, the present invention further provides a request data playback device 40 corresponding to the above request data playback method. The requested data playback device 40 includes a unit for executing the requested data playback method, and the requested data playback device 40 may be configured in a desktop computer, a tablet computer, a portable computer, or the like. Specifically, referring to fig. 5, the request data playback device 40 includes a sending unit 41, a first extracting unit 42, and a first displaying unit 43.
A sending unit 41, configured to send an interface test request to a server, where the interface test request includes a request header and a request parameter.
The first extracting unit 42 is configured to receive an interface test result returned by the server, and extract a request header and request parameters of the interface test request from the interface test result, where the interface test result includes the request header and the request parameters of the interface test request.
And a first display unit 43, configured to display a request header and request parameters of the interface test request in an interface test interface of the terminal.
In an embodiment, the server assigns the request header and the request parameter of the interface test request to a variable of the interface test request, as shown in fig. 6, the first extracting unit 42 includes a second extracting unit 421.
A second extracting unit 421, configured to extract a request header and a request parameter of the interface test request from the variable.
In an embodiment, as shown in fig. 7, a response board is disposed in the interface test interface of the terminal, and the first display unit 43 includes a first adding unit 431 and a second display unit 432.
A first adding unit 431, configured to add a request tile in a response tile of an interface test interface of the terminal.
A second display unit 432, configured to display the request header and the request parameters of the interface test request in the request plate.
In one embodiment, as shown in fig. 8, the first display unit 43 includes a second adding unit 433 and a third display unit 434.
The second adding unit 433 is configured to add a new board or page in the interface test interface of the terminal.
And a third display unit 434, configured to display a request header and request parameters of the interface test request in a board or a page that is newly added to the interface test interface of the terminal.
In an embodiment, as shown in fig. 9, the second display unit 432 includes a fourth display unit 4321.
A fourth display unit 4321, configured to display a request header and request parameters of the interface test request in a JSON format in the request tile.
It should be noted that, as can be clearly understood by those skilled in the art, the specific implementation process of the request data display device 40 and each unit may refer to the corresponding description in the foregoing method embodiment, and for convenience and brevity of description, no further description is provided herein.
The request data playback device 40 can be implemented in the form of a computer program that can be run on a computer apparatus as shown in fig. 10.
Referring to fig. 10, fig. 10 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 500 may be a terminal or a server, where the terminal may be an electronic device with a communication function, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, and a wearable device. The server may be an independent server or a server cluster composed of a plurality of servers.
Referring to fig. 10, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer program 5032, when executed, causes the processor 502 to perform a method for requesting data to be displayed back.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503, and when the computer program 5032 is executed by the processor 502, the processor 502 can be enabled to execute a method for requesting data to be displayed back.
The network interface 505 is used for network communication with other devices. Those skilled in the art will appreciate that the configuration shown in fig. 10 is a block diagram of only a portion of the configuration relevant to the present teachings and is not intended to limit the computing device 500 to which the present teachings may be applied, and that a particular computing device 500 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
Wherein the processor 502 is configured to run the computer program 5032 stored in the memory to implement the following steps:
sending an interface test request to a server, wherein the interface test request comprises a request header and request parameters;
receiving an interface test result returned by a server, and extracting a request header and request parameters of the interface test request from the interface test result, wherein the interface test result comprises the request header and the request parameters of the interface test request;
and displaying the request head and the request parameters of the interface test request in an interface test interface of the terminal.
In an embodiment, the server assigns a request header and a request parameter of the interface test request to a variable of the interface test request, and when the processor 502 implements the step of extracting the request header and the request parameter of the interface test request from the interface test result, the following steps are specifically implemented:
and extracting a request header and request parameters of the interface test request from the variable.
In an embodiment, a response board is disposed in the interface test interface of the terminal, and when the processor 502 implements the step of displaying the request header and the request parameter of the interface test request in the interface test interface of the terminal, the following steps are specifically implemented:
a request plate is newly added in a response plate of an interface test interface of the terminal;
and displaying a request header and request parameters of the interface test request in the request plate.
In an embodiment, when implementing the step of displaying the request header and the request parameter of the interface test request in the interface test interface of the terminal, the processor 502 specifically implements the following steps:
adding a plate or a page in an interface test interface of the terminal;
and displaying a request head and request parameters of the interface test request in a plate or a page newly added to an interface test interface of the terminal.
In an embodiment, when the processor 502 implements the step of displaying the request header and the request parameter of the interface test request in the request board, the following steps are specifically implemented:
and displaying a request header and request parameters of the interface test request in a JSON format in the request plate.
It should be understood that, in the embodiment of the present Application, the Processor 502 may be a Central Processing Unit (CPU), and the Processor 502 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable gate arrays (FPGAs) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be understood by those skilled in the art that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program instructing associated hardware. The computer program may be stored in a storage medium, which is a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program. The computer program, when executed by a processor, causes the processor to perform the steps of:
sending an interface test request to a server, wherein the interface test request comprises a request header and request parameters;
receiving an interface test result returned by a server, and extracting a request header and request parameters of the interface test request from the interface test result, wherein the interface test result comprises the request header and the request parameters of the interface test request;
and displaying the request head and the request parameters of the interface test request in an interface test interface of the terminal.
In an embodiment, the server assigns a request header and a request parameter of the interface test request to a variable of the interface test request, and when the processor executes the computer program to implement the step of extracting the request header and the request parameter of the interface test request from the interface test result, the following steps are specifically implemented:
and extracting a request header and request parameters of the interface test request from the variable.
In an embodiment, a response board is disposed in an interface test interface of the terminal, and when the processor executes the computer program to implement the step of displaying the request header and the request parameter of the interface test request in the interface test interface of the terminal, the following steps are specifically implemented:
a request plate is newly added in a response plate of an interface test interface of the terminal;
and displaying a request header and request parameters of the interface test request in the request plate.
In an embodiment, when the processor executes the computer program to implement the step of displaying the request header and the request parameter of the interface test request in the interface test interface of the terminal, the following steps are specifically implemented:
adding a plate or a page in an interface test interface of the terminal;
and displaying a request head and request parameters of the interface test request in a plate or a page newly added to an interface test interface of the terminal.
In an embodiment, when the processor executes the computer program to implement the step of displaying the request header and the request parameters of the interface test request in the request board, the following steps are specifically implemented:
and displaying a request header and request parameters of the interface test request in a JSON format in the request plate.
The storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, which can store various computer readable storage media.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. 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.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, various elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be merged, divided and deleted according to actual needs. In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, while the invention has been described with respect to the above-described embodiments, it will be understood that the invention is not limited thereto but may be embodied with various modifications and changes.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method for requesting data to be displayed back, comprising:
sending an interface test request to a server, wherein the interface test request comprises a request header and request parameters;
receiving an interface test result returned by a server, and extracting a request header and request parameters of the interface test request from the interface test result, wherein the interface test result comprises the request header and the request parameters of the interface test request;
and displaying the request head and the request parameters of the interface test request in an interface test interface of the terminal.
2. The method according to claim 1, wherein the server assigns a request header and request parameters of the interface test request to a variable of the interface test request, and the extracting the request header and request parameters of the interface test request from the interface test result comprises:
and extracting a request header and request parameters of the interface test request from the variable.
3. The method for displaying back the request data according to claim 1, wherein a response board is disposed in an interface test interface of the terminal, and the displaying the request header and the request parameters of the interface test request in the interface test interface of the terminal comprises:
a request plate is newly added in a response plate of an interface test interface of the terminal;
and displaying a request header and request parameters of the interface test request in the request plate.
4. The method for displaying back the request data according to claim 1, wherein the displaying the request header and the request parameters of the interface test request in the interface test interface of the terminal comprises:
adding a plate or a page in an interface test interface of the terminal;
and displaying a request head and request parameters of the interface test request in a plate or a page newly added to an interface test interface of the terminal.
5. The method as claimed in claim 3, wherein said displaying the request header and the request parameters of the interface test request in the request plate comprises:
and displaying a request header and request parameters of the interface test request in a JSON format in the request plate.
6. A request data playback apparatus, comprising:
the system comprises a sending unit, a receiving unit and a processing unit, wherein the sending unit is used for sending an interface test request to a server, and the interface test request comprises a request header and request parameters;
the first extraction unit is used for receiving an interface test result returned by a server and extracting a request header and request parameters of the interface test request from the interface test result, wherein the interface test result comprises the request header and the request parameters of the interface test request;
and the first display unit is used for displaying the request head and the request parameters of the interface test request in an interface test interface of the terminal.
7. The device according to claim 6, wherein the server assigns a request header and request parameters of the interface test request to a variable of the interface test request, and the first extracting unit comprises:
and the second extraction unit is used for extracting the request header and the request parameters of the interface test request from the variable.
8. The device for displaying back the requested data according to claim 6, wherein a response board is disposed in the interface test interface of the terminal, and the first display unit comprises:
a first adding unit, configured to add a request board block in a response board block of an interface test interface of a terminal;
and the second display unit is used for displaying the request head and the request parameters of the interface test request in the request plate.
9. A computer arrangement, characterized in that the computer arrangement comprises a memory having stored thereon a computer program and a processor implementing the method according to any of claims 1-5 when executing the computer program.
10. A computer-readable storage medium, characterized in that the storage medium stores a computer program which, when being executed by a processor, is adapted to carry out the method according to any one of claims 1-5.
CN201911352017.2A 2019-12-25 2019-12-25 Method and device for back displaying request data, computer equipment and storage medium Active CN111143149B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911352017.2A CN111143149B (en) 2019-12-25 2019-12-25 Method and device for back displaying request data, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911352017.2A CN111143149B (en) 2019-12-25 2019-12-25 Method and device for back displaying request data, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111143149A true CN111143149A (en) 2020-05-12
CN111143149B CN111143149B (en) 2024-03-19

Family

ID=70519952

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911352017.2A Active CN111143149B (en) 2019-12-25 2019-12-25 Method and device for back displaying request data, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111143149B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090116396A1 (en) * 2003-04-28 2009-05-07 Alcatel-Lucent Usa Inc. OAM echo messaging to verify a service-based network distribution path
CN103412817A (en) * 2013-08-14 2013-11-27 迈普通信技术股份有限公司 Automation testing script offline debugging method and system
CN105897497A (en) * 2015-07-20 2016-08-24 广州华多网络科技有限公司 Interface test method, application device and service device
CN108009269A (en) * 2017-12-15 2018-05-08 北京小米移动软件有限公司 Show the method, apparatus of page data
CN108459850A (en) * 2017-11-21 2018-08-28 广州视源电子科技股份有限公司 Generate the method, apparatus and system of test script
CN110581838A (en) * 2019-07-15 2019-12-17 平安普惠企业管理有限公司 Method for continuously requesting data stream, electronic device and computer equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090116396A1 (en) * 2003-04-28 2009-05-07 Alcatel-Lucent Usa Inc. OAM echo messaging to verify a service-based network distribution path
CN103412817A (en) * 2013-08-14 2013-11-27 迈普通信技术股份有限公司 Automation testing script offline debugging method and system
CN105897497A (en) * 2015-07-20 2016-08-24 广州华多网络科技有限公司 Interface test method, application device and service device
CN108459850A (en) * 2017-11-21 2018-08-28 广州视源电子科技股份有限公司 Generate the method, apparatus and system of test script
CN108009269A (en) * 2017-12-15 2018-05-08 北京小米移动软件有限公司 Show the method, apparatus of page data
CN110581838A (en) * 2019-07-15 2019-12-17 平安普惠企业管理有限公司 Method for continuously requesting data stream, electronic device and computer equipment

Also Published As

Publication number Publication date
CN111143149B (en) 2024-03-19

Similar Documents

Publication Publication Date Title
WO2019153598A1 (en) Customer risk level management method, server and computer readable storage medium
CN112055064A (en) Data synchronization method, device, equipment and storage medium
CN109491733B (en) Interface display method based on visualization and related equipment
CN111857674A (en) Business product generation method and device, electronic equipment and readable storage medium
US20150156132A1 (en) Determining Available User Interface Functionality Based on Backend Server Load
CN109828902B (en) Interface parameter determining method and device, electronic equipment and storage medium
CN111143149A (en) Request data playback method and device, computer equipment and storage medium
CN111611290A (en) Address quick positioning method and device, computer equipment and storage medium
CN113254932B (en) Application risk detection method and device, electronic equipment and medium
CN114020813A (en) Data comparison method, device and equipment based on Hash algorithm and storage medium
CN112542244B (en) Auxiliary information generation method, related device and computer program product
CN111796978B (en) Interface detection method, device, system, equipment and storage medium
CN110727639B (en) Fragment data reading method, electronic device, system and medium
CN110677353B (en) Data access method and system
CN110874730B (en) Information processing method, information processing device and mobile terminal
CN110727537A (en) Method and device for uniformly processing response message, computer equipment and storage medium
CN112732547A (en) Service testing method and device, storage medium and electronic equipment
CN111369375A (en) Social relationship determination method, device, equipment and storage medium
CN111367898A (en) Data processing method, device, system, electronic equipment and storage medium
US20190147351A1 (en) Method and system for automatically building intelligent assistant
US20170139796A1 (en) Bus interface card detection system and method for detecting bus interface card
CN112749073B (en) Service testing method and device, storage medium and electronic equipment
US8935343B2 (en) Instant messaging network resource validation
CN116339895A (en) Medical record data display method and device, electronic equipment and storage medium
CN110363401B (en) Integrated viscosity evaluation method and device, computer equipment and 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
GR01 Patent grant
GR01 Patent grant