Buried point test method and device, electronic equipment and readable storage medium

By introducing a forward proxy in buried point testing to intercept client requests, filter and parse buried point data, the problem of database redundancy is solved, test efficiency and accuracy are improved, maintenance costs are reduced, and business changes are adapted.

CN118535462APending Publication Date: 2024-08-23SHENZHEN XUMI YUNTU SPACE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410571456.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-07
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

There is a database redundancy problem in the buried point testing process in the prior art, resulting in slow query operations and high maintenance costs.

Method used

By introducing a forward proxy to intercept client requests, filter target requests that match the preset buried point format, parse and match buried point data with preset requirements, generate buried point test result sets, and reduce unnecessary data traffic and database dependence.

Benefits of technology

It improves the efficiency and accuracy of buried point testing, reduces database expenses, simplifies the testing process, and can flexibly adapt to business changes and new buried point requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535462A
    Figure CN118535462A
Patent Text Reader

Abstract

The invention relates to the technical field of software testing, and provides a buried point testing method and device, electronic equipment and a readable storage medium. The method comprises the following steps: acquiring a request sent by a client; according to the request, screening to obtain a target request in accordance with a preset burying point format; analyzing the target request to obtain target burying point data; according to a preset comparison rule, matching the target burying point data with a preset burying point demand to obtain a burying point test result set, the burying point test result set comprising a burying point success event and a burying point failure event, and the preset burying point demand being used for determining a to-be-tested burying point event; and obtaining a point burying test result according to the point burying event result set. The technical problem of redundancy of a buried point test database is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of software testing technology, and in particular to a method, device, electronic device and readable storage medium for real-time testing of embedded points. Background Art

[0002] With the advent of the digital age, data plays an increasingly important role in business decision-making and product optimization. Data tracking has become one of the core tools for professionals such as data product managers, data operations, and data analysts. By embedding code in the application, the data team can accurately capture every key event of the user in the application and collect user behavior data. This data is not only used to gain a deep understanding of user habits, but also provides data support for refined product optimization and business decision-making.

[0003] The prior art uses a fixed tracking ID to bind the corresponding tracking event during the test process. The tracking use case contains a unique tracking ID, which is associated with the unique ID of the tracking event in the cache. During the tracking test, all data needs to be matched one by one. At this time, if the amount of tracking data is large, the query operation will become slow and put pressure on the database performance. Moreover, when the tracking data changes or is added, the database table needs to be updated in time, which increases the maintenance cost.

[0004] It can be seen that the existing technology has the technical problem of data redundancy in the embedded point test database. Summary of the invention

[0005] In view of this, the embodiments of the present application provide a point-of-use testing method, device, electronic device and readable storage medium to solve the problem of database redundancy in the prior art.

[0006] A first aspect of an embodiment of the present application provides a method for testing a buried point, including:

[0007] Get the request sent by the client;

[0008] According to the request, filter and obtain the target request that meets the preset tracking format;

[0009] Parse the target request to obtain the target tracking data;

[0010] According to the preset comparison rules, the target tracking data is matched with the preset tracking requirements to obtain the tracking test result set, which includes tracking success events and tracking failure events. The preset tracking requirements are used to determine the tracking events to be tested.

[0011] Obtain the tracking test results based on the tracking event result set.

[0012] A second aspect of an embodiment of the present application provides a buried point testing device, including:

[0013] The acquisition module is used to obtain the request sent by the client;

[0014] The filtering module obtains the target request that conforms to the preset tracking format according to the request;

[0015] The parsing module parses the target request and obtains the target embedding data;

[0016] The comparison module matches the target tracking data with the preset tracking requirements according to the preset comparison rules to obtain a tracking test result set, which includes tracking success events and tracking failure events. The preset tracking requirements are used to determine the tracking events to be tested;

[0017] The determination module is used to obtain the tracking test results based on the tracking event result set.

[0018] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.

[0019] According to a fourth aspect of an embodiment of the present application, a readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0020] The beneficial effects of the embodiments of the present application include at least:

[0021] By intercepting the request sent by the client, the real-time capture of the tracking data is realized, thereby improving the efficiency of the tracking test. According to the request, the target request that conforms to the preset tracking format is obtained, and the tracking requests that meet the requirements are screened out from the intercepted requests, and the requests that do not require tracking testing are excluded, effectively reducing unnecessary data traffic and improving the test efficiency; the target request is parsed to obtain the target tracking data, further narrowing the test scope and improving the accuracy of the test; the parsed target tracking data is compared with the user's preset tracking requirements. The comparison process adopts preset comparison rules, which can make the test more specific and test on demand. Only the preset use cases are tested, which reduces the dependence on and maintenance of the database, saves database expenses, and can more flexibly adapt to business changes and new tracking requirements, making the tracking test process more concise and efficient. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0023] Figure 1 It is a flow chart of a buried point testing method provided in an embodiment of the present application;

[0024] Figure 2 It is a test flow diagram of a buried point test method provided in an embodiment of the present application;

[0025] Figure 3 It is a matching flow diagram of a buried point testing method provided in an embodiment of the present application;

[0026] Figure 4 It is a structural schematic diagram of a buried point testing device provided in an embodiment of the present application;

[0027] Figure 5 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0028] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0029] The terms "first", "second", etc. in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0030] In addition, it should be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "includes..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0031] A method and device for buried point testing according to an embodiment of the present application will be described in detail below with reference to the accompanying drawings.

[0032] Figure 1 1 is a flow chart of a method for tracking point testing provided by an embodiment of the present application. The method can be executed by a terminal device or a server and applied to an agent. Figure 1 As shown, the buried point test method includes:

[0033] Step 101: Obtain a request sent by a client.

[0034] Step 102, based on the request, filter and obtain target requests that conform to a preset tracking format.

[0035] Step 103, parse the target request to obtain target tracking data.

[0036] Step 104, according to the preset comparison rules, the target burying point data is matched with the preset burying point requirements to obtain a burying point test result set.

[0037] Step 105, obtaining the tracking point test result according to the tracking point event result set.

[0038] Among them, this solution introduces a forward proxy as the middle layer of the tracking test, and uses the proxy to intercept requests sent by the client. In the tracking test scenario, the client usually refers to the specific application or website that needs to be tested. The request refers to the data packet sent by the client to the server to obtain specific resources or perform specific operations. This request can be an HTTP request or a request of other protocols, depending on the design and implementation of the application. In the tracking test scenario, the request usually contains user behavior information, such as page visits, button clicks, etc., which is used to record user behavior and send it to the backend for data analysis.

[0039] By obtaining the requests sent by the client through the proxy, real-time capture of client requests is achieved, providing a data source for subsequent tracking tests.

[0040] Requests are filtered on the proxy side, and only requests that conform to the preset tracking format are retained. The preset tracking format refers to the format and structure of tracking data that is determined in advance before the tracking test. This format is usually defined based on specific business needs and data analysis needs, and includes information such as the name, attributes, and possible value range of the tracking event. The target request is the object that needs to be tested for tracking. By parsing and analyzing them, it can be determined whether it meets the expected tracking specifications and generate corresponding test results.

[0041] By narrowing the test scope, unnecessary data traffic is reduced, test efficiency is improved, and processing of non-point-buffered requests is avoided. This improves the efficiency of point-buffered testing.

[0042] Parse the request that conforms to the preset tracking format and extract the tracking data. "Tracking data" refers to the data that conforms to the preset tracking format after parsing. This data contains key information about user behavior in the application, such as event name, occurrence time, user identifier, device information, etc. This data is collected by tracking in the application for the purpose of analyzing user behavior, evaluating the usage of application functions, and making other data-driven decisions and optimizations. In this solution, the target request is parsed to obtain the target request, that is, the tracking request that conforms to the preset tracking format.

[0043] The target buried point data to be tested was extracted, providing a basis for subsequent comparison and analysis.

[0044] Among them, the tracking test result set includes tracking success events and tracking failure events. The preset tracking requirements are used to determine the tracking events to be tested. The tracking events to be tested represent specific events that need to be tested during the test process. The tracking requirements list plays a guiding and standardizing role. Specifically, the tracking requirements list contains a list of expected tracking events, which lists various events in the application, such as entering the homepage, clicking on mine, entering the personal homepage, and other events.

[0045] The purpose of preset comparison rules is to verify whether the captured tracking data meets the expected requirements and expected behaviors. The preset comparison rules are the judgment conditions for determining whether the target tracking event is successfully tracked. By defining clear comparison rules, problems or anomalies in the tracking data can be quickly identified, thereby improving the accuracy and efficiency of tracking tests.

[0046] The preset tracking requirements and preset comparison rules provide standards and rules for testing, and are the basis for comparing the target tracking data to determine the tracking test results. According to the preset requirements and rules, the target tracking data is parsed and compared, and by matching the preset comparison rules, it is determined whether each event meets the expected requirements, thereby judging whether the tracking is successful.

[0047] By comparing the rules, we can determine which requests meet the expected tracking events, so as to judge whether the tracking is successful and provide a basis for subsequent result generation.

[0048] The final tracking test results are generated based on the matching results, including tracking success events and tracking failure events. This solution uses tracking test reports to reflect the test results.

[0049] It enables users to intuitively understand the results of tracking test, discover and solve problems in a timely manner, and improve the feedback efficiency and problem-solving speed of tracking test.

[0050] According to the technical solution provided by the embodiment of the present application, by screening the tracking request and customizing the tracking event list for testing, the test scope is narrowed, the test process is simplified, and the workload of the tester is reduced. Through the screening and forwarding mechanism, unnecessary data traffic is reduced, network bandwidth and storage resources are saved, and database expenses are saved. Through the preset comparison rules, the tracking data is strictly matched and verified, the accuracy of the test is improved, and the effectiveness of the tracking test is ensured. A clear tracking test report is generated, which provides developers with a basis for rapid feedback and problem location, shortening the time for troubleshooting and repair. It can improve the efficiency of tracking test, save database space and reduce data redundancy through on-demand testing. The present application allows the tracking rules and tracking requirements to be flexibly defined according to specific needs and scenarios. This means that specific tracking events can be selectively tested according to different test purposes, without the need to test all tracking events; through on-demand testing, the scope of the tracking test can be narrowed, and only specific tracking events can be tested, thereby improving the efficiency of the test; in addition, the present application can define tracking rules according to specific needs to ensure the accuracy of the test results.

[0051] In some embodiments, according to the request, obtaining a target request that conforms to a preset tracking format includes:

[0052] According to the request, request information is obtained; according to the request information, tracking requests are filtered to obtain target requests that conform to the preset tracking format.

[0053] Among them, the header information of the HTTP request can be obtained through the API or built-in function provided by the programming language, and the obtained request information can be filtered according to the preset tracking request format and rules to determine whether it is a tracking request.

[0054] This embodiment obtains a request data packet, determines the type of the request according to the request information of the request, and divides the received requests into buried point requests and non-buried point requests. Furthermore, by screening the buried point requests, non-buried point requests can be filtered out, and only requests that conform to the preset buried point format are retained, thereby improving the efficiency and accuracy of data processing, reducing unnecessary data processing and storage overhead, narrowing the scope of buried point testing, and improving the efficiency of buried point testing.

[0055] In some embodiments, after obtaining a target request that conforms to a preset tracking format according to the request, the method further includes:

[0056] The first request that does not include a burying point request is forwarded to the client, so that the client performs corresponding operations on the first request according to business needs; the second burying point request that does not conform to the preset burying point format is forwarded to the burying point server, so that the burying point server performs corresponding operations on the second burying point request.

[0057] Among them, the HTTP request forwarding function can be used to forward requests that do not contain tracking requests to the client or forward requests that do not conform to the preset tracking format to a specific interface or processing logic of the tracking server.

[0058] like Figure 2 As shown, Figure 2 This is a test flow diagram of a tracking point test method provided by an embodiment of the present application; during the test, the non-tracking point requests obtained by screening are forwarded to the client, and the requests obtained by screening that do not conform to the preset tracking point format are forwarded to the tracking point server. In addition, after the target request is parsed, it is forwarded to the tracking point server.

[0059] This embodiment can realize intelligent forwarding of different types of requests by forwarding requests that do not include burial point requests to the client and forwarding requests that do not conform to the preset burial point format to the burial point server, so that requests can be operated accordingly according to business needs and ensure that requests that conform to the preset burial point format are correctly recorded and processed, thereby improving the flexibility and reliability of the system and ensuring the normal operation of the business and the effective management of data.

[0060] In some embodiments, filtering and obtaining a tracking request according to the request information includes:

[0061] Each request information is matched to determine whether the request information meets the request characteristics of the tracking request; when the request information meets the request characteristics of the tracking request, the request corresponding to the request information is marked as a tracking request.

[0062] Among them, when identifying whether a request is a buried point request, since the buried point request usually has specific request characteristics, the URL, parameters or request body of the buried point request contains buried point related identifiers or specific data formats. At this time, a match can be made based on the request information corresponding to the request. If the request information contains the buried point request characteristics, the request can be marked as a buried point request. In addition, it can also be identified in combination with other contextual information, such as the source of the request, the HTTP method of the request, etc. As an example, the regular expression or string matching function in the programming language can be used to match the request information of each request to determine whether it meets the request characteristics of the buried point request.

[0063] During the test, when unmatched events or abnormal attribute values ​​are found, record the abnormal information in a timely manner, including the abnormal event name, specific attribute value, abnormal cause, etc. This information can be saved in a log file or a special abnormal information recording table.

[0064] Classify exceptions and distinguish different types of exceptions, such as event identifier matching failure, attribute value format error, missing attributes, etc., for subsequent analysis and processing.

[0065] This embodiment can realize the rapid matching of request features and the marking of tracking request, so as to effectively identify and process tracking request. By screening the tracking request, the scope of the test is narrowed, the efficiency of the tracking test is improved, and the occupancy of the database is reduced.

[0066] In some embodiments, the target request is parsed to obtain the target tracking data, including:

[0067] Obtain a preset data structure of the target request; based on the preset data structure, parse the target request to obtain the target embedding data.

[0068] When parsing the target request, you first need to clarify the format of the tracking information, which may be a specific parameter name, specific request body content, or specific request information. For web tracking, it may involve specific URL parameters or specific fields in the POST request; for mobile application tracking, it may involve specific event names and parameters.

[0069] According to the format of the tracking information, select the appropriate parsing method to extract it. If the tracking information is in the URL parameter, you can use the URL parsing library or parse the URL string yourself; if it is in the request body of the POST request, you can use the form parsing library or JSON parser to extract the information.

[0070] The analysis results are usually returned in the form of data format for subsequent data analysis and processing. The specific content of the analysis results depends on the definition of the embedded event and business needs, and may include user behavior data, device information, user attributes, etc.

[0071] This embodiment obtains accurate and complete tracking data by parsing the target request, providing a reliable data basis for subsequent tracking test and analysis.

[0072] In some embodiments, according to a preset comparison rule, the target tracking data is matched with the preset tracking requirements to obtain a tracking test result set, including:

[0073] According to the preset burying point requirements and preset comparison rules, determine whether the target burying point data fully meets the preset comparison rules; if so, output a burying point success event including the first identification information, and the first identification information is used to indicate that the burying point test is successful; if not, output a burying point failure event including the second identification information, and the second identification information is used to indicate that the burying point test failed; determine the burying point test result set based on the burying point success event and the burying point failure event.

[0074] The preset comparison rules are used to match the parsed target tracking data. These rules can include event identifier matching, attribute integrity checking, etc. Through the design of comparison rules, the system can accurately determine whether the tracking data meets expectations, thereby effectively distinguishing between successful and failed tracking events. The specific comparison process is as follows: Figure 3 shown.

[0075] This embodiment determines whether the burying point is successful by comparing the target burying point data obtained by the corresponding analysis in the preset burying point requirements with the preset comparison rules. By matching the target burying point data with the preset comparison rules, a burying point test result set is obtained, and the success and failure events of the burying point test are clearly distinguished, providing a reliable basis for subsequent data analysis and decision-making.

[0076] In some embodiments, obtaining the tracking point test result according to the tracking point event result set includes:

[0077] According to the preset comparison rules, record the first rule that each tracking point failure event does not meet; analyze the cause of the tracking point failure according to the first rule; generate a tracking point test report based on the tracking point test result set and the tracking point failure cause.

[0078] The tracking events that do not meet the preset comparison rules are recorded as tracking failure events, where the specific rules that are not met are used to explain the failure reasons of the tracking failure events. A tracking test report is also generated.

[0079] By analyzing the reasons for the failure of tracking, the tracking test results can be effectively analyzed and reports can be generated, providing users with clear and accurate test results and analysis, helping users to discover and solve tracking problems in a timely manner.

[0080] according to Figure 3 The matching process provided obtains a specific implementation example. In this implementation example, the point embedding requirement list corresponds to the preset point embedding requirements in this application, and the point embedding rule library corresponds to the preset comparison rules in this application.

[0081] The specific content of the tracking point requirement list includes the event names of multiple tracking point events to be tested, including "enter homepage", "click mine", and "enter personal homepage".

[0082] The tracking point rule library includes preset comparison rules. Specific comparison rules include "event identifier matching: check that the event name is consistent with the tracking point requirement list; userId attribute value matching: check that the userId attribute value is 0-15 digits."

[0083] The preset comparison rules include checking the event name, i.e., event identifier match, and userId attribute value match, as follows:

[0084] 1. Event identifier matching: For event identifiers, you can check whether the event name is consistent with the definition in the requirements list. If the name of the tracking point event is not in the requirements list, it may mean that there is an undefined tracking point or the tracking point name is wrong, and exception handling is required.

[0085] 2. UserId attribute value matching: For the userId attribute value, you can check the length and format to ensure that it is 0-15 digits. This helps to eliminate userId format errors or anomalies, and can also help identify missing or abnormal userIds.

[0086] Based on the above two preset comparison rules, the system can perform intelligent comparison and analysis on the collected target tracking data, identify abnormal situations such as inconsistent event names or incorrect userId attribute formats, and record, alarm and handle them in a timely manner. This can help ensure the accuracy of tracking data and the stability of the system.

[0087] In this embodiment, the target request is parsed to obtain the target embedding data, and the target embedding data includes "event name" and "attributes", as shown in Table 1.

[0088] Furthermore, the preset comparison rules are introduced from the tracking point rule library, and then the event name is determined from the target tracking point data according to the preset tracking point requirements, and it is judged whether the target event complies with the rules, so as to obtain a set of successful tracking point events that comply with the rules and a set of failed tracking point events that do not comply with the rules. On this basis, a tracking point test report as shown in Table 2 is obtained, that is, the tracking point test results.

[0089] Table 1: Target point data table

[0090]

[0091] Table 2: Buried point test report

[0092] Event Name Test Results Details Go to home page pass Click the navigation button fail Event Identifier Match: Failed Click My fail Event Identifier Match: Failed Go to personal homepage fail userId attribute value matching: failed

[0093] According to the report content, the "Enter Homepage" event test passed, which was in line with expectations, that is, the tracking point test was successful; the "Click Navigation Button" and "Click My" events failed to pass the test because the event identifier match failed to meet the comparison rules, and there may be inconsistent or incorrect tracking point name definitions, which require further inspection and adjustment; the "Enter Personal Homepage" event failed to pass the test because the userId attribute value failed to match, and there may be userId format errors or missing situations, which need to be checked and repaired. The report provides clear test results and related tracking point failure reasons, which helps the development team identify and resolve tracking point anomalies and ensure the normal operation of the system and data accuracy.

[0094] This embodiment implements on-demand testing of tracking point requests through a specific tracking point test comparison process, improves the efficiency of tracking point testing and saves database expenses by flexibly defining tracking point rules and tracking point requirements.

[0095] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0096] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.

[0097] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0098] Figure 4 Schematic diagram of a buried point test device provided in an embodiment of the present application. Figure 4 As shown, the device comprises:

[0099] The acquisition module 401 is used to acquire the request sent by the client;

[0100] The screening module 402 obtains a target request that conforms to a preset tracking format according to the request;

[0101] The parsing module 403 parses the target request to obtain target embedding data;

[0102] Comparison module 404, according to the preset comparison rules, matches the target burying point data with the preset burying point requirements to obtain a burying point test result set, the burying point test result set includes burying point success events and burying point failure events. The preset burying point requirements are used to determine the burying point events to be tested;

[0103] The determination module 405 is used to obtain the tracking point test result according to the tracking point event result set.

[0104] In some embodiments, the acquisition module is specifically used to obtain request information according to the request; filter and obtain the burying point request according to the request information; and filter the burying point request to obtain a target request that conforms to a preset burying point format.

[0105] In some embodiments, the acquisition module is also used to forward a request that does not include a first burying point request to a client, so that the client performs corresponding operations on the first request according to business needs; and forward a second burying point request that does not conform to a preset burying point format to a burying point server, so that the burying point server performs corresponding operations on the second burying point request.

[0106] In some embodiments, the acquisition module also includes a matching unit, which is specifically used to match each request information to determine whether the request information meets the request characteristics of the burying point request; when the request information meets the request characteristics of the burying point request, the request corresponding to the request information is marked as a burying point request.

[0107] In some embodiments, the parsing module is specifically used to obtain a preset data structure of a target request; based on the preset data structure, the target request is parsed to obtain target burial point data.

[0108] In some embodiments, the comparison module is specifically used to determine whether the target burying point data fully meets the preset comparison rules based on the preset burying point requirements and the preset comparison rules; if so, output a burying point success event including first identification information, and the first identification information is used to indicate that the burying point test is successful; if not, output a burying point failure event including second identification information, and the second identification information is used to indicate that the burying point test fails; determine the burying point test result set based on the burying point success event and the burying point failure event.

[0109] In some embodiments, the determination module is specifically used to record the first rule that each burying point failure event does not satisfy according to the preset comparison rule; obtain the cause of the burying point failure according to the first rule; and generate a burying point test report according to the burying point test result set and the burying point failure cause.

[0110] The embedded point testing device provided in the embodiment of the present application can realize all the processes and beneficial effects realized in the above-mentioned method embodiment. To avoid repetition, they will not be described here.

[0111] Figure 5 Schematic diagram of an electronic device 5 provided in an embodiment of the present application. Figure 5 As shown, the electronic device 5 of this embodiment includes: a processor 501, a memory 502, and a computer program 503 stored in the memory 502 and executable on the processor 501. When the processor 501 executes the computer program 503, the steps in the above-mentioned method embodiments are implemented. Alternatively, when the processor 501 executes the computer program 503, the functions of the modules / units in the above-mentioned device embodiments are implemented.

[0112] The electronic device 5 may be a desktop computer, a notebook, a PDA, a cloud server, or other electronic device. The electronic device 5 may include, but is not limited to, a processor 501 and a memory 502. Those skilled in the art will appreciate that Figure 5 The electronic device 5 is merely an example and does not limit the electronic device 5 , and may include more or less components than those shown in the figure, or different components.

[0113] The processor 501 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.

[0114] The memory 502 may be an internal storage unit of the electronic device 5, for example, a hard disk or memory of the electronic device 5. The memory 502 may also be an external storage device of the electronic device 5, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 5. The memory 502 may also include both an internal storage unit of the electronic device 5 and an external storage device. The memory 502 is used to store computer programs and other programs and data required by the electronic device.

[0115] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units.

[0116] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium (e.g., a computer-readable storage medium). Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. The computer program may include computer program code, which may be in source code form, object code form, executable file or some intermediate form, etc. The readable storage medium may include: any entity or device capable of carrying a computer program code, a recording medium, a U disk, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc.

[0117] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A buried point testing method, characterized in that: Applied to the agent side, including: Get the request sent by the client; According to the request, a target request that conforms to a preset tracking format is obtained by screening; Parsing the target request to obtain target embedding data; According to the preset comparison rule, the target burying point data is matched with the preset burying point requirement to obtain a burying point test result set, wherein the burying point test result set includes burying point success events and burying point failure events, and the preset burying point requirement is used to determine the burying point event to be tested; The embedding test result is obtained according to the embedding event result set.

2. The buried point testing method according to claim 1, characterized in that: According to the request, a target request that conforms to the preset tracking format is obtained, including: According to the request, obtaining request information; According to the request information, a tracking request is obtained by filtering; The tracking request is filtered to obtain a target request that conforms to a preset tracking format.

3. The buried point testing method according to claim 2, characterized in that: After obtaining a target request that conforms to a preset tracking format according to the request, the following steps are also included: Forwarding the first request that does not include the embedding request to the client, so that the client performs corresponding operations on the first request according to business requirements; The second burying point request that does not conform to the preset burying point format is forwarded to the burying point server, so that the burying point server performs corresponding operations on the second burying point request.

4. The buried point testing method according to claim 2, characterized in that: According to the request information, the tracking request is obtained by screening, including: Match each of the request information to determine whether the request information meets the request characteristics of the tracking request; When the request information meets the request characteristics of the burying point request, the request corresponding to the request information is marked as a burying point request.

5. The buried point testing method according to claim 1, characterized in that: The target request is parsed to obtain target tracking data, including: Obtaining a preset data structure of the target request; Based on the preset data structure, the target request is parsed to obtain the target embedding point data.

6. The buried point testing method according to claim 1, characterized in that: According to the preset comparison rule, the target burying point data is matched with the preset burying point requirement to obtain a burying point test result set, including: According to the preset burying point requirement and the preset comparison rule, determining whether the target burying point data completely satisfies the preset comparison rule; If yes, output a successful embedding event including first identification information, where the first identification information is used to indicate that the embedding test is successful; If not, output a burying point failure event including second identification information, where the second identification information is used to indicate that the burying point test failed; The burying point test result set is determined according to the burying point success event and the burying point failure event.

7. The buried point testing method according to any one of claims 1 to 6, characterized in that: The tracking test results are obtained according to the tracking event result set, including: According to the preset comparison rule, record the first rule that each tracking failure event does not satisfy; Analyze the failure reason of tracking point according to the first rule; Generate a tracking test report based on the tracking test result set and the tracking test failure reason.

8. A real-time testing device for buried points, characterized in that: include: The acquisition module is used to obtain the request sent by the client; A screening module obtains a target request that conforms to a preset tracking format according to the request; The parsing module parses the target request to obtain target embedding data; A comparison module, according to a preset comparison rule, matches the target burying point data with the preset burying point requirement to obtain a burying point test result set, wherein the burying point test result set includes a burying point success event and a burying point failure event. The preset burying point requirement is used to determine the burying point event to be tested; A determination module is used to obtain the tracking test result based on the tracking event result set.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.