CN112015652A - Buried point testing method, device, equipment and storage medium - Google Patents

Buried point testing method, device, equipment and storage medium Download PDF

Info

Publication number
CN112015652A
CN112015652A CN202010889748.7A CN202010889748A CN112015652A CN 112015652 A CN112015652 A CN 112015652A CN 202010889748 A CN202010889748 A CN 202010889748A CN 112015652 A CN112015652 A CN 112015652A
Authority
CN
China
Prior art keywords
target
client
buried point
information
point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010889748.7A
Other languages
Chinese (zh)
Inventor
张晋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202010889748.7A priority Critical patent/CN112015652A/en
Publication of CN112015652A publication Critical patent/CN112015652A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3644Software debugging by instrumenting at runtime
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/366Software debugging using diagnostics

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Geophysics And Detection Of Objects (AREA)

Abstract

The disclosure relates to a buried point testing method, device, equipment and storage medium. The buried point testing method comprises the following steps: executing a target test script, and triggering a target operation event corresponding to a target client page in a client to be tested so as to enable a target buried point in the client to be tested to respond to the target operation event and generate a buried point log; acquiring operation path information corresponding to the target operation event; and sending the embedded point log and the operation path information to a server so that the server determines a test result of a target embedded point in the client to be tested according to the embedded point log and the operation path information. The embodiment of the disclosure can increase the collection of the operation path information corresponding to the target operation event, so that the server can determine whether the reporting time of the buried point is accurate according to the operation path information, thereby improving the accuracy of the buried point test.

Description

