CN110347582A - Bury a test method and device - Google Patents

Bury a test method and device Download PDF

Info

Publication number
CN110347582A
CN110347582A CN201910422823.6A CN201910422823A CN110347582A CN 110347582 A CN110347582 A CN 110347582A CN 201910422823 A CN201910422823 A CN 201910422823A CN 110347582 A CN110347582 A CN 110347582A
Authority
CN
China
Prior art keywords
page
tested
target
little
burying
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.)
Granted
Application number
CN201910422823.6A
Other languages
Chinese (zh)
Other versions
CN110347582B (en
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.)
Ping An Bank Co Ltd
Original Assignee
Ping An Bank 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 Ping An Bank Co Ltd filed Critical Ping An Bank Co Ltd
Priority to CN201910422823.6A priority Critical patent/CN110347582B/en
Publication of CN110347582A publication Critical patent/CN110347582A/en
Application granted granted Critical
Publication of CN110347582B publication Critical patent/CN110347582B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/3684Test management for test design, e.g. generating new test cases
    • 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

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)
  • Testing And Monitoring For Control Systems (AREA)
  • Image Analysis (AREA)

Abstract

The embodiment of the invention provides one kind to bury a test method and device.The present invention relates to big data fields, this method comprises: obtaining the URL of the page to be tested, the target pages element of the page to be tested, which exists, to be buried a little, and target pages element includes at least following one: button, picture, link;The page to be tested is determined according to the URL of the page to be tested;The page elements of the page to be tested are traversed, a feedback data is buried in generation;Real-time blocking buries a feedback data;Situation information is buried according to bury that a feedback data determines the page to be tested, situation information is buried and includes at least and bury dot position information and bury a quantity information;Determine the page to be tested with the presence or absence of burying an exception according to the situation information of burying of the page to be tested.Technical solution provided in an embodiment of the present invention, which is able to solve, manually to be carried out burying the low problem of a testing efficiency.

Description

