Automatic buried point verification method and system based on mind strategy full buried point reporting
By adopting an automated buried point verification method in the buried point verification platform, and using Shence full buried point reporting rules and database comparison, the problems of single verification methods and incomplete coverage in the existing technology are solved, and comprehensive verification of buried point data and potential problems are realized.
Patent Information
- Application Number
- CN202411862901.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2044-12-17
Smart Images

Figure CN119883891A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automated testing technology, and in particular to an automated point-of-care verification method and system based on Sensors full point-of-care reporting. Background Art
[0002] Since the user behavior analysis system needs to collect data in an all-round and indiscriminate manner, the amount of data collected is large and the scenarios are diverse, which makes it difficult to discover hidden problems. Currently, there is a lack of efficient means to verify the correctness of the tracking service function, which needs to be solved through the design of automated testing methods.
[0003] Figure 2 This is an overall architecture diagram of a user behavior analysis service in one embodiment of the present invention.
[0004] The implementation method of full embedding is to add embedding to the front-end page code. The reporting rules of full embedding are: for div type elements, if the maximum sub-leaf level under it is 3, it will be reported, and if it is more than 3 levels, it will not be reported; for img, span, ul, li or p type elements, clicks will be reported.
[0005] The service uses a fully embedded reporting method to automatically report certain pre-defined events (usually including the following four event types: APP startup, APP shutdown, page access, and element click) through the SDK. It has the characteristics of short cycle, low labor cost, large data volume, and intelligent analysis of page interaction related data. The service reports 5 types of behaviors: (1)
[0006] User dimension C-1002-1: Report once when the user logs in, and no report when the user logs out; (2) Session dimension C-1001-1: When entering the project for the first time, the front-end calls the cda service, obtains the sessionId (currently the sessionId expires in 1 hour), and reports the session data; (3) Page loading dimension C-1003-1: Browser page refresh, URL change, browser forward and backward; (4) Click event dimension C-1003-2 (key verification): The user clicks on the corresponding element of the page to report, the div element max_level can be set to 3, and the set type elements include img, span, ul, li, p, a, button and input; (5) Stay duration dimension C-1003-3: The behavior triggered by the user leaving the current page.
[0007] The existing tracking verification platform can include tracking verification solutions, tracking verification tools and tracking verification reports. The three parts complement each other and greatly reduce the tracking verification cost of users. By configuring the verification solution for certain specific reporting elements, you can verify whether the tracking is effective, whether the parameters are missing, whether the type is correct, whether the value meets expectations, and generate a corresponding verification report.
[0008] However, the existing tracking point verification platform has the following shortcomings: (1) The verification method is too simple, which only verifies the correctness of the fields in the reporting request compared with the predetermined rules, and cannot judge and compare with the final results in the database; (2) The tracking point triggering method is too purposeful. For full tracking points, tracking points will be triggered everywhere on the entire page. The existing technology is limited to relying on manual clicks in certain key areas, and cannot cover some more special locations, and cannot fully discover and solve potential problems; (3) The existing technology cannot verify whether there are over-reporting and repeated reporting, etc., and can only verify under-reporting. In addition, based on the personalized reporting settings for the business, it cannot determine whether the point should be reported.
[0009] Therefore, how to design an automated tracking verification solution that refers to the results of the database, is non-purposefully triggered, and can detect duplicate reports is a technical problem that needs to be solved urgently. Summary of the invention
[0010] In view of this, in order to overcome the shortcomings of the existing tracking point verification platform, an embodiment of the present invention provides an automated tracking point verification method and system based on the full tracking point reporting of Sensors, so as to eliminate or improve one or more defects existing in the prior art.
[0011] One aspect of the present invention provides an automated tracking point verification method based on Sensors full tracking point reporting, the method comprising the following steps: initializing a page to be verified and an environment for tracking point verification; dividing the page to be verified into a plurality of square areas of preset sizes; the center point of each square area is clicked, and predicting whether the clicked center point should be reported according to the front-end tracking point reporting rules; capturing the reporting information sent by the center point through the browser; wherein the reporting information sent by the center point through the browser is stored in a database; verifying the captured reporting information, including: performing consistency verification on the center point of the actual reporting information sent through the browser and the predicted center point that should be reported; checking whether the fields contained in the reporting information sent by the browser meet the specifications; reading the stored data of the reporting information in the database and performing consistency verification.
[0012] In some embodiments of the present invention, before the page to be verified and the environment for performing embedded point verification, the method also includes: pre-configuring a file containing the page to be verified and page-related information; wherein the page-related information includes the service name, page URL, page title, and an indication of whether login is required.
[0013] In some embodiments of the present invention, the step of capturing the reporting information sent by the central point through the browser is implemented by a packet capture tool pre-installed in an environment for performing point-of-entry verification.
[0014] In some embodiments of the present invention, during the process of clicking the center point of each square area, when it is detected that a new dialog box pops up on the page, the method further includes: pausing the click and switching to a new page corresponding to the new dialog box; traversing and verifying each element contained in the new page; and when the traversal is completed, returning to the previous page to be verified and continuing to click.
[0015] In some embodiments of the present invention, the step of predicting whether the clicked center point should be reported according to the front-end embedding point reporting rules includes: obtaining the page element level and element type according to the position of the clicked center point; determining whether to report according to the reporting rules of Sensors all embedding points, and the reporting rules of Sensors all embedding points preset the page element level and element type range to be reported.
[0016] In some embodiments of the present invention, the reporting rules of the Sensors full-site embedding include: for div type elements, using JavaScript scripts to determine the element level, if the maximum sub-leaf level is 3, it will be reported, if it is more than 3 levels, it will not be reported; for elements of preset types, clicks are reported, and no other cases are reported.
[0017] In some embodiments of the present invention, the method further includes: after the center points of all square areas are clicked, generating an automated point-of-sale verification report for the page to be verified; wherein the automated point-of-sale verification report includes a screenshot of the location of the center points that failed the verification.
[0018] Corresponding to the above method, the present invention also provides an automated tracking point verification system based on Sensors full tracking point reporting, including a processor, a memory, and a computer program / instructions stored in the memory, the processor is used to execute the computer program / instructions, and when the computer program / instructions are executed, the system implements the steps of the method described in any one of the above embodiments.
[0019] Corresponding to the above method, the present invention also provides a computer-readable storage medium on which a computer program / instruction is stored. When the computer program / instruction is executed by a processor, the steps of the method described in any one of the above embodiments are implemented.
[0020] Corresponding to the above method, the present invention also provides a computer program product, including a computer program / instruction, which implements the steps of the method described in any one of the above embodiments when executed by a processor.
[0021] The automated point-burying verification method based on the full point-burying reporting proposed in the present invention can save labor costs through pre-configured files. It only needs to manually intervene in the initial stage to fill in the preparation information, and it can be realized without manual operation and clicks in the later stage. It also proposes a multi-angle verification method, which can not only compare the accuracy of each field of the reported information, but also compare the correctness of the storage, and at the same time obtain the page information for verification, thereby improving the comprehensiveness of the point-burying verification. In addition, the point-burying verification method proposed in the present invention adopts a traversal click method to treat the verification page indiscriminately, which can cover the places that may be ignored by manual clicks, and eliminate the omissions caused by human clicking habits, so that the verification results are more credible and comprehensive. In summary, the method proposed in the present invention is significantly different from the verification method in the prior art that only relies on field types and missing rules.
[0022] Additional advantages, purposes, and features of the present invention will be described in part in the following description, and will become apparent to those skilled in the art after studying the following, or may be learned from the practice of the present invention. The purposes and other advantages of the present invention may be achieved and obtained by the structures specifically indicated in the specification and the accompanying drawings.
[0023] Those skilled in the art will appreciate that the objectives and advantages that can be achieved with the present invention are not limited to the above specific description, and the above and other objectives that can be achieved by the present invention will be more clearly understood from the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The drawings described herein are used to provide a further understanding of the present invention, constitute a part of the present application, and do not constitute a limitation of the present invention. In the drawings:
[0025] Figure 1 The present invention is a flowchart of an automated tracking verification method based on full tracking reporting by Sensors in one embodiment of the present invention.
[0026] Figure 2 This is an overall architecture diagram of a user behavior analysis service in one embodiment of the present invention.
[0027] Figure 3 This is a flow chart of an automated tracking point verification method based on full tracking point reporting by Sensors in another embodiment of the present invention.
[0028] Figure 4 A schematic diagram of the structure of the computer equipment included in the system. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments and the accompanying drawings. Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.
[0030] It should also be noted that, in order to avoid obscuring the present invention due to unnecessary details, only structures and / or processing steps closely related to the solutions according to the present invention are shown in the accompanying drawings, while other details that are not closely related to the present invention are omitted.
[0031] It should be emphasized that the term “include / comprises” when used herein refers to the presence of features, elements, steps or components, but does not exclude the presence or addition of one or more other features, elements, steps or components.
[0032] It should also be noted that, unless otherwise specified, the term “connection” herein may refer not only to a direct connection but also to an indirect connection involving an intermediate.
[0033] Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. In the accompanying drawings, the same reference numerals represent the same or similar components, or the same or similar steps.
[0034] In order to overcome the shortcomings of the existing tracking point verification platform, the present invention proposes an automated tracking point verification method based on the full tracking point reporting of Sensors. The automated tracking point verification method includes: (1) a consistency verification method, which ensures the consistency and accuracy of the data by comparing the fields in the reporting request with the results stored in the database; (2) a non-purpose tracking point triggering method that can comprehensively cover all areas of the page, including special locations, so as to better discover and solve potential problems. (3) Detection of over-reporting, under-reporting and duplicate reporting, and judgment based on the personalized reporting settings of the business to ensure the validity and reliability of the data.
[0035] Sensors full-point reporting is a method of reporting user behavior data. During the development process, by embedding specific code in the application, the user's operations on the interface, dwell time, number of clicks, and other information are collected in real time, and the data is reported to the back-end data platform for analysis. This method can help developers and testers understand the product usage and user needs more comprehensively, thereby optimizing product functions and user experience. The advantage of Sensors full-point reporting is that it can cover every user behavior and provide strong support for subsequent testing work. The disadvantage is that the amount of data is large, which may put pressure on the server, and it also requires more resources for data cleaning and analysis.
[0036] Automated tracking verification refers to the process of verifying tracking in the software development kit (SDK) through automated testing tools and technologies. Tracking verification aims to ensure that tracking data can accurately and completely reflect user behavior, thereby providing data support for product optimization and decision-making.
[0037] The automated point-of-sale verification method proposed in the present invention realizes the "traversal point" function by evenly dividing the page into squares of specified pixel size, clicking the point in the center of the square, and combining the front-end point-of-sale reporting rules to predict whether the point should be reported, and compares it with the actual reporting results to record and report abnormal scenarios. The key points of this method include: (1) solving the problem of insufficient coverage of operation scenarios by traversing clicks; (2) recording screenshots of abnormal scenarios and reporting fields to achieve execution process quantification; (3) supporting compatibility testing of different types and versions of browsers; (4) capturing reporting requests and querying the database according to the point-of-sale reporting rules to verify the correctness of the report.
[0038] Figure 1 This is a flow chart of an automated tracking verification method based on Sensors full tracking reporting in one embodiment of the present invention. The method includes the following steps:
[0039] Step S110: Initialize the page to be verified and the environment for embedding verification.
[0040] Step S120: Divide the page to be verified into multiple square areas of preset sizes on an even basis. The center point of each square area is clicked, and it is predicted whether the clicked center point should be reported according to the front-end buried point reporting rules.
[0041] In other embodiments of the present invention, in addition to the traversal method of dividing the page equally, it can also be implemented by traversing and clicking all elements in the page.
[0042] Step S130: Capture the reporting information sent by the center through the browser; wherein the reporting information sent by the center through the browser is stored in the database.
[0043] Step S140: verify the captured reporting information, including: verifying the consistency between the center point of the reporting information actually sent through the browser and the predicted center point that should be reported; checking whether the fields contained in the reporting information sent by the browser meet the specifications; reading the database data of the reporting information and performing consistency verification.
[0044] The automated point-burying verification method based on the full point-burying report proposed in the present invention can save labor costs through pre-configured files. It only needs to manually intervene in the initial stage to fill in the preparation information, and it can be realized without manual operation and clicks in the later stage. A multi-angle verification method is proposed, which can not only compare the accuracy of each field of the reported information, but also compare the correctness of the storage, and at the same time obtain the page information for verification, thereby improving the comprehensiveness of the point-burying verification. In addition, the point-burying verification method proposed in the present invention adopts a traversal click method to indiscriminately click on the verification page, which can cover the places that may be ignored by manual clicks, and eliminate the omissions caused by human clicking habits, so that the verification results are more credible and comprehensive. In summary, the method proposed in the present invention is significantly different from the verification method in the prior art that only relies on field types and missing rules.
[0045] In some embodiments of the present invention, before the page to be verified and the environment for performing embedded point verification, the method also includes: pre-configuring a file containing the page to be verified and page-related information; wherein the page-related information includes the service name, page URL, page title, and whether login is required.
[0046] By adopting the embodiment of the invention, a configuration file can be used instead of manual work. Only manual intervention is required in the initial stage to fill in the preparation information in the configuration file. In the later stage, it can be implemented without manual operation by clicking, which can save labor costs and avoid omissions that may be caused by manual operation.
[0047] In some embodiments of the present invention, the step of capturing the reporting information sent by the central point through the browser is implemented by a packet capture tool pre-installed in an environment for performing point verification.
[0048] In the specific implementation process, the types of the packet capture tools include Fiddler, Wireshark, SolarWinds data packet analysis tool, tcpdump, NetworkMiner or Firebug. Fiddler is a free Web debugging proxy tool that can help developers capture and analyze HTTP and HTTPS requests during the development process. By using Fiddler, developers can easily view the detailed information of requests and responses, such as request headers, response headers, Cookies and other parameters, so as to more easily diagnose and solve problems in Web applications. The present invention is not limited to this, and the packet capture tools listed above are only examples.
[0049] By adopting this embodiment of the invention, one or more packet capture tools can be used to capture the reporting information sent by the central point through the browser, thereby comparing the central point that actually sends the reporting information with the predicted central point that may send the reporting information, thereby verifying whether there is an over-reporting or under-reporting problem in the page.
[0050] In some embodiments of the present invention, during the process of clicking the center point of each square area, when a new dialog box is detected to pop up on the page, the method further includes: (1) pausing the click and switching to a new page corresponding to the new dialog box; wherein the new dialog box is associated with an iframe tag, etc.; (2) traversing and verifying each element contained in the new page; in the specific implementation process, the traversal can be achieved by dividing the page that is the same as the page to be verified into square areas, clicking each area one by one, grabbing the reported information and verifying it, or by clicking each element contained in the new page, grabbing the reported information and verifying it; (3) when the traversal is completed, returning to the previous page to be verified and continuing to click.
[0051] By adopting this embodiment of the invention, the correctness of the Sensors full-point reporting strategy of the page to be verified and the new page associated with the page to be verified can be verified indiscriminately by traversing clicks, while taking into account pop-up components such as dialog boxes and iframes.
[0052] In some embodiments of the present invention, the step of predicting whether the clicked center point should be reported according to the front-end point reporting rules includes: obtaining the page element level and element type according to the position of the clicked center point; determining whether to report according to the reporting rules of all Sensors points, and the reporting rules of all Sensors points preset the page element level and element type range that need to be reported.
[0053] Furthermore, the reporting rules of the ShenCe full-site embedding may include: (1) for div type elements, use JavaScript scripts to determine the element level. If the maximum sub-leaf level is 3, report it. If it is more than 3 levels, do not report it. (2) Report clicks on elements of preset types, and do not report other situations.
[0054] In the specific implementation process, you can use python and / or JavaScript to obtain the page element level where the click position is located. Use fiddler+python to capture and filter the traffic reported by the browser in a multi-threaded manner, and save the request locally for processing.
[0055] By adopting the embodiment of the invention, it is possible to combine the personalized Shen Ce full-point reporting strategy to predict whether the location should be reported, instead of using artificially configured rules, to verify whether the page has problems of over-reporting or under-reporting, formulate verification rules according to personalized needs, predict locations that should not or must be reported, and further classify the reported traffic, so that it can be used for point optimization. In comparison, the prior art is still unable to verify whether the click should be reported, but verifies it under the premise that all should be reported by default, which will result in excessive and redundant data, put pressure on the back-end data processing, and may cause the final report analysis results to be inaccurate, affecting the judgment. Therefore, the method proposed by the present invention has substantial progress and significant characteristics compared to the prior art.
[0056] In some embodiments of the present invention, the method further includes: after the center points of all square areas are clicked, generating an automated point-of-sale verification report for the page to be verified; wherein the automated point-of-sale verification report includes a screenshot of the location of the center points that failed the verification.
[0057] By adopting the embodiment of the invention, the results of the automated point verification can be output, so that the user can intuitively understand whether there are problems in the page to be verified and the specific circumstances of the problems.
[0058] Figure 3 This is a flow chart of an automated tracking point verification method based on full tracking point reporting by Sensors in another embodiment of the present invention.
[0059] Figure 3 The embodiment shown is intended for automated testing of the company's internal user behavior analysis system. The user behavior analysis system collects behavioral information generated by users in the process of using the application, and then performs targeted cleaning and processing on the data, combining analysis models such as events, funnels, and attribution to restore and quantify a series of information about users in the process of using the application, such as processes, conversions, focus points, and efficiency. Among them, the automated testing of the user behavior analysis system is divided into four stages: data collection, data processing, analysis and statistics, and function improvement. The user behavior collection and reporting technology used by the front-end of the user behavior analysis system adopts the Sensors full-embedded point reporting solution, and adds personalized modifications to collect data in an all-round and indiscriminate manner.
[0060] Figure 3 The embodiment shown is implemented by using a technical solution combining Fiddler and Python.
[0061] First, users can configure the page to be verified and related information in the specified Excel text. These related information include service name, page URL, page title, and whether login is required. The configuration file is used to initialize the environment when the script starts. At the same time, Fiddler software needs to be installed in the initialized environment to capture requests reported by the browser. The reason why Fiddler is currently relied on is that Python does not yet have a plug-in that can independently support capturing requests from IE browsers. After installing Fiddler, start it and configure it to record all captured traffic in local files.
[0062] After the preparation is completed, the automated script can be started. The script will read the page configuration document line by line and perform initialization, login and other operations on the page to be tested. After the page is stable, the page information is obtained and the page is evenly divided into several squares of specified size. The points in the middle of the square are clicked one by one. This can also be a random point in the square. According to the page element level where the click position is located, it is determined whether the point should be clicked and reported. The report information captured by Fiddler is verified in three aspects: (1) First, it is checked with the predicted information to determine whether it is consistent; (2) Secondly, it is determined whether all fields in the reported information meet the specifications; (3) Finally, the database data is read to compare whether it is consistent with the database. If it is inconsistent, the script automatically takes a screenshot and records the document. If it is consistent, the click continues.
[0063] During the click process, if a new dialog box indicated by an iframe tag pops up on the page, the script needs to pause the current click, switch to the new page and start traversing all elements in the page. After the traversal is completed, return to the previous page (i.e. the page to be verified) to continue clicking. After all pages configured in the page configuration document are verified, exit the program and generate a report.
[0064] The method for predicting whether the click position should be reported is to obtain the page element level based on the click position. The reporting rules of Sensors' full-embedded point can include: (1) For div type elements, use JavaScript scripts to determine the element level. If the element level is greater than 3 levels, it will not be reported. That is, if the maximum sub-leaf level is 3, it will be reported. If it is more than 3 levels, it will not be reported; (2) Clicks are reported for elements of preset types, and other situations are not reported. For example, img, span, ul, li and p type elements can be reported, and other situations are not reported.
[0065] Among them, in the initial configuration parameter process of the actual program, the maximum sub-leaf level defaults to 1, and the configurable range is 1-3. When the configuration value is not in this range, it will be treated as 1. The Boolean type of the above img, span, ul, li and p type elements is initially set to true. Among them, in HTML documents, img refers to image elements, span refers to inline elements, ul refers to unordered lists, li refers to list items, and p refers to paragraph elements.
[0066] It is worth noting that the method proposed in the present invention is compatible with most of the mainstream browsers currently on the market, and can meet the browser compatibility testing requirements by building in multiple browser kernels.
[0067] Corresponding to the above method, the present invention also provides an automated tracking point verification system based on Sensors full tracking point reporting, the system includes a computer device, the computer device includes a processor and a memory, the memory stores computer instructions, the processor is used to execute the computer instructions stored in the memory, when the computer instructions are executed by the processor, the system implements the steps of the method described above.
[0068] Figure 4 A schematic diagram of the structure of the computer equipment included in the system.
[0069] See also Figure 4 The computer device 00 includes: a processor 01, a memory 02, and a computer program stored in the memory 02 and executable on the processor 01. When the processor 01 executes the computer program, the human factor data server access control method provided in the above method embodiment is implemented.
[0070] Among them, the processor 01 is connected to the memory 02, such as through a bus 03. The processor 01 can be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logic blocks, modules and circuits described in combination with the contents disclosed in this application. The processor 01 can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of DSP and microprocessors, etc. The bus 03 may include a path to transmit information between the above components. The bus 03 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus 130 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The memory 02 is used to store a computer program corresponding to the human factor data server access control method of the above embodiment of the present application, and the computer program is controlled and executed by the processor 01. The processor 01 is used to execute the computer program stored in the memory 02 to implement the content shown in the above method embodiment.
[0071] Corresponding to the above method, the present invention also provides a computer-readable storage medium, on which a computer program / instruction is stored, and when the computer program / instruction is executed by a processor, the steps of the method described in any one of the above embodiments are implemented. The computer-readable storage medium can be a tangible storage medium, such as a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a floppy disk, a hard disk, a removable storage disk, a CD-ROM, or any other form of storage medium known in the technical field.
[0072] Corresponding to the above method, the present invention also provides a computer program product, including a computer program / instruction, which implements the steps of the method described in any one of the above embodiments when executed by a processor.
[0073] It should be understood by those skilled in the art that the exemplary components, systems and methods described in conjunction with the embodiments disclosed herein can be implemented in hardware, software or a combination of the two. Whether it is performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present invention are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link via a data signal carried in a carrier.
[0074] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.
[0075] In the present invention, features described and / or illustrated for one embodiment may be used in the same or similar manner in one or more other embodiments, and / or combined with features of other embodiments or replace features of other embodiments.
[0076] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the embodiments of the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. An automated tracking verification method based on Sensors full tracking reporting, characterized in that: include: Initialize the page to be verified and the environment for embedding verification; The page to be verified is evenly divided into multiple square areas of preset sizes. The center point of each square area is clicked, and the front-end point reporting rules are used to predict whether the clicked center point should be reported; Capture the reporting information sent by the center point through the browser; wherein the reporting information sent by the center point through the browser is stored in the database; The captured reported information is verified, including: verifying the consistency between the center point of the reported information actually sent through the browser and the predicted center point that should be reported; checking whether the fields contained in the reported information sent by the browser meet the specifications; reading the database data of the reported information and performing consistency verification.
2. The method according to claim 1, characterized in that Before the page to be verified and the environment for performing embedded point verification, the method also includes: pre-configuring a file containing the page to be verified and page-related information; wherein the page-related information includes the service name, page URL, page title, and whether login is required.
3. The method according to claim 1, characterized in that: The step of capturing the reporting information sent by the central point through the browser is implemented by a packet capture tool pre-installed in the environment for embedding point verification.
4. The method according to claim 1, characterized in that In the process of clicking the center point of each square area, when it is detected that a new dialog box pops up on the page, the method further includes: Pause clicking and switch to the new page corresponding to the new dialog box; Traverse and verify each element contained in the new page; When the traversal is completed, return to the previous page to be verified and continue clicking.
5. The method according to claim 1, characterized in that The step of predicting whether the clicked center point should be reported according to the front-end tracking point reporting rule includes: Get the page element level and element type based on the location of the clicked center point; Whether to report is determined according to the reporting rules of Sensors All Points, which preset the page element level and element type range that need to be reported.
6. The method according to claim 5, characterized in that The reporting rules of the Sensors full-site embedding include: for div type elements, use JavaScript scripts to determine the element level. If the maximum sub-leaf level is 3, report it, and if it is more than 3 levels, do not report it; report clicks on elements of preset types, and do not report other situations.
7. The method according to claim 1, characterized in that The method also includes: after the center points of all square areas are clicked, generating an automated point-of-sale verification report for the page to be verified; wherein the automated point-of-sale verification report includes a screenshot of the location of the center points that have not passed the verification.
8. An automated tracking verification system based on Sensors full tracking reporting, comprising a processor, a memory, and a computer program / instruction stored in the memory, characterized in that: The processor is used to execute the computer program / instructions, and when the computer program / instructions are executed, the system implements the steps of the method according to any one of claims 1 to 7.
9. A computer-readable storage medium having a computer program / instruction stored thereon, characterized in that: When the computer program / instructions are executed by a processor, the steps of the method as claimed in any one of claims 1 to 7 are implemented.
10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.