Buried point testing method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for testing a buried point.
Background
The buried point is a common data acquisition method. By embedding points in a page of an application program, user data corresponding to the page can be acquired. The accuracy of the user data has important significance in subsequent various decisions, and the accuracy of the buried point in the application program is very important to guarantee. Therefore, a buried point test is required before each time the application comes online.
In the related technology, the collected buried point information is compared with the buried point information of the preset buried points, whether the preset buried points are invalid or not is determined according to the comparison result, and invalid buried points in the preset buried points are checked.
Disclosure of Invention
The disclosure provides a buried point testing method, a buried point testing device, a buried point testing equipment and a storage medium, which are used for at least solving the problems that the buried point testing is inaccurate due to the fact that only collected buried point information is compared with buried point information of preset buried points, whether the buried point information is expected or not is compared, and the time for reporting the buried points is not verified in the related art. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a buried point testing method applied to a terminal device, including: executing a target test script, and triggering a target operation event corresponding to a target client page in a client to be tested so as to enable a target buried point in the client to be tested to respond to the target operation event and generate a buried point log; acquiring operation path information corresponding to the target operation event; and sending the embedded point log and the operation path information to a server so that the server determines a test result of a target embedded point in the client to be tested according to the embedded point log and the operation path information.
Optionally, the buried point testing method further includes:
recording a target operation event corresponding to a target client page in the client to be tested through a preset recording operation video plug-in to obtain an operation video corresponding to the target test script;
and storing the operation video to a preset video storage position.
Optionally, the determining a test result of the target buried point in the client to be tested according to the buried point log and the operation path information includes:
acquiring preset burying point information and preset operation path information corresponding to the target burying point;
extracting buried point information from the buried point log, and comparing the buried point information with the preset buried point information to obtain a buried point information comparison result;
comparing the operation path information with the preset operation path information to obtain an operation path comparison result;
and determining a test result of the target buried point in the client to be tested according to the buried point information comparison result and the operation path comparison result.
Optionally, the determining a test result of the target buried point in the client to be tested according to the buried point information comparison result and the operation path comparison result includes:
if the buried point information comparison result is that the buried point information is consistent with the preset buried point information and the operation path comparison result is that the operation path information is consistent with the preset operation path information, determining that the test result of the target buried point in the client to be tested is a test pass;
if the buried point information comparison result is that the buried point information is inconsistent with the preset buried point information and the operation path comparison result is that the operation path information is consistent with the preset operation path information, determining that the test result of the target buried point in the client to be tested is that the target buried point is invalid;
if the buried point information comparison result is that the buried point information is consistent with the preset buried point information and the operation path comparison result is that the operation path information is inconsistent with the preset operation path information, it is determined that the reporting time of the target buried point in the client to be tested is inaccurate if the test result of the target buried point is the target buried point;
and if the comparison result of the embedded point information is that the embedded point information is inconsistent with the preset embedded point information and the comparison result of the operation path is that the operation path information is inconsistent with the preset operation path information, determining that the test result of the target embedded point in the client to be tested is that the target embedded point is invalid and the reporting time of the target embedded point is inaccurate.
Optionally, before executing the target test script, the method further includes:
and acquiring a target test script matched with the client to be tested from the server according to the identification information of the client to be tested.
Optionally, the obtaining operation path information corresponding to the target operation event includes:
and generating operation path information corresponding to the target operation event according to the identification information of at least one page control corresponding to the target operation event.
Optionally, before generating the operation path information corresponding to the target operation event according to the identification information of the at least one page control corresponding to the target operation event, the method further includes:
monitoring a target operation event corresponding to a target client page in the client to be tested, determining at least one page control corresponding to the target operation event, and acquiring identification information of each page control.
Optionally, the sending the embedded point log and the operation path information to the server includes:
and using an information output function to report the embedded point log and the operation path information to the server from a preset interface as output information.
According to a second aspect of the embodiments of the present disclosure, there is provided a buried point testing method applied to a server, including: acquiring a buried point log and operation path information sent by a terminal device, wherein the buried point log is a target buried point in a client to be tested and executes a target test script on the terminal device, a target operation event corresponding to a target client page in the client to be tested is triggered and captured, data information corresponding to the target operation event is acquired, and the operation path information is generated according to the data information and is the operation path information corresponding to the target operation event; determining a target buried point in the client to be tested corresponding to the buried point log and the operation path information; and determining a test result of the target buried point in the client to be tested according to the buried point log and the operation path information.
Optionally, after acquiring the embedded point log and the operation path information sent by the terminal device, the embedded point testing method further includes:
if the terminal equipment does not send the embedded point log and the operation path information, determining a preset video storage position corresponding to the terminal equipment, and acquiring an operation video corresponding to a target test script from the preset video storage position;
and determining a test result of the target buried point in the client to be tested according to the operation video.
Optionally, the determining, according to the operation video, a test result of the target buried point in the client to be tested includes:
the operation video is played back, and whether the target test script triggers a target operation event corresponding to a target client page in the client to be tested is judged;
if the target test script is determined not to trigger a target operation event corresponding to a target client page in the client to be tested, determining that a test result of a target buried point in the client to be tested is that the target buried point is not reported due to the fact that no operation is executed;
and if the target test script triggers a target operation event corresponding to a target client page in the client to be tested, determining that the test result of the target embedded point in the client to be tested is that the target embedded point is not reported.
Optionally, the determining a test result of the target buried point in the client to be tested according to the buried point log and the operation path information includes:
acquiring preset burying point information and preset operation path information corresponding to the target burying point;
extracting buried point information from the buried point log, and comparing the buried point information with the preset buried point information to obtain a buried point information comparison result;
comparing the operation path information with the preset operation path information to obtain an operation path comparison result;
and determining a test result of the target buried point in the client to be tested according to the buried point information comparison result and the operation path comparison result.
Optionally, the determining a test result of the target buried point in the client to be tested according to the buried point information comparison result and the operation path comparison result includes:
if the buried point information comparison result is that the buried point information is consistent with the preset buried point information and the operation path comparison result is that the operation path information is consistent with the preset operation path information, determining that the test result of the target buried point in the client to be tested is a test pass;
if the buried point information comparison result is that the buried point information is inconsistent with the preset buried point information and the operation path comparison result is that the operation path information is consistent with the preset operation path information, determining that the test result of the target buried point in the client to be tested is that the target buried point is invalid;
if the buried point information comparison result is that the buried point information is consistent with the preset buried point information and the operation path comparison result is that the operation path information is inconsistent with the preset operation path information, it is determined that the reporting time of the target buried point in the client to be tested is inaccurate if the test result of the target buried point is the target buried point;
and if the comparison result of the embedded point information is that the embedded point information is inconsistent with the preset embedded point information and the comparison result of the operation path is that the operation path information is inconsistent with the preset operation path information, determining that the test result of the target embedded point in the client to be tested is that the target embedded point is invalid and the reporting time of the target embedded point is inaccurate.
Optionally, the obtaining of the embedded point log and the operation path information sent by the terminal device includes:
and acquiring the embedded point log and the operation path information reported by the terminal equipment from a preset interface by using an information output function.
Optionally, the determining a target buried point in the to-be-tested client corresponding to the buried point log and the operation path information includes:
and determining a target embedded point in the client to be tested corresponding to the embedded point log and the operation path information according to the embedded point identification information in the embedded point log and the operation path information.
According to a third aspect of the embodiments of the present disclosure, there is provided a buried point testing apparatus configured in a terminal device, including: the event triggering module is configured to execute a target test script and trigger a target operation event corresponding to a target client page in a client to be tested so that a target embedded point in the client to be tested responds to the target operation event to generate an embedded point log; a path acquisition module configured to acquire operation path information corresponding to the target operation event; the information sending module is configured to send the embedded point log and the operation path information to a server, so that the server determines a test result of a target embedded point in the client to be tested according to the embedded point log and the operation path information.
Optionally, the buried point testing device further includes:
the video recording module is configured to record a target operation event corresponding to a target client page in the client to be tested through a preset recording operation video plug-in to obtain an operation video corresponding to the target test script;
the video storage module is configured to store the operation video to a preset video storage position.
Optionally, the determining a test result of the target buried point in the client to be tested according to the buried point log and the operation path information includes:
acquiring preset burying point information and preset operation path information corresponding to the target burying point;
extracting buried point information from the buried point log, and comparing the buried point information with the preset buried point information to obtain a buried point information comparison result;
comparing the operation path information with the preset operation path information to obtain an operation path comparison result;
and determining a test result of the target buried point in the client to be tested according to the buried point information comparison result and the operation path comparison result.
Optionally, the determining a test result of the target buried point in the client to be tested according to the buried point information comparison result and the operation path comparison result includes:
if the buried point information comparison result is that the buried point information is consistent with the preset buried point information and the operation path comparison result is that the operation path information is consistent with the preset operation path information, determining that the test result of the target buried point in the client to be tested is a test pass;
if the buried point information comparison result is that the buried point information is inconsistent with the preset buried point information and the operation path comparison result is that the operation path information is consistent with the preset operation path information, determining that the test result of the target buried point in the client to be tested is that the target buried point is invalid;
if the buried point information comparison result is that the buried point information is consistent with the preset buried point information and the operation path comparison result is that the operation path information is inconsistent with the preset operation path information, it is determined that the reporting time of the target buried point in the client to be tested is inaccurate if the test result of the target buried point is the target buried point;
and if the comparison result of the embedded point information is that the embedded point information is inconsistent with the preset embedded point information and the comparison result of the operation path is that the operation path information is inconsistent with the preset operation path information, determining that the test result of the target embedded point in the client to be tested is that the target embedded point is invalid and the reporting time of the target embedded point is inaccurate.
Optionally, the buried point testing device further includes:
and the script acquisition module is configured to acquire a target test script matched with the client to be tested from the server according to the identification information of the client to be tested.
Optionally, the path obtaining module includes:
and the path information generating unit is configured to generate operation path information corresponding to the target operation event according to the identification information of the at least one page control corresponding to the target operation event.
Optionally, the path obtaining module further includes:
and the identification information acquisition unit is configured to monitor a target operation event corresponding to a target client page in the client to be tested before generating operation path information corresponding to the target operation event according to the identification information of at least one page control corresponding to the target operation event, determine at least one page control corresponding to the target operation event, and acquire the identification information of each page control.
Optionally, the information sending module includes:
and the information sending unit is configured to use an information output function to report the embedded point log and the operation path information to the server from a preset interface as output information.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a buried point testing apparatus configured in a server, including: the information acquisition module is configured to acquire a buried point log and operation path information sent by a terminal device, wherein the buried point log is a target buried point in a client to be tested and executes a target test script on the terminal device, a target operation event corresponding to a target client page in the client to be tested is triggered and captured, data information corresponding to the target operation event is acquired, and the operation path information is generated according to the data information and is the operation path information corresponding to the target operation event; the buried point determining module is configured to determine a target buried point in the client to be tested corresponding to the buried point log and the operation path information; and the result determining module is configured to determine a test result of the target buried point in the client to be tested according to the buried point log and the operation path information.
Optionally, the buried point testing device further includes:
the video acquisition module is configured to determine a preset video storage position corresponding to the terminal equipment and acquire an operation video corresponding to a target test script from the preset video storage position if the terminal equipment does not send the embedded point log and the operation path information after acquiring the embedded point log and the operation path information sent by the terminal equipment;
and the video judgment module is configured to determine a test result of the target buried point in the client to be tested according to the operation video.
Optionally, the video determining module includes:
the video playback unit is configured to play back the operation video and judge whether the target test script triggers a target operation event corresponding to a target client page in the client to be tested;
a first result determining unit, configured to determine that a test result of a target embedded point in the client to be tested is target embedded point unreported caused by unexecuted operation if it is determined that the target test script does not trigger a target operation event corresponding to a target client page in the client to be tested;
and the second result determining unit is configured to determine that the test result of the target buried point in the client to be tested is that the target buried point is not reported if it is determined that the target test script triggers the target operation event corresponding to the target client page in the client to be tested.
Optionally, the result determining module includes:
an information acquisition unit configured to acquire preset buried point information and preset operation path information corresponding to the target buried point;
the buried point information comparison unit is configured to extract buried point information from the buried point log and compare the buried point information with the preset buried point information to obtain a buried point information comparison result;
the operation path comparison unit is configured to compare the operation path information with the preset operation path information to obtain an operation path comparison result;
and the result determining unit is configured to determine a test result of the target buried point in the client to be tested according to the buried point information comparison result and the operation path comparison result.
Optionally, the result determining unit includes:
a first determining subunit, configured to determine that a test result of a target buried point in the client to be tested is a test pass if the buried point information comparison result is that the buried point information is consistent with the preset buried point information and the operation path comparison result is that the operation path information is consistent with the preset operation path information;
a second determining subunit, configured to determine that a test result of a target buried point in the client to be tested is a target buried point failure if the buried point information comparison result is that the buried point information is inconsistent with the preset buried point information and the operation path comparison result is that the operation path information is consistent with the preset operation path information;
a third determining subunit, configured to determine that the reporting time of the target buried point in the client to be tested is inaccurate if the buried point information comparison result is that the buried point information is consistent with the preset buried point information and the operation path comparison result is that the operation path information is inconsistent with the preset operation path information;
a fourth determining subunit, configured to determine that the test result of the target buried point in the client to be tested is that the target buried point fails and the reporting time of the target buried point is inaccurate if the buried point information comparison result is that the buried point information is inconsistent with the preset buried point information and the operation path comparison result is that the operation path information is inconsistent with the preset operation path information.
Optionally, the information obtaining module includes:
and the information acquisition unit is configured to acquire the embedded point log reported from a preset interface and the operation path information by using an information output function of the terminal equipment.
Optionally, the buried point determining module includes:
and the buried point determining unit is configured to determine a target buried point in the client to be tested corresponding to the buried point log and the operation path information according to the buried point identification information in the buried point log and the operation path information.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a buried point testing system, including: a terminal device and a server; the terminal device is used for executing a target test script and triggering a target operation event corresponding to a target client page in a client to be tested so that a target embedded point in the client to be tested responds to the target operation event and generates an embedded point log; acquiring operation path information corresponding to the target operation event; sending the embedded point log and the operation path information to a server; the server is used for acquiring the embedded point log and the operation path information sent by the terminal equipment; determining a target buried point in the client to be tested corresponding to the buried point log and the operation path information; and determining a test result of the target buried point in the client to be tested according to the buried point log and the operation path information.
Optionally, the terminal device is further configured to:
recording a target operation event corresponding to a target client page in the client to be tested through a preset recording operation video plug-in to obtain an operation video corresponding to the target test script;
and storing the operation video to a preset video storage position.
Optionally, the determining a test result of the target buried point in the client to be tested according to the buried point log and the operation path information includes:
the server acquires preset burying point information and preset operation path information corresponding to the target burying point;
the server extracts buried point information from the buried point log, and compares the buried point information with the preset buried point information to obtain a buried point information comparison result;
the server compares the operation path information with the preset operation path information to obtain an operation path comparison result;
and the server determines a test result of the target buried point in the client to be tested according to the buried point information comparison result and the operation path comparison result.
Optionally, the determining a test result of the target buried point in the client to be tested according to the buried point information comparison result and the operation path comparison result includes:
if the buried point information comparison result is that the buried point information is consistent with the preset buried point information and the operation path comparison result is that the operation path information is consistent with the preset operation path information, the server determines that the test result of the target buried point in the client to be tested is a test pass;
if the buried point information comparison result is that the buried point information is inconsistent with the preset buried point information and the operation path comparison result is that the operation path information is consistent with the preset operation path information, the server determines that the test result of the target buried point in the client to be tested is that the target buried point is invalid;
if the buried point information comparison result is that the buried point information is consistent with the preset buried point information and the operation path comparison result is that the operation path information is inconsistent with the preset operation path information, the server determines that the reporting time of the target buried point in the client to be tested is inaccurate when the test result of the target buried point is the target buried point;
and if the comparison result of the embedded point information is that the embedded point information is inconsistent with the preset embedded point information and the comparison result of the operation path is that the operation path information is inconsistent with the preset operation path information, the server determines that the test result of the target embedded point in the client to be tested is that the target embedded point is invalid and the reporting time of the target embedded point is inaccurate.
Optionally, before executing the target test script, the method further includes:
and the terminal equipment acquires a target test script matched with the client to be tested from the server according to the identification information of the client to be tested.
Optionally, the obtaining operation path information corresponding to the target operation event includes:
and the terminal equipment generates operation path information corresponding to the target operation event according to the identification information of at least one page control corresponding to the target operation event.
Optionally, before generating the operation path information corresponding to the target operation event according to the identification information of the at least one page control corresponding to the target operation event, the method further includes:
the terminal equipment monitors a target operation event corresponding to a target client page in the client to be tested, determines at least one page control corresponding to the target operation event, and acquires identification information of each page control.
Optionally, the sending the embedded point log and the operation path information to the server includes:
and the terminal equipment uses an information output function to report the embedded point log and the operation path information to the server from a preset interface as output information.
Optionally, after acquiring the embedded point log and the operation path information sent by the terminal device, the embedded point testing method further includes:
if the terminal equipment does not send the embedded point log and the operation path information, the server determines a preset video storage position corresponding to the terminal equipment and acquires an operation video corresponding to a target test script from the preset video storage position;
and the server determines a test result of a target buried point in the client to be tested according to the operation video.
Optionally, the determining, according to the operation video, a test result of the target buried point in the client to be tested includes:
the server plays back the operation video and judges whether the target test script triggers a target operation event corresponding to a target client page in the client to be tested;
if the server determines that the target test script does not trigger a target operation event corresponding to a target client page in the client to be tested, determining that a test result of a target buried point in the client to be tested is that the target buried point is not reported due to the fact that no operation is executed;
and if the server determines that the target test script triggers a target operation event corresponding to a target client page in the client to be tested, determining that the test result of the target buried point in the client to be tested is that the target buried point is not reported.
Optionally, the obtaining of the embedded point log and the operation path information sent by the terminal device includes:
and the server acquires a terminal equipment use information output function, the embedded point log reported from a preset interface and the operation path information.
Optionally, the determining a target buried point in the to-be-tested client corresponding to the buried point log and the operation path information includes:
and the server determines a target embedded point in the client to be tested corresponding to the embedded point log and the operation path information according to the embedded point log and the embedded point identification information in the operation path information.
According to a sixth aspect of embodiments of the present disclosure, there is provided a computer device comprising: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the buried point testing method according to any embodiment of the present disclosure.
According to a seventh aspect of the embodiments of the present disclosure, there is provided a storage medium, wherein instructions of the storage medium, when executed by a processor of a computer device, enable the computer device to perform the buried point testing method according to any one of the embodiments of the present disclosure.
According to an eighth aspect of the embodiments of the present disclosure, there is provided a computer program product for use in conjunction with a computer device, the computer program product comprising a computer-readable storage medium and a computer program mechanism embedded therein, the program being loaded into a computer and executed to implement the method for embedded point testing according to any of the embodiments of the present disclosure.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
the problem that embedded point testing is inaccurate due to the fact that in the related technology, only collected embedded point information is compared with embedded point information of preset embedded points, whether the collected embedded point information is in accordance with expectation or not is compared, and the time for reporting the embedded points is not verified is solved, collection of operation path information corresponding to a target operation event can be increased, so that a server can determine whether the time for reporting the embedded points is accurate or not according to the operation path information, and accuracy of embedded point testing is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a flow chart illustrating a method of buried site testing according to an exemplary embodiment.
FIG. 2 is a flow chart illustrating a method of buried site testing according to an exemplary embodiment.
FIG. 3 is a flow chart illustrating a method of buried site testing according to an exemplary embodiment.
FIG. 4 is a flow chart illustrating a method of buried site testing according to an exemplary embodiment.
FIG. 5 is a flow chart illustrating a method of buried point testing according to an exemplary embodiment.
FIG. 6 is a flow chart illustrating a method of buried point testing according to an exemplary embodiment.
FIG. 7 is a block diagram illustrating a buried site testing apparatus according to an exemplary embodiment.
FIG. 8 is a block diagram illustrating a buried site testing apparatus according to an exemplary embodiment.
FIG. 9 is a block diagram illustrating a computer device in accordance with an exemplary embodiment.
FIG. 10 is a block diagram illustrating a buried site testing system in accordance with an exemplary embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
For the convenience of understanding, the main inventive concepts of the disclosed exemplary embodiments are briefly described.
In the related technology, the collected buried point information is compared with the buried point information of the preset buried points, whether the preset buried points are invalid or not is determined according to the comparison result, and invalid buried points in the preset buried points are checked.
The time for reporting the buried point is that a user triggers an operation and reports a buried point log, and the related technology only compares the collected buried point information with the buried point information of a preset buried point, compares whether the buried point information meets expectations or not, and causes inaccurate buried point test due to lack of verification of the time for reporting the buried point.
The related technology is not accurate enough for judging whether the buried point is invalid or not. There are two reasons for buried point failure: relevant operations corresponding to the buried points have been triggered, but the buried points do not report buried point information; the relevant operation corresponding to the buried point triggers failure, resulting in the buried point information of the buried point not being collected. In the related technology, only the collected buried point information is compared with the buried point information of the preset buried point, and whether the buried point information is in accordance with the expectation or not is compared, so that the specific reason for the failure of the buried point cannot be determined, and the judgment on whether the buried point is in failure or not is not accurate enough.
The inventor considers whether the comparison information can be realized by a method to not only compare the embedded point information, but also compare the operation path information path corresponding to the target operation event, verifies whether the time triggered by the target embedded point is correct, and improves the accuracy of the embedded point test.
The inventor only compares the collected embedded point information with the embedded point information of the preset embedded point, compares whether the embedded point information is in accordance with expectation or not, cannot determine the specific reason of the embedded point failure, and can cause the problem that whether the embedded point is failed or not is not accurate enough, considers whether the target operation event when the embedded point is reported can be analyzed through a method or not, judges whether the reason of the target embedded point failure is caused by the fact that the target operation event triggering the embedded point response is executed by mistake or not, can quickly position the problem, avoids the false report at the same time, and improves the accuracy of the embedded point test.
Based on the above thought, the inventor creatively proposes: the terminal equipment executes a target test script and triggers a target operation event corresponding to a target client page in a client to be tested so that a target buried point in the client to be tested responds to the target operation event to generate a buried point log; the terminal equipment acquires operation path information corresponding to the target operation event; and the terminal equipment sends the embedded point log and the operation path information to a server. And the server acquires the embedded point log and the operation path information sent by the terminal equipment. And the server determines a target buried point in the client to be tested corresponding to the buried point log and the operation path information. And the server determines a test result of the target buried point in the client to be tested according to the buried point log and the operation path information.
And the terminal equipment records the target operation event corresponding to the target client page in the client to be tested through a preset recording operation video plug-in while executing the target test script and triggering the target operation event corresponding to the target client page in the client to be tested, so as to obtain the operation video corresponding to the target test script. And the terminal equipment stores the operation video to a preset video storage position. After acquiring the embedded point log and the operation path information sent by the terminal equipment, if the server determines that the embedded point log and the operation path information are not sent by the terminal equipment, determining a preset video storage position corresponding to the terminal equipment, and acquiring an operation video corresponding to a target test script from the preset video storage position. And the server determines the test result of the target buried point in the client to be tested according to the operation video.
The benefits of this are: aiming at the problem of lack of verification of the buried point reporting time, the comparison of the operation path information corresponding to the target operation event is increased, the accuracy of the buried point reporting time is ensured by the consistent comparison of the operation path information, and the accuracy of the buried point testing is improved. Aiming at the condition that whether the judgment on whether the buried point is invalid is not accurate enough, increasing video recording and video storage of a target operation event, executing a target test script, triggering the target operation event corresponding to a target client page in a client to be tested, simultaneously recording the target operation event corresponding to the target client page in the client to be tested through a preset recording operation video plug-in to obtain an operation video corresponding to the target test script, storing the operation video to a preset video storage position, when the terminal equipment does not send a buried point log and operation path information, namely when the target buried point is not reported, acquiring the operation video corresponding to the target test script from the preset video storage position for playback, and determining whether the target buried point is not reported or the target buried point is not reported due to the fact that the target operation event is not executed, the method can determine the reason of the failure of the buried point and can quickly locate the problems in the report of the buried point. And the target embedded point is not reported due to the unexecuted operation, retries can be carried out by modifying a target test script and the like, comparison between the embedded point log and the operation path information is carried out under the condition that the target operation event is really and correctly executed, and the accuracy of embedded point test is ensured.
Fig. 1 is a flowchart illustrating a buried point testing method according to an exemplary embodiment, where the buried point testing method is applied to a terminal device and executed by the terminal device, as shown in fig. 1, and includes the following steps.
In step S11, a target test script is executed to trigger a target operation event corresponding to a target client page in a client to be tested, so that a target buried point in the client to be tested responds to the target operation event to generate a buried point log.
The terminal device may be a mobile terminal or a personal computer. The client to be tested is an application program client which is installed in the terminal equipment and needs to be subjected to embedded point testing. The target client page is one of the display pages in the clients to be tested.
The target embedded point is an embedded point which is preset in the client to be tested by a developer of the client to be tested by writing an embedded point code. And the target embedded point monitors events in the running process of the client to be tested. And when a target operation event corresponding to a target client page in the client to be tested occurs, responding to the target operation event by the target embedded point to generate an embedded point log.
The target test script is an automatic test script written by a developer according to the embedded point requirement of the client to be tested. When the embedded point test is carried out, the terminal equipment triggers a target operation event corresponding to a target client page in the client to be tested by executing the target test script, so that the target embedded point in the client to be tested responds to the target operation event, and an embedded point log is generated.
In an implementation manner of the embodiment of the present disclosure, optionally, the target operation event may be a click event or a slide event. For example, the click event may be a click operation for a certain button control in a target client page in the client to be tested. The sliding event may be a sliding operation for a certain slider control in a target client page in the client to be tested.
In an implementation manner of the embodiment of the present disclosure, optionally, the generating the burial point log by responding the target buried point in the client to be tested to the target operation event may include: and capturing the target operation event by a target embedded point in the client to be tested, acquiring data information corresponding to the target operation event, and generating an embedded point log according to the data information.
In an implementation manner of the embodiment of the present disclosure, optionally, before executing the target test script, the method further includes: and acquiring a target test script matched with the client to be tested from the server according to the identification information of the client to be tested.
Specifically, in the server, test scripts for the respective clients are stored in advance. Each client has a matching test script. And distinguishing the test scripts matched with the clients according to the identification information of the clients. And the terminal equipment acquires a target test script matched with the client to be tested from the server according to the identification information of the client to be tested.
In an implementation manner of the embodiment of the present disclosure, optionally, the target test script matched with the client to be tested is pre-stored in the terminal device, and the terminal device may directly execute the target test script.
In an implementation manner of the embodiment of the present disclosure, optionally, the target buried point in the client to be tested is a single buried point. And the terminal equipment executes the target test script and triggers a target operation event corresponding to a target client page in the client to be tested so that a target buried point in the client to be tested responds to the target operation event to generate a buried point log.
In an implementation manner of the embodiment of the present disclosure, optionally, the target buried point in the client to be tested is a plurality of buried points. The terminal equipment executes the target test script and sequentially triggers a plurality of different operation events corresponding to the target client page in the client to be tested so that each embedded point in the client to be tested respectively responds to the corresponding operation event and generates an embedded point log of each embedded point.
In step S12, operation path information corresponding to the target operation event is acquired.
The operation path information corresponding to the target operation event is information for determining each step of operation in the triggering process of the target operation event. Each step of operation corresponds to unique path information.
In an implementation manner of the embodiment of the present disclosure, optionally, the obtaining operation path information corresponding to the target operation event includes: and generating operation path information corresponding to the target operation event according to the identification information of at least one page control corresponding to the target operation event.
Specifically, the path information corresponding to each step of operation in the triggering process of the target operation event is the identification information of the page control corresponding to each step of operation. And the terminal equipment sorts the identification information of the page control according to the sequence of the operation time to generate operation path information corresponding to the target operation event.
Illustratively, the target operation event is a click operation for a target button control in a target client page in the client to be tested. The triggering process of the target operation event corresponding to the target client page comprises the following steps: firstly, triggering an opening control of a home page of the client, and opening the home page of the client. And then triggering an opening control of a target client page arranged on the client home page, and opening the target client page. And finally, triggering a click operation event aiming at the target button control on the target client page. The at least one page control corresponding to the target operation event comprises: the system comprises an opening control of a client home page, an opening control of a target client page and a target button control. The terminal equipment generates operation path information corresponding to the target operation event according to the identification information of the at least one page control corresponding to the target operation event, and the operation path information comprises the following steps: identification information of the open control of the client top page → identification information of the open control of the target client page → identification information of the target button control.
In an implementation manner of the embodiment of the present disclosure, optionally, before generating, according to the identification information of the at least one page control corresponding to the target operation event, operation path information corresponding to the target operation event, the method further includes: monitoring a target operation event corresponding to a target client page in the client to be tested, determining at least one page control corresponding to the target operation event, and acquiring identification information of each page control.
Specifically, the terminal device monitors a target operation event corresponding to a target client page in the client to be tested, determines a page control corresponding to each operation step in the triggering process of the target operation event, and acquires identification information of each page control, thereby recording path information of each operation step in the triggering process of the target operation event.
In step S13, the buried point log and the operation path information are sent to a server, so that the server determines a test result of a target buried point in the client to be tested according to the buried point log and the operation path information.
In an implementation manner of the embodiment of the present disclosure, optionally, the sending the burial point log and the operation path information to the server includes: and using an information output function to report the embedded point log and the operation path information to the server from a preset interface as output information.
Specifically, the terminal device uses the information output function Consolelog to report the embedded point log and the operation path information as output information ConsoleMessage to the server from the preset interface. The preset interface is an interface for transmitting information to the server. The server may obtain the embedded point log and the operation path information from the output information ConsoleMessage reported by the preset interface. The server can also obtain the embedded point log and the operation path information from the request information of the preset interface. The server can also obtain the embedded point log and the operation path information which are reported by the preset interface and then stored in the database.
And the server acquires the embedded point log and the operation path information sent by the terminal equipment. And the server determines a target buried point in the client to be tested corresponding to the buried point log and the operation path information. And the server determines the test result of the target embedded point in the client to be tested according to the embedded point log and the operation path information.
In an implementation manner of the embodiment of the present disclosure, optionally, the determining, according to the embedded point log and the operation path information, a test result of a target embedded point in the client to be tested includes: acquiring preset burying point information and preset operation path information corresponding to the target burying point; extracting buried point information from the buried point log, and comparing the buried point information with the preset buried point information to obtain a buried point information comparison result; comparing the operation path information with the preset operation path information to obtain an operation path comparison result; and determining a test result of the target buried point in the client to be tested according to the buried point information comparison result and the operation path comparison result.
In an implementation manner of the embodiment of the present disclosure, optionally, the determining, according to the comparison result of the embedded point information and the comparison result of the operation path, a test result of a target embedded point in the client to be tested includes: if the buried point information comparison result is that the buried point information is consistent with the preset buried point information and the operation path comparison result is that the operation path information is consistent with the preset operation path information, determining that the test result of the target buried point in the client to be tested is a test pass; if the buried point information comparison result is that the buried point information is inconsistent with the preset buried point information and the operation path comparison result is that the operation path information is consistent with the preset operation path information, determining that the test result of the target buried point in the client to be tested is that the target buried point is invalid; if the buried point information comparison result is that the buried point information is consistent with the preset buried point information and the operation path comparison result is that the operation path information is inconsistent with the preset operation path information, it is determined that the reporting time of the target buried point in the client to be tested is inaccurate if the test result of the target buried point is the target buried point; and if the comparison result of the embedded point information is that the embedded point information is inconsistent with the preset embedded point information and the comparison result of the operation path is that the operation path information is inconsistent with the preset operation path information, determining that the test result of the target embedded point in the client to be tested is that the target embedded point is invalid and the reporting time of the target embedded point is inaccurate.
The technical scheme of the embodiment of the disclosure triggers a target operation event corresponding to a target client page in a client to be tested by executing a target test script, so that a target embedded point in the client to be tested responds to the target operation event to generate an embedded point log, mutually acquires operation path information corresponding to the target operation event, and finally sends the embedded point log and the operation path information to a server, so that the server determines a test result of the target embedded point in the client to be tested according to the embedded point log and the operation path information, thereby solving the problems that the embedded point test is inaccurate because the collected embedded point information is only compared with the embedded point information of a preset embedded point and the comparison of whether the embedded point information is in accordance with expectation or not and the verification of the time reported by the embedded point is lacked, and increasing the collection of the operation path information corresponding to the target operation event, therefore, the server can determine whether the reporting time of the buried point is accurate or not according to the operation path information, and the accuracy of the buried point test is improved.
Fig. 2 is a flow chart illustrating a method for testing a buried point according to an exemplary embodiment, which is a further refinement of the above technical solution, and the technical solution in the embodiment may be combined with various alternatives in one or more embodiments. As shown in fig. 2, the buried point testing method includes the following steps.
In step S21, a target test script is executed, a target operation event corresponding to a target client page in a client to be tested is triggered, so that a target embedded point in the client to be tested responds to the target operation event, a embedded point log is generated, and a target operation event corresponding to the target client page in the client to be tested is recorded through a preset recording operation video plug-in, so as to obtain an operation video corresponding to the target test script.
Non-exhaustive descriptions of the present embodiments may refer to the foregoing embodiments.
Specifically, the terminal device triggers a target operation event corresponding to a target client page in the client to be tested by executing the target test script, so that the target embedded point in the client to be tested responds to the target operation event, and an embedded point log is generated. And the terminal equipment records the target operation event corresponding to the target client page in the client to be tested through a preset recording operation video plug-in while executing the target test script to obtain the operation video corresponding to the target test script.
In step S22, the operation video is stored in a preset video storage location.
In an implementation manner of the embodiment of the present disclosure, optionally, the preset video storage location may be a database in the terminal device, and may also be a database in the server.
Specifically, the terminal device may store the operation video in a database in the terminal device, and may also store the operation video in a database in the server.
If the server determines that the terminal device does not send the embedded point log and the operation path information, the server may determine a preset video storage location corresponding to the terminal device, and obtain an operation video corresponding to the target test script from the preset video storage location. And then the server determines the test result of the target buried point in the client to be tested according to the operation video.
In step S23, operation path information corresponding to the target operation event is acquired.
In step S24, the buried point log and the operation path information are sent to a server, so that the server determines a test result of a target buried point in the client to be tested according to the buried point log and the operation path information.
The technical scheme of the embodiment of the disclosure records the target operation event corresponding to the target client page in the client to be tested through the preset recording operation video plug-in while executing the target test script to obtain the operation video corresponding to the target test script, and stores the operation video to the preset video storage position, thereby solving the problem that the judgment on whether the embedded point is invalid is not accurate due to the fact that the collected embedded point information is only compared with the embedded point information of the preset embedded point and whether the embedded point information is in accordance with the expectation or not and the specific reason of the embedded point failure cannot be determined in the related technology, increasing the video recording and video storage of the target operation event, further leading the server to obtain the operation video corresponding to the target test script from the preset video storage position for playback when the embedded point log and the operation path information are not sent by the terminal equipment, namely when the target embedded point is not reported, and determining whether the target embedded point is not reported or the target embedded point is not reported due to the fact that the target operation event is not executed so as to determine the reason of embedded point failure, quickly positioning the problems in the reporting of the embedded point and ensuring the accuracy of the embedded point test.
Fig. 3 is a flowchart illustrating a buried point testing method according to an exemplary embodiment, where the buried point testing method is applied to a server and executed by the server, as shown in fig. 3, and includes the following steps.
In step S31, the burial point log and the operation path information transmitted by the terminal device are acquired.
The embedded point log is a target embedded point in a client to be tested, executes a target test script on the terminal equipment, captures a target operation event corresponding to a target client page in the client to be tested, acquires data information corresponding to the target operation event, and generates operation path information corresponding to the target operation event according to the data information.
Non-exhaustive descriptions of the present embodiments may refer to the foregoing embodiments.
In an implementation manner of the embodiment of the present disclosure, optionally, the obtaining of the embedded point log and the operation path information sent by the terminal device includes: and acquiring the embedded point log and the operation path information reported by the terminal equipment from a preset interface by using an information output function.
Specifically, the terminal device uses the information output function Consolelog to report the embedded point log and the operation path information as output information ConsoleMessage to the server from the preset interface. The preset interface is an interface for transmitting information to the server. The server may obtain the embedded point log and the operation path information from the output information ConsoleMessage reported by the preset interface. The server can also obtain the embedded point log and the operation path information from the request information of the preset interface. The server can also obtain the embedded point log and the operation path information which are reported by the preset interface and then stored in the database.
In step S32, a target buried point in the client to be tested corresponding to the buried point log and the operation path information is determined.
In an implementation manner of the embodiment of the present disclosure, optionally, the determining a target buried point in the client to be tested, which corresponds to the buried point log and the operation path information, includes: and determining a target embedded point in the client to be tested corresponding to the embedded point log and the operation path information according to the embedded point identification information in the embedded point log and the operation path information.
Specifically, the embedded point log and the operation path information include embedded point identification information of the target embedded point. According to the embedded point identification information in the embedded point log and the operation path information, a target embedded point in the client to be tested corresponding to the embedded point log and the operation path information can be determined, namely, a specific embedded point corresponding to the embedded point log and the operation path information is determined.
In step S33, a test result of the target buried point in the client to be tested is determined according to the buried point log and the operation path information.
In an implementation manner of the embodiment of the present disclosure, optionally, the determining, according to the embedded point log and the operation path information, a test result of a target embedded point in the client to be tested includes: acquiring preset burying point information and preset operation path information corresponding to the target burying point; extracting buried point information from the buried point log, and comparing the buried point information with the preset buried point information to obtain a buried point information comparison result; comparing the operation path information with the preset operation path information to obtain an operation path comparison result; and determining a test result of the target buried point in the client to be tested according to the buried point information comparison result and the operation path comparison result.
Specifically, the server presets preset burying point information and preset operation path information corresponding to each burying point.
In an implementation manner of the embodiment of the present disclosure, the buried point information may be a buried point name and/or a tag field. Each buried point name has a unique corresponding buried point name and a mark field.
Illustratively, the server extracts the buried point name from the buried point log and compares the buried point name with a preset buried point name. If the buried point name is consistent with the preset buried point name, determining that the buried point information comparison result is that the buried point information is consistent with the preset buried point information, and indicating that the target buried point reports correct buried point information; and if the buried point name is inconsistent with the preset buried point name, determining that the buried point information comparison result is that the buried point information is inconsistent with the preset buried point information, and indicating that the target buried point does not report correct buried point information and the target buried point is invalid.
Illustratively, the server extracts and marks fields from the buried point log, compares the buried point name with a preset buried point name, and compares the marked fields with preset marked fields. If the buried point name is consistent with the preset buried point name and the mark field is consistent with the preset mark field, determining that the buried point information comparison result is that the buried point information is consistent with the preset buried point information, and indicating that the target buried point reports correct buried point information; if the buried point name is not consistent with the preset buried point name or the mark field is not consistent with the preset mark field, determining that the buried point information comparison result is that the buried point information is not consistent with the preset buried point information, and indicating that the target buried point does not report correct buried point information and the target buried point is invalid.
Specifically, the preset operation path information is path information corresponding to each step of operation in a correct triggering process of the operation event corresponding to each embedded point. And comparing the operation path information with preset operation path information. The consistency of the comparison of the operation path information ensures the accuracy of the reporting time of the target buried point.
And if the operation path information is consistent with the preset operation path information, the target embedded point is indicated to respond after the target operation event is triggered, and the time reported by the target embedded point is determined to be correct. And if the operation path information is inconsistent with the preset operation path information, the target embedded point is not responded after the target operation event is triggered, and the time reported by the target embedded point is determined to be wrong.
In an implementation manner of the embodiment of the present disclosure, optionally, the preset operation path information is identification information of a page control corresponding to each step of operation in a correct triggering process of an operation event corresponding to each embedded point. And sequentially comparing the identification information of at least one page control in the operation path information with the identification information of at least one page control in the preset operation path information. If the information content and the sequencing position of the identification information of each page control in the operation path information are completely consistent with the information content and the sequencing position of the identification information of each page control in the preset operation path information, determining that the operation path information is consistent with the preset operation path information; and otherwise, determining that the operation path information is inconsistent with the preset operation path information.
Illustratively, the operation path information sent by the terminal device is: identification information of the open control of the client top page → identification information of the open control of the target client page → identification information of the target button control. The preset operation path information is as follows: identification information of the open control of the client top page → identification information of the open control of the target client page → identification information of the target button control. The information content and the sorting position of the identification information of each page control in the operation path information are completely consistent with the information content and the sorting position of the identification information of each page control in the preset operation path information, and the operation path information can be determined to be consistent with the preset operation path information.
In an implementation manner of the embodiment of the present disclosure, optionally, the determining, according to the comparison result of the embedded point information and the comparison result of the operation path, a test result of a target embedded point in the client to be tested includes: if the buried point information comparison result is that the buried point information is consistent with the preset buried point information and the operation path comparison result is that the operation path information is consistent with the preset operation path information, determining that the test result of the target buried point in the client to be tested is a test pass; if the buried point information comparison result is that the buried point information is inconsistent with the preset buried point information and the operation path comparison result is that the operation path information is consistent with the preset operation path information, determining that the test result of the target buried point in the client to be tested is that the target buried point is invalid; if the buried point information comparison result is that the buried point information is consistent with the preset buried point information and the operation path comparison result is that the operation path information is inconsistent with the preset operation path information, it is determined that the reporting time of the target buried point in the client to be tested is inaccurate if the test result of the target buried point is the target buried point; and if the comparison result of the embedded point information is that the embedded point information is inconsistent with the preset embedded point information and the comparison result of the operation path is that the operation path information is inconsistent with the preset operation path information, determining that the test result of the target embedded point in the client to be tested is that the target embedded point is invalid and the reporting time of the target embedded point is inaccurate.
Specifically, if the comparison result of the embedded point information is that the embedded point information is consistent with the preset embedded point information, and the comparison result of the operation path is that the operation path information is consistent with the preset operation path information, it indicates that the target embedded point reports correct embedded point information, and the time reported by the target embedded point is correct, the server determines that the test result of the target embedded point in the client to be tested is a test pass.
Specifically, if the comparison result of the buried point information is that the buried point information is inconsistent with the preset buried point information, and the comparison result of the operation path is that the operation path information is consistent with the preset operation path information, it indicates that the target buried point does not report correct buried point information, and the time reported by the target buried point is correct, the server determines that the test result of the target buried point in the client to be tested is that the target buried point fails.
Specifically, if the comparison result of the embedded point information is that the embedded point information is consistent with the preset embedded point information, and the comparison result of the operation path is that the operation path information is inconsistent with the preset operation path information, it indicates that the target embedded point reports correct embedded point information, but the time reported by the target embedded point is wrong, the server determines that the time reported by the target embedded point in the client to be tested is inaccurate when the test result of the target embedded point in the client to be tested is the time reported by the target embedded point.
Specifically, if the comparison result of the embedded point information is that the embedded point information is inconsistent with the preset embedded point information, and the comparison result of the operation path is that the operation path information is inconsistent with the preset operation path information, it indicates that the target embedded point does not report correct embedded point information, and the reporting time of the target embedded point is wrong, the server determines that the test result of the target embedded point in the client to be tested is that the target embedded point is failed and the reporting time of the target embedded point is inaccurate.
According to the technical scheme of the embodiment, the embedded point log and the operation path information sent by the terminal device are obtained, the target embedded point in the client to be tested corresponding to the embedded point log and the operation path information is determined, and finally the test result of the target embedded point in the client to be tested is determined according to the embedded point log and the operation path information.
Fig. 4 is a flow chart illustrating a method for testing a buried point according to an exemplary embodiment, which is a further refinement of the above technical solution, and the technical solution in the embodiment may be combined with various alternatives in one or more embodiments described above. As shown in fig. 4, the buried point testing method includes the following steps.
In step S41, the burial point log and the operation path information transmitted by the terminal device are acquired.
The embedded point log is a target embedded point in a client to be tested, executes a target test script on the terminal equipment, captures a target operation event corresponding to a target client page in the client to be tested, acquires data information corresponding to the target operation event, and generates operation path information corresponding to the target operation event according to the data information.
Non-exhaustive descriptions of the present embodiments may refer to the foregoing embodiments.
In step S42, if the terminal device does not send the burial point log and the operation path information, a preset video storage location corresponding to the terminal device is determined, and an operation video corresponding to the target test script is obtained from the preset video storage location.
In an implementation manner of the embodiment of the present disclosure, optionally, the preset video storage location stores therein an operation video corresponding to each test script. And distinguishing the operation video corresponding to each test script according to the identification information of each test script.
Specifically, if the server determines that the terminal device does not send the embedded point log and the operation path information, the server determines a preset video storage location corresponding to the terminal device. And then the server acquires the operation video corresponding to the target test script from a preset video storage position according to the identification information of the target test script.
In step S43, a test result of the target buried point in the client to be tested is determined according to the operation video.
In an implementation manner of the embodiment of the present disclosure, optionally, the determining, according to the operation video, a test result of a target buried point in the client to be tested includes: the operation video is played back, and whether the target test script triggers a target operation event corresponding to a target client page in the client to be tested is judged; if the target test script is determined not to trigger a target operation event corresponding to a target client page in the client to be tested, determining that a test result of a target buried point in the client to be tested is that the target buried point is not reported due to the fact that no operation is executed; and if the target test script triggers a target operation event corresponding to a target client page in the client to be tested, determining that the test result of the target embedded point in the client to be tested is that the target embedded point is not reported.
In an implementation manner of the embodiment of the present disclosure, optionally, playing back the operation video, and determining whether the target test script triggers a target operation event corresponding to a target client page in the client to be tested includes: the server plays back the operation video and identifies the video content according to a preset video identification algorithm; and judging whether the target test script triggers a target operation event corresponding to a target client page in the client to be tested according to the identification result.
Specifically, if the server determines that the target test script does not trigger the target operation event corresponding to the target client page in the client to be tested, it may be determined that the target embedded point is not reported due to the fact that the target operation event is not executed, and then it is determined that the test result of the target embedded point in the client to be tested is not reported due to the fact that the operation is not executed. And the target embedded point is not reported due to the unexecuted operation, retries can be carried out by modifying a target test script and the like, comparison between the embedded point log and the operation path information is carried out under the condition that the target operation event is really and correctly executed, and the accuracy of embedded point test is ensured.
Specifically, if the server determines that the target test script triggers the target operation event corresponding to the target client page in the client to be tested, and can confirm that the target embedded point is not reported, the server determines that the test result of the target embedded point in the client to be tested is that the target embedded point is not reported.
The technical scheme of the embodiment of the disclosure determines a preset video storage position corresponding to the terminal device when the terminal device does not send the embedded point log and the operation path information, acquires the operation video corresponding to the target test script from the preset video storage position, and then determines the test result of the target embedded point in the client to be tested according to the operation video, thereby solving the problem that the judgment on whether the embedded point is invalid or not is not accurate because the embedded point is not determined by comparing the acquired embedded point information with the embedded point information of the preset embedded point and comparing whether the embedded point information is in accordance with the expectation or not and whether the specific reason of the embedded point is invalid or not can not be determined in the related technology, and when the terminal device does not send the embedded point log and the operation path information, namely when the target embedded point is not reported, the operation video corresponding to the target test script is acquired from the preset video storage position for playback, and whether the target embedded point is not reported or the target embedded point is not reported itself is determined as the target operation event is not executed, the method can determine the reason of the failure of the buried point, can quickly locate the problems in the report of the buried point and ensure the accuracy of the buried point test.
FIG. 5 is a flow chart illustrating a method of buried site testing according to an exemplary embodiment, including the steps of:
in step S51, the terminal device executes the target test script, and triggers a target operation event corresponding to a target client page in the client to be tested, so that the target embedded point in the client to be tested responds to the target operation event, and generates an embedded point log.
In step S52, the terminal device acquires operation path information corresponding to the target operation event.
In step S53, the terminal device transmits the burial point log and the operation path information.
In step S54, the server acquires the buried point log and the operation path information.
In step S55, the server determines a target buried point in the client to be tested corresponding to the buried point log and the operation path information.
In step S56, the server determines a test result of the target buried point in the client to be tested according to the buried point log and the operation path information.
FIG. 6 is a flow chart illustrating a method of buried site testing according to an exemplary embodiment, including the steps of:
in step S61, the terminal device executes a target test script, and triggers a target operation event corresponding to a target client page in the client to be tested, so that the target embedded point in the client to be tested responds to the target operation event, and generates an embedded point log, and records the target operation event corresponding to the target client page in the client to be tested through a preset recording operation video plug-in, thereby obtaining an operation video corresponding to the target test script.
In step S62, the terminal device stores the operation video in a preset video storage location.
In step S63, the terminal device acquires operation path information corresponding to the target operation event.
In step S64, the terminal device transmits the burial point log and the operation path information.
In step S65, the server acquires the buried point log and the operation path information.
In step S66, if the terminal device does not send the burial point log and the operation path information, the server determines a preset video storage location corresponding to the terminal device, and obtains an operation video corresponding to the target test script from the preset video storage location.
In step S67, the server determines a test result of the target buried point in the client to be tested according to the operation video.
FIG. 7 illustrates a block diagram of a buried site testing apparatus, according to an exemplary embodiment. Referring to fig. 7, the apparatus includes an event triggering module 71, a path acquiring module 72, and an information transmitting module 73.
The event triggering module 71 is configured to execute a target test script, and trigger a target operation event corresponding to a target client page in a client to be tested, so that a target buried point in the client to be tested responds to the target operation event, and a buried point log is generated.
A path obtaining module 72 configured to obtain operation path information corresponding to the target operation event.
An information sending module 73, configured to send the buried point log and the operation path information to a server, so that the server determines a test result of a target buried point in the client to be tested according to the buried point log and the operation path information.
The technical scheme of the embodiment of the disclosure triggers a target operation event corresponding to a target client page in a client to be tested by executing a target test script, so that a target embedded point in the client to be tested responds to the target operation event to generate an embedded point log, mutually acquires operation path information corresponding to the target operation event, and finally sends the embedded point log and the operation path information to a server, so that the server determines a test result of the target embedded point in the client to be tested according to the embedded point log and the operation path information, thereby solving the problems that the embedded point test is inaccurate because the collected embedded point information is only compared with the embedded point information of a preset embedded point and the comparison of whether the embedded point information is in accordance with expectation or not and the verification of the time reported by the embedded point is lacked, and increasing the collection of the operation path information corresponding to the target operation event, therefore, the server can determine whether the reporting time of the buried point is accurate or not according to the operation path information, and the accuracy of the buried point test is improved.
In an implementation manner of the embodiment of the present disclosure, optionally, the buried point testing apparatus further includes:
the video recording module is configured to record a target operation event corresponding to a target client page in the client to be tested through a preset recording operation video plug-in to obtain an operation video corresponding to the target test script;
the video storage module is configured to store the operation video to a preset video storage position.
In an implementation manner of the embodiment of the present disclosure, optionally, the determining, according to the embedded point log and the operation path information, a test result of a target embedded point in the client to be tested includes:
acquiring preset burying point information and preset operation path information corresponding to the target burying point;
extracting buried point information from the buried point log, and comparing the buried point information with the preset buried point information to obtain a buried point information comparison result;
comparing the operation path information with the preset operation path information to obtain an operation path comparison result; and determining a test result of the target buried point in the client to be tested according to the buried point information comparison result and the operation path comparison result.
In an implementation manner of the embodiment of the present disclosure, optionally, the determining, according to the comparison result of the embedded point information and the comparison result of the operation path, a test result of a target embedded point in the client to be tested includes:
if the buried point information comparison result is that the buried point information is consistent with the preset buried point information and the operation path comparison result is that the operation path information is consistent with the preset operation path information, determining that the test result of the target buried point in the client to be tested is a test pass;
if the buried point information comparison result is that the buried point information is inconsistent with the preset buried point information and the operation path comparison result is that the operation path information is consistent with the preset operation path information, determining that the test result of the target buried point in the client to be tested is that the target buried point is invalid;
if the buried point information comparison result is that the buried point information is consistent with the preset buried point information and the operation path comparison result is that the operation path information is inconsistent with the preset operation path information, it is determined that the reporting time of the target buried point in the client to be tested is inaccurate if the test result of the target buried point is the target buried point;
and if the comparison result of the embedded point information is that the embedded point information is inconsistent with the preset embedded point information and the comparison result of the operation path is that the operation path information is inconsistent with the preset operation path information, determining that the test result of the target embedded point in the client to be tested is that the target embedded point is invalid and the reporting time of the target embedded point is inaccurate.
In an implementation manner of the embodiment of the present disclosure, optionally, the buried point testing apparatus further includes:
and the script acquisition module is configured to acquire the target test script matched with the client to be tested from the server according to the identification information of the client to be tested before executing the target test script.
In an implementation manner of the embodiment of the present disclosure, optionally, the path obtaining module 72 includes:
and the path information generating unit is configured to generate operation path information corresponding to the target operation event according to the identification information of the at least one page control corresponding to the target operation event.
In an implementation manner of the embodiment of the present disclosure, optionally, the path obtaining module 72 further includes:
and the identification information acquisition unit is configured to monitor a target operation event corresponding to a target client page in the client to be tested before generating operation path information corresponding to the target operation event according to the identification information of at least one page control corresponding to the target operation event, determine at least one page control corresponding to the target operation event, and acquire the identification information of each page control.
In an implementation manner of the embodiment of the present disclosure, optionally, the information sending module 73 includes:
and the information sending unit is configured to use an information output function to report the embedded point log and the operation path information to the server from a preset interface as output information.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
FIG. 8 is a block diagram illustrating a buried site testing apparatus according to an exemplary embodiment. Referring to fig. 8, the apparatus includes an information acquisition module 81, a buried point determination module 82, and a result determination module 83.
The information obtaining module 81 is configured to obtain a buried point log and operation path information sent by a terminal device, where the buried point log is a target buried point in a client to be tested, executes a target test script on the terminal device, captures a target operation event triggered by the terminal device and corresponding to a target client page in the client to be tested, obtains data information corresponding to the target operation event, and generates the operation path information according to the data information, where the operation path information is the operation path information corresponding to the target operation event.
And a buried point determining module 82 configured to determine a target buried point in the client to be tested corresponding to the buried point log and the operation path information.
And a result determining module 83 configured to determine a test result of the target buried point in the client to be tested according to the buried point log and the operation path information.
According to the technical scheme of the embodiment, the embedded point log and the operation path information sent by the terminal device are obtained, the target embedded point in the client to be tested corresponding to the embedded point log and the operation path information is determined, and finally the test result of the target embedded point in the client to be tested is determined according to the embedded point log and the operation path information.
In an implementation manner of the embodiment of the present disclosure, optionally, the buried point testing apparatus further includes:
the video acquisition module is configured to determine a preset video storage position corresponding to the terminal equipment and acquire an operation video corresponding to a target test script from the preset video storage position if the terminal equipment does not send the embedded point log and the operation path information after acquiring the embedded point log and the operation path information sent by the terminal equipment;
and the video judgment module is configured to determine a test result of the target buried point in the client to be tested according to the operation video.
In an implementation manner of the embodiment of the present disclosure, optionally, the video determination module includes:
the video playback unit is configured to play back the operation video and judge whether the target test script triggers a target operation event corresponding to a target client page in the client to be tested;
a first result determining unit, configured to determine that a test result of a target embedded point in the client to be tested is target embedded point unreported caused by unexecuted operation if it is determined that the target test script does not trigger a target operation event corresponding to a target client page in the client to be tested;
and the second result determining unit is configured to determine that the test result of the target buried point in the client to be tested is that the target buried point is not reported if it is determined that the target test script triggers the target operation event corresponding to the target client page in the client to be tested.
In an implementation manner of the embodiment of the present disclosure, optionally, the result determining module 83 includes:
an information acquisition unit configured to acquire preset buried point information and preset operation path information corresponding to the target buried point;
the buried point information comparison unit is configured to extract buried point information from the buried point log and compare the buried point information with the preset buried point information to obtain a buried point information comparison result;
the operation path comparison unit is configured to compare the operation path information with the preset operation path information to obtain an operation path comparison result;
and the result determining unit is configured to determine a test result of the target buried point in the client to be tested according to the buried point information comparison result and the operation path comparison result.
In an implementation manner of the embodiment of the present disclosure, optionally, the result determining unit includes:
a first determining subunit, configured to determine that a test result of a target buried point in the client to be tested is a test pass if the buried point information comparison result is that the buried point information is consistent with the preset buried point information and the operation path comparison result is that the operation path information is consistent with the preset operation path information;
a second determining subunit, configured to determine that a test result of a target buried point in the client to be tested is a target buried point failure if the buried point information comparison result is that the buried point information is inconsistent with the preset buried point information and the operation path comparison result is that the operation path information is consistent with the preset operation path information;
a third determining subunit, configured to determine that the reporting time of the target buried point in the client to be tested is inaccurate if the buried point information comparison result is that the buried point information is consistent with the preset buried point information and the operation path comparison result is that the operation path information is inconsistent with the preset operation path information;
a fourth determining subunit, configured to determine that the test result of the target buried point in the client to be tested is that the target buried point fails and the reporting time of the target buried point is inaccurate if the buried point information comparison result is that the buried point information is inconsistent with the preset buried point information and the operation path comparison result is that the operation path information is inconsistent with the preset operation path information.
In an implementation manner of the embodiment of the present disclosure, optionally, the information obtaining module 81 includes:
and the information acquisition unit is configured to acquire the embedded point log reported from a preset interface and the operation path information by using an information output function of the terminal equipment.
In an implementation manner of the embodiment of the present disclosure, optionally, the buried point determining module 82 includes:
and the buried point determining unit is configured to determine a target buried point in the client to be tested corresponding to the buried point log and the operation path information according to the buried point identification information in the buried point log and the operation path information.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
FIG. 9 is a block diagram illustrating a computer device in accordance with an exemplary embodiment. The computer device may be a terminal device or a server. As shown in fig. 9, the computer apparatus includes: one or more processors 91, one processor 91 being exemplified in fig. 9; a memory 92; the processor 91 and the memory 92 in the device may be connected by a bus or other means, and fig. 9 illustrates the connection by a bus as an example.
The memory 92, as a non-transitory computer-readable storage medium, may be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to a buried point testing method in the embodiments of the disclosure (for example, the event triggering module 71, the path obtaining module 72, and the information sending module 73 shown in fig. 7; or the information obtaining module 81, the buried point determining module 82, and the result determining module 83 shown in fig. 8). The processor 91 executes various functional applications and data processing of the computer device by running software programs, instructions and modules stored in the memory 92, so as to implement a buried point test method of the above method embodiment, that is:
executing a target test script, and triggering a target operation event corresponding to a target client page in a client to be tested so as to enable a target buried point in the client to be tested to respond to the target operation event and generate a buried point log;
acquiring operation path information corresponding to the target operation event;
and sending the embedded point log and the operation path information to a server so that the server determines a test result of a target embedded point in the client to be tested according to the embedded point log and the operation path information.
Or, a buried point testing method for implementing the above method embodiment is that:
acquiring a buried point log and operation path information sent by a terminal device, wherein the buried point log is a target buried point in a client to be tested and executes a target test script on the terminal device, a target operation event corresponding to a target client page in the client to be tested is triggered and captured, data information corresponding to the target operation event is acquired, and the operation path information is generated according to the data information and is the operation path information corresponding to the target operation event;
determining a target buried point in the client to be tested corresponding to the buried point log and the operation path information;
and determining a test result of the target buried point in the client to be tested according to the buried point log and the operation path information.
The memory 92 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the computer device, and the like. Further, memory 92 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 92 may optionally include memory located remotely from the processor 91, which may be connected to the terminal device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 93 may be used to input a computer program written by a caller. Output device 94 includes an output interface operable to output information.
In an exemplary embodiment, there is also provided a storage medium comprising instructions, such as a memory (92) storing instructions, executable by a processor (91) of a computer device (terminal device or server) to perform the above method. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product is also provided for use in conjunction with a computer device (terminal device or server), the computer program product including a computer-readable storage medium and a computer program mechanism embedded therein, the program being loaded into and executed by a computer to implement the method for testing a buried point according to any of the embodiments of the present disclosure.
FIG. 10 is a block diagram illustrating a buried site testing system in accordance with an exemplary embodiment. As shown in fig. 10, the buried site testing system includes: a terminal device 101 and a server 102.
The terminal device 101 is configured to execute a target test script, and trigger a target operation event corresponding to a target client page in a client to be tested, so that a target embedded point in the client to be tested responds to the target operation event, and generates an embedded point log; acquiring operation path information corresponding to the target operation event; sending the embedded point log and the operation path information to a server 102;
the server 102 is configured to obtain a buried point log and operation path information sent by the terminal device 101; determining a target buried point in the client to be tested corresponding to the buried point log and the operation path information; and determining a test result of the target buried point in the client to be tested according to the buried point log and the operation path information.
Specifically, the terminal device 101 executes a target test script, and triggers a target operation event corresponding to a target client page in a client to be tested, so that a target embedded point in the client to be tested responds to the target operation event, and generates an embedded point log. The terminal device 101 acquires operation path information corresponding to the target operation event. The terminal device 101 sends the embedded point log and the operation path information to the server 102. The server 102 obtains the embedded point log and the operation path information sent by the terminal device 101, and determines a target embedded point in the client to be tested corresponding to the embedded point log and the operation path information. And then determining a test result of a target buried point in the client to be tested according to the buried point log of the server 102 and the operation path information.
Non-exhaustive descriptions of the present embodiments may refer to the foregoing embodiments.
In an implementation manner of the embodiment of the present disclosure, optionally, the terminal device 101 is further configured to:
recording a target operation event corresponding to a target client page in the client to be tested through a preset recording operation video plug-in to obtain an operation video corresponding to the target test script;
and storing the operation video to a preset video storage position.
In an implementation manner of the embodiment of the present disclosure, optionally, the determining, according to the embedded point log and the operation path information, a test result of a target embedded point in the client to be tested includes:
the server 102 acquires preset burying point information and preset operation path information corresponding to the target burying point;
the server 102 extracts buried point information from the buried point log, and compares the buried point information with the preset buried point information to obtain a buried point information comparison result;
the server 102 compares the operation path information with the preset operation path information to obtain an operation path comparison result;
and the server 102 determines a test result of the target buried point in the client to be tested according to the buried point information comparison result and the operation path comparison result.
In an implementation manner of the embodiment of the present disclosure, optionally, the determining, according to the comparison result of the embedded point information and the comparison result of the operation path, a test result of a target embedded point in the client to be tested includes:
if the buried point information comparison result is that the buried point information is consistent with the preset buried point information, and the operation path comparison result is that the operation path information is consistent with the preset operation path information, the server 102 determines that the test result of the target buried point in the client to be tested is a test pass;
if the buried point information comparison result is that the buried point information is inconsistent with the preset buried point information and the operation path comparison result is that the operation path information is consistent with the preset operation path information, the server 102 determines that the test result of the target buried point in the client to be tested is that the target buried point is invalid;
if the buried point information comparison result is that the buried point information is consistent with the preset buried point information, and the operation path comparison result is that the operation path information is inconsistent with the preset operation path information, the server 102 determines that the reporting time of the target buried point in the client to be tested is inaccurate when the test result of the target buried point is the target buried point;
if the comparison result of the embedded point information is that the embedded point information is inconsistent with the preset embedded point information, and the comparison result of the operation path is that the operation path information is inconsistent with the preset operation path information, the server 102 determines that the test result of the target embedded point in the client to be tested is that the target embedded point is invalid and the reporting time of the target embedded point is inaccurate.
In an implementation manner of the embodiment of the present disclosure, optionally, before executing the target test script, the method further includes:
the terminal device 101 obtains a target test script matched with the client to be tested from the server 102 according to the identification information of the client to be tested.
In an implementation manner of the embodiment of the present disclosure, optionally, the obtaining operation path information corresponding to the target operation event includes:
and the terminal device 101 generates operation path information corresponding to the target operation event according to the identification information of the at least one page control corresponding to the target operation event.
In an implementation manner of the embodiment of the present disclosure, optionally, before generating, according to the identification information of the at least one page control corresponding to the target operation event, operation path information corresponding to the target operation event, the method further includes:
the terminal device 101 monitors a target operation event corresponding to a target client page in the client to be tested, determines at least one page control corresponding to the target operation event, and acquires identification information of each page control.
In an implementation manner of the embodiment of the present disclosure, optionally, the sending the burial point log and the operation path information to the server 102 includes:
the terminal device 101 uses an information output function to report the embedded point log and the operation path information to the server 102 from a preset interface as output information.
In an implementation manner of the embodiment of the present disclosure, optionally, after acquiring the buried point log and the operation path information sent by the terminal device 101, the buried point testing method further includes:
if the terminal device 101 does not send the embedded point log and the operation path information, the server 102 determines a preset video storage position corresponding to the terminal device 101, and acquires an operation video corresponding to a target test script from the preset video storage position;
and the server 102 determines a test result of the target buried point in the client to be tested according to the operation video.
In an implementation manner of the embodiment of the present disclosure, optionally, the determining, according to the operation video, a test result of a target buried point in the client to be tested includes:
the server 102 plays back the operation video, and judges whether the target test script triggers a target operation event corresponding to a target client page in the client to be tested;
if the server 102 determines that the target test script does not trigger a target operation event corresponding to a target client page in the client to be tested, determining that a test result of a target buried point in the client to be tested is that the target buried point is not reported due to the unexecuted operation;
if the server 102 determines that the target test script triggers a target operation event corresponding to a target client page in the client to be tested, it is determined that the test result of the target embedded point in the client to be tested is that the target embedded point is not reported.
In an implementation manner of the embodiment of the present disclosure, optionally, the acquiring the embedded point log and the operation path information sent by the terminal device 101 includes:
the server 102 obtains the embedded point log and the operation path information reported from a preset interface by the terminal device 101 using an information output function.
In an implementation manner of the embodiment of the present disclosure, optionally, the determining a target buried point in the client to be tested, which corresponds to the buried point log and the operation path information, includes:
and the server 102 determines a target embedded point in the client to be tested corresponding to the embedded point log and the operation path information according to the embedded point identification information in the embedded point log and the operation path information.
According to the technical scheme of the embodiment, the server acquires the embedded point log and the operation path information sent by the terminal equipment, then the target embedded point in the client to be tested corresponding to the embedded point log and the operation path information is determined, and finally the test result of the target embedded point in the client to be tested is determined according to the embedded point log and the operation path information.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A buried point testing method is applied to terminal equipment and comprises the following steps:
executing a target test script, and triggering a target operation event corresponding to a target client page in a client to be tested so as to enable a target buried point in the client to be tested to respond to the target operation event and generate a buried point log;
acquiring operation path information corresponding to the target operation event;
and sending the embedded point log and the operation path information to a server so that the server determines a test result of a target embedded point in the client to be tested according to the embedded point log and the operation path information.
2. The buried site testing method of claim 1, further comprising:
recording a target operation event corresponding to a target client page in the client to be tested through a preset recording operation video plug-in to obtain an operation video corresponding to the target test script;
and storing the operation video to a preset video storage position.
3. The method of claim 1, wherein the determining a test result of a target embedded point in the client to be tested according to the embedded point log and the operation path information comprises:
acquiring preset burying point information and preset operation path information corresponding to the target burying point;
extracting buried point information from the buried point log, and comparing the buried point information with the preset buried point information to obtain a buried point information comparison result;
comparing the operation path information with the preset operation path information to obtain an operation path comparison result;
and determining a test result of the target buried point in the client to be tested according to the buried point information comparison result and the operation path comparison result.
4. A buried point testing method is applied to a server and comprises the following steps:
acquiring a buried point log and operation path information sent by a terminal device, wherein the buried point log is a target buried point in a client to be tested and executes a target test script on the terminal device, a target operation event corresponding to a target client page in the client to be tested is triggered and captured, data information corresponding to the target operation event is acquired, and the operation path information is generated according to the data information and is the operation path information corresponding to the target operation event;
determining a target buried point in the client to be tested corresponding to the buried point log and the operation path information;
and determining a test result of the target buried point in the client to be tested according to the buried point log and the operation path information.
5. The embedded point testing method of claim 4, wherein after acquiring the embedded point log and the operation path information sent by the terminal device, the embedded point testing method further comprises:
if the terminal equipment does not send the embedded point log and the operation path information, determining a preset video storage position corresponding to the terminal equipment, and acquiring an operation video corresponding to a target test script from the preset video storage position;
and determining a test result of the target buried point in the client to be tested according to the operation video.
6. A buried point testing device, configured in a terminal device, includes:
the event triggering module is configured to execute a target test script and trigger a target operation event corresponding to a target client page in a client to be tested so that a target embedded point in the client to be tested responds to the target operation event to generate an embedded point log;
a path acquisition module configured to acquire operation path information corresponding to the target operation event;
the information sending module is configured to send the embedded point log and the operation path information to a server, so that the server determines a test result of a target embedded point in the client to be tested according to the embedded point log and the operation path information.
7. A buried point testing apparatus, configured in a server, includes:
the information acquisition module is configured to acquire a buried point log and operation path information sent by a terminal device, wherein the buried point log is a target buried point in a client to be tested and executes a target test script on the terminal device, a target operation event corresponding to a target client page in the client to be tested is triggered and captured, data information corresponding to the target operation event is acquired, and the operation path information is generated according to the data information and is the operation path information corresponding to the target operation event;
the buried point determining module is configured to determine a target buried point in the client to be tested corresponding to the buried point log and the operation path information;
and the result determining module is configured to determine a test result of the target buried point in the client to be tested according to the buried point log and the operation path information.
8. A buried site testing system, comprising:
a terminal device and a server;
the terminal device is used for executing a target test script and triggering a target operation event corresponding to a target client page in a client to be tested so that a target embedded point in the client to be tested responds to the target operation event and generates an embedded point log; acquiring operation path information corresponding to the target operation event; sending the embedded point log and the operation path information to a server;
the server is used for acquiring the embedded point log and the operation path information sent by the terminal equipment; determining a target buried point in the client to be tested corresponding to the buried point log and the operation path information; and determining a test result of the target buried point in the client to be tested according to the buried point log and the operation path information.
9. A computer device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the buried point testing method of any one of claims 1 to 3, or the buried point testing method of any one of claims 4 to 5.
10. A storage medium in which instructions, when executed by a processor of a computer device, enable the computer device to perform the buried point testing method of any one of claims 1 to 3, or the buried point testing method of any one of claims 4 to 5.
CN202010889748.7A 2020-08-28 2020-08-28 Buried point testing method, device, equipment and storage medium Pending CN112015652A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010889748.7A CN112015652A (en) 2020-08-28 2020-08-28 Buried point testing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010889748.7A CN112015652A (en) 2020-08-28 2020-08-28 Buried point testing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112015652A true CN112015652A (en) 2020-12-01