Bury a test method and device
[technical field]
The present invention relates to big data fields more particularly to one kind to bury a test method and device.
[background technique]
" burying a little " is the term in data collecting field (especially user behavior data acquisition field), is referred to for spy Determine user behavior or the relevant technologies and its implementation process that event is captured, handled and sent.
Technical spirit a little is buried, is the event first monitored in software application operational process, when the event for needing to pay close attention to occurs Shi Jinhang judgement and capture, then obtain necessary contextual information, finally will be sent to server end after finish message.It is supervised The event listened usually is provided by platforms such as operating system, browser, APP frames, can also be triggered on basic event Customized (such as the clicking some specific button) of condition.Under normal circumstances, burying a little can be by monitoring analysis tool offer SDK realizes to be programmed.
Bury business meaning a little it is clear that help to define and obtain business datum that analysis personnel really need and its Incidental information.Under different scenes, the information and angle of business personnel's concern may be different.Typical application scenarios have towards number The analysis of word marketing domain, and the analysis towards product operation field.The former focuses on sources and advertising results, Hou Zhegeng Take notice of the optimization of product itself process and experience.The two emphasizes particularly on different fields, and can also have some intersections.So for different items Mesh and analysis purpose should design and different bury a scheme.
During the version updating of product, may change and bury a situation, and these change be possible to bring it is bad Influence, therefore, it is necessary to bury a test.
Currently, the method that a test uses manual testing is buried, low efficiency.
[summary of the invention]
In view of this, the embodiment of the invention provides one kind to bury a test method and device, manually buried to solve The low problem of point testing efficiency.
The embodiment of the invention provides one kind to bury a test method, which comprises the URL of the page to be tested is obtained, The target pages element of the page to be tested, which exists, to be buried a little, and the target pages element includes at least following one: button, figure Piece, link;The page to be tested is determined according to the URL of the page to be tested;Traverse the page member of the page to be tested A feedback data is buried in element, generation;A feedback data is buried described in real-time blocking;According to it is described bury a feedback data determine it is described to be measured The examination page buries situation information, it is described bury situation information and include at least bury dot position information and bury a quantity information;According to The situation information of burying of the page to be tested determines the page to be tested with the presence or absence of burying an exception.
Further, described to determine whether the page to be tested is deposited according to the situation information of burying of the page to be tested Burying an exception, comprising: judge whether be stored with target baseline report in presetting database, be stored in the presetting database Multiple baseline reports, each baseline report and a page have corresponding relationship, and including at least in the baseline report has Its corresponding page buries dot position information and buries a quantity information, and the target baseline report is and the page to be tested has There is the baseline report of corresponding relationship;It, will be described to be measured if being stored with the target baseline report in the presetting database The situation information of burying of the examination page reports that the information for including is compared with the target baseline;If the page to be tested Bury that the report of quantity and the target baseline includes to bury quantity identical, also, each buried a little in the page to be tested The report of position and the target baseline each of include the position for burying a little respectively correspond it is identical, it is determined that the page to be tested is not In the presence of burying an exception.
Further, after the determination page to be tested is not present and buries an exception, the method also includes: it obtains Target in preset time is taken to bury the achievement data of evaluation index a little and the weight of each evaluation index, the target is buried a little as institute Any one stated in the page to be tested is buried a little;The achievement data of evaluation index a little is buried according to the target and each assessment refers to Target described in target weight computing buries the assessed value for burying a position a little, and judges that the target is buried a little according to the assessed value Whether reasonable bury a position.
Further, the weight of the achievement data and each evaluation index that evaluation index a little is buried according to the target Calculate the target and bury the assessed value for burying a position a little, and according to the assessed value judge the target bury a little bury a position Whether rationally, comprising: according to formulaIt calculates the target and buries the assessed value for burying a position a little, In, S indicates that the target buries the assessed value for burying a position a little, wiIndicate the corresponding weight of i-th of evaluation index, xiIndicate institute Achievement data corresponding to i-th of evaluation index is stated, n indicates the quantity of evaluation index;If the target bury a little bury point The assessed value set is less than or equal to preset threshold, determine the target bury a little to bury a position unreasonable;If the target is buried a little The assessed value for burying a position be greater than the preset threshold, determine the target bury a little to bury a position reasonable.
Further, the determination target bury a little bury a position it is unreasonable after, the method also includes: it is defeated Prompt information out, the prompt information include that the prompt closing target is buried a little.
The embodiment of the invention provides one kind to bury a test device, and described device includes: first acquisition unit, for obtaining The URL of the page to be tested, the target pages element of the page to be tested, which exists, to be buried a little, and the target pages element includes at least Following one: button, picture, link;First determination unit, it is described to be measured for being determined according to the URL of the page to be tested Try the page;Traversal Unit, for traversing the page elements of the page to be tested, a feedback data is buried in generation;Interception unit is used A feedback data is buried described in the real-time blocking;Second determination unit, for buried according to a feedback data determine it is described to be measured The examination page buries situation information, it is described bury situation information and include at least bury dot position information and bury a quantity information;Third Determination unit, for determining that the page to be tested is a little different with the presence or absence of burying according to the situation information of burying of the page to be tested Often.
Further, the third determination unit includes: judgment sub-unit, for judging whether store in presetting database There is target baseline report, multiple baseline reports, each baseline report and a page are stored in the presetting database Including at least with corresponding relationship, in the baseline report has burying dot position information and burying quantity letter for its corresponding page Breath, the target baseline report is the baseline report for having corresponding relationship with the page to be tested;Comparing subunit, for such as It is stored with the target baseline report in presetting database described in fruit, then the page to be tested is buried into situation information and institute The information that target baseline report includes is stated to be compared;First determines subelement, if burying a little for the page to be tested What the report of quantity and the target baseline included bury, and quantity is identical, also, position a little is each buried in the page to be tested With target baseline report each of include the position for burying a little respectively correspond it is identical, it is determined that the page to be tested is not present Bury an exception.
Further, described device further include: second acquisition unit, described in being determined in the described first determining subelement The page to be tested buries the achievement data and each of evaluation index a little there is no target in preset time after burying an exception, is obtained The weight of evaluation index, the target, which is buried, a little buries a little for any one in the page to be tested;Assessment unit is used for basis The target bury target described in the achievement data of evaluation index a little and the weight computing of each evaluation index bury a little bury point The assessed value set, and according to the assessed value judge the target bury a little whether bury a position reasonable.
Further, the assessment unit includes: computation subunit, for according to formulaIt calculates The target buries the assessed value for burying a position a little, wherein S indicates that the target buries the assessed value for burying a position a little, wiTable Show the corresponding weight of i-th of evaluation index, xiIndicate that achievement data corresponding to i-th of evaluation index, n indicate that assessment refers to Target quantity;Second determines subelement, if burying the assessed value for burying a position a little for the target is less than or equal to default threshold Value, determine the target bury a little to bury a position unreasonable;Third determines subelement, if burying burying a little a little for the target The assessed value of position is greater than preset threshold, determine the target bury a little to bury a position reasonable.
Further, described device further include: output unit, for determining that subelement determines the target described second Bury a little bury a position it is unreasonable after, export prompt information, the prompt information includes that prompt is closed the target and buried a little.
The embodiment of the invention provides a kind of storage medium, the storage medium includes the program of storage, wherein described Equipment program controls the storage medium when running where, which executes, above-mentioned buries a test method.
The embodiment of the invention provides a kind of computer equipment, including memory and processor, the memory is for depositing Storage includes the information of program instruction, and the processor is used to control the execution of program instruction, and described program instruction is added by processor It carries and realizes above-mentioned the step of burying test method when executing.
In embodiments of the present invention, the page elements of the page to be tested are traversed, a feedback data is buried in generation, and real-time blocking buries Point feedback data is buried situation information and is included at least according to the situation information of burying for burying a feedback data and determining the page to be tested It buries dot position information and buries a quantity information, determine that the page to be tested whether there is according to the situation information of burying of the page to be tested An exception is buried, can judge that the page to be tested buries the case where a little and repeatedly burying with the presence or absence of omitting, solve artificial progress The low problem of a testing efficiency is buried, has achieved the effect that improve and has buried a testing efficiency.
[Detailed description of the invention]
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this field For those of ordinary skill, without any creative labor, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is a kind of flow chart for optionally burying a test method according to embodiments of the present invention;
Fig. 2 is another flow chart for optionally burying a test method according to embodiments of the present invention;
Fig. 3 is a kind of schematic diagram for optionally burying a test device according to embodiments of the present invention;
Fig. 4 is a kind of schematic diagram of computer equipment provided in an embodiment of the present invention.
[specific embodiment]
For a better understanding of the technical solution of the present invention, being retouched in detail to the embodiment of the present invention with reference to the accompanying drawing It states.
It will be appreciated that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Base Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts it is all its Its embodiment, shall fall within the protection scope of the present invention.
The term used in embodiments of the present invention is only to be not intended to be limiting merely for for the purpose of describing particular embodiments The present invention.In the embodiment of the present invention and the "an" of singular used in the attached claims, " described " and "the" It is also intended to including most forms, unless the context clearly indicates other meaning.
It should be appreciated that term "and/or" used herein is only a kind of incidence relation for describing affiliated partner, indicate There may be three kinds of relationships, for example, A and/or B, can indicate: individualism A, exist simultaneously A and B, individualism B these three Situation.In addition, character "/" herein, typicallys represent the relationship that forward-backward correlation object is a kind of "or".
Fig. 1 is a kind of flow chart for optionally burying a test method according to embodiments of the present invention.
As shown in Figure 1, this method comprises:
Step S102 obtains the URL of the page to be tested, and the target pages element of the page to be tested, which exists, to be buried a little, page object Surface element includes at least following one: button, picture, link.
Step S104 determines the page to be tested according to the URL of the page to be tested.
Step S106, traverses the page elements of the page to be tested, and a feedback data is buried in generation.
Step S108, real-time blocking bury a feedback data.
Step S110 buries situation information according to bury that a feedback data determines the page to be tested, buries situation information extremely Few includes burying dot position information and burying a quantity information.
Step S112 determines the page to be tested with the presence or absence of burying an exception according to the situation information of burying of the page to be tested.
When page versions update, the situation of some mistakes may be generated, for example, certain of the A page chains before updating In the presence of burying a little, and this is chained there is no burying a little after updating, and substantially in accordance with the requirement of acquisition data, this chain be should In the presence of burying a little.For another example certain of the A page chains that there are one to bury a little before updating, and this chains that there are two after updating It buries a little, and substantially in accordance with the requirement of acquisition data, this is chained bury a little in the presence of one.
Situation information is buried including at least burying dot position information and burying a quantity information, for example, certain page includes 5 pictures It is linked with 5, after page test, it is found that the page one co-exists in 10 and buries a little, wherein each picture in 5 pictures It is upper it is each theres are one to bury a little, 5 link in each chain that each there are one to bury a little.
In embodiments of the present invention, the page elements of the page to be tested are traversed, a feedback data is buried in generation, and real-time blocking buries Point feedback data is buried situation information and is included at least according to the situation information of burying for burying a feedback data and determining the page to be tested It buries dot position information and buries a quantity information, determine that the page to be tested whether there is according to the situation information of burying of the page to be tested An exception is buried, can judge that the page to be tested buries the case where a little and repeatedly burying with the presence or absence of omitting, solve artificial progress The low problem of a testing efficiency is buried, has achieved the effect that improve and has buried a testing efficiency.
Determine the page to be tested with the presence or absence of burying an exception according to the situation information of burying of the page to be tested, comprising: judgement It whether is stored with target baseline report in presetting database, is stored with multiple baseline reports, each baseline report in presetting database Accusing has corresponding relationship with page, and including at least in baseline report has burying dot position information and burying a little for its corresponding page Quantity information, target baseline report are the baseline reports for having corresponding relationship with the page to be tested;If deposited in presetting database Target baseline report is contained, then is compared the information that situation information includes with target baseline report of burying of the page to be tested Compared with;If the page to be tested bury that the report of quantity and target baseline includes to bury quantity identical, also, in the page to be tested Each bury position a little and reported with target baseline the position for each of including to bury a little respectively correspond it is identical, it is determined that the page to be tested There is no bury an exception.
If it is to bury a test for first time of the page to be tested that certain, which once buries test, after the completion of test, Target baseline report is generated, the position burying a quantity information and each burying a little that target baseline report contains the page to be tested is believed Breath, after user confirms that target baseline report is errorless, by target baseline report storage into presetting database.When the page to be tested changes After version, treats test page and tested, obtain the page to be tested buries situation information, and the page to be tested is buried a feelings Condition information is compared with the information of burying that target baseline report includes;If the page to be tested buries situation information and a target Information that baseline report included bury it is identical (bury quantity it is identical and each bury a little to bury a position identical), it is determined that it is to be measured There is no bury an exception to the examination page, that is, page revision i.e. to be tested, which does not have an impact, buries a little.
The embodiment of the present invention, there is no after burying an exception, can also further judge to bury a little in the confirmation page to be tested The reasonability of position.
If it is unreasonable to bury a position, can lead to the problem of, for example, bury a little excessively cause to report bury a feedback data Data volume it is excessive, the storage resource of consumption is mostly etc..
As an alternative embodiment, determining that the page to be tested there is no after burying an exception, buries to point is buried The reasonability of point position is assessed, and specifically, after the page to be tested is come into operation, user is set by mobile phone, computer etc. It is for future reference to treat test page, and treat test page and operated, for example, click some picture on the page to be tested/some Link.When the user clicks when some picture on the page to be tested/some link, it is set to the picture/link and buries a meeting and adopt The ID for the also equipment for collecting the operation data of user, and being reported by equipment, while reporting.The number reported according to multiple equipment It is assessed according to the reasonability for burying a position buried a little.Any one in the page to be tested is buried a little, can use should Method judges that it buries the reasonability of a position.When needing to judge that some buries the reasonability for burying a position a little, this is buried a little It is buried a little as target, obtains target in preset time and bury the achievement data of evaluation index a little and the weight of each evaluation index; The weight computing target of the achievement data and each evaluation index that bury evaluation index a little according to target buries a position of burying a little Assessed value, and according to assessed value judge target bury a little whether bury a position reasonable.
Evaluation index based on it is same bury it is a little corresponding bury point data setting, evaluation index can be following two index: What what all devices reported bury point data total number, average each equipment reported buries point data item number.
Evaluation index is illustrated below.
Assuming that 3 three shared equipment 1, equipment 2 and equipment equipment have reported and have buried point A and that buries point B buries point data, wherein What equipment 1 reported buries the item number for burying point data of point A as N1, and what equipment 2 reported buries the item number for burying point data of point A as N2, if The standby 3 item numbers for burying point data for burying point A reported are N3, and for burying point A, it is N1 that all devices reported, which buries point data total number, +N2+N3;What equipment 1 reported buries the item number for burying point data of point B as N4, and what equipment 2 reported buries the item number for burying point data of point B For N5, what equipment 3 reported buries the item number for burying point data of point B as N6, then for burying point B, what all devices reported buries point data Total number is N4+N5+N6.
For burying point A, it is (N1+N2+N3)/3 that average each equipment reported, which buries point data item number,;It is average for burying point B It is (N4+N5+N6)/3 that each equipment reported, which buries point data item number,.
As an alternative embodiment, burying the achievement data and each evaluation index of evaluation index a little according to target Weight computing target bury the assessed value for burying a position a little, and according to assessed value judge target bury a little bury whether position closes Reason, comprising: according to formulaIt calculates target and buries the assessed value for burying a position a little, wherein S indicates target Bury the assessed value for burying a position a little, wiIndicate the corresponding weight of i-th of evaluation index, xiIt indicates corresponding to i-th of evaluation index Achievement data, n indicate evaluation index quantity;If target, which buries the assessed value for burying a position a little, is less than or equal to default threshold Value, determine target bury a little to bury a position unreasonable;If target buries the assessed value for burying a position a little greater than preset threshold, really Set the goal bury a little to bury a position reasonable.The corresponding weight of evaluation index can be arranged according to the actual situation, if some is commented It is important to estimate Indexes Comparison, then its corresponding weight is arranged larger.Preset threshold can be rule of thumb arranged.As one kind Optional embodiment, determine target bury a little bury a position it is unreasonable after, export prompt information, prompt information include mention Show that closing target buries a little.
Due to burying point data there may be missing values, invalid value etc., it is assessed burying reasonability a little to target Before, the point data of burying got can be cleaned, according to the index number for burying point data and determining evaluation index after cleaning According to.
If target is buried a little unreasonable, bury a little it is contemplated that closing target, is a little reported to reduce unreasonable bury Data volume reduces the pressure of processing data.
Fig. 2 is another flow chart for optionally burying a test method according to embodiments of the present invention.As shown in Fig. 2, the party Method the following steps are included:
Step S202: the page to be tested is obtained.
Step S204: traversing the page elements of the page to be tested, and a feedback data is buried in generation.
Step S206: real-time blocking buries a feedback data.
Step S208: judge target baseline report whether is stored in presetting database, if so, thening follow the steps S210;If not, thening follow the steps S214.
Step S210: for automatic Verification with the presence or absence of an exception is buried, specific method, which can be, buries points for the page to be tested Amount with target baseline report include quantity of burying be compared, also, by each of page to be tested bury a little bury a position It each of include that the position of burying buried a little is compared with target baseline report;If the page to be tested buries quantity and target What baseline report included bury, and quantity is identical, also, each of page to be tested bury a little bury a position and target baseline is reported Each of include bury a little to bury a position identical, it is determined that otherwise the page to be tested determines page to be tested there is no an exception is buried Face, which exists, buries an exception.
Step S212: a test report is buried in generation.It buries a test report and describes and actually detected bury a position and baseline Bury whether position has variation, buries whether quantity the information such as changes in report.
Step S214: target baseline report is generated.
Step S216: after user confirms target baseline report, by target baseline report storage into presetting database.
The embodiment of the invention provides one kind to bury a test device, this buries a test device and above-mentioned buries test for executing Method, as shown in figure 3, the device includes: first acquisition unit 11, the first determination unit 12, Traversal Unit 13, interception unit 14, the second determination unit 15, third determination unit 16.
First acquisition unit 11, for obtaining the URL of the page to be tested, the target pages element of the page to be tested, which exists, to be buried Point, target pages element include at least following one: button, picture, link.
First determination unit 12, for determining the page to be tested according to the URL of the page to be tested.
Traversal Unit 13, for traversing the page elements of the page to be tested, a feedback data is buried in generation.
Interception unit 14 buries a feedback data for real-time blocking.
Second determination unit 15 is buried a little for burying situation information according to bury that a feedback data determines the page to be tested Situation information, which includes at least, buries dot position information and buries a quantity information.
Third determination unit 16, for determining that the page to be tested whether there is according to the situation information of burying of the page to be tested Bury an exception.
Optionally, third determination unit 16 includes: judgment sub-unit, comparing subunit, the first determining subelement.Judgement Unit is stored with multiple baseline reports in presetting database for judging whether be stored with target baseline report in presetting database It accuses, each baseline report and page have a corresponding relationship, bury point including at least have its corresponding page in baseline report Confidence ceases and buries a quantity information, and target baseline report is the baseline report for having corresponding relationship with the page to be tested.Compare Subelement, if for be stored in presetting database target baseline report, by the page to be tested bury situation information with The information that target baseline report includes is compared.First determine subelement, if for the page to be tested bury quantity with What target baseline report included buries that quantity is identical, also, position a little and target baseline report are each buried in the page to be tested Each of include the position for burying a little respectively correspond it is identical, it is determined that there is no bury an exception to the page to be tested.
Optionally, device further include: second acquisition unit, assessment unit.Second acquisition unit, for determining son first Unit determines the page to be tested there is no after burying an exception, and target buries the index number of evaluation index a little in acquisition preset time According to the weight with each evaluation index, target, which is buried, is a little buried a little for any one in the page to be tested.Assessment unit is used for basis The weight computing target of achievement data and each evaluation index that target buries evaluation index a little buries the assessment for burying a position a little Value, and according to assessed value judge target bury a little whether bury a position reasonable.
Optionally, assessment unit includes: computation subunit, second determines that subelement, third determine subelement.It is single to calculate son Member, for according to formulaIt calculates target and buries the assessed value for burying a position a little, wherein S indicates target Bury the assessed value for burying a position a little, wiIndicate the corresponding weight of i-th of evaluation index, xiIt indicates corresponding to i-th of evaluation index Achievement data, n indicate evaluation index quantity.Second determine subelement, if for target bury a little bury commenting for a position Valuation is less than or equal to preset threshold, determine target bury a little to bury a position unreasonable.Third determines subelement, if being used for target Bury the assessed value for burying a position a little and be greater than preset threshold, determine target bury a little to bury a position reasonable.
Optionally, device further include: output unit.Output unit, for determining that subelement determines that target is buried a little second Bury a position it is unreasonable after, export prompt information, prompt information include prompt close target bury a little.
The embodiment of the invention provides a kind of storage medium, storage medium includes the program of storage, wherein is run in program When control storage medium where equipment execute following steps: obtain the URL of the page to be tested, the page object face element of the page to be tested Element, which exists, to be buried a little, and target pages element includes at least following one: button, picture, link;URL according to the page to be tested is true The fixed page to be tested;The page elements of the page to be tested are traversed, a feedback data is buried in generation;Real-time blocking buries a feedback data; Situation information is buried according to bury that a feedback data determines the page to be tested, situation information is buried and includes at least and bury dot position information With bury a quantity information;Determine the page to be tested with the presence or absence of burying an exception according to the situation information of burying of the page to be tested.
Optionally, when program is run, equipment where control storage medium also executes following steps: judging presetting database In whether be stored with target baseline report, be stored with multiple baseline reports, each baseline report and a page in presetting database Face has corresponding relationship, and including at least in baseline report has burying dot position information and burying a quantity information for its corresponding page, Target baseline report is the baseline report for having corresponding relationship with the page to be tested;If being stored with target base in presetting database Report from a liner is accused, then reports that the information for including is compared with target baseline for the situation information of burying of the page to be tested;If to be measured The examination page bury quantity and target baseline report include to bury quantity identical, also, each buried a little in the page to be tested The report of position and target baseline include the position for each burying a little respectively correspond it is identical, it is determined that the page to be tested is not present and buries a little It is abnormal.
Optionally, when program is run, equipment where control storage medium also executes following steps: determining page to be tested The achievement data and each evaluation index of evaluation index a little are buried there is no target in preset time after burying an exception, is obtained in face Weight, target, which is buried, a little buries a little for any one in the page to be tested;The achievement data of evaluation index a little is buried according to target The assessed value for burying a position a little is buried with the weight computing target of each evaluation index, and judges that target is buried a little according to assessed value Whether reasonable bury a position.
Optionally, when program is run, equipment where control storage medium also executes following steps: according to formulaIt calculates target and buries the assessed value for burying position a little, wherein S expression target buries a position of burying a little Assessed value, wiIndicate the corresponding weight of i-th of evaluation index, xiIndicate that achievement data corresponding to i-th of evaluation index, n indicate The quantity of evaluation index;If target buries the assessed value for burying a position a little less than or equal to preset threshold, determine that target is buried a little It is unreasonable to bury a position;If target buries the assessed value for burying a position a little greater than preset threshold, determine that target buries burying a little a little Position is reasonable.
Optionally, when program is run, equipment where control storage medium also executes following steps: determining that target buries a little Bury a position it is unreasonable after, export prompt information, prompt information include prompt close target bury a little.
The embodiment of the invention provides a kind of computer equipments, including memory and processor, and memory is for storing packet The information of program instruction is included, processor is used to control the execution of program instruction, real when program instruction is loaded and executed by processor Existing following steps: obtaining the URL of the page to be tested, and the target pages element of the page to be tested, which exists, to be buried a little, target pages element Including at least following one: button, picture, link;The page to be tested is determined according to the URL of the page to be tested;It traverses to be tested A feedback data is buried in the page elements of the page, generation;Real-time blocking buries a feedback data;According to bury a feedback data determine it is to be measured The examination page buries situation information, buries situation information and includes at least and buries dot position information and bury a quantity information;According to be measured The situation information of burying of the examination page determines the page to be tested with the presence or absence of burying an exception.
Optionally, also performed the steps of when program instruction is loaded and executed by processor judge be in presetting database It is no to be stored with target baseline report, multiple baseline reports are stored in presetting database, each baseline report and a page have There is a corresponding relationship, including at least in baseline report has burying dot position information and burying a quantity information, target for its corresponding page Baseline report is the baseline report for having corresponding relationship with the page to be tested;If being stored with target baseline report in presetting database It accuses, then reports that the information for including is compared with target baseline for the situation information of burying of the page to be tested;If page to be tested Face bury that the report of quantity and target baseline includes bury that quantity is identical, also, position a little is each buried in the page to be tested With target baseline report include the position for each burying a little respectively correspond it is identical, it is determined that the page to be tested be not present bury it is a little different Often.
Optionally, it is also performed the steps of when program instruction is loaded and executed by processor and is determining the page to be tested not After burying an exception, obtains target in preset time and bury the achievement data of evaluation index a little and the power of each evaluation index Value, target, which is buried, a little buries a little for any one in the page to be tested;The achievement data of evaluation index a little and every is buried according to target The weight computing target of a evaluation index buries the assessed value for burying a position a little, and judges that target buries burying a little a little according to assessed value Whether position is reasonable.
Optionally, it also performs the steps of when program instruction is loaded and executed by processor according to formulaIt calculates target and buries the assessed value for burying position a little, wherein S expression target buries a position of burying a little Assessed value, wiIndicate the corresponding weight of i-th of evaluation index, xiIndicate that achievement data corresponding to i-th of evaluation index, n indicate The quantity of evaluation index;If target buries the assessed value for burying a position a little less than or equal to preset threshold, determine that target is buried a little It is unreasonable to bury a position;If target buries the assessed value for burying a position a little greater than preset threshold, determine that target buries burying a little a little Position is reasonable.
Optionally, it is also performed the steps of when program instruction is loaded and executed by processor and is determining that target buries burying a little After point position is unreasonable, prompt information is exported, prompt information includes that prompt closing target is buried a little.
Fig. 4 is a kind of schematic diagram of computer equipment provided in an embodiment of the present invention.As shown in figure 4, the meter of the embodiment Machine equipment 50 is calculated to include: processor 51, memory 52 and be stored in the meter that can be run in memory 52 and on processor 51 Calculation machine program 53 is realized in embodiment when the computer program 53 is executed by processor 51 and buries a test method, to avoid weight It is multiple, it does not repeat one by one herein.It is buried in a test device in embodiment alternatively, being realized when the computer program is executed by processor 51 The function of each model/unit does not repeat one by one herein to avoid repeating.
Computer equipment 50 can be desktop PC, notebook, palm PC and cloud server etc. and calculate equipment. Computer equipment may include, but be not limited only to, processor 51, memory 52.It will be understood by those skilled in the art that Fig. 4 is only It is the example of computer equipment 50, does not constitute the restriction to computer equipment 50, may include more more or fewer than illustrating Component perhaps combines certain components or different components, such as computer equipment can also include input-output equipment, net Network access device, bus etc..
Alleged processor 51 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
Memory 52 can be the internal storage unit of computer equipment 50, such as the hard disk or interior of computer equipment 50 It deposits.Memory 52 is also possible to the plug-in type being equipped on the External memory equipment of computer equipment 50, such as computer equipment 50 Hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, memory 52 can also both including computer equipment 50 internal storage unit and also including External memory equipment.Memory 52 is for storing other programs and data needed for computer program and computer equipment.It deposits Reservoir 52 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or group Part can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown Or the mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, device or unit it is indirect Coupling or communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer It is each that device (can be personal computer, server or network equipment etc.) or processor (Processor) execute the present invention The part steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read- Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. it is various It can store the medium of program code.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.

Claims (10)

1. one kind buries a test method, which is characterized in that the described method includes:
The URL of the page to be tested is obtained, the target pages element of the page to be tested, which exists, to be buried a little, the target pages element Including at least following one: button, picture, link;
The page to be tested is determined according to the URL of the page to be tested;
The page elements of the page to be tested are traversed, a feedback data is buried in generation;
A feedback data is buried described in real-time blocking;
It is described to bury situation information at least according to the situation information of burying buried a feedback data and determine the page to be tested Including burying dot position information and burying a quantity information;
Determine the page to be tested with the presence or absence of burying an exception according to the situation information of burying of the page to be tested.
2. the method according to claim 1, wherein described bury situation information according to the page to be tested It determines that the page to be tested whether there is and buries an exception, comprising:
Judge whether be stored with target baseline report in presetting database, is stored with multiple baseline reports in the presetting database It accuses, each baseline report and a page have corresponding relationship, and including at least in the baseline report has its corresponding page Bury dot position information and bury a quantity information, the target baseline report is that have corresponding relationship with the page to be tested Baseline report;
If being stored with the target baseline report in the presetting database, a situation of burying for the page to be tested is believed The information for including with target baseline report is ceased to be compared;
If the page to be tested bury that the report of quantity and the target baseline includes to bury quantity identical, also, institute Stating and each burying the report of position a little and the target baseline in the page to be tested each of includes that the position buried a little respectively corresponds phase Together, it is determined that there is no bury an exception to the page to be tested.
3. according to the method described in claim 2, it is characterized in that, a little different there is no burying in the determination page to be tested After often, the method also includes:
It obtains target in preset time and buries the achievement data of evaluation index a little and the weight of each evaluation index, the target is buried Point buries a little for any one in the page to be tested;
Target described in the achievement data of evaluation index a little and the weight computing of each evaluation index is buried according to the target to bury a little The assessed value for burying a position, and according to the assessed value judge the target bury a little whether bury a position reasonable.
4. according to the method described in claim 3, it is characterized in that, the index for burying evaluation index a little according to the target Target described in the weight computing of data and each evaluation index buries the assessed value for burying a position a little, and is sentenced according to the assessed value The target of breaking bury a little whether bury a position reasonable, comprising:
According to formulaIt calculates the target and buries the assessed value for burying a position a little, wherein described in S expression Target buries the assessed value for burying a position a little, wiIndicate the corresponding weight of i-th of evaluation index, xiIndicate that i-th of assessment refers to The corresponding achievement data of mark, n indicate the quantity of evaluation index;
If the target buries the assessed value for burying a position a little less than or equal to preset threshold, determine that the target buries burying a little a little Position is unreasonable;
If the target buries the assessed value for burying a position a little greater than the preset threshold, determine that the target buries burying a little a little Position is reasonable.
5. according to the method described in claim 4, not conforming to it is characterized in that, burying a position of burying a little in the determination target After reason, the method also includes:
Prompt information is exported, the prompt information includes that the prompt closing target is buried a little.
6. one kind buries a test device, which is characterized in that described device includes:
First acquisition unit, for obtaining the URL of the page to be tested, the target pages element of the page to be tested, which exists, to be buried Point, the target pages element include at least following one: button, picture, link;
First determination unit, for determining the page to be tested according to the URL of the page to be tested;
Traversal Unit, for traversing the page elements of the page to be tested, a feedback data is buried in generation;
Interception unit, for burying a feedback data described in real-time blocking;
Second determination unit buries situation information, institute for bury that a feedback data determines the page to be tested according to It states to bury situation information and include at least to bury and dot position information and buries a quantity information;
Third determination unit, for determining whether the page to be tested is deposited according to the situation information of burying of the page to be tested Burying an exception.
7. device according to claim 6, which is characterized in that the third determination unit includes:
Judgment sub-unit is deposited in the presetting database for judging whether be stored with target baseline report in presetting database Multiple baseline reports are contained, each baseline report and a page have corresponding relationship, at least wrap in the baseline report Burying dot position information and bury a quantity information containing its corresponding page, the target baseline report are and the page to be tested Face has the baseline report of corresponding relationship;
Comparing subunit, if for being stored with the target baseline report in the presetting database, it will be described to be tested The situation information of burying of the page reports that the information for including is compared with the target baseline;
First determines subelement, if the quantity of burying for the page to be tested is buried with what target baseline report included Point quantity is identical, also, each burying position a little in the page to be tested and reporting with the target baseline each of includes to bury The position of point respectively corresponds identical, it is determined that there is no bury an exception to the page to be tested.
8. device according to claim 7, which is characterized in that described device further include:
Second acquisition unit, for it is described first determine subelement determine the page to be tested there is no bury an exception it Afterwards, it obtains target in preset time and buries the achievement data of evaluation index a little and the weight of each evaluation index, the target is buried Point buries a little for any one in the page to be tested;
Assessment unit, for burying the achievement data of evaluation index a little and the weight computing of each evaluation index according to the target The target buries the assessed value for burying a position a little, and according to the assessed value judge the target bury a little whether bury a position Rationally.
9. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein run in described program When control the storage medium where equipment perform claim require any one of 1 to 5 described in bury a test method.
10. a kind of computer equipment, including memory and processor, the memory is for storing the letter including program instruction Breath, the processor are used to control the execution of program instruction, it is characterised in that: described program instruction is loaded and executed by processor A step of test method is buried described in Shi Shixian claim 1 to 5 any one.
CN201910422823.6A 2019-05-21 2019-05-21 Buried point testing method and device Active CN110347582B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910422823.6A CN110347582B (en) 2019-05-21 2019-05-21 Buried point testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910422823.6A CN110347582B (en) 2019-05-21 2019-05-21 Buried point testing method and device

Publications (2)

Publication Number Publication Date
CN110347582A true CN110347582A (en) 2019-10-18
CN110347582B CN110347582B (en) 2024-05-28

Family

ID=68173880

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910422823.6A Active CN110347582B (en) 2019-05-21 2019-05-21 Buried point testing method and device

Country Status (1)

Country Link
CN (1) CN110347582B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110941528A (en) * 2019-11-08 2020-03-31 支付宝(杭州)信息技术有限公司 Log buried point setting method, device and system based on fault
CN111090592A (en) * 2019-12-20 2020-05-01 上海品顺信息科技有限公司 Automatic testing method of buried point, terminal and readable storage medium
CN111274143A (en) * 2020-01-20 2020-06-12 北京字节跳动网络技术有限公司 Buried point testing method, device, equipment and storage medium
CN112035340A (en) * 2020-07-31 2020-12-04 长沙市到家悠享网络科技有限公司 Page detection method, device, equipment and storage medium
CN112181821A (en) * 2020-09-24 2021-01-05 浙江大搜车软件技术有限公司 Interface test coverage detection method and device, electronic device and storage medium
CN113238948A (en) * 2021-05-19 2021-08-10 北京达佳互联信息技术有限公司 Buried point detection method and device, electronic equipment and storage medium
CN113778868A (en) * 2021-09-03 2021-12-10 珠海格力电器股份有限公司 Method and device for data detection based on data buried points

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5758061A (en) * 1995-12-15 1998-05-26 Plum; Thomas S. Computer software testing method and apparatus
US20060115822A1 (en) * 2004-11-30 2006-06-01 Webb Peter G Systems and methods for probe design
US20110090075A1 (en) * 2009-10-20 2011-04-21 Armitage David L Systems and methods for vehicle performance analysis and presentation
US20150278070A1 (en) * 2014-03-28 2015-10-01 Alexey Chinkov Bios tracing using a hardware probe
CN106066826A (en) * 2016-05-24 2016-11-02 北京金山安全软件有限公司 Automatic testing method and device for buried point and terminal
CN106598868A (en) * 2016-12-24 2017-04-26 上海亿账通互联网科技有限公司 Dynamic point burying method and system for application program of client
CN107562620A (en) * 2017-08-24 2018-01-09 阿里巴巴集团控股有限公司 One kind buries an automatic setting method and device
CN108038053A (en) * 2017-11-29 2018-05-15 上海恺英网络科技有限公司 A kind of dynamic configuration buries method and apparatus a little
CN108156006A (en) * 2016-12-05 2018-06-12 阿里巴巴集团控股有限公司 One kind buries point data report method, device and electronic equipment
CN108664401A (en) * 2018-05-11 2018-10-16 阿里巴巴集团控股有限公司 Bury a little rational appraisal procedure and device
CN108763062A (en) * 2018-05-09 2018-11-06 平安普惠企业管理有限公司 Bury the filter method and terminal device of a title
CN109522190A (en) * 2018-10-12 2019-03-26 中国平安人寿保险股份有限公司 Abnormal user Activity recognition method and device, electronic equipment, storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5758061A (en) * 1995-12-15 1998-05-26 Plum; Thomas S. Computer software testing method and apparatus
US20060115822A1 (en) * 2004-11-30 2006-06-01 Webb Peter G Systems and methods for probe design
US20110090075A1 (en) * 2009-10-20 2011-04-21 Armitage David L Systems and methods for vehicle performance analysis and presentation
US20150278070A1 (en) * 2014-03-28 2015-10-01 Alexey Chinkov Bios tracing using a hardware probe
CN106066826A (en) * 2016-05-24 2016-11-02 北京金山安全软件有限公司 Automatic testing method and device for buried point and terminal
CN108156006A (en) * 2016-12-05 2018-06-12 阿里巴巴集团控股有限公司 One kind buries point data report method, device and electronic equipment
CN106598868A (en) * 2016-12-24 2017-04-26 上海亿账通互联网科技有限公司 Dynamic point burying method and system for application program of client
CN107562620A (en) * 2017-08-24 2018-01-09 阿里巴巴集团控股有限公司 One kind buries an automatic setting method and device
CN108038053A (en) * 2017-11-29 2018-05-15 上海恺英网络科技有限公司 A kind of dynamic configuration buries method and apparatus a little
CN108763062A (en) * 2018-05-09 2018-11-06 平安普惠企业管理有限公司 Bury the filter method and terminal device of a title
CN108664401A (en) * 2018-05-11 2018-10-16 阿里巴巴集团控股有限公司 Bury a little rational appraisal procedure and device
CN109522190A (en) * 2018-10-12 2019-03-26 中国平安人寿保险股份有限公司 Abnormal user Activity recognition method and device, electronic equipment, storage medium

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110941528A (en) * 2019-11-08 2020-03-31 支付宝(杭州)信息技术有限公司 Log buried point setting method, device and system based on fault
CN110941528B (en) * 2019-11-08 2022-04-08 支付宝(杭州)信息技术有限公司 Log buried point setting method, device and system based on fault
CN111090592A (en) * 2019-12-20 2020-05-01 上海品顺信息科技有限公司 Automatic testing method of buried point, terminal and readable storage medium
CN111274143A (en) * 2020-01-20 2020-06-12 北京字节跳动网络技术有限公司 Buried point testing method, device, equipment and storage medium
CN112035340A (en) * 2020-07-31 2020-12-04 长沙市到家悠享网络科技有限公司 Page detection method, device, equipment and storage medium
CN112181821A (en) * 2020-09-24 2021-01-05 浙江大搜车软件技术有限公司 Interface test coverage detection method and device, electronic device and storage medium
CN113238948A (en) * 2021-05-19 2021-08-10 北京达佳互联信息技术有限公司 Buried point detection method and device, electronic equipment and storage medium
CN113238948B (en) * 2021-05-19 2024-03-12 北京达佳互联信息技术有限公司 Buried point detection method, buried point detection device, electronic equipment and storage medium
CN113778868A (en) * 2021-09-03 2021-12-10 珠海格力电器股份有限公司 Method and device for data detection based on data buried points

Also Published As

Publication number Publication date
CN110347582B (en) 2024-05-28

Similar Documents

Publication Publication Date Title
CN110347582A (en) Bury a test method and device
Sun et al. Security of online reputation systems: The evolution of attacks and defenses
KR102201919B1 (en) Random forest model training method, electronic device and storage medium
CN104993946B (en) Appraisal procedure, the device and system of gray scale publication
CN106548343B (en) Illegal transaction detection method and device
Aggarwal et al. Application of artificial neural network for predicting maintainability using object-oriented metrics
CN111786950A (en) Situation awareness-based network security monitoring method, device, equipment and medium
CN109242553A (en) A kind of user behavior data recommended method, server and computer-readable medium
US20120331128A1 (en) Method and a system for analysing impact of changes to content of a website
CN104954188B (en) Web log file safety analytical method based on cloud, device and system
CN109816509A (en) Generation method, terminal device and the medium of scorecard model
CN110990233A (en) Method and system for displaying SOAR by using Gantt chart
CN107423205A (en) A kind of system failure method for early warning and system for anti-data-leakage system
CN109344611A (en) Access control method, terminal device and the medium of application
CN110430212A (en) The Internet of Things of multivariate data fusion threatens cognitive method and system
CN110009224A (en) Suspect's violation probability prediction technique, device, computer equipment and storage medium
CN106796520A (en) The real-time report of the instrumentation based on software
CN108268357A (en) real-time data processing method and device
CN109558544A (en) Sort method and device, server and storage medium
CN108460025A (en) Criminal case automates measurement of penalty method, apparatus and computer readable storage medium
Sharma et al. Architecture based analysis of performance, reliability and security of software systems
CN109241084A (en) Querying method, terminal device and the medium of data
CN110414926A (en) Account management method, device and computer readable storage medium
US20090240476A1 (en) Method and device for forecasting computational needs of an application
Sikka et al. Estimating function points: Using machine learning and regression models

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
GR01 Patent grant
GR01 Patent grant