Page testing method and device
By obtaining and analyzing the eye tracking data of the target user, combining the page response data, and determining the page test results, the problem of how to effectively test the eye tracking function is solved, and the accurate evaluation and improvement of the function in the browsing page is achieved.
Patent Information
- Application Number
- CN202411798503.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-06
- Publication Date
- 2025-03-07
AI Technical Summary
How to test the effect of eye tracking function performing in browsing pages, especially in high-end headset devices, it is difficult for the prior art to effectively evaluate the performance of this function.
By obtaining the target user's eye tracking data, determining the page object and expected response events, obtaining the page response data, and determining the page test results based on these data, thereby evaluating the execution effect of the eye tracking function.
Accurate testing of eye tracking function in the browsing page can effectively evaluate the performance and efficiency of the function and ensure the improvement of user experience.
Smart Images

Figure CN119576793A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a page testing method and device. Background Art
[0002] With the launch of various high-end head-mounted display devices, eye tracking technology has become one of the key technologies to improve user experience and interaction efficiency. High-end head-mounted display devices provide users with an unprecedented immersive experience through spatial computing technology and eye tracking functions. How to test the execution effect of the new technology of eye tracking function in browsing pages has become an urgent problem to be solved. Summary of the invention
[0003] In view of this, an embodiment of the present invention provides a page testing method and device, which can test the execution effect of an eye tracking function in browsing a page.
[0004] In a first aspect, an embodiment of the present invention provides a page testing method, comprising:
[0005] Obtaining eye tracking data of target users; wherein the target users are users who browse the target page;
[0006] In response to the eye tracking data meeting the event triggering condition, determining a target page object and an expected response event based on the eye tracking data;
[0007] Obtain page response data of the target page for the eye tracking data;
[0008] Determine the test result of the target page based on the page response data, the target page object and the expected response event.
[0009] Optionally, in response to the eye tracking data meeting the event triggering condition, determining the target page object and the expected response event according to the eye tracking data includes:
[0010] Get input data from the target user;
[0011] In response to the eye tracking data and the input data meeting the event triggering condition, a target page object and an expected response event are determined according to the eye tracking data and the input data.
[0012] Optionally, determining a test result of the target page according to the page response data, the target page object, and the expected response event includes:
[0013] In response to the page response data matching the target page object and the expected response event, determining that the test result indicates that the target page passes the test;
[0014] In response to the page response data not matching the target page object and the expected response event, it is determined that the test result indicates that the target page has failed the test.
[0015] Optionally, obtain eye tracking data of the target user, including:
[0016] Collect eyeball data of target users at multiple first time points;
[0017] Generate and save eye trajectory data of the target user according to the eye data at the first time points;
[0018] The eye tracking data of the target user is obtained from the eye tracking data of the target user.
[0019] Optionally, before obtaining the page response data of the target page for the eye tracking data, the method further includes:
[0020] Collecting page response data of the target page at multiple second time points;
[0021] According to the page response data at the plurality of second time points, page sequence data of the target page is generated and saved.
[0022] Optionally, obtaining page response data of the target page for the eye tracking data includes:
[0023] Obtain object sequence data of a target page object from the page sequence data;
[0024] Determine the tracking time point corresponding to the eye tracking data;
[0025] Determine the response time point corresponding to the tracking time point;
[0026] According to the response time point, the page response data is obtained from the object sequence data.
[0027] Optionally, in response to the eye tracking data meeting the event triggering condition, before determining the target page object and the expected response event according to the eye tracking data, the method further includes:
[0028] Determine the target page object corresponding to the eye tracking data;
[0029] Determine the trigger condition corresponding to the target page object as the event trigger condition;
[0030] Determines whether the eye tracking data meets the event triggering conditions.
[0031] In a second aspect, an embodiment of the present invention provides a page testing device, including:
[0032] A data acquisition module is used to acquire eye tracking data of a target user, wherein the target user is a user browsing a target page;
[0033] An object determination module, for determining a target page object and an expected response event according to the eye tracking data in response to the eye tracking data meeting an event triggering condition;
[0034] A response acquisition module, used to acquire page response data of a target page for eye tracking data;
[0035] The result determination module is used to determine the test result of the target page according to the page response data, the target page object and the expected response event.
[0036] In a third aspect, an embodiment of the present invention provides an electronic device, including:
[0037] one or more processors;
[0038] The storage device is used to store one or more programs. When the one or more programs are executed by one or more processors, the one or more processors implement the method of any of the above embodiments.
[0039] In a fourth aspect, an embodiment of the present invention provides a computer-readable medium having a computer program stored thereon, and when the program is executed by a processor, the method of any of the above embodiments is implemented.
[0040] In a fifth aspect, an embodiment of the present invention provides a computer program product, including a computer program, which implements the method of any of the above embodiments when the computer program is executed by a processor.
[0041] An embodiment of the above invention has the following advantages or beneficial effects: the target user is a browsing user of the target page. If the eye tracking data of the target user meets the event triggering condition, the target page object and the expected response event are determined according to the eye tracking data. The page response data of the target page for the eye tracking data is obtained, and the test result of the target page is determined according to the page response data, the target page object and the expected response event. The scheme of the embodiment of the present invention can test the execution effect of the eye tracking function in the browsing page.
[0042] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0044] Figure 1 is a schematic diagram of a process of a page testing method provided by an embodiment of the present invention;
[0045] Figure 2is a schematic diagram of a process of a page testing method provided by another embodiment of the present invention;
[0046] Figure 3 is a schematic diagram of a process of a page testing method provided by another embodiment of the present invention;
[0047] Figure 4 is a structural schematic diagram of a page testing device provided by an embodiment of the present invention;
[0048] Figure 5 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0049] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0050] It should be noted that the acquisition, storage, use, and processing of data in the technical solutions of the embodiments of the present invention are in compliance with the relevant provisions of national laws and regulations.
[0051] Figure 1 FIG. 1 is a schematic diagram of a process of a page testing method provided by an embodiment of the present invention. Figure 1 As shown, the method includes:
[0052] Step 101: Obtain eye tracking data of a target user; wherein the target user is a user browsing a target page.
[0053] When the target user browses the target page, the eye tracking data of the target user is obtained. The eye tracking data can be obtained by an eye tracking device. The eye tracking data includes eye data at multiple consecutive time points. The eye data may include: pupil position, gaze vector of each eye, and gaze point coordinates, etc.
[0054] Step 102: In response to the eye tracking data meeting the event triggering condition, a target page object and an expected response event are determined according to the eye tracking data.
[0055] There may be multiple page objects in the target page. The target page object is one of the multiple page objects in the target page. The target page object may be the page object that the target user is tracking or focusing on. The page object may be: a picture, text, icon, link, button, text box, drop-down box, etc. The response event corresponds to the target page object. For example, if the target page object is a picture, the response event may be: zooming in on the target page object, zooming out on the target page object, displaying the detailed page corresponding to the target page object, etc.
[0056] According to business needs, multiple page objects in the target page are determined. For each page object, the corresponding response event is determined. For each page object and its corresponding response event and trigger condition, a mapping relationship is set. The mapping relationship includes: page object, response event and trigger condition. The trigger condition may include various restrictions on eye tracking data.
[0057] In one embodiment of the present invention, the trigger conditions in each mapping relationship are obtained to determine whether there is a trigger condition that the eye tracking data meets. If so, it is determined that the eye tracking data meets the event trigger condition, and the trigger condition that the eye tracking data meets is determined as the event trigger condition; the mapping relationship corresponding to the event trigger condition is determined as the target mapping relationship; the page object corresponding to the target mapping relationship is determined as the target page object; and the response event corresponding to the target mapping relationship is determined as the expected response event.
[0058] In one embodiment of the present invention, in response to eye tracking data meeting an event trigger condition, before determining a target page object and an expected response event based on the eye tracking data, it also includes: determining the target page object corresponding to the eye tracking data; determining the trigger condition corresponding to the target page object as an event trigger condition; and determining whether the eye tracking data meets the event trigger condition.
[0059] According to the eye tracking data, the page object browsed or gazed by the target user is determined, and the page object browsed or gazed by the target user is determined as the target page object. At least one mapping relationship corresponding to the target page object is determined. The trigger conditions in each mapping relationship corresponding to the target page object are determined to obtain at least one trigger condition. Among the at least one trigger condition, if there is a trigger condition that the eye tracking data meets, the trigger condition that the eye tracking data meets is determined as an event trigger condition; the mapping relationship corresponding to the event trigger condition is determined as a target mapping relationship; the page object corresponding to the target mapping relationship is determined as the target page object; and the response event corresponding to the target mapping relationship is determined as an expected response event.
[0060] Step 103: Obtain page response data of the target page for the eye tracking data.
[0061] The page response data may include: monitoring event data, response event data, etc. Determine the tracking time point corresponding to the eye tracking data; determine the response time point corresponding to the tracking time point. Obtain the monitoring event data and / or response event data of the target page at the response time point as the page response data.
[0062] The monitoring event data is the relevant data of the monitoring event of the target page at the response time point. The monitoring event data may correspond to: visual trigger events, user click events, mouse movement events, keyboard key press events, etc.
[0063] The response event data is the data related to the response event of the target page at the response time point. The response event data may correspond to: link opening event, page opening event, item moving event, link closing event, page closing event, etc.
[0064] Step 104: Determine the test result of the target page according to the page response data, the target page object and the expected response event.
[0065] If the page response data matches the target page object and the expected response event, the test result is determined to indicate that the target page passes the test. If the page response data does not match the target page object and the expected response event, the test result is determined to indicate that the target page fails the test.
[0066] Whether the page response data matches the target page object and the expected response event can be determined based on the test case. The test case is written based on business requirements. For example, the business requires that if the user stares at the target page object for more than 3 seconds, the link corresponding to the target page object will be opened. When the page response data corresponds to the listening event of the target page object, the page response data indicates that the visual trigger event of the target page object has been listened, and it can be determined that the page response data matches the target page object and the expected response event.
[0067] Similarly, when the page response data corresponds to a response event of a target page object, the page response data indicates that a link open event of the target page object has occurred or been called, and it can be determined that the page response data matches the target page object and the expected response event.
[0068] In the scheme of the embodiment of the present invention, the target user is a browsing user of the target page. If the eye tracking data of the target user meets the event triggering condition, the target page object and the expected response event are determined according to the eye tracking data. The page response data of the target page for the eye tracking data is obtained, and the test result of the target page is determined according to the response data, the target page object and the expected response event. The scheme of the embodiment of the present invention can accurately test the display effect of the eye tracking function in the browsing page.
[0069] Figure 2 FIG. 1 is a schematic diagram of a process of a page testing method provided by another embodiment of the present invention. Figure 2 As shown, the method includes:
[0070] Step 201: Obtain eye tracking data of a target user; wherein the target user is a user browsing a target page.
[0071] Step 202: Obtain input data of the target user.
[0072] The input data can be obtained in a variety of ways. For example, the input data can be obtained by analyzing the gesture information of the target user. The input data can also be obtained by analyzing the voice information of the target user. The input data can also be obtained by analyzing the mouse operation information or keyboard input information of the target user.
[0073] Step 203: In response to the eye tracking data and the input data meeting the event triggering condition, a target page object and an expected response event are determined according to the eye tracking data and the input data.
[0074] According to business needs, multiple page objects in the target page are determined. For each page object, the corresponding response event is determined. For each page object and its corresponding response event and trigger condition, a mapping relationship is set. The mapping relationship includes: page object, response event and trigger condition. The trigger condition may include various restrictions on eye tracking data and input data.
[0075] In one embodiment of the present invention, in response to eye tracking data and input data meeting an event triggering condition, before determining a target page object and an expected response event based on the eye tracking data and input data, the method further includes: determining the target page object corresponding to the eye tracking data; determining the triggering condition corresponding to the target page object as an event triggering condition; and determining whether the eye tracking data and input data meet the event triggering condition.
[0076] According to the eye tracking data, the page object browsed or gazed by the target user is determined, and the page object browsed or gazed by the target user is determined as the target page object. At least one mapping relationship corresponding to the target page object is determined. The trigger conditions in each mapping relationship corresponding to the target page object are determined to obtain at least one trigger condition. In at least one trigger condition, if there is a trigger condition that the eye tracking data and the input data meet, the trigger condition that the eye tracking data and the input data meet is determined as an event trigger condition, and the mapping relationship corresponding to the event trigger condition is determined as a target mapping relationship; the page object corresponding to the target mapping relationship is determined as the target page object; and the response event corresponding to the target mapping relationship is determined as an expected response event.
[0077] Step 204: Obtain page response data of the target page for the eye tracking data.
[0078] Step 205: Determine the test result of the target page according to the page response data, the target page object and the expected response event.
[0079] If the page response data matches the target page object and the expected response event, the test result is determined to indicate that the target page passes the test. If the page response data does not match the target page object and the expected response event, the test result is determined to indicate that the target page fails the test.
[0080] When the eye tracking data is combined with the input data and meets the event triggering condition, the target page object and the expected response event are determined according to the eye tracking data and the input data, and then the test result of the target page is determined according to the page response data, the target page object and the expected response event. The embodiment of the present invention provides a solution that can test the eye tracking function more accurately by combining the input data of the target user.
[0081] Figure 3 FIG. 1 is a schematic diagram of a process of a page testing method provided by another embodiment of the present invention. Figure 3 As shown, the method includes:
[0082] Step 301: Collect eyeball data of a target user at multiple first time points; generate and save eyeball trajectory data of the target user based on the eyeball data at multiple first time points.
[0083] The eyeball data of the target user at multiple first time points can be collected by the eyeball tracking device. The eyeball data of the multiple first time points are sequentially combined according to the order of the first time points to generate and save the eyeball trajectory data of the target user.
[0084] Step 302: Collect page response data of the target page at multiple second time points; generate and save page sequence data of the target page according to the page response data at the multiple second time points.
[0085] Generate page response data groups of each page response data of the target page respectively. Combine the page response data groups of multiple second time points in sequence according to the sequence of the second time points to generate and save the page sequence data of the target page.
[0086] Step 303: Obtain the target user's eye tracking data from the target user's eye trajectory data.
[0087] From the eyeball trajectory data of the target user, the eyeball trajectory data of a preset duration is obtained as the eyeball tracking data of the target user. The page objects corresponding to each eyeball data in the eyeball trajectory data can also be determined respectively, and the eyeball trajectory data can be disassembled into multiple eyeball tracking data according to the page objects. Each eyeball data in each eyeball tracking data corresponds to the same page object.
[0088] Step 304: In response to the eye tracking data meeting the event triggering condition, a target page object and an expected response event are determined according to the eye tracking data.
[0089] Step 305: Obtain object sequence data of the target page object from the page sequence data.
[0090] The page sequence data includes a plurality of page response data groups. Each page response data group may correspond to a different page object in the target page. The page response data group may include: a page object, page response data corresponding to the page object, and acquisition time.
[0091] The object sequence data includes at least one page response data group of the target page object. After determining the target page object corresponding to the eye tracking data, the object sequence data of the target page object is obtained from the page sequence data.
[0092] For example, the target page includes the following page objects: picture, text box, button. The page sequence data of the target page includes: (picture, response data of the picture enlargement event, collection time 1), (text box, response data of the text box input event, collection time 2), (picture, response data of the picture reduction event, collection time 3), (button, response data of the user click event, collection time 4).
[0093] Determine that the target page object corresponding to the eye tracking data is a picture, then obtain the object sequence data of the picture from the page sequence data: (picture, response data of the picture enlargement event, acquisition time 1), (picture, response data of the picture reduction event, acquisition time 3).
[0094] Step 306: Determine the tracking time point corresponding to the eye tracking data; determine the response time point corresponding to the tracking time point.
[0095] You can determine a time period starting from the tracking time point. The duration of the time period is a preset duration, which can be set according to specific needs. Each time point in the time period is used as a response time point.
[0096] Step 307: Obtain page response data from the object sequence data according to the response time point.
[0097] The object sequence data includes multiple page response data of the target page object. The page response data may include: monitoring event data and response event data of the target page object. For example, if the target page object is a button, the monitoring event data may correspond to: visual trigger event, user click event, mouse movement event, keyboard key press event, etc. The response event data may correspond to: link opening event, page opening event, item moving event, link closing event, page closing event, etc.
[0098] In combination with the above example, the target page object is a picture, and the object sequence data is: (picture, response data for the picture enlargement event, collection time 1), (picture, response data for the picture reduction event, collection time 3). Taking the tracking time point corresponding to the eye tracking data as the starting point, determine a time period with a preset duration of 1 second. Each time point within the time period is taken as a response time point. After comparison, if the collection time 1 is not within the determined time period, and the collection time 3 is within the determined time period, then from the object sequence data, determine that the page response data group is: (picture, response data for the picture reduction event, collection time 3), and the page response data is: response data for the picture reduction event. Step 308: Determine the test result of the target page based on the page response data, the target page object, and the expected response event.
[0099] If the page response data matches the target page object and the expected response event, the test result is determined to indicate that the target page passes the test. If the page response data does not match the target page object and the expected response event, the test result is determined to indicate that the target page fails the test.
[0100] In the solution of the embodiment of the present invention, the eye trajectory data of the target user and the page sequence data of the target page are first generated and saved. Then, the eye tracking data of the target user is obtained from the eye trajectory data. From the page sequence data, the page response data is obtained, and then various eye tracking function tests are performed. The saved eye trajectory data and page sequence data can be repeatedly used in various test scenarios, thereby improving the efficiency of test execution.
[0101] The embodiment of the present invention provides an automated testing solution that combines an eye tracking device interface with a test framework. For the eye tracking device interface, an intermediate layer or adapter is developed to realize the collection and storage of eye data. The API (Application Programming Interface) interface of the eye tracking device is integrated with the test framework to realize the real-time capture and synchronization of eye data. Specifically, the following steps are included:
[0102] Data collection and recording: The target user wears an eye tracking device to record data, and the data stream of eye data is obtained through the eye tracking device. Eye data includes information such as pupil position, gaze vector of each eye, and gaze point coordinates. The eye data of each scene is numbered. The eye data is recorded through the middle layer and saved in the database.
[0103] The middle layer or the adaptation layer obtains the eye data that has been stored in the database and completes the injection of the eye data. Through the interface of the eye tracking device, the injected eye data is combined with the coordinate vector of the current device to identify or trigger the corresponding response event.
[0104] During the call process, set a reasonable delay waiting time to ensure that each step in the automated test process can be triggered, so as to achieve the synchronous execution and verification of the test steps and eyeball data. Combine the selection, click and other functions to conduct linkage testing of business functions. Set reasonable assertions to judge the automation results and output the automation operation results.
[0105] Data recording and playback: Use the automated test framework to start the automated use case script, record and playback, and judge the execution result based on the assertions in the script. Data result verification. After the automated test framework platform runs the script, it generates an overall test report.
[0106] The solution of the embodiment of the present invention collects and stores eyeball data through the middle layer and completes data injection in advance. A method for integrating the eyeball tracking device interface with the test framework is proposed to achieve real-time capture and synchronization of eyeball data. The acquisition and processing logic of eyeball data is embedded in the test script, which realizes the synchronous execution and verification of test steps and eyeball data, and improves the accuracy and efficiency of the test.
[0107] Figure 4 FIG. 1 is a schematic diagram of a page testing device provided by an embodiment of the present invention. Figure 4 As shown, the device comprises:
[0108] The data acquisition module 401 is used to acquire the eye tracking data of the target user; wherein the target user is the user who browses the target page;
[0109] An object determination module 402 is used to determine a target page object and an expected response event according to the eye tracking data in response to the eye tracking data meeting an event triggering condition;
[0110] A response acquisition module 403 is used to acquire page response data of the target page with respect to the eye tracking data;
[0111] The result determination module 404 is used to determine the test result of the target page according to the page response data, the target page object and the expected response event.
[0112] Optionally, the object determination module 402 is specifically configured to:
[0113] Get input data from the target user;
[0114] In response to the eye tracking data and the input data meeting the event triggering condition, a target page object and an expected response event are determined according to the eye tracking data and the input data.
[0115] Optionally, the result determination module 404 is specifically configured to:
[0116] In response to the page response data matching the target page object and the expected response event, determining that the test result indicates that the target page passes the test;
[0117] In response to the page response data not matching the target page object and the expected response event, it is determined that the test result indicates that the target page has failed the test.
[0118] Optionally, the data acquisition module 401 is specifically used for:
[0119] Collect eyeball data of target users at multiple first time points;
[0120] Generate and save eye trajectory data of the target user according to the eye data at the first time points;
[0121] The eye tracking data of the target user is obtained from the eye tracking data of the target user.
[0122] Optionally, the response acquisition module 403 is further used to:
[0123] Collecting page response data of the target page at multiple second time points;
[0124] According to the page response data at the plurality of second time points, page sequence data of the target page is generated and saved.
[0125] Optionally, the response acquisition module 403 is specifically used for:
[0126] Obtain object sequence data of a target page object from the page sequence data;
[0127] Determine the tracking time point corresponding to the eye tracking data;
[0128] Determine the response time point corresponding to the tracking time point;
[0129] According to the response time point, the page response data is obtained from the object sequence data.
[0130] Optionally, the object determination module 402 is specifically configured to:
[0131] Determine the target page object corresponding to the eye tracking data;
[0132] Determine the trigger condition corresponding to the target page object as the event trigger condition;
[0133] Determines whether the eye tracking data meets the event triggering conditions.
[0134] An embodiment of the present invention provides an electronic device, including:
[0135] one or more processors;
[0136] The storage device is used to store one or more programs. When the one or more programs are executed by one or more processors, the one or more processors implement the method of any of the above embodiments.
[0137] An embodiment of the present invention provides a computer program product, including a computer program. When the computer program is executed by a processor, the method of any of the above embodiments is implemented.
[0138] Reference below Figure 5 , which shows a schematic diagram of the structure of a computer system 500 of a terminal device suitable for implementing an embodiment of the present invention. Figure 5 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0139] like Figure 5 As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage part 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the system 500 are also stored. The CPU 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0140] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage section 508 as needed.
[0141] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 509, and / or installed from the removable medium 511. When the computer program is executed by the central processing unit (CPU) 501, the above-mentioned functions defined in the system of the present invention are executed.
[0142] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0143] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0144] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor, for example, they may be described as: a data acquisition module, an object determination module, a response acquisition module, and a result determination module. The names of these modules do not, in some cases, constitute limitations on the modules themselves. For example, the data acquisition module may also be described as a "module for acquiring eye tracking data of a target user."
[0145] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes:
[0146] Obtaining eye tracking data of target users; wherein the target users are users who browse the target page;
[0147] In response to the eye tracking data meeting the event triggering condition, determining a target page object and an expected response event based on the eye tracking data;
[0148] Obtain page response data of the target page for the eye tracking data;
[0149] Determine the test result of the target page based on the page response data, the target page object and the expected response event.
[0150] According to the technical solution of the embodiment of the present invention, the target user is a browsing user of the target page. If the eye tracking data of the target user meets the event triggering condition, the target page object and the expected response event are determined according to the eye tracking data. The page response data of the target page for the eye tracking data is obtained, and the test result of the target page is determined according to the response data, the target page object and the expected response event. The solution of the embodiment of the present invention can test the accuracy of the eye tracking function in the browsing page.
[0151] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A page testing method, characterized in that: include: Obtaining eye tracking data of a target user; wherein the target user is a user browsing a target page; In response to the eye tracking data meeting an event triggering condition, determining a target page object and an expected response event according to the eye tracking data; Obtain page response data of the target page with respect to the eye tracking data; A test result of the target page is determined according to the page response data, the target page object and the expected response event.
2. The method according to claim 1, characterized in that In response to the eye tracking data meeting an event triggering condition, determining a target page object and an expected response event according to the eye tracking data includes: Obtaining input data of the target user; In response to the eye tracking data and the input data meeting an event triggering condition, a target page object and an expected response event are determined according to the eye tracking data and the input data.
3. The method according to claim 1, characterized in that Determining the test result of the target page according to the page response data, the target page object and the expected response event includes: In response to the page response data matching the target page object and the expected response event, determining that the test result indicates that the target page passes the test; In response to the page response data not matching the target page object and the expected response event, determining that the test result indicates that the target page has failed the test.
4. The method according to claim 1, characterized in that: The step of obtaining the eye tracking data of the target user includes: Collecting eyeball data of the target user at multiple first time points; Generate and save the eye trajectory data of the target user according to the eye data of the plurality of the first time points; The eye tracking data of the target user is obtained from the eye trajectory data of the target user.
5. The method according to claim 1, characterized in that Before obtaining the page response data of the target page for the eye tracking data, the method further includes: Collecting page response data of the target page at multiple second time points; The page sequence data of the target page is generated and saved according to the plurality of page response data at the second time points.
6. The method according to claim 5, characterized in that The step of obtaining page response data of the target page in response to the eye tracking data includes: Acquire object sequence data of the target page object from the page sequence data; Determining a tracking time point corresponding to the eye tracking data; Determining a response time point corresponding to the tracking time point; The page response data is acquired from the object sequence data according to the response time point.
7. The method according to claim 1, characterized in that In response to the eye tracking data meeting the event triggering condition, before determining the target page object and the expected response event according to the eye tracking data, the method further includes: Determine a target page object corresponding to the eye tracking data; Determine the trigger condition corresponding to the target page object as the event trigger condition; Determine whether the eye tracking data meets the event triggering condition.
8. A page testing device, characterized in that: include: A data acquisition module, used to acquire eye tracking data of a target user; wherein the target user is a user browsing a target page; An object determination module, configured to determine a target page object and an expected response event according to the eye tracking data in response to the eye tracking data meeting an event triggering condition; A response acquisition module, used for acquiring page response data of the target page with respect to the eye tracking data; The result determination module is used to determine the test result of the target page according to the page response data, the target page object and the expected response event.
9. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.
10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
11. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 7.