Family

ID=73502473

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010889748.7A Pending CN112015652A (en) 2020-08-28 2020-08-28 Buried point testing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112015652A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113254338A (en) * 2021-05-25 2021-08-13 深圳前海微众银行股份有限公司 Test case generation method, device and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060041792A1 (en) * 2004-08-19 2006-02-23 International Business Machines Corporation Method, system and program for identifying a test specification for testing a file element
CN110362480A (en) * 2019-06-19 2019-10-22 平安普惠企业管理有限公司 Client buries a test method, device, equipment and storage medium
CN110674048A (en) * 2019-09-27 2020-01-10 北京新氧科技有限公司 Buried point test feature acquisition method and related device
CN110990255A (en) * 2019-10-28 2020-04-10 贝壳技术有限公司 Buried point testing method and server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060041792A1 (en) * 2004-08-19 2006-02-23 International Business Machines Corporation Method, system and program for identifying a test specification for testing a file element
CN110362480A (en) * 2019-06-19 2019-10-22 平安普惠企业管理有限公司 Client buries a test method, device, equipment and storage medium
CN110674048A (en) * 2019-09-27 2020-01-10 北京新氧科技有限公司 Buried point test feature acquisition method and related device
CN110990255A (en) * 2019-10-28 2020-04-10 贝壳技术有限公司 Buried point testing method and server

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113254338A (en) * 2021-05-25 2021-08-13 深圳前海微众银行股份有限公司 Test case generation method, device and equipment
CN113254338B (en) * 2021-05-25 2023-01-24 深圳前海微众银行股份有限公司 Test case generation method, device and equipment

Similar Documents

Publication Publication Date Title
CN106844217B (en) Method and device for embedding point of applied control and readable storage medium
CN111309632B (en) Application program testing method and device, computer equipment and storage medium
CN110362480A (en) Client buries a test method, device, equipment and storage medium
CN106776319B (en) Automatic test method and device
CN109886709B (en) Intelligent lock management method, system, computer equipment and storage medium
CN112423135B (en) Information processing method, apparatus, computer device and storage medium for video playback
CN107223257B (en) Test method, test server and test system
CN109324961B (en) System automatic test method, device, computer equipment and storage medium
CN113448854A (en) Regression testing method and device
CN109616106A (en) Vehicle-mounted control screen voice recognition process testing method, electronic equipment and system
US20090183022A1 (en) Failure response support apparatus and failure response support method
CN111506496A (en) Test data acquisition method and device, electronic equipment and storage medium
CN112015652A (en) Buried point testing method, device, equipment and storage medium
CN113448834A (en) Buried point testing method and device, electronic equipment and storage medium
CN112911283B (en) Smart television testing method and device
CN110134558B (en) Method and device for detecting server
CN112837640A (en) Screen dynamic picture testing method, system, electronic equipment and storage medium
CN112052135A (en) Client program user operation record and exception reporting method based on C/S architecture
CN110825637A (en) Robot testing method and device
CN113068018A (en) Automatic reporting system and method for checking and detecting set top box abnormity
CN111666200A (en) Testing method and terminal for time consumption of cold start of PC software
CN105391602B (en) A kind of data acquisition test method and apparatus
CN112492301B (en) Performance test method and system of IPTV set top box
CN110519102B (en) Server fault identification method and device and storage medium
KR20150038983A (en) Method and apparatus for verifying application by using object extracting

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination