CN117493147A - Buried point test method, buried point test device, buried point test equipment and storage medium - Google Patents

Buried point test method, buried point test device, buried point test equipment and storage medium Download PDF

Info

Publication number
CN117493147A
CN117493147A CN202210876925.7A CN202210876925A CN117493147A CN 117493147 A CN117493147 A CN 117493147A CN 202210876925 A CN202210876925 A CN 202210876925A CN 117493147 A CN117493147 A CN 117493147A
Authority
CN
China
Prior art keywords
buried point
tested
buried
determining
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
CN202210876925.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.)
Nanjing Leading Technology Co Ltd
Original Assignee
Nanjing Leading 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 Nanjing Leading Technology Co Ltd filed Critical Nanjing Leading Technology Co Ltd
Priority to CN202210876925.7A priority Critical patent/CN117493147A/en
Publication of CN117493147A publication Critical patent/CN117493147A/en
Pending legal-status Critical Current

Links

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/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation
    • G06F16/2433Query languages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases

Abstract

The invention provides a buried point test method, a buried point test device, buried point test equipment and a storage medium. The buried point testing method comprises the following steps: inquiring the first quantity of the captured buried points according to the buried point parameters of the buried points to be tested; responding to triggering operation of the control corresponding to the buried point to be tested, and performing buried point capturing on the buried point to be tested so as to update the captured buried point data; inquiring a second quantity of the updated captured buried point data according to the buried point parameters of the buried points to be tested; and determining the test result of the buried point to be tested according to the first quantity and the second quantity. The method and the device have the advantages that the condition that the test result is inaccurate due to manual testing of a tester is avoided, the accuracy of the test result of the buried point to be tested is improved, and when the buried point to be tested is more, the efficiency of buried point testing can be improved. Meanwhile, the scheme does not need to input a large number of professional testers, and labor cost is reduced.

Description

Buried point test method, buried point test device, buried point test equipment and storage medium
Technical Field
The embodiment of the invention relates to the field of software testing, in particular to a buried point testing method, a buried point testing device, buried point testing equipment and a storage medium.
Background
Buried points refer to the collection of data in a particular process in an application that is used to track application usage to provide data support for subsequent further optimization of the product. The collected data is also called buried data, can be used for analyzing habits and hobbies of users, finding out products or services which are more convenient for the users to use, and can specifically adjust and optimize the products.
In the prior art, buried point testing is typically performed manually by a tester. However, manual testing has the defects of poor timeliness and low accuracy, and meanwhile, has high requirements on professional ability of testers and high labor cost.
Disclosure of Invention
The invention provides a buried point testing method, a buried point testing device, buried point testing equipment and a storage medium, so that automation of buried point testing is realized, accuracy and timeliness of buried point testing are improved, and labor cost is reduced.
According to an aspect of the present invention, there is provided a buried point testing method including:
inquiring the first quantity of the captured buried points according to the buried point parameters of the buried points to be tested;
responding to triggering operation of the control corresponding to the buried point to be tested, and performing buried point capturing on the buried point to be tested so as to update the captured buried point data;
Inquiring a second quantity of the updated captured buried point data according to the buried point parameters of the buried points to be tested;
and determining the test result of the buried point to be tested according to the first quantity and the second quantity.
According to another aspect of the present invention, there is also provided a buried point testing apparatus, including:
the first quantity inquiry module is used for inquiring the first quantity of the captured buried points according to the buried point parameters of the buried points to be tested;
the embedded point data updating module is used for responding to the triggering operation of the control corresponding to the embedded point to be tested, and performing embedded point capturing on the embedded point to be tested so as to update the captured embedded point data;
the second quantity inquiry module is used for inquiring the updated second quantity of the captured buried point data according to the buried point parameters of the buried point to be tested;
and the test result determining module is used for determining the test result of the buried point to be tested according to the first quantity and the second quantity.
According to another aspect of the present invention, there is also provided an electronic apparatus including:
one or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, enable the one or more processors to perform any one of the methods of testing buried points provided by the embodiments of the present invention.
According to another aspect of the present invention, there is also provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements any of the methods for buried point testing provided by the embodiments of the present invention.
According to the buried point testing method provided by the embodiment of the invention, the first quantity of the captured buried points is inquired according to the buried point parameters of the buried points to be tested; responding to triggering operation of a control corresponding to the buried point to be tested, and performing buried point capturing on the buried point to be tested so as to update captured buried point data; inquiring a second quantity of the updated captured buried point data according to the buried point parameters of the buried point to be tested; and determining the test result of the buried point to be tested according to the first quantity and the second quantity. According to the scheme, the situation that a tester manually tests, and the test result is inaccurate is avoided, the accuracy of the test result of the buried point to be tested is improved, and when the buried point to be tested is more, the efficiency of buried point test can be improved. Meanwhile, the scheme does not need to input a large number of professional testers, and labor cost is reduced.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1A is a flow chart of a buried point testing method according to a first embodiment of the present invention;
FIG. 1B is a schematic diagram of a stacking curve of test results obtained by performing a multi-batch buried point test on a net cart according to an embodiment of the present invention;
FIG. 2 is a flow chart of a buried point testing method according to a second embodiment of the present invention;
FIG. 3 is a flow chart of a buried point testing method according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a buried point testing apparatus according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device for implementing a buried point testing method according to a fifth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1A is a flowchart of a method for testing a buried point according to an embodiment of the present invention, where the method may be performed by a buried point testing device, and the device may be implemented in software and/or hardware and may be integrated into an electronic device that carries a function of testing a buried point.
Referring to fig. 1A, the buried point test method includes:
s110, inquiring the first quantity of the captured buried point data according to the buried point parameters of the buried point to be tested.
The buried point to be tested can be used for representing the position of the buried point to be tested, so that the buried point data can be captured at the buried point later.
Wherein the buried point parameters may be used to characterize parameters specifying the type of buried point data. It should be noted that the buried point parameter is at least one.
The buried point data refer to captured user behavior data conforming to buried point parameters. Specifically, the embedded point data may include an event name (event), a device identifier (device_id) used by a user, a captured page identifier (title), a user trigger mode, user input content, and the like. Wherein event names may be used to label the type of user behavior. Wherein the device identification is used to uniquely characterize the device used by the user. The number of buried data is at least one.
For example, in the case of "number entry page burial points," the corresponding captured burial point data may include a device identification, a "number entry page" corresponding event name, and a "number entry" entry pattern. In the case of "input destination buried points," the corresponding captured buried point data may include a device identification, a destination name entered by the user, and a page identification of the captured "head page". In the case of a "confirmation call burial point," the corresponding captured burial point data may include a device identification, and a "confirmation call" corresponding event name, etc.
The first quantity refers to the quantity of captured buried point data obtained through statistics according to buried point parameters before buried point test is carried out.
Specifically, the captured buried point data conforming to the buried point parameters in the database is queried based on the buried point parameters, and the number of the queried captured buried point data is recorded as a first number. Wherein the database is used for storing captured buried point data. It should be noted that, the embodiment of the present invention does not limit the type of database. In an alternative embodiment, a mysql (relational database management system) database may be used for storage of captured buried point data.
And S120, performing buried point capturing on the to-be-tested buried point in response to triggering operation of the to-be-tested buried point corresponding control so as to update captured buried point data.
The triggering operation can be used for representing the operation of activating the control corresponding to the buried point to be tested. Alternatively, the triggering operation may include at least one of clicking, voice, sliding, and the like, which is not limited in any way by the embodiment of the present invention.
The control to be tested corresponding to the buried point can comprise at least one of buttons, drop-down menus, windows, text boxes and the like, and the embodiment of the invention does not limit the types and the number of the control.
Specifically, after triggering operation is performed on the corresponding control of the buried point to be tested, buried point data is captured, and the captured buried point data is uploaded to a database.
S130, inquiring the updated second quantity of the captured buried point data according to the buried point parameters of the buried point to be tested.
The second number refers to the number of captured buried points after the trigger operation is executed on the control corresponding to the buried point to be tested.
It should be noted that the first number and the second number may be the same or different. In the case where the capture of the buried point data is successful and the upload of the captured buried point data is successful, the second number is generally different from the first number in value; in the event that the capture of the buried data fails, or the upload of the captured buried data fails, the second number is generally the same as the first number.
Specifically, based on the embedded point parameters, after triggering operation is executed on the control corresponding to the embedded point to be tested, updated captured embedded point data meeting the conditions in the database is queried again, and the queried updated captured embedded point data is recorded as a second number.
S140, determining a test result of the buried point to be tested according to the first number and the second number.
The buried point test result can be test success or test failure, and the corresponding test result can be represented by a preset test result identifier. If the test is successful, indicated by "1", and if the test is failed, indicated by "4". It should be noted that, the specific identification number of the test result identification is not limited in any way.
The successful test means that the buried point capturing is successful and the captured buried point data is uploaded successfully. The test failure refers to a buried point capturing failure or a captured buried point data uploading failure.
Specifically, according to the first number and the second number, the success or failure of the test of the buried point to be tested is determined.
For example, the test result of the buried point to be tested may be determined according to the ratio of the second number to the first number. If the ratio of the second quantity to the first quantity is 1, determining that the buried point to be tested fails to be tested; if the ratio of the second number to the first number is not 1, determining that the buried point to be tested is tested successfully.
For example, the test result of the buried point to be tested may be determined according to the difference between the second number and the first number. If the difference value between the second number and the first number is the same as the triggering times of the triggering operation of the control corresponding to the buried point to be tested, determining that the buried point to be tested is tested successfully; if the difference value between the second number and the first number is different from the triggering times of the triggering operation of the control corresponding to the buried point to be tested, determining that the buried point to be tested fails to be tested. The triggering times refer to the times of activating the control corresponding to the buried point to be tested.
According to the buried point testing method provided by the embodiment of the invention, the first quantity of the captured buried points is inquired according to the buried point parameters of the buried points to be tested; responding to triggering operation of a control corresponding to the buried point to be tested, and performing buried point capturing on the buried point to be tested so as to update captured buried point data; inquiring a second quantity of the updated captured buried point data according to the buried point parameters of the buried point to be tested; and determining the test result of the buried point to be tested according to the first quantity and the second quantity. According to the scheme, the situation that a tester manually tests, and the test result is inaccurate is avoided, the accuracy of the test result of the buried point to be tested is improved, and when the buried point to be tested is more, the efficiency of buried point test can be improved. Meanwhile, the scheme does not need to input a large number of professional testers, and labor cost is reduced.
In the embodiment of the invention, the test result of the buried point to be tested can be generated into a visual report, and the difference of the test results is displayed for observation. Alternatively, the visual report may be a table, an image, or other means capable of displaying the test results.
In an alternative embodiment, the graph is used as a visual report, with the horizontal axis (x-axis) being the event name and the vertical axis (y-axis) being the status value of the test. Wherein the status value of the test may be a value used to characterize the test result. Specifically, the test result of each time is stored in a database, and if the test is successful, the test result is recorded as a first numerical value; if the test fails, the second value is recorded. The sizes of the first numerical value and the second numerical value are not limited, and can be set by a technician according to experience or set by a user according to needs. Illustratively, the first value may be 1 and the second value may be 4. The first value and the second value are different.
When performing multiple batches of burial point testing, in order to facilitate distinguishing between different batches of captured burial point data, a distinguishing display may be performed in the visual report. Wherein, the distinguishing display can be realized by means of color or character labeling and the like.
Referring to fig. 1B, a schematic diagram of a stacking curve of test results obtained by performing a multi-lot (illustrated as lot 1, lot 2, and lot 3) burial point test for a net cart. The abscissa is the name of the buried point event of the test, and the ordinate is the accumulated value of the state values of the tests of multiple batches. The test embedded point event comprises a passenger login result embedded point, a number login page embedded point, an addition departure point embedded point, an addition destination embedded point, a confirmation call embedded point, a short message verification code embedded point acquisition, an account login embedded point and an input destination embedded point. The state value of the test is a digital identifier of the test result of each buried point event, wherein the digital identifier is obtained by carrying out multi-batch test on each buried point event by a pointer. In fig. 1B, on the status value curves of the different batches of each test event, the status values corresponding to the test results of the corresponding batch are marked for characterizing the test results of the corresponding batch. Where "1" indicates test success and "4" indicates test failure. And stacking state value curves of different batches in sequence according to a test sequence to obtain a stacking curve schematic diagram of multi-batch buried point test.
It should be noted that, whether the test failure occurs in the corresponding buried point event can be judged by judging whether the peak occurs in the stacked curves in the buried point events of different tests. Wherein, the higher the peak value of the peak, the more times of test failure are indicated; the lower the peak value of the peak, the fewer the number of test failures that occur. As can be seen from fig. 1B, the "confirm call burial point" event and the "account login burial point" event both have failed the test. Wherein, the event of 'confirming the call buried point' has a test failure result in the test of the 1 st batch; the account login buried point event has test failure results in the 2 nd batch and the 3 rd batch of tests.
Taking the state value of the test of the account login buried point event as an example, if the state value of the test displayed in the 1 st batch is 1, the account login buried point event of the batch is successfully tested in the current batch; the state value of the test of the account login buried point of the 2 nd batch is '4', and the failure of the test of the account login buried point event of the batch is indicated; and if the state value of the test of the account login buried point of the 3 rd batch is 4, the test failure of the account login buried point event of the batch is indicated.
Example two
Fig. 2 is a flowchart of a method for testing buried points according to a second embodiment of the present invention, where the operation of determining the test result of the buried points to be tested according to the first number and the second number is further refined to "determining the test result of the buried points to be tested according to the consistency of the first number and the second number" based on the above embodiments, so as to perfect the determination mechanism of the test result.
Referring to fig. 2, the buried point test method includes:
s210, inquiring the first quantity of the captured buried point data according to the buried point parameters of the buried point to be tested.
S220, responding to triggering operation of the control corresponding to the buried point to be tested, and performing buried point capturing on the buried point to be tested so as to update captured buried point data.
S230, inquiring the updated second quantity of the captured buried point data according to the buried point parameters of the buried point to be tested.
S240, determining a test result of the buried point to be tested according to the consistency of the first quantity and the second quantity.
In this embodiment, consistency is used to characterize whether the first number and the second number are equal.
For example, the first number may be compared to the second number in size to determine the consistency of the two; alternatively, the consistency of the first number and the second number may be determined according to a ratio of the two numbers; alternatively, the consistency of the first number and the second number may also be determined based on the difference between the two numbers.
Specifically, if the first number is equal to the second number, or the ratio of the first number to the second number is 1, or the difference between the first number and the second number is 0, it indicates that the first number and the second number are consistent; otherwise, it is indicated that the first number and the second number are inconsistent.
Specifically, if the first number is inconsistent with the second number, determining that the buried point to be tested is tested successfully; if the first quantity is consistent with the second quantity, determining that the buried point to be tested fails to be tested. It can be appreciated that if the first number is consistent with the second number, it is indicated that the captured embedded point data generated by the triggering operation of the control corresponding to the embedded point to be tested before the second number is queried is not substantially updated into the database due to the failure of capturing the embedded point data or the failure of uploading the captured embedded point data.
For example, if the second number is greater than the first number, determining that the buried point to be tested is tested successfully; if the second number is equal to the first number, determining that the buried point to be tested fails to be tested. Based on whether the first quantity is consistent with the second quantity, the test result of the buried point to be tested is determined more intuitively.
It should be noted that, since the first amount of the captured buried point data before the test and the second amount of the captured buried point data updated after the test are queried in the database, the test result of the buried point test is determined according to the queried first amount and second amount of the captured buried point data, and the operation of deleting the database is not generated in the process, therefore, the amount of the captured buried point data before and after the test is only increased or unchanged.
In an alternative embodiment, if the first number and the second number are inconsistent, determining a test result of the buried point to be tested according to a difference between the second number and the first number.
Specifically, if the difference value between the second quantity and the first quantity is consistent with the triggering times of the triggering operation of the control corresponding to the buried point to be tested, determining that the buried point to be tested is tested successfully; if the difference value between the second number and the first number is inconsistent with the triggering times of the triggering operation of the control corresponding to the buried point to be tested, determining that the buried point to be tested fails. The triggering times refer to the times of activating the control corresponding to the buried point to be tested.
For example, for a single trigger operation, if the number of triggers is 1, a new piece of buried point data should ideally be captured. When the difference value between the second quantity and the first quantity is 1, determining that the buried point to be tested is tested successfully; and when the difference value between the second quantity and the first quantity is smaller than 1, determining that the test of the buried point to be tested fails.
For at least two triggering operations, determining that the buried point to be tested is tested successfully when the difference value between the second number and the first number is the triggering frequency; and when the difference value between the second quantity and the first quantity is smaller than the triggering times, determining that the buried point to be tested fails to be tested.
In the embodiment of the invention, by introducing the triggering times and further limiting whether the test result is successful or not according to the difference between the triggering times and the first number and the second number, the situation that the test result is misjudged due to the fact that part of triggering operations correspond to the abnormal capture failure of the buried data or part of captured buried data is not uploaded successfully can be eliminated, and the test result is more accurate.
In an alternative embodiment, if the first number is consistent with the second number, re-executing the query operation of the second number according to the preset frequency to update the second number; and determining the test result of the buried point to be tested according to the consistency of the first quantity and the updated second quantity. The preset frequency is not limited in any way, and the preset frequency can be set by a technician according to experience or can be repeatedly determined by a large number of experiments.
In the embodiment of the invention, the delay phenomenon occurs when the captured buried point data is uploaded, so that the preset frequency is set, the captured buried point data is queried for the second quantity, the delay phenomenon occurring when the captured buried point data is uploaded is avoided, the influence on the execution of the second quantity of query operation is avoided, and the accuracy of the test result is improved.
In an alternative embodiment, if the first number is inconsistent with the updated second number, determining that the buried point to be tested is tested successfully; if the first number is consistent with the updated second number, determining that the buried point to be tested fails to be tested.
In another alternative embodiment, when the first number is inconsistent with the second number, if the accumulated number of times of re-executing the second number of query operations reaches the preset number of times threshold, and the first number is consistent with the second number updated each time, determining that the buried point to be tested fails to test. The preset times threshold is not limited in any way, and the preset times threshold can be set by a technician according to experience or can be repeatedly determined by a large number of experiments.
Optionally, re-executing the second number of query operations according to the preset frequency, and if the accumulated number of re-executing the second number of query operations does not reach the preset number threshold, and the difference value between the second number updated last time and the first number is consistent with the trigger number of the trigger operation of the control corresponding to the buried point to be tested, determining that the buried point to be tested is tested successfully.
Or optionally, re-executing the second number of inquiry operations according to the preset frequency, and if the accumulated times of re-executing the second number of inquiry operations does not reach the preset times threshold value and the second number after the last update is inconsistent with the first number, determining that the buried point to be tested is tested successfully.
In the embodiment of the invention, the number of times of repeatedly executing the second number of inquiry operations is controlled by introducing the preset number of times threshold, so that time is provided for uploading the captured buried point data, the influence on the result of executing the second number of inquiry due to the phenomenon of time delay of uploading the captured buried point data is avoided, and the accuracy of the second number is improved.
According to the embodiment of the invention, the test result of the buried point to be tested is determined according to the consistency of the first quantity and the second quantity, complex processing is not needed, and the convenience of buried point test is improved.
In the embodiments of the present invention, the details are not described, and reference may be made to the description of the foregoing embodiments.
Example III
Fig. 3 is a flowchart of a buried point testing method according to a third embodiment of the present invention. The present embodiment gives a preferred example of a buried point test method on the basis of the above embodiments.
Referring to fig. 3, the buried point test method includes:
and S311, before the buried point test, judging whether the injection risk exists. If yes, executing S312; if not, S313 is performed.
In the embodiment of the invention, an sql (Structured Query Language) structured query language) database is adopted.
Specifically, because the embedded point parameters are directly spliced into sql sentences to be processed, in order to prevent the server from being affected by the abnormal embedded point parameters, the sql injection preventing processing is required to be performed on the embedded point parameters before use. The method for performing sql injection prevention treatment on the buried point parameters is not limited in any way. Alternatively, the anti-injection process may be a string verification method.
S312, ending the test, and reporting an error result to indicate that the sql injection risk exists.
S313, constructing an sql statement according to the buried point parameters, and reading the first quantity of the captured buried point data in the sql database according to the constructed sql statement.
Specifically, for any buried point to be tested, according to the buried point parameters of the buried point to be tested, inquiring to obtain the first number of the captured buried points.
In the embodiment of the invention, the captured buried data are stored in the sql database, and each captured buried data in the sql database has uniqueness. And inquiring the captured buried point data meeting the conditions in the sql database through the buried point parameters, and recording the number of the inquired captured buried point data as a first number.
In this embodiment, the buried point parameter refers to a parameter of a select count (x) in the sql statement. Specifically, the buried point parameters are spliced into a complete sql statement, and the first quantity of the captured buried point data in the sql database is queried according to the spliced sql statement. The buried point parameter is at least one.
S314, judging whether the triggering operation of the control corresponding to the buried point to be tested is successful. If the failure occurs, S315 is executed; if successful, S316 is performed.
And S315, ending the test, and reporting an error result to prompt control triggering failure.
S316, performing buried point test to judge whether the injection risk exists. If yes, executing S317; if not, S318 is performed.
And S317, ending the test, and reporting an error result to indicate that the sql injection risk exists.
S318, judging whether the buried data exist or not. If not, executing S319; if yes, then execution proceeds to S320.
And S319, after the test is finished, reporting errors to prompt the failure of capturing the buried data.
Specifically, the result error report prompts failure to capture the updated buried data.
S320, constructing an sql statement according to the buried point parameters, and reading a second quantity of captured buried point data in the sql database according to the constructed sql statement.
Specifically, as the triggering operation of the control is successful, the captured buried point data of the buried point to be tested needs to be updated, the buried point parameters are spliced into a complete sql statement according to the buried point parameters of the buried point to be tested, and the second quantity of the captured buried point data updated in the sql database is queried according to the spliced sql statement.
S321, judging whether the first quantity and the second quantity are consistent. If yes, then execute S322; if not, then S325 is performed.
Optionally, if the first number is inconsistent with the second number, determining that the buried point to be tested is tested successfully; or alternatively, if the first number is consistent with the second number, the buried point test to be tested may succeed or may fail.
S322, delaying according to a preset frequency, and recording one time of delay times.
Specifically, when the first number is consistent with the second number during the buried point test, the preset frequency is set to acquire the second number of the captured buried point data at intervals, considering that delay may occur in uploading the captured buried point data. The preset frequency may be, for example, 5 seconds.
S323, judging whether the time delay times reach a preset time threshold. If yes, then execute S324; if not, S320 is performed.
Specifically, a preset time threshold is set, the time delay times of the buried point test are limited, and when the captured buried point data are uploaded, the time delay is stopped, so that the test efficiency is improved. The preset number of times threshold may be 13 times, for example.
And S324, after the test is finished, reporting the captured buried point data by a result error reporting prompt.
Specifically, when the delay times reach a preset time threshold, if the buried point data is not tested, determining that the captured buried point data of the buried point to be tested fails to be uploaded.
S325, reporting the captured buried point data after testing, and marking the passing of the test.
According to the technical scheme, the sql database is adopted, the buried point test is carried out in steps, the influence on the test result possibly caused by false triggering of the buried point which is not to be tested is avoided, and the accuracy of the test result is improved. Meanwhile, sql injection prevention treatment is carried out on the buried point parameters, so that the test safety is improved.
In the embodiments of the present invention, the details are not described, and reference may be made to the description of the foregoing embodiments.
Example IV
Fig. 4 is a schematic structural diagram of a buried point testing apparatus according to a fourth embodiment of the present invention. As shown in fig. 4, the buried point testing apparatus includes: a first number of queries module 410, a buried data update module 420, a second number of queries module 430, and a test result determination module 440. Wherein,
a first quantity query module 410, configured to query a first quantity of captured buried data according to a buried parameter of a buried point to be tested;
the embedded point data updating module 420 is configured to perform embedded point capturing on the embedded point to be tested in response to a triggering operation of the control corresponding to the embedded point to be tested, so as to update captured embedded point data;
A second number query module 430, configured to query a second number of updated captured buried point data according to a buried point parameter of a buried point to be tested;
the test result determining module 440 is configured to determine a test result of the buried point to be tested according to the first number and the second number.
According to the buried point testing method provided by the embodiment of the invention, the first quantity of the captured buried points is inquired through the first quantity inquiry module according to the buried point parameters of the buried points to be tested; responding to triggering operation of a control corresponding to the buried point to be tested through a buried point data updating module, and capturing the buried point to be tested so as to update captured buried point data; inquiring a second quantity of the updated captured buried point data according to the buried point parameters of the buried points to be tested through a second quantity inquiry module; and determining the test result of the buried point to be tested according to the first number and the second number by the test result determining module. According to the scheme, the situation that a tester manually tests, and the test result is inaccurate is avoided, the accuracy of the test result of the buried point to be tested is improved, and when the buried point to be tested is more, the efficiency of buried point test can be improved. Meanwhile, the scheme does not need to input a large number of professional testers, and labor cost is reduced.
Optionally, the test result determining module 440 includes:
and the test result determining unit is used for determining the test result of the buried point to be tested according to the consistency of the first quantity and the second quantity.
Optionally, the test result determining unit includes:
and the first test result determining subunit is used for determining the test result of the buried point to be tested according to the difference value between the second number and the first number if the first number is inconsistent with the second number.
Optionally, the first test result determining subunit includes:
and the test success slave unit is used for determining that the test of the buried point to be tested is successful if the difference value of the second number and the first number is consistent with the triggering times of the triggering operation of the control corresponding to the buried point to be tested.
Optionally, the test result determining unit includes:
a second number updating subunit, configured to re-execute, if the first number is consistent with the second number, a query operation of the second number according to a preset frequency, so as to update the second number;
and the second test result determining subunit is used for determining the test result of the buried point to be tested according to the consistency of the first quantity and the updated second quantity.
Optionally, the second test result determination subunit is specifically configured to:
If the accumulated times of re-executing the second number of inquiry operations reach the preset times threshold value and the first number is consistent with the second number updated each time, determining that the buried point to be tested fails to be tested.
Optionally, the second test result determination subunit is specifically configured to:
if the accumulated times of the re-executing the second number of inquiry operations do not reach the preset times threshold value, and the difference value between the second number and the first number after the last updating is consistent with the triggering times of the triggering operation of the control corresponding to the buried point to be tested, determining that the buried point to be tested is tested successfully; or,
if the accumulated times of the query operations of the second number do not reach the preset times threshold value, and the second number updated last time is inconsistent with the first number, determining that the buried point to be tested is tested successfully.
Optionally, the test result determining unit is specifically configured to:
if the first quantity is inconsistent with the second quantity, determining that the buried point to be tested is tested successfully;
if the first quantity is consistent with the second quantity, determining that the buried point to be tested fails to be tested.
The buried point testing device provided by the embodiment of the invention can execute the buried point testing method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the buried point testing methods.
In the technical scheme of the invention, the related processes of collecting, storing, using, processing, transmitting, providing, disclosing and the like of the buried points to be tested all accord with the regulations of related laws and regulations, and the public order is not violated.
Example five
Fig. 5 is a schematic structural diagram of an electronic device for implementing a buried point testing method according to a fifth embodiment of the present invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 5, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as the buried point test method.
In some embodiments, the embedded point test method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the buried point test method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the buried point test method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (11)

1. A buried point testing method, comprising:
inquiring the first quantity of the captured buried points according to the buried point parameters of the buried points to be tested;
responding to triggering operation of the control corresponding to the buried point to be tested, and performing buried point capturing on the buried point to be tested so as to update the captured buried point data;
inquiring a second quantity of the updated captured buried point data according to the buried point parameters of the buried points to be tested;
And determining the test result of the buried point to be tested according to the first quantity and the second quantity.
2. The method of claim 1, wherein determining the test result of the buried point to be tested based on the first number and the second number comprises:
and determining a test result of the buried point to be tested according to the consistency of the first quantity and the second quantity.
3. The method of claim 2, wherein determining the test result of the buried point to be tested based on the consistency of the first number and the second number comprises:
if the first quantity is inconsistent with the second quantity, determining a test result of the buried point to be tested according to a difference value between the second quantity and the first quantity.
4. A method according to claim 3, wherein said determining the test result of the buried point to be tested based on the difference between the second number and the first number comprises:
and if the difference value between the second number and the first number is consistent with the triggering times of the triggering operation of the control corresponding to the buried point to be tested, determining that the buried point to be tested is tested successfully.
5. The method of claim 2, wherein determining the test result of the buried point to be tested based on the consistency of the first number and the second number comprises:
if the first quantity is consistent with the second quantity, re-executing the query operation of the second quantity according to the preset frequency so as to update the second quantity;
and determining the test result of the buried point to be tested according to the consistency of the first quantity and the updated second quantity.
6. The method of claim 5, wherein determining the test result of the buried point to be tested based on the consistency of the first number and the updated second number comprises:
if the accumulated times of re-executing the second number of inquiry operations reach the preset times threshold value, and the first number is consistent with the second number updated each time, determining that the buried point to be tested fails to be tested.
7. The method of claim 5, wherein determining the test result of the buried point to be tested based on the consistency of the first number and the updated second number comprises:
if the accumulated times of the re-executing the second number of inquiry operations do not reach the preset times threshold value, and the difference value between the second number updated last time and the first number is consistent with the triggering times of the triggering operation of the control corresponding to the buried point to be tested, determining that the buried point to be tested is tested successfully; or,
If the accumulated times of the query operations of the second number do not reach the preset times threshold value, and the second number updated last time is inconsistent with the first number, determining that the buried point to be tested is tested successfully.
8. The method of claim 2, wherein determining the test result of the buried point to be tested based on the consistency of the first number and the second number comprises:
if the first quantity is inconsistent with the second quantity, determining that the buried point to be tested is tested successfully;
and if the first quantity is consistent with the second quantity, determining that the buried point to be tested fails to be tested.
9. A buried point testing apparatus, comprising:
the first quantity inquiry module is used for inquiring the first quantity of the captured buried points according to the buried point parameters of the buried points to be tested;
the embedded point data updating module is used for responding to the triggering operation of the control corresponding to the embedded point to be tested, and performing embedded point capturing on the embedded point to be tested so as to update the captured embedded point data;
the second quantity inquiry module is used for inquiring the updated second quantity of the captured buried point data according to the buried point parameters of the buried point to be tested;
And the test result determining module is used for determining the test result of the buried point to be tested according to the first quantity and the second quantity.
10. An electronic device, comprising:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement a buried point testing method as claimed in any of claims 1 to 8.
11. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements a buried point testing method according to any of claims 1-8.
CN202210876925.7A 2022-07-25 2022-07-25 Buried point test method, buried point test device, buried point test equipment and storage medium Pending CN117493147A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210876925.7A CN117493147A (en) 2022-07-25 2022-07-25 Buried point test method, buried point test device, buried point test equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210876925.7A CN117493147A (en) 2022-07-25 2022-07-25 Buried point test method, buried point test device, buried point test equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117493147A true CN117493147A (en) 2024-02-02

