Web Page Automated Testing Method and Apparatus
Abstract
A web page automated testing method and apparatus. In the web page automated testing method, target network interaction data sent by a browser to a server is obtained using a network proxy server. Then, a web page automated testing tool validates the target network interaction data, thereby implementing validation on network interaction data between the browser or a web page and the server. A network request in the target network interaction data is validated, which improves a capability of finding a web page defect, and a response message returned by the server is validated, which improves accuracy of a web page display validation result.
Claims
exact text as granted — not AI-modified1 .- 26 . (canceled)
27 . A web page automated testing method, comprising:
obtaining, by a terminal, target network interaction data between the terminal and a server, wherein the target network interaction data comprises a network request sent by the terminal to the server, and a response message that is received by the terminal and is returned by the server, and wherein the response message is a response of the server to the network request sent by the terminal; and validating, by the terminal, the target network interaction data.
28 . The method according to claim 27 , wherein obtaining the target network interaction data comprises:
obtaining, by the terminal, specified network interaction data from network interaction data that is obtained by the terminal and is between the terminal and the server, wherein the specified network interaction data is network interaction data that comprises a filter keyword; and obtaining, by the terminal from the specified network interaction data, network interaction data that comprises a query keyword in order to obtain the target network interaction data, wherein the query keyword comprises a character of the filter keyword.
29 . The method according to claim 27 , wherein obtaining the target network interaction data comprises obtaining, by the terminal from network interaction data that is obtained by the terminal and is between the terminal and the server, network interaction data that comprises a query keyword in order to obtain the target network interaction data.
30 . The method according to claim 27 , Wherein obtaining the target network interaction data comprises:
sending, by the terminal, a filter keyword to the server, wherein the filter keyword enables the server to obtain specified network interaction data from obtained network interaction data between the terminal and the server, and wherein the specified network interaction data is network interaction data that comprises the filter keyword; sending, by the terminal, a query keyword to the server, wherein the query keyword enables the server to obtain the target network interaction data from the specified network interaction data, wherein the target network interaction data is network interaction data that comprises the query keyword, and wherein the query keyword comprises at least a character of the filter keyword; and receiving, by the terminal, the target network interaction data sent by the server.
31 . The method according to claim 27 , wherein obtaining the target network interaction data comprises:
sending, by the terminal, a query keyword to the server, wherein the query keyword enables the server to obtain the target network interaction data from obtained network interaction data between the terminal and the server, and wherein the target network interaction data is network interaction data that comprises the query keyword; and receiving, by the terminal, the target network interaction data sent by the server.
32 . A web page automated testing method, comprising:
obtaining, by a server, target network interaction data between the server and a terminal, wherein the target network interaction data comprises a network request that is received by the server and is sent by the terminal, and a response message sent by the server to the terminal, and wherein the response message is a response of the server to the network request sent by the terminal; and sending, by the server, the target network interaction data to the terminal, wherein the target network interaction data is used by the terminal to validate the target network interaction data.
33 . The method according to claim 32 , wherein obtaining the target network interaction data comprises:
receiving, by the server, a query keyword sent by the terminal; and obtaining, by the server, the target network interaction data from obtained network interaction data between the server and the terminal, wherein the target network interaction data is network interaction data that comprises the query keyword.
34 . The method according to claim 32 , wherein obtaining the target network interaction data comprises:
receiving, by the server, a filter keyword sent by the terminal; obtaining, by the server, specified network interaction data from obtained network interaction data between the server and the terminal, wherein the specified network interaction data is network interaction data that comprises the filter keyword; receiving, by the server, a query keyword sent by the terminal, wherein the query keyword comprises a character of the filter keyword; and obtaining, by the server, the target network interaction data from the specified network interaction data, wherein the target network interaction data is network interaction data that comprises the query keyword.
35 . A terminal, comprising:
a memory; and a processor coupled to the memory and configured to:
obtain target network interaction data between the terminal and a server, wherein the target network interaction data comprises a network request sent by the terminal to the server, and a response message that is received by the terminal and is returned by the server, and wherein the response message is a response of the server to the network request sent by the terminal; and
validate the target network interaction data.
36 . The terminal according to claim 35 , wherein the processor is further configured to:
obtain specified network interaction data from network interaction data that is obtained by the terminal and is between the terminal and the server, wherein the specified network interaction data is network interaction data that comprises a filter keyword; and obtain, from the specified network interaction data, network interaction data that comprises a query keyword in order to obtain the target network interaction data, wherein the query keyword comprises a character of the filter keyword.
37 . The terminal according to claim 35 , wherein the processor is further configured to obtain, from network interaction data that is obtained by the terminal and is between the terminal and the server, network interaction data that comprises a query keyword in order to obtain the target network interaction data.
38 . The terminal according to claim 35 , further comprising a transmitter connected to the processor and configured to:
send a filter keyword to the server, wherein the filter keyword enables the server to obtain specified network interaction data from obtained network interaction data between the terminal and the server, and wherein the specified network interaction data is network interaction data that comprises the filter keyword; send a query keyword to the server, wherein the query keyword enables the server to obtain the target network interaction data from the specified network interaction data, wherein the target network interaction data is network interaction data that comprises the query keyword, and wherein the query keyword comprises at least a character of the filter keyword, and wherein the terminal further comprises a receiver connected to the processor and configured to: receive the target network interaction data sent by the server; and send the target network interaction data to the processor.
39 . The to a according to claim 35 , further comprising a transmitter connected to the processor and configured to send a query keyword to the server, wherein the query keyword enables the server to obtain the target network interaction data from obtained network interaction data between the terminal and the server, wherein the target network interaction data is network interaction data that comprises the query keyword, and wherein the terminal further comprises a receiver connected to the processor and configured to:
receive the target network interaction data sent by the server; and provide the target network interaction data for the processor.Join the waitlist — get patent alerts
Track US2017277622A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.