A data processing method, device, electronic device and storage medium

By obtaining query index and middleware database query, the third page response is generated to reproduce application exceptions, which solves the problem of difficult reproducibility in the existing technology and improves development efficiency and user experience.

CN115934529BActive Publication Date: 2025-07-04BEIJING 58 INFORMATION TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211538734.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-02
Publication Date
2025-07-04
Estimated Expiration
2042-12-02

AI Technical Summary

Technical Problem

In the prior art, application exceptions are difficult to reproduce, resulting in developers being unable to solve them in time, affecting the user experience.

Method used

By obtaining the query index in the terminal, using middleware to query page requests and responses from the database, the third page response is generated to reproduce the exception, and combined with the interaction between the test instructions and the data server, the exception is reproduced and positioned.

Benefits of technology

Simplifies the exception reproduction process, improves the work efficiency of developers, and ensures that the application does not show any exceptions in the page.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115934529B_ABST
    Figure CN115934529B_ABST
Patent Text Reader

Abstract

The present invention provides a data processing method, apparatus, electronic device, and storage medium. By using the page data of this page in the third page response to render this page, it is possible to reproduce the "abnormal content presented on this page after rendering this page using the page data of this page in the first page response". Subsequently, testers can observe the abnormal content presented on this page reproduced using the page data of this page in the first page response, and by comparing the abnormal content with the page data of this page in the third page response, it is possible to specifically locate the data of the content that causes the abnormality in the page data of this page in the third page response, facilitating subsequent developers to optimize the application program and / or data server for the data of the content that causes the abnormality, and avoiding the abnormal content being presented on this page again in the future for the application program.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular, to a data processing method, apparatus, electronic device, and storage medium. Background Art

[0002] With the rapid development of technology, each major manufacturer will develop its own application programs for the general users to use, so as to provide services to the general users through the application programs.

[0003] The developers of the manufacturer can develop application programs. After the application programs are developed, they can be handed over to the testers for testing. For example, the testers can test the application programs, and when it is determined that there are no abnormalities in the application programs, the manufacturer can release the application programs externally so that the general users can use the application programs.

[0004] During the process of the testers testing the application programs, an important test scenario is to test whether the content in the page displayed by the application programs is normal. For example, whether the content layout is normal and whether the pictures are displayed normally, etc.

[0005] In order to test whether the content in the page displayed by the application programs is normal, the testers can install a packet capture tool (such as charles, etc.) on the test terminal, which can capture the page requests sent by the test terminal to the data server and capture the page responses returned by the data server to the test terminal according to the page requests. Then, the test terminal can render the page according to the page data in the page response for the testers to view the display effect of the displayed page.

[0006] If it is found that the content in the displayed page is abnormal, the testers can invite the developers to come to the test terminal to view the abnormalities in the content of the page and analyze the reasons for the abnormalities by comparing the page requests and page responses captured by the packet capture tool.

[0007] However, the inventor found that after the packet capture tool is closed, the page requests and page responses captured by the packet capture tool are automatically deleted. In this way, if the developers have more important things to do at this time and cannot come to the test terminal to view the abnormalities in the content of the page and the testers need to close the packet capture tool in the test terminal, then the developers will not be able to "come to the test terminal to view the abnormalities in the content of the page and analyze the reasons for the abnormalities by comparing the page requests and page responses captured by the packet capture tool" later. They can only wait until the testers discover the abnormality again and then request the developers to come and analyze.

[0008] However, the inventor found that sometimes the abnormalities that occur are occasional abnormalities, and these abnormalities are often unable to be reproduced.

[0009] In this case, if the developer has more important things to do and cannot come to the test terminal to view the abnormal content of the page, and the tester turns off the packet capture tool in the test terminal, it is difficult to reproduce the abnormality, which may lead to the inability to resolve the abnormality, and may affect the normal use of the application by the majority of users.

[0010] Therefore, the inventors found that how to reproduce the anomaly is a technical problem that needs to be solved urgently. Summary of the invention

[0011] The present application illustrates a data processing method, device, electronic device and storage medium.

[0012] In a first aspect, the present application shows a data processing method, which is applied to a terminal, and the method includes:

[0013] In the case of receiving a manually input indication operation for indicating that an abnormality exists in a page, obtaining a query index, the query index being for a page request of the page and a first page response of the page; the page request is sent by the terminal to the middleware and forwarded by the middleware to the data server; the first page response is returned by the data server to the middleware according to the page request and forwarded by the middleware to the terminal; the page is rendered by the terminal using page data of the page in the first page response;

[0014] Sending the query index to the middleware; so that the middleware queries the page request and the first page response from the database according to the query index; the page request in the database is stored in the database when the middleware obtains the page request sent by the terminal, and the first page response in the database is stored in the database when the middleware obtains the first page response returned by the data service end;

[0015] Receive the page request and the first page response returned by the middleware;

[0016] Sending a test instruction carrying at least the page request to the middleware, so that the middleware sends the page request to the data server according to the test instruction, receives a second page response returned by the data server according to the page request, and replaces the page data of the page in the second page response with the page data of the page in the first page response to obtain a third page response;

[0017] Receive the third page response returned by the middleware;

[0018] The page is rendered using the page data of the page in the third page response.

[0019] In an alternative implementation, after receiving the page request and the first page response returned by the receiving middleware, the following steps are further included:

[0020] Display at least the summary information queried from the database, where the summary information is about the page request and the first page response;

[0021] In the case of receiving a test operation input according to the summary information, then execute the step of sending a test instruction carrying at least the page request to the middleware.

[0022] In an alternative implementation, the obtaining the query index includes:

[0023] Receive the query index input manually.

[0024] In an alternative implementation, the query index includes but is not limited to: multiple different types of index items, and the multiple different types of index items include but are not limited to: the terminal identifier of the terminal, the time period where the current moment is located, the host address of the data server, the page identifier of the page; the type of multimedia information in the content of the page and the type of characters in the page;

[0025] The receiving the query index input manually includes:

[0026] Display the query page corresponding to the middleware, where the query page includes filling positions corresponding to multiple different types of index items respectively;

[0027] Receive the index items filled in by the user in at least one filling position in the query page;

[0028] Generate the query index according to the index items filled in by the user in at least one filling position in the query page.

[0029] In an alternative implementation, the obtaining the query index includes:

[0030] Parse the data in the page request and the first page response;

[0031] Obtain the query index according to the parsed data.

[0032] In an alternative implementation, after rendering the page with the page data in the third page response, the following steps are further included:

[0033] Receive a selection operation on the content with anomalies in the page;

[0034] According to the selected operation, calibrate the data corresponding to the abnormal content in the page data of the page in the third page response;

[0035] Capture an image of the page;

[0036] Send the page data of the page with the abnormal content calibrated and the captured image of the page to the development terminal of the developer.

[0037] In a second aspect, the present application discloses a data processing method applied to middleware. The method includes:

[0038] Receive a query index sent by a terminal. The query index is for a page request of a page and a first page response of the page. The query index is sent by the terminal to the middleware when using the page data of the page in the first page response to render the page and receiving a manually input indication operation for indicating that there is an abnormality in the page. The page request is sent by the terminal to the middleware and the middleware forwards it to the data server. The first page response is returned by the data server to the middleware according to the page request and the middleware forwards it to the terminal;

[0039] Query the page request and the first page response from the database according to the query index;

[0040] Send the page request and the first page response to the terminal;

[0041] Receive a test instruction sent by the terminal that at least carries the page request;

[0042] Send the page request to the data server according to the test instruction;

[0043] Receive a second page response returned by the data server according to the page request;

[0044] Use the page data of the page in the first page response to replace the page data of the page in the second page response to obtain a third page response;

[0045] Send the third page response to the terminal; so that the terminal uses the page data of the page in the third page response to render the page.

[0046] In an optional implementation manner, the querying the page request and the first page response from the database according to the query index includes:

[0047] Generate a template according to a pre-created query statement to generate a query statement carrying the query index;

[0048] Query the page request and the first page response from the database according to the query statement.

[0049] In a third aspect, the present application discloses a data processing device applied to a terminal. The device includes:

[0050] An acquisition module, configured to obtain a query index when receiving an indication operation manually input to indicate that there is an abnormality in the page. The query index is for the page request of the page and the first page response of the page. The page request is sent by the terminal to the middleware and the middleware forwards it to the data server. The first page response is returned by the data server to the middleware according to the page request and the middleware forwards it to the terminal. The page is rendered by the terminal using the page data in the first page response.

[0051] A first sending module, configured to send the query index to the middleware, so that the middleware queries the page request and the first page response from the database according to the query index. The page request in the database is stored in the database when the middleware obtains the page request sent by the terminal, and the first page response in the database is stored in the database when the middleware obtains the first page response returned by the data server.

[0052] A first receiving module, configured to receive the page request and the first page response returned by the middleware.

[0053] A second sending module, configured to send a test instruction carrying at least the page request to the middleware, so that the middleware sends the page request to the data server according to the test instruction, receives a second page response returned by the data server according to the page request, and replaces the page data of the page in the second page response with the page data of the page in the first page response to obtain a third page response.

[0054] A second receiving module, configured to receive the third page response returned by the middleware.

[0055] A first rendering module, configured to render the page using the page data of the page in the third page response.

[0056] In an optional implementation manner, the device further includes:

[0057] A display module, configured to display at least the summary information queried from the database. The summary information is the summary information about the page request and the first page response.

[0058] The second sending module is further configured to: when receiving a test operation input according to the summary information, send a test instruction carrying at least the page request to the middleware again.

[0059] In an alternative implementation, the obtaining module includes:

[0060] A receiving unit, configured to receive the query index input manually.

[0061] In an alternative implementation, the query index includes, but is not limited to: a plurality of different types of index items, and the plurality of different types of index items include, but are not limited to: the terminal identifier of the terminal, the time period where the current moment is located, the host address of the data server, the page identifier of the page; the type of multimedia information in the content of the page and the type of characters in the page;

[0062] The receiving unit includes:

[0063] A display subunit, configured to display a query page corresponding to the middleware, where the query page includes filling positions corresponding to a plurality of different types of index items respectively;

[0064] A receiving subunit, configured to receive the index items filled in by a human on at least one filling position in the query page;

[0065] A generating subunit, configured to generate the query index according to the index items filled in on at least one filling position in the query page.

[0066] In an alternative implementation, the obtaining module includes:

[0067] An analysis unit, configured to analyze the data in the page request and the first page response;

[0068] An obtaining unit, configured to obtain the query index according to the analyzed data.

[0069] In an alternative implementation, the device further includes:

[0070] A third receiving module, configured to receive a selection operation on the content with an abnormality in the page;

[0071] A calibration module, configured to calibrate the data corresponding to the abnormal content in the page data of the page in the third page response according to the selection operation;

[0072] An intercepting module, configured to intercept an image of the page;

[0073] A third sending module, configured to send the page data of the page with the abnormal content calibrated and the intercepted image of the page to the development terminal of the developer.

[0074] In a fourth aspect, the present application discloses a data processing device applied to middleware. The device includes:

[0075] A fourth receiving module, configured to receive a query index sent by a terminal. The query index is for a page request of a page and a first page response of the page. The query index is sent by the terminal to the middleware when using the page data of the page in the first page response to render the page and receiving an indication operation manually input to indicate that there is an abnormality in the page. The page request is sent by the terminal to the middleware and the middleware forwards it to the data server. The first page response is returned by the data server to the middleware according to the page request and the middleware forwards it to the terminal.

[0076] A query module, configured to query the page request and the first page response from a database according to the query index.

[0077] A fourth sending module, configured to send the page request and the first page response to the terminal.

[0078] A fifth receiving module, configured to receive a test instruction sent by the terminal and at least carry the page request.

[0079] A fifth sending module, configured to send the page request to the data server according to the test instruction.

[0080] A sixth receiving module, configured to receive a second page response returned by the data server according to the page request.

[0081] A replacement module, configured to use the page data of the page in the first page response to replace the page data of the page in the second page response to obtain a third page response.

[0082] A sixth sending module, configured to send the third page response to the terminal, so that the terminal uses the page data of the page in the third page response to render the page.

[0083] In an optional implementation, the query module includes:

[0084] A generating unit, configured to generate a template according to a pre-created query statement and generate a query statement carrying the query index.

[0085] A query unit, configured to query the page request and the first page response from the database according to the query statement.

[0086] Fifth aspect, the present application discloses an electronic device, which includes: a processor; a memory for storing instructions executable by the processor; wherein, the processor is configured to execute the method described in any aspect.

[0087] Sixth aspect, the present application discloses a non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, enabling the electronic device to execute the method described in any aspect.

[0088] Seventh aspect, the present application discloses a computer program product, when the instructions in the computer program product are executed by a processor of an electronic device, enabling the electronic device to execute the method described in any aspect.

[0089] The technical solution provided by the present application may include the following beneficial effects:

[0090] In the present application, the page data of this page in the third page response is the same as the page data of this page in the first page response. Thus, the effect of rendering this page using the page data of this page in the third page response is often the same as the effect of rendering this page using the page data of this page in the first page response. Thus, by using the page data of this page in the third page response to render this page, it is possible to reproduce the "abnormal content presented after rendering this page using the page data of this page in the first page response". Then, testers can observe the abnormal content presented in this page reproduced using the page data of this page in the first page response, and by comparing the abnormal content with the page data of this page in the third page response, it is possible to specifically locate the data of the content that causes the abnormality in the page data of this page in the third page response, facilitating subsequent developers to optimize the application program and / or the data server for the data of the content that causes the abnormality, and avoiding the application program from presenting abnormal content in this page again.

[0091] On the other hand, after the terminal renders the page using the page data of the page in the first page response, if the tester believes that there is an abnormality in the page, the tester can input an indication operation for indicating the abnormality in the page, so that the terminal "obtains a query index, where the query index is for the page request and the first page response. Obtains a query index, where the query index is for the page request and the first page response; sends the query index to the middleware; so that the middleware queries the page request and the first page response from the database according to the query index; and receives the page request and the first page response returned by the middleware; sends a test instruction carrying at least the page request to the middleware, so that the middleware sends the page request to the data server according to the test instruction, and receives the second page response returned by the data server according to the page request, and uses the page data of this page in the first page response to replace the page data of this page in the second page response to obtain a third page response; receives the third page response returned by the middleware; uses the page data of this page in the third page response to render this page", thereby realizing the reproduction of "the abnormal content presented by this page after rendering this page using the page data of this page in the first page response", achieving one-key reproduction, which is simple and easy for testers to operate and get started with. BRIEF DESCRIPTION OF THE DRAWINGS

[0092] Figure 1 is a flowchart of the steps of a data processing method of the present application.

[0093] Figure 2 is a flowchart of the steps of a data processing method of the present application.

[0094] Figure 3 is a block diagram of the structure of a data processing device of the present application.

[0095] Figure 4 is a block diagram of the structure of a data processing device of the present application.

[0096] Figure 5 is a block diagram of an electronic device of the present application.

[0097] Figure 6 is a block diagram of an electronic device of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0098] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0099] Refer to Figure 1, which shows a test system of the present application. The test system includes: a terminal 01, a middleware 02, and a data server 03.

[0100] The terminal is communicatively connected to the middleware, and the middleware is communicatively connected to the data server.

[0101] The terminal can be a terminal used by a staff member. For example, the terminal can be a test terminal used by a tester, etc. The test terminal can include a mobile phone, a tablet computer, a laptop computer, etc.

[0102] For example, in a manufacturer, there are developers and testers. The developers have development terminals. The developers can develop application programs using the development terminals. After the application programs are developed, the application programs can be handed over to the testers for testing. For example, the testers can use the test terminals to test the application programs, and when it is determined that there are no abnormalities in the application programs, the manufacturer can release the application programs to the public so that the general users can use the application programs.

[0103] The data server can provide page data (such as page data of the manufacturer's page, etc.), and provide data support for the user to access the page through the application program, etc.

[0104] Referring to Figure 2 , which shows a step flowchart of a data processing method of the present application. This method is applied to Figure 1 the test system shown in

[0105] In step S101, the terminal sends a page request to the middleware so that the middleware sends a page request to the data server.

[0106] In the present application, a tester can use the terminal to test whether the page displayed by the application program is normal.

[0107] When the tester needs to use the terminal to test whether the page displayed by the application program is normal, the tester can control the terminal to run the application program, and then enter a page request in the application program (for example, click a certain button on the home page of the application program to expect to enter a certain page of the application program, etc.). The page request is used to access the page. One of the functions of the page request is to obtain the page data of the page so that the terminal can use the page data of the page to render the page, and then the tester can view the content displayed on the page.

[0108] After the terminal obtains the page request, it can send the page request to the middleware.

[0109] The page request can include an HTTP (Hyper Text Transfer Protocol) request, etc.

[0110] In step S102, the middleware receives the page request, sends the page request to the data server, and stores the page request in the database.

[0111] In this application, the database can be the database of the middleware, and the middleware can directly access the database.

[0112] Among them, the middleware stores the page request in the database to facilitate directly calling the page request from the database when the page request is needed subsequently.

[0113] In step S103, the middleware receives the first page response returned by the data server according to the page request, sends the first page response to the terminal, and stores the first page response in the database.

[0114] In this application, after receiving the page request, the data server can obtain the page data of the page according to the page request, generate the first page response including the page data of the page, and send the first page response to the middleware. After receiving the first page response returned by the server according to the page request, the middleware can send the first page response to the terminal and store the first page response in the database.

[0115] Among them, the middleware stores the first page response in the database to facilitate directly calling the first page response from the database when the first page response is needed subsequently.

[0116] In addition to including the page data of the page (including data for rendering on the page, etc.), the first page response can also include other required data headers, such as the status line, general information header, response header, entity header, and message body, etc.

[0117] The first page response can include an HTTP response, etc.

[0118] In step S104, the terminal receives the first page response.

[0119] In step S105, the terminal uses the page data of the page in the first page response to render the page.

[0120] In this way, the tester can view the content in the page on the terminal and determine whether there are any abnormalities in the content of the page, such as whether the page is typeset incorrectly and whether the pictures on the page are displayed, etc.

[0121] In the case where it is determined that there are abnormalities in the content of the page, the tester can input an indication operation in the terminal to indicate that there are abnormalities in the page.

[0122] The indication operation may include: the operation of entering the query page corresponding to the middleware in the terminal using a browser, etc.

[0123] In step S106, when receiving an indication operation manually input and used to indicate that there is an abnormality in the page, the terminal obtains a query index, and the query index is for the page request and the first page response.

[0124] In an embodiment of the present application, after the tester inputs an indication operation used to indicate that there is an abnormality in the page in the terminal, the tester may also input a query index, and the query index is for the page request and the first page response. In this way, the terminal can receive the query index manually input.

[0125] For example, in one example, the query index includes but is not limited to: multiple different types of index items, and the multiple different types of index items include but are not limited to: the terminal identifier of the terminal, the time period where the current moment is located, the host address of the data server, the page identifier of the page, the type of multimedia information in the content of the page, and the type of characters in the page.

[0126] In this way, when receiving the query index manually input, the query page corresponding to the middleware can be displayed, and the query page includes filling positions corresponding to multiple different types of index items respectively. The tester can fill in index items in at least one of the filling positions corresponding to multiple different types of index items respectively. Then the terminal can receive the index items filled in by the tester (such as testers, etc.) in at least one of the filling positions in the query page. After that, a query index can be generated according to the index items filled in at least one of the filling positions in the query page.

[0127] Among them, the more index items are filled in, the more specific and detailed the query index is, and further the higher the accuracy of the middleware in querying the page request and the first page response in the database.

[0128] In another embodiment of the present application, after the tester inputs an indication operation used to indicate that there is an abnormality in the page in the terminal, the terminal can obtain a query index, and the query index is for the page request and the first page response. For example, the data in the page request and the first page response can be parsed. For example, the data in the page request and the first page response may include the terminal identifier of the terminal, the generation time of the page request, the generation time of the first page response, the host address of the data server, the page identifier of the page, the type of multimedia information in the content of the page, and the type of characters in the page, etc. Then a query index can be obtained according to the parsed data. In this way, there is no need to manually input index items, which can simplify manual operations and reduce labor costs.

[0129] In step S107, the terminal sends the query index to the middleware.

[0130] In step S108, the middleware receives a query index.

[0131] In step S109, the middleware queries the page request and the first page response from the database according to the query index.

[0132] Among them, the page request in the database is stored in the database when the middleware obtains the page request sent by the terminal, and the first page response in the database is stored in the database when the middleware obtains the first page response returned by the data server.

[0133] In this step, a template can be generated according to a pre-created query statement, a query statement carrying the query index can be generated, and then the page request and the first page response can be queried from the database according to the query statement.

[0134] By pre-creating a query statement generation template (which has a once-and-for-all effect), the middleware can automatically generate query statements, avoiding the need to manually create query statements in real time, thereby reducing the technical requirements for testers, lowering the testing threshold, and reducing labor costs.

[0135] In step S110, the middleware sends the page request and the first page response to the terminal.

[0136] In step S111, the terminal receives the page request and the first page response.

[0137] In step S112, the terminal sends a test instruction carrying at least the page request to the middleware.

[0138] The test instruction may include a mock test instruction, etc.

[0139] In an embodiment of the present application, in actual situations, among the data queried by the middleware from the database according to the query index, in addition to including the page request and the first page response, there may also be other page requests and the page responses corresponding to the other page requests.

[0140] Thus, after receiving the page request and the first page response returned by the middleware, the summary information about "the page request and the first page response" at least queried from the database can be displayed for the tester to view the summary information about "the page request and the first page response". In addition, the summary information about "the other page requests and the page responses corresponding to the other page requests" can also be displayed for the tester to view the summary information about "the other page requests and the page responses corresponding to the other page requests".

[0141] In one example, the summary information about "page request and the first page response" and the summary information about "other page requests and the page responses corresponding to the other page requests" can be displayed in a list form on the query page corresponding to the middleware, and the test button corresponding to the summary information about "page request and the first page response" can be displayed on the query page corresponding to the middleware, and also, the test button corresponding to the summary information about "other page requests and the page responses corresponding to the other page requests" can be displayed.

[0142] After viewing each summary information, the tester can select which page requests corresponding to the summary information need to be tested according to the requirements, such as mock testing, etc.

[0143] In one example, assuming that the tester needs to test the page request corresponding to the first page response, then the test operation on the summary information about "page request and the first page response" can be input, and then the terminal executes step S112. The test operation includes click operations on the test button corresponding to the summary information about "page request and the first page response", etc.

[0144] In step S113, the middleware receives a test instruction carrying at least a page request.

[0145] In step S114, the middleware sends the page request to the data server according to the test instruction.

[0146] In step S115, the middleware receives a second page response returned by the data server according to the page request.

[0147] In this application, after receiving the page request, the data server can obtain the page data of the page according to the page request, generate a second page response including the page data of the page, and send the second page response to the middleware. After receiving the second page response returned by the server according to the page request, the middleware can send the second page response to the terminal.

[0148] Among them, the second data response corresponding to the data request sent to the data server according to the test instruction (returned by the data server) may not be stored in the database to save the storage resources of the database.

[0149] In addition to including the page data of the page (including the data used for rendering on the page, etc.), the second page response can also include other required data headers, such as the status line, general information header, response header, entity header, and message body, etc.

[0150] The second page response can include an HTTP response, etc.

[0151] Among them, the page data of this page in the second page response may not be exactly the same as the page data of this page in the first page response. In this case, the effect of rendering this page using the page data of this page in the second page response is often different from the effect of rendering this page using the page data of this page in the first page response. Thus, by rendering this page using the page data of this page in the second page response, it is impossible to reproduce the "abnormal content presented on this page after rendering this page using the page data of this page in the first page response".

[0152] Thus, in order to be able to reproduce the "abnormal content presented on this page after rendering this page using the page data of this page in the first page response", further, step S116 can also be executed.

[0153] In step S116, the middleware replaces the page data of this page in the second page response with the page data of this page in the first page response to obtain a third page response.

[0154] Among them, for the middleware, the page request sent by the middleware to the data server according to the test instruction can also carry the first page response. Thus, after the middleware receives the second page response returned by the data server, the middleware can obtain the page data of this page in the first page response in the test instruction and use the page data of this page in the first page response to replace the page data of this page in the second page response to obtain a third page response.

[0155] Or, the middleware has already queried the page request and the first page response from the database according to the query index in step S109. Thus, after the middleware receives the second page response returned by the data server, the middleware can obtain the page data of this page in the first page response obtained in step S109 and use the page data of this page in the first page response to replace the page data of this page in the second page response to obtain a third page response.

[0156] In step S117, the middleware sends the third page response to the terminal.

[0157] In step S118, the terminal receives the third page response.

[0158] In step S119, the terminal uses the page data of this page in the third page response to render this page.

[0159] In this application, the page data of this page in the third page response is the same as the page data of this page in the first page response. Thus, the effect of rendering this page using the page data of this page in the third page response is often the same as the effect of rendering this page using the page data of this page in the first page response. Thus, by rendering this page using the page data of this page in the third page response, it is possible to reproduce the "abnormal content presented on this page after rendering this page using the page data of this page in the first page response". Then, the tester can observe the abnormal content presented on this page reproduced using the page data of this page in the first page response, and by comparing the abnormal content with the page data of this page in the third page response, it is possible to specifically locate the data of the content that causes the abnormality in the page data of this page in the third page response, facilitating subsequent developers to optimize the application program and / or the data server for the data of the content that causes the abnormality, and avoiding the abnormal content being presented on this page again in the application program later.

[0160] On the other hand, after the terminal renders this page using the page data of the page in the first page response, if the tester believes that there is an abnormality in this page, the tester can input an indication operation for indicating that there is an abnormality in this page, so that the terminal "obtains a query index, where the query index is for the page request and the first page response. Obtains a query index, where the query index is for the page request and the first page response; sends the query index to the middleware; so that the middleware queries the page request and the first page response from the database according to the query index; and receives the page request and the first page response returned by the middleware; sends a test instruction carrying at least the page request to the middleware, so that the middleware sends the page request to the data server according to the test instruction, and receives the second page response returned by the data server according to the page request, and replaces the page data of this page in the second page response with the page data of this page in the first page response to obtain a third page response; receives the third page response returned by the middleware; and renders this page using the page data of this page in the third page response", thereby realizing the reproduction of the "abnormal content presented on this page after rendering this page using the page data of this page in the first page response", achieving one-key reproduction, which is simple and easy for the tester to operate and get started.

[0161] Further, in another embodiment, after the terminal obtains the query index in step S106, the query index can also be sent to the development terminal of the developer. So that the development terminal of the developer executes steps S107 to S119. Avoiding the developer obtaining the query index manually can reduce the workload of the developer.

[0162] Further, in another embodiment, after rendering the page using the page data in the third page response, the tester can also input a selection operation on the abnormal content of the page on the terminal. In this way, the terminal can receive the selection operation on the content with abnormalities in the page, and then, according to the selection operation, mark the data corresponding to the abnormal content in the page data of this page in the third page response, and capture an image of the page, and then send the page data of the page with the marked abnormal content and the captured image of the page to the developer's development terminal.

[0163] So that the developer can analyze the cause of the abnormality based on the page data of the page with the marked abnormal content and the captured image of the page, and optimize the application program and / or the data server accordingly, to avoid the abnormal content being presented again in this page by the application program later.

[0164] It should be noted that for the method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that this application is not limited by the described action sequence, because according to this application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all optional embodiments, and the actions involved are not necessarily required by this application.

[0165] Referring to Figure 3 , a structural block diagram of a data processing device according to this application is shown, which is applied to a terminal. The device includes:

[0166] An obtaining module 11, configured to obtain a query index when receiving a manually input indication operation indicating that there are abnormalities in the page. The query index is for the page request of the page and the first page response of the page. The page request is sent by the terminal to the middleware and the middleware forwards it to the data server. The first page response is returned by the data server to the middleware according to the page request and the middleware forwards it to the terminal. The page is rendered by the terminal using the page data in the first page response.

[0167] A first sending module 12, configured to send the query index to the middleware, so that the middleware queries the page request and the first page response from the database according to the query index. The page request in the database is stored in the database when the middleware receives the page request sent by the terminal, and the first page response in the database is stored in the database when the middleware receives the first page response returned by the data server.

[0168] The first receiving module 13 is configured to receive the page request and the first page response returned by the middleware;

[0169] The second sending module 14 is configured to send a test instruction carrying at least the page request to the middleware, so that the middleware sends the page request to the data server according to the test instruction, receives a second page response returned by the data server according to the page request, and replaces the page data of the page in the second page response with the page data of the page in the first page response to obtain a third page response;

[0170] The second receiving module 15 is configured to receive the third page response returned by the middleware;

[0171] The first rendering module 16 is configured to render the page using the page data of the page in the third page response.

[0172] In an optional implementation manner, the device further includes:

[0173] A display module, configured to display at least the summary information queried from the database, where the summary information is the summary information about the page request and the first page response;

[0174] The second sending module is further configured to: when receiving a test operation input according to the summary information, send a test instruction carrying at least the page request to the middleware again.

[0175] In an optional implementation manner, the obtaining module includes:

[0176] A receiving unit, configured to receive the query index input manually.

[0177] In an optional implementation manner, the query index includes but is not limited to: multiple different types of index items, and the multiple different types of index items include but are not limited to: the terminal identifier of the terminal, the time period where the current moment is located, the host address of the data server, the page identifier of the page; the type of multimedia information in the content of the page and the type of characters in the page;

[0178] The receiving unit includes:

[0179] A display subunit, configured to display a query page corresponding to the middleware, where the query page includes filling positions corresponding to multiple different types of index items respectively;

[0180] A receiving subunit, configured to receive the index items filled in by a human on at least one filling position in the query page;

[0181] A generating subunit, configured to generate the query index according to index items filled in at least one filling position in the query page.

[0182] In an optional implementation, the obtaining module includes:

[0183] A parsing unit, configured to parse data in the page request and the first page response;

[0184] An obtaining unit, configured to obtain the query index according to the parsed data.

[0185] In an optional implementation, the apparatus further includes:

[0186] A third receiving module, configured to receive a selection operation on content with an exception in the page;

[0187] A calibration module, configured to calibrate data corresponding to the content with the exception in the page data of the page in the third page response according to the selection operation;

[0188] A capturing module, configured to capture an image of the page;

[0189] A third sending module, configured to send the page data of the page with the content with the exception calibrated and the captured image of the page to a development terminal of a developer.

[0190] In this application, the page data of the page in the third page response is the same as the page data of the page in the first page response. Thus, the effect of rendering the page using the page data of the page in the third page response is often the same as the effect of rendering the page using the page data of the page in the first page response. Thus, by rendering the page using the page data of the page in the third page response, it is possible to reproduce the "content with an exception presented on the page after rendering the page using the page data of the page in the first page response". Then, testers can observe the content with an exception presented on the page reproduced using the page data of the page in the first page response, and by comparing the content with the exception with the page data of the page in the third page response, it is possible to specifically locate the data of the content that causes the exception in the page data of the page in the third page response, which is convenient for subsequent developers to optimize the application program and / or the data server according to the data of the content that causes the exception, and avoid the content with an exception being presented on the page again in the application program.

[0191] On the other hand, after the terminal renders the page using the page data in the first page response, if the tester believes that there is an abnormality in the page, the tester can input an indication operation for indicating the abnormality in the page, so that the terminal "obtains a query index, where the query index is for the page request and the first page response. Obtain a query index, where the query index is for the page request and the first page response; send the query index to the middleware; so that the middleware queries the page request and the first page response from the database according to the query index; and receive the page request and the first page response returned by the middleware; send a test instruction carrying at least the page request to the middleware, so that the middleware sends the page request to the data server according to the test instruction, and receive a second page response returned by the data server according to the page request, and replace the page data of the page in the second page response with the page data of the page in the first page response to obtain a third page response; receive the third page response returned by the middleware; render the page using the page data of the page in the third page response", thereby realizing the reproduction of "the abnormal content presented on the page after rendering the page using the page data of the page in the first page response", achieving one-key reproduction, which is simple and easy to operate for the tester.

[0192] Refer to Figure 4 , which shows a structural block diagram of a data processing device of the present application, applied to the middleware. The device includes:

[0193] A fourth receiving module 21, configured to receive a query index sent by the terminal, where the query index is for the page request of the page and the first page response of the page. The query index is sent by the terminal to the middleware when the terminal renders the page using the page data of the page in the first page response and receives a manually input indication operation for indicating an abnormality in the page; the page request is sent by the terminal to the middleware and the middleware forwards it to the data server; the first page response is returned by the data server to the middleware according to the page request and the middleware forwards it to the terminal;

[0194] A query module 22, configured to query the page request and the first page response from the database according to the query index;

[0195] A fourth sending module 23, configured to send the page request and the first page response to the terminal;

[0196] A fifth receiving module 24, configured to receive a test instruction sent by the terminal and carrying at least the page request;

[0197] A fifth sending module 25, configured to send the page request to the data server according to the test instruction;

[0198] A sixth receiving module 26, configured to receive a second page response returned by the data server according to the page request;

[0199] A replacement module 27, configured to use the page data of the page in the first page response to replace the page data of the page in the second page response, so as to obtain a third page response;

[0200] A sixth sending module 28, configured to send the third page response to the terminal; so that the terminal uses the page data of the page in the third page response to render the page.

[0201] In an optional implementation manner, the query module includes:

[0202] A generating unit, configured to generate a template according to a pre-created query statement, and generate a query statement carrying the query index;

[0203] A query unit, configured to query the page request and the first page response from the database according to the query statement.

[0204] In this application, the page data of the page in the third page response is the same as the page data of the page in the first page response. In this way, the effect of rendering the page using the page data of the page in the third page response is often the same as the effect of rendering the page using the page data of the page in the first page response. In this way, by using the page data of the page in the third page response to render the page, it is possible to reproduce the "abnormal content presented after rendering the page using the page data of the page in the first page response". Then, the tester can observe the abnormal content presented in the page reproduced using the page data of the page in the first page response, and by comparing the abnormal content with the page data of the page in the third page response, it is possible to target the data of the content that causes the abnormality in the page data of the page in the third page response, which is convenient for subsequent developers to optimize the application program and / or the data server for the data of the content that causes the abnormality, and avoid the abnormal content being presented in the page again in the future.

[0205] On the other hand, after the terminal renders the page using the page data of the page in the first page response, if the tester believes that there is an abnormality in the page, the tester can input an indication operation for indicating the abnormality in the page, so that the terminal "obtains a query index, where the query index is for the page request and the first page response. Obtains a query index, where the query index is for the page request and the first page response; sends the query index to the middleware; so that the middleware queries the page request and the first page response from the database according to the query index; and receives the page request and the first page response returned by the middleware; sends a test instruction carrying at least the page request to the middleware, so that the middleware sends the page request to the data server according to the test instruction, and receives a second page response returned by the data server according to the page request, and uses the page data of the page in the first page response to replace the page data of the page in the second page response to obtain a third page response; receives the third page response returned by the middleware; and renders the page using the page data of the page in the third page response", thereby realizing the reproduction of "the abnormal content presented by the page after rendering the page using the page data of the page in the first page response", achieving one-key reproduction, which is simple and easy to operate for the tester.

[0206] For the apparatus embodiment, since it is basically similar to the method embodiment, the description is relatively simple. For related parts, refer to the partial description of the method embodiment.

[0207] Optionally, an embodiment of the present invention further provides an electronic device, including: a processor, a memory, and a computer program stored on the memory and executable on the processor. When the computer program is executed by the processor, it implements each process of the above data processing method embodiment and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.

[0208] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by the processor, it implements each process of the above data processing method embodiment and can achieve the same technical effect. To avoid repetition, it will not be elaborated here. Among them, the computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc, etc.

[0209] Figure 5 It is a block diagram of an electronic device 800 shown in the present application. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0210] Reference Figure 5 , the electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.

[0211] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0212] The memory 804 is configured to store various types of data to support the operation of the device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, images, videos, etc. The memory 804 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, 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, a magnetic disk, or an optical disk.

[0213] The power component 806 provides power to various components of the electronic device 800. The power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.

[0214] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can sense not only the boundaries of the touch or swipe actions, but also detect the duration and pressure associated with the touch or swipe operations. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.

[0215] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC) that is configured to receive external audio signals when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 further includes a speaker for outputting audio signals.

[0216] The I / O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which can be a keyboard, a click wheel, buttons, etc. These buttons can include, but are not limited to: a home button, a volume button, a power button, and a lock button.

[0217] The sensor component 814 includes one or more sensors for providing status assessments of various aspects of the electronic device 800. For example, the sensor component 814 can detect the on / off state of the device 800, the relative positioning of components, such as the display and keypad of the electronic device 800. The sensor component 814 can also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor component 814 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 814 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 814 can further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0218] The communication component 816 is configured to facilitate communication, either wired or wirelessly, between the electronic device 800 and other devices. The electronic device 800 may access a communication standard-based wireless network, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast operation information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0219] In an exemplary embodiment, the electronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above-described method.

[0220] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as the memory 804 including instructions that can be executed by the processor 820 of the electronic device 800 to complete the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, magnetic tape, floppy disk, and optical data storage device, among others.

[0221] Figure 6 is a block diagram of an electronic device 1900 shown in the present application. For example, the electronic device 1900 may be provided as a server.

[0222] Referring to Figure 6 , the electronic device 1900 includes a processing component 1922, which further includes one or more processors, and memory resources represented by the memory 1932 for storing instructions executable by the processing component 1922, such as application programs. The application programs stored in the memory 1932 may include one or more modules each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above-described method.

[0223] The electronic device 1900 may further include a power supply component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input / output (I / O) interface 1958. The electronic device 1900 may operate based on an operating system stored in the memory 1932, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.

[0224] It should be noted that, in this article, the term "comprising", "including" or any other variation thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the existence of additional identical elements in the process, method, article or device comprising the element.

[0225] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-described example methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions for causing a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in various embodiments of the present invention.

[0226] The embodiments of the present invention have been described above in conjunction with the accompanying drawings. However, the present invention is not limited to the above specific embodiments. The above specific embodiments are merely illustrative and not restrictive. Under the inspiration of the present invention, those of ordinary skill in the art can also make many forms without departing from the purpose of the present invention and the scope protected by the claims, and all of them belong to the protection scope of the present invention.

[0227] Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in connection with the embodiments disclosed in the embodiments of the present invention can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.

[0228] Those skilled in the art can clearly understand that for the convenience and conciseness of description, the specific working processes of the systems, devices, and units described above can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.

[0229] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces, and the indirect couplings or communication connections of the devices or units can be in electrical, mechanical, or other forms.

[0230] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0231] In addition, the functional units in the various embodiments of the present invention can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit.

[0232] If the above functions are implemented in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical discs that can store program codes.

[0233] The above is only the specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, and all should be covered by the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims

1. A data processing method, characterized in that, Applied to a terminal, the method includes: When receiving an indication operation manually input to indicate an anomaly in a page, obtain a query index, where the query index is for the page request of the page and the first page response of the page; the page request is sent by the terminal to a middleware and the middleware forwards it to a data server; the first page response is returned by the data server to the middleware according to the page request and the middleware forwards it to the terminal; the page is rendered by the terminal using the page data in the first page response. Send the query index to the middleware; so that the middleware queries the page request and the first page response from a database according to the query index; the page request in the database is stored in the database when the middleware obtains the page request sent by the terminal, and the first page response in the database is stored in the database when the middleware obtains the first page response returned by the data server. Receive the page request and the first page response returned by the middleware. Send a test instruction at least carrying the page request to the middleware, so that the middleware sends the page request to the data server according to the test instruction, receives a second page response returned by the data server according to the page request, and replaces the page data of the page in the second page response with the page data of the page in the first page response to obtain a third page response. Receive the third page response returned by the middleware. Render the page using the page data of the page in the third page response.

2. The method according to claim 1, wherein After receiving the page request and the first page response returned by the middleware, it further includes: Display the summary information at least queried from the database, where the summary information is the summary information about the page request and the first page response. When receiving a test operation input according to the summary information, then execute the step of sending a test instruction at least carrying the page request to the middleware.

3. The method according to claim 1, characterized in that, The obtaining the query index includes: Receive the query index manually input.

4. The method according to claim 3, characterized in that The query index includes but is not limited to: multiple different types of index items, and the multiple different types of index items include but are not limited to: the terminal identifier of the terminal, the time period where the current moment is located, the host address of the data server, the page identifier of the page; the type of multimedia information in the content of the page and the type of characters in the page. The receiving the query index manually input includes: Display the query page corresponding to the middleware, where the query page includes filling positions corresponding to multiple different types of index items respectively. Receive the index items filled in by a person in at least one filling position in the query page. Generate the query index according to the index items filled in at least one filling position in the query page.

5. The method according to claim 1, characterized in that The obtaining the query index includes: Parse the data in the page request and the first page response. Obtain the query index according to the parsed data.

6. The method according to claim 1, characterized in that, After rendering the page using the page data of the page in the third page response, the following steps are further included: Receiving a selection operation on the content with anomalies in the page; Calibrating the data corresponding to the anomalous content in the page data of the page in the third page response according to the selection operation; Capturing an image of the page; Sending the page data of the page with the anomalous content calibrated and the captured image of the page to the development terminal of the developer.

7. A data processing method, characterized in that, Applied to middleware, the method includes: Receiving a query index sent by the terminal, the query index being for the page request of the page and the first page response of the page. The query index is sent by the terminal to the middleware when using the page data of the page in the first page response to render the page and receiving an indication operation manually input to indicate that there are anomalies in the page. The page request is sent by the terminal to the middleware and the middleware forwards it to the data server. The first page response is returned by the data server to the middleware according to the page request and the middleware forwards it to the terminal; Querying the page request and the first page response from the database according to the query index; Sending the page request and the first page response to the terminal; Receiving a test instruction sent by the terminal that at least carries the page request; Sending the page request to the data server according to the test instruction; Receiving a second page response returned by the data server according to the page request; Replacing the page data of the page in the second page response with the page data of the page in the first page response to obtain a third page response; Sending the third page response to the terminal; so that the terminal uses the page data of the page in the third page response to render the page.

8. The method according to claim 7, wherein The querying the page request and the first page response from the database according to the query index includes: Generating a template according to a pre-created query statement to generate a query statement carrying the query index; Querying the page request and the first page response from the database according to the query statement.

9. A data processing device, characterized in that, Applied to the terminal, the device includes: An acquisition module, configured to acquire a query index when receiving an indication operation manually input to indicate that there are anomalies in the page. The query index is for the page request of the page and the first page response of the page. The page request is sent by the terminal to the middleware and the middleware forwards it to the data server. The first page response is returned by the data server to the middleware according to the page request and the middleware forwards it to the terminal. The page is rendered by the terminal using the page data of the page in the first page response; A first sending module, configured to send the query index to the middleware, so that the middleware queries the page request and the first page response from the database according to the query index; the page request in the database is stored in the database when the middleware obtains the page request sent by the terminal, and the first page response in the database is stored in the database when the middleware obtains the first page response returned by the data server; A first receiving module, configured to receive the page request and the first page response returned by the middleware; A second sending module, configured to send a test instruction carrying at least the page request to the middleware, so that the middleware sends the page request to the data server according to the test instruction, receives a second page response returned by the data server according to the page request, and uses the page data of the page in the first page response to replace the page data of the page in the second page response to obtain a third page response; A second receiving module, configured to receive the third page response returned by the middleware; A first rendering module, configured to render the page using the page data of the page in the third page response.

10. The device according to claim 9, characterized in that, The apparatus further includes: A display module, configured to display at least the summary information queried from the database, where the summary information is the summary information about the page request and the first page response; The second sending module is further configured to: when receiving a test operation input according to the summary information, send a test instruction carrying at least the page request to the middleware again.

11. The device according to claim 9, characterized in that, The obtaining module includes: A receiving unit, configured to receive the query index input manually.

12. The device according to claim 11, characterized in that The query index includes but is not limited to: multiple different types of index items, and the multiple different types of index items include but are not limited to: the terminal identifier of the terminal, the time period where the current moment is located, the host address of the data server, and the page identifier of the page; The type of multimedia information in the content of the page and the type of characters in the page; The receiving unit includes: A display subunit, configured to display a query page corresponding to the middleware, where the query page includes filling positions corresponding to multiple different types of index items respectively; A receiving subunit, configured to receive the index items filled in by a person in at least one filling position in the query page; A generating subunit, configured to generate the query index according to the index items filled in at least one filling position in the query page.

13. The device according to claim 9, characterized in that, The obtaining module includes: An analyzing unit, configured to analyze the data in the page request and the first page response; An obtaining unit, configured to obtain the query index according to the analyzed data.

14. The device according to claim 9, characterized in that, The apparatus further includes: A third receiving module, configured to receive a selection operation on the content with an anomaly in the page; A calibration module, configured to calibrate the data corresponding to the anomalous content in the page data of the page in the third page response according to the selection operation; A capturing module, configured to capture an image of the page; A third sending module, configured to send page data of a page calibrated with abnormal content and an image of the intercepted page to the development terminal of a developer.

15. A data processing device, characterized in that, Applied to middleware, the device includes: A fourth receiving module, configured to receive a query index sent by a terminal, where the query index is for a page request of a page and a first page response of the page, and the query index is sent by the terminal to the middleware when using the page data of the page in the first page response to render the page and receiving a manual input indicating operation for indicating that there is an abnormality in the page; the page request is sent by the terminal to the middleware and the middleware forwards it to the data server; the first page response is returned by the data server to the middleware according to the page request and the middleware forwards it to the terminal; A query module, configured to query the page request and the first page response from a database according to the query index; A fourth sending module, configured to send the page request and the first page response to the terminal; A fifth receiving module, configured to receive a test instruction sent by the terminal and at least carry the page request; A fifth sending module, configured to send the page request to the data server according to the test instruction; A sixth receiving module, configured to receive a second page response returned by the data server according to the page request; A replacement module, configured to replace the page data of the page in the second page response with the page data of the page in the first page response to obtain a third page response; A sixth sending module, configured to send the third page response to the terminal; so that the terminal uses the page data of the page in the third page response to render the page.

16. The device according to claim 15, characterized in that, The query module includes: A generation unit, configured to generate a template according to a pre-created query statement and generate a query statement carrying the query index; A query unit, configured to query the page request and the first page response from the database according to the query statement.

17. An electronic device, characterized in that, Includes: A processor, a memory, and a computer program stored on the memory and executable on the processor, where when the computer program is executed by the processor, the steps of the method according to any one of claims 1 to 8 are implemented.

18. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Method and device for monitoring exception in page script file

    CN105354126A

  • Page jumping method and device

    CN113434241A