Family

ID=89678750

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210876925.7A Pending CN117493147A (en) 2022-07-25 2022-07-25 Buried point test method, buried point test device, buried point test equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117493147A (en)

Similar Documents

Publication Publication Date Title
CN115757150A (en) Production environment testing method, device, equipment and storage medium
CN111506455B (en) Checking method and device for service release result
CN115086384B (en) Remote control test method, device, equipment and storage medium
CN115296979B (en) Fault processing method, device, equipment and storage medium
CN117493147A (en) Buried point test method, buried point test device, buried point test equipment and storage medium
CN116450176A (en) Version updating method and device, electronic equipment and storage medium
CN116467161A (en) Application testing method and device, electronic equipment and storage medium
CN115437961A (en) Data processing method and device, electronic equipment and storage medium
CN114861321A (en) Problem scene extraction method, device, equipment and medium for traffic flow simulation
CN114546799A (en) Point burying log checking method and device, electronic equipment, storage medium and product
CN113238901A (en) Multi-device automatic testing method and device, storage medium and computer device
CN113836016B (en) Writing interface storage quality testing method, system, electronic equipment and storage medium
CN116449810B (en) Fault detection method and device, electronic equipment and storage medium
CN117573561B (en) Automatic test system, method, electronic equipment and storage medium
CN116400669A (en) Automatic test method, device, test equipment and medium for security level instrument control system
CN117271815A (en) Configuration method and device of equipment information, electronic equipment and medium
CN116980320A (en) Website operation test method, device, equipment and medium
CN116894645A (en) Electric power engineering acceptance method and device, electronic equipment and medium
CN117743396A (en) Data quality detection method, device, equipment and storage medium
CN116596558A (en) Product management method, device, equipment and storage medium
CN116719719A (en) Test method, test device, electronic equipment and storage medium
CN116150024A (en) Method and device for evaluating program to be tested and electronic equipment
CN115470149A (en) Database preprocessing function testing method, device, equipment and storage medium
CN117112389A (en) Code detection method, device, computer equipment and storage medium
CN117539700A (en) Test management method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication