CN106294101B - The page gets test method and device ready - Google Patents
The page gets test method and device ready Download PDFInfo
- Publication number
- CN106294101B CN106294101B CN201510257859.5A CN201510257859A CN106294101B CN 106294101 B CN106294101 B CN 106294101B CN 201510257859 A CN201510257859 A CN 201510257859A CN 106294101 B CN106294101 B CN 106294101B
- Authority
- CN
- China
- Prior art keywords
- page
- ready
- test
- data
- gets
- 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.)
- Active
Links
Abstract
The embodiment of the present invention provides a kind of page and gets test method and device ready, the method includes in response to for test page or comparing the page and getting operation ready bury place's progress, it generates test page corresponding with the test page and gets request ready, or the comparison page corresponding with the comparison page gets request ready;Intercept the test page get ready request or the comparison page get request ready;Collect and arrange respectively the test page get ready request in get ready data and it is described comparison the page get ready request in get data ready;It compares getting data ready and generating the page from the difference for getting data ready for comparing the page from the test page and gets test data report ready.For the webpage test method and device that embodiment of the present invention provides by get ready operation to test page and the comparison page, the correctness of data is got in test ready, realize that point data of fighting each other is monitored and tested automatically, and effective guarantee gets the reliability of test data ready.
Description
Technical field
The present invention relates to webpage testing field, especially a kind of page gets test method and device ready.
Background technique
In the webpage the field of test technology of internet, exists using the mode got ready and intercept the page and get request ready and receive
Collect user to the various browsings of webpage and the demand of operation behavior." the getting ready " refers to for web page (one on WWW
The file that kind is organized according to html format.When carrying out information inquiry by WWW, occur in the form of information page,
It may include the information such as figure, text, sound and video.) type internet product, when user to access pages, pass through data
The server intercepts page gets request ready and collects the data of the network request comprising user behavior and page presentation effect, so as to
With according to the difference of the focus of product, gets request ready and collect intercepting the page and interested get data ready.Wherein, Yong Huhang
To include: which page browsed, which element etc. clicked;Page presentation effect which element that included: page presentation, member
Position etc. of the element in the page.Data server, which intercepts the page, to be got ready and requests and be collected into after these get data ready, by certain
Mode polymerize, analysis produce data sheet, such as page presentation number, how many user saw this page, the page
Element number of clicks, clicking rate click the trading volume generated, location distribution and the age level distribution of user etc..These reports
Table can be style sheet, and product developing direction, the offer significant data such as marketing activity is supported, provide intuitive determine for policymaker
Plan foundation, while request is got ready to the website interception page and collects user information, user group, reinforce linking up, improves and improve
Web Hosting is of great significance.
However, the demand of internet product is maked rapid progress, product test demand shift is often generated, such as increase newly and get ready
Type replaces dot method, increases newly, business function, style sheet adjustment etc. is deleted or modified.These variations are likely to cause
The page, which is got ready, occurs some variations beyond expection, such as the page gets request ready and sends failure, and getting data ready does not include necessity
Data, repetition gets ready, these variations will lead to data server and do not receive get data ready, receive mistake in other words
Get data ready, and then influence the data sheet of product.
Current most of pages get testing scheme ready and mainly get request ready in the data interception page and collect and datagram
The aspect that shows of table improves, such as currently, domestic common statistics website have CNZZ, 51la, Baidu's statistics, 51yes,
SiteFlow etc., some large-scale websites can also develop customization and oneself get data sheet ready.However, if there is mistake is got ready,
It then only waits until that data sheet is abnormal variation, such as one when getting index ready and being substantially increased or decline suddenly, could find
Problem, and this when, it is possible to correctly get data ready and be difficult to give for change, bring not amendable mistake to data are got ready
Difference.
Summary of the invention
In view of the deficiencies of the prior art, the purpose of the present invention is to provide a kind of pages to get test method and device ready, right
It gets data ready to be tested and monitored, improves the accuracy and reliability for getting test data ready.
In order to solve the above technical problems, embodiments of the present invention, which disclose a kind of page, gets test method ready, comprising:
In response to for test page or comparing the page and getting operation, generation and the test page ready bury that place carries out
Corresponding test page gets request ready, or the comparison page corresponding with the comparison page gets request ready;
Intercept the test page get ready request or the comparison page get request ready;
Collect and arrange respectively the test page get ready request in get data ready and the comparison page is got ready and is asked
Data are got ready in asking;
It compares and gets data and the difference life for getting data ready from the comparison page ready from the test page
Test data report is got ready at the page.
Embodiments of the present invention also disclose a kind of page and get test device ready, comprising:
The page gets request generation unit ready, in response to for test page or comparing the page and burying beating for place's progress
Point operation generates test page corresponding with the test page and gets request, or comparison page corresponding with the comparison page ready
Get request ready in face;
The page gets request interception unit ready, and for intercepting, the test page gets request ready or the comparison page is got ready and asked
It asks;
Get data collection finishing unit ready, for collect and respectively arrange the test page get ready request in get number ready
Accordingly and the comparison page is got ready in request and gets data ready;
It gets test data comparing unit ready, gets data ready and from described right from the test page for comparing
The difference generation page for getting data ready than the page gets test data report ready.
Compared with prior art, webpage test method and device described in embodiment of the present invention by test page and
The comparison page carries out getting operation ready, and the correctness of data is got in test ready, realizes that air exercise point data is monitored and tested automatically, has
Effect has ensured the reliability for getting test data ready.
Detailed description of the invention
Fig. 1 is the flow diagram that the page that first embodiment of the invention provides gets test method ready;
Fig. 2 is the flow diagram that the page that second embodiment of the invention provides gets test method ready;
Fig. 3 is the structural schematic diagram that the page that third embodiment of the invention provides gets test device ready;
Fig. 4 is the structural schematic diagram that the page that fourth embodiment of the invention provides gets test device ready;
Fig. 5 is that the page that a preferred embodiment of the invention provides gets test macro ready;
Fig. 6 is that the page of a preferred embodiment provided by the invention according to figure 5 is got test macro ready and increased newly
Get the interfacial effect figure of the configuration of Case ready;
Fig. 7 be a preferred embodiment provided by the invention according to figure 5 the page get ready test macro execution get ready
The interfacial effect figure of the process of Case;
Fig. 8 is that the page of a preferred embodiment provided by the invention according to figure 5 is got test macro ready and checked and gets ready
As a result interfacial effect figure.
Specific embodiment
In the following description, in order to make the reader understand this application better, many technical details are proposed.But this
The those of ordinary skill in field is appreciated that even if without these technical details and many variations based on the following respective embodiments
And modification, each claim of the application technical solution claimed can also be realized.
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to implementation of the invention
Mode is described in further detail.This application involves test page refer to the Webpage not yet formally issued, such as locate
In the Webpage or pre-release Webpage of development phase.And it compares the page and refers to the page in production environment.Its
In, after production environment refers to Webpage publication, the software and hardware environment of software operation relevant to Webpage produces ring
Border can handle the request that user issues Webpage.
It is that the page that first embodiment of the invention provides gets the flow diagram of test method ready referring to Fig. 1, Fig. 1.Fig. 1 shows
It includes step S101-S104 that the page out, which gets test method ready,.
In step s101, in response to for test page or comparing the page and getting operation, generation ready bury that place carries out
Test page corresponding with the test page gets request ready, or the comparison page corresponding with the comparison page gets request ready.
Wherein, it gets the operation that operation refers to user to webpage ready, including but not limited to opens a Webpage, clicks net
A page elements etc. in the page page.In an example of the present invention, pass through the journey run on webpage testing service device
Sequence code calls Selenium Web Driver to automatically open browser client, and Selenium Web Driver is a set of energy
For simulating the weblication testing tool for opening browser client, the method that can provide simulation browser behavior is supplied
Developer calls, such as can simulate the Open Framework for browsing the operations such as Webpage, webpage clicking page elements.According to
The access address of the test page or the comparison page generates the setting of at least one unique identifier to browser client
The page cookie (be often referred to website in order to distinguish user identity, carry out session tracking and be stored in user local terminal
On data) in, access the test page or the comparison page, then, browser client according to developer (such as:
Front end engineer) it is preset get ready rule simulation execute get operation ready, specifically can be using Web Driver program code oneself
It is dynamic to click specified Xpath, specified behavior is executed to test page and the comparison page respectively, preset rule of getting ready is configuring
It is defined when getting test case ready.Specifically, before opening the test page and the comparison page, program can be called
Cookie is arranged to test page and the comparison page Web Driver, and test page and the comparison page respectively correspond one
Cookie, and only one cookie respectively.Xpath refers to that the coordinate of element on the html page, an Xpath can navigate to one
A unique element (such as a button), clicking Xpath is exactly to give directions to hit a page elements (such as clicking some button).
Wherein, bury a little refer to by developer according to tentation data format on such as html page it is pre-set need from
It is dynamic to send the position for getting request ready.The tentation data format is intrinsic in http request agreement.When some on the page
It is when getting operation (such as click button on a page or show some page elements) ready and triggering one and bury, then automatic raw
Http request is got ready at corresponding with the page, which contains the behavior letter getting operation information ready, that is, specifying
Breath.Such as browser client can get http request ready by the asynchronous sending of script (JS).
In step s 102, intercept the test page get ready request or the comparison page get request ready.
Specifically, the webpage testing service device data server that disguises oneself as intercepts the test page and gets request or described right ready
Request is got ready than the page.Webpage testing service device is in such a way that requesting host is got in binding ready by the data server that oneself disguises oneself as
(such as it is http://www.abc.com that one, which is buried the http request issued,? click=1&v=2..., testing service device is tied up
Determine www.abc.com, be directed toward testing service device 127.0.0.1, the requests for issuing www.abc.com all in this way can all be sent out
Testing service device is given, testing service device can intercept this and bury the data issued).The data server is preparatory
The host address for getting request ready specified when burying is set.In this way, the data for being sent to data server originally have been sent to puppet
The data server dressed up, i.e. webpage testing service device.
In step s 103, collect and arrange respectively the test page get ready request in get ready data and with it is described
The comparison page, which is got ready in request, gets data ready;
Wherein, the data of getting ready got ready in request include the position that the page is clicked, the element of click, page versions, browsing
Device version etc. volume of data.
In a preferred embodiment of the invention, the test page intercepted is arranged in the webpage testing service device
It gets request ready or the comparison page is got ready in request and gets data ready.
In an example of the present invention, the cookie of the page in request is got ready according to the page being arranged in step S101
It is to collect from the test page or the comparison page and arrange those respectively in step S102 that data are got in value differentiation, which ready,
In the getting data ready and get data ready from the comparison page from the test page intercepted.Cookie value is
Open the page before by program code be arranged into the page, this cookie value be used to distinguish get ready test test case and
Get the page ready.For example, two pages will be tested by getting Case A ready, a comparison page refers to the page in production environment, one
A is test page, refers to the page in the development phase or the page positioned at pre- publisher server.Open production this when
The cookie value being arranged when the page of environment is origin:1 (origin: indicating production environment, and 1 indicates the ID of Case A), is beaten
The cookie value being arranged when opening the page of test environment is compare:1.This cookie value gets http request ready in sending
When, meeting band is in the information of http request.In this way, getting testing service device ready receives that get ready can basis after data
The difference of cookie value, arranging and filtering out is which page of which test case has issued this page and gets request ready, so
The data of getting ready of the same page belonged in the same test case received are done and merged afterwards, are organized into test page respectively
It gets data packet ready and the comparison page gets data packet ready.It is to be understood that there are two ponds, a pond is put from test sheets
Data are got in face ready, and pond is to put to get data ready from the comparison page.Get the tested service of request ready when one
After device is intercepted, server is gone according to cookie getting data ready and be put into its corresponding pond.After all discharging, so that it may
The data in two ponds are taken out comparison.
In a preferred embodiment of the invention, a test case includes two kinds of pages, and one is test pages, a kind of
It is the comparison page.Do data merging refer to merge test page or the comparison page executed specified behavior (click xpath) it
Data afterwards.When specified xpath is a link, another page can be opened by this moment clicking xpath, that is to say, that held
Row process may open the more than one page.Such as a test case is configured with two page A (test page) and α is (right
Than the page), the xpath of configuration is a link, and the A page, which clicks this xpath, can go to the B page, and the α page clicks this
Xpath can go to the β page, then data collection is exactly the case where merging:
The A page -> click xpath- > B page, all data collections of getting ready issued during this get up to merge it
Afterwards be this test case test page issue get data ready, be organized into test page and get data packet ready.
The α page-> click xpath- > β page, all data collections of getting ready issued during this get up to merge it
Afterwards be this test case the comparison page sending get data ready, arranged in contrast with the page get data packet ready.
In step S104, compares and get data and getting ready from the comparison page ready from the test page
The difference of data generates the page and gets test data report ready.
Specifically, it compares one by one first and gets data ready with from the comparison page respectively from the test page,
Whether the access request parameters for getting data described in judgement ready are identical, and the access request parameters refer to the data for getting http request ready,
Url including http request, number of parameters, parameter type.If identical, confirmation gets data ready from the test page
It is to get request ready from the same page buried a little with the data of getting ready from the comparison page, if it is not the same, then confirmation comes
From the test page get ready data from from it is described comparison the page data of getting ready be to be got ready from the different pages buried a little
Request.Then, comparing get ready data and the data of getting ready from the comparison page from the test page is from same
One page for burying a little gets the difference for getting data ready of request ready.Test data is got ready finally, recording the difference to generate the page
Report.
In an example of the present invention, the test page that step S103 is generated gets data packet ready and the comparison page gets number ready
It is two set respectively according to packet.Such as test page has issued 15 and gets request (set A) ready, the comparison page has issued 16 and beats
Point request (set B).Relative complement set of the A in B is taken first, finds that the comparison page has and test page is no gets ready, then
Relative complement set of the B in A is taken, finding test page has and compare that the page is no to be got ready.If the two supplementary sets have one not
It for sky, or is not sky, then being then judged to getting ready twice, data are inconsistent, and inconsistent data of getting ready are difference.Most
Afterwards, record these differences gets data ready to generate the page and get test data report ready.
The page provided according to a first embodiment of the present invention gets test method ready, can be real after the good test case of user configuration
Now the page is carried out automatically to get test ready, and point data of fighting each other is monitored automatically.On the one hand desk checking is greatly reduced
Test data and the error risk generated, on the other hand reduce test human cost.
Referring to fig. 2, Fig. 2 is that the page that second embodiment of the invention provides gets the flow diagram of test method ready.This Shen
Second embodiment please includes step S201- step S204.Wherein, step S201 and the step S101 phase in first embodiment
Together, step S203, S204 is identical as step S103, S104 in first embodiment respectively, is no longer repeated herein, only walks
Rapid S102 is different from step S202.
In step S202, intercept the test page get ready request or the comparison page get request ready.
Monitor and intercept the transmitted data on network packet that the network interface card of webpage testing service device issues, the transmitted data on network packet
In comprising the test page comprising getting data ready corresponding with the test page get request ready, or it is corresponding with the comparison page
Get request ready comprising the comparison page of getting data ready.It is, for example, possible to use the Jpcap (nets with written in Java of a set of open source
Network packet capture application program provides crawl and flows through the method for network interface card network packet for developer's calling) it monitors and intercepts
The TCP/IP data packet that network interface card issues.
The page provided according to a second embodiment of the present invention gets test method ready, by monitoring and intercepting webpage testing service
The transmitted data on network packet that the network interface card of device issues gets request and the comparison page ready comprising the test page for getting data ready to obtain
Get request ready.Second embodiment and first embodiment only difference is that: intercept and collect that get the mode of data ready different,
He be all it is identical, this will not be repeated here.It calls Web Driver to automatically open browser, simulates browsing pages, click page
Surface element, it is all that testing service device is completed that the operations such as a little are buried in triggering.When data are got in interception and collection ready: first embodiment is
It is talked about by above-mentioned, on testing service device the host address of binding data server, oneself is disguised oneself as and gets server ready,
The mode of all http requests for issuing data server is intercepted to realize.Second embodiment is by snoopy test server
Network card data packet realize.Specifically, each network request can pass through the network interface card of computer, and getting request ready is one
Http request will also pass through network interface card naturally.Jpcap can intercept all data packets by network interface card, from the data intercepted
Filtered out in packet it is all get data packet ready and can be collected into all getting ready request.
In a preferred embodiment of the invention, such as the first time webpage get ready in test or webpage
In the case that variation has occurred in element, in response to being directed to test page respectively and comparing the operation of getting ready of page progress, generation
Before the step of corresponding page gets request ready, need to configure test environment.These configurations include but is not limited to be arranged
The access address and element index of test page and the comparison page, and get the behavior of operation ready.For example, working as in some examples
In, the element in setting Xpath indexing web pages can be passed through.Xpath is a kind of determining for hypertext document (HTML) web page element
Bit sign, is considered as coordinate of the element on the page, can find corresponding element on the page by Xpath.In this way,
Can be in test page or the comparison page after simulation click Xpath, browser can be grasped according to the corresponding element of Xpath
Make, issues corresponding http request.In addition, the behavior for getting operation ready is also possible to a plurality of types of, such as mouse roller is rolled
Move the position of the page 2/3, the mobile page etc..
In a preferred embodiment of the invention, it will be recorded after generating the page and getting test data report ready variant
The page get test data report ready and be sent to corresponding user and handle.For example, getting test data report ready can list
It gets the inconsistent place of data ready, is handled by mail notification associated user or web page code reparation.
In another preferred embodiment of the invention, user needs to test test page and the comparison page, first
First user configures test case according to demand, is then based on the test case for test page and the comparison page and executes sheet
The method of invention.User's is contemplated to be: not to test page bury a little make an amendment under the premise of, test page and comparison page
Face it is same bury issue get request ready and should be consistent, if it is inconsistent, needing to know test page and right
Than the page the difference for getting data ready where.The page for executing the offer of this preferred embodiment, which gets test method ready, automatic to be obtained
To the difference results for getting data ready of test page and the comparison page, generates the page and get test data report ready.
In addition, the test data report of generation can also include directly from institute in another preferred embodiment of the invention
State test page get data packet ready and the comparison page get ready extracted in data packet get request ready and get data ready.Test
Data sheet can show plurality of kinds of contents, such as page presentation number, how many user saw this page, page elements
Number of clicks, clicking rate click the trading volume generated, location distribution and the age level distribution of user etc..These reports can
Think style sheet, product developing direction, marketing activity etc. provides significant data and supports, for policymaker provide intuitive decision according to
According to, while request is got ready to the website interception page and collects user information, user group, reinforce linking up, improves and improve website
Construction is of great significance.
In addition, can also be arranged in some other embodiments of the invention and get test data abnormal alarm mechanism ready, when
Automatic alarm is carried out when mistake is got in discovery ready in getting test data ready, the risk for getting loss of data ready can be substantially reduced.
The present invention also provides a kind of pages to get test device ready.It is that third embodiment of the invention provides referring to Fig. 3, Fig. 3
The page gets the structural schematic diagram of test device ready.In the third embodiment, which gets test device ready and includes:
The page gets request generation unit 310 ready, in response to burying place's progress for test page or the comparison page
Get operation ready, generate test page corresponding with the test page and get request ready, or is corresponding right with the comparison page
Request is got ready than the page;
The page gets request interception unit 320 ready, and for intercepting, the test page gets request ready or the comparison page is beaten
Point request;
It gets data collection finishing unit 330 ready, gets beating in request ready for collecting and arranging the test page respectively
Point data and the comparison page are got ready in request and get data ready;
It gets test data comparing unit 340 ready, gets data ready and from institute from the test page for comparing
The difference for getting data ready for stating the comparison page generates the page and gets test data report ready.
In a preferred embodiment of the present invention, the page gets test device ready further include:
Test case configuration unit 350, for configuring test case.
It gets operation execution unit 360 ready, for accessing the test page or the comparison page, is got ready according to preset
Rule executes and gets operation ready.
In a preferred embodiment of the present invention, the test case configuration unit 350 includes:
First subelement 351 configures the access address of the test page or the comparison page;
Second subelement 352, configures the test page or comparison the preset of the page gets rule ready;
Third subelement 353, configures the test page or the comparison page buries a little.
In a preferred embodiment of the present invention, the page gets request interception unit 320 ready and includes:
4th subelement 321 intercepts the test page for the data server that disguises oneself as and gets request or the comparison ready
The page gets request ready;And/or
5th subelement 322, the transmitted data on network packet that the network interface card for client where monitoring and intercepting issues are described
Request is got ready comprising the test page in transmitted data on network packet or the comparison page gets request ready.
Referring to fig. 4, Fig. 4 is that the page that fourth embodiment of the invention provides gets the structural schematic diagram of test device ready.?
In four embodiments, in addition to the page gets request generation unit 310 ready, the page gets request interception unit 320 ready, it is whole to get data collection ready
Reason unit 330 gets test data comparing unit 340 ready, and the page gets test device ready further include:
Page iden-tity generation unit 370, for being generated according to the access address of the test page or the comparison page
An at least page unique identifier is arranged into the cookie of the page.
It is in a preferred embodiment of the invention, described to get test data comparing unit 340 ready further include:
Get data determining unit 341 ready, for compare one by one respectively from the test page get ready data and come
Data are got ready from the comparison page, and whether the access request parameters for getting data described in judgement ready are identical;
It gets data validation unit 342 ready, comes from the test for confirming when getting data determining unit ready and judging identical
The data of getting ready of the page with the data of getting ready from the comparison page are to get request ready from the same page buried a little, when not phase
Get data and get data from the comparison page of the confirmation simultaneously from the test page are buried a little from difference
The page get request ready.
In a preferred embodiment of the invention, test data comparing unit 340 is got ready further include:
It gets data difference confirmation unit 343 ready, gets data and the comparison page ready for compare the test page
Get ready data be get request ready from the same page buried a little get data difference ready;
It gets test data report generation unit 344 ready, gets test data report ready for recording the difference to generate the page
Table.
Referring to Fig. 5, the page provided according to one preferred example of the present invention gets test macro ready, wherein specifically including that
1, Case management module: Case is got ready for managing.User collects and gets Case ready, edits to Case is got ready, manages
Reason person's record etc..
2, operating system module: for the management of Web Driver, the maintenance of Host is got ready.The operation of Case mainly includes
Server two parts are got in simulation browser behavior, camouflage ready.
3, Case execution module: main includes the concurrently execution of Case, is arranged with the cookie of Case binding, task tune
Retrying after degree and Case failure, the interception and collection of Case.
4, interpretation of result module is got ready: for generating visualized data report.Which the record page has issued and gets ready, compares
Which the page has issued and gets ready, which difference the comparison that wherein the two pages are got ready has.
5, timed task module: for periodically executing Case.Using the specified time as dimension (daily/weekly etc.), to hold
Row gets Case ready, and compares and get data ready.
It is got ready in the page that this example provides and runs the page provided by the invention in test macro and get test method ready, according to
If Fig. 6 carries out the newly-increased configuration for getting Case ready, it is illustrated in figure 7 the process for executing and getting Case ready, and at interface as shown in Figure 8
It checks and gets result ready.
As it can be seen that the page that preferred embodiment shown in Fig. 5 provides is got ready in test macro in addition to realizing the technology of the present invention side
It further includes timed task module that the page of case, which is got ready outside each module needed for test device, for periodically executing Case.With specified
Time be dimension (daily/weekly etc.), Lai Zhihang gets Case ready, and compares and get data ready.And then it can also be according to user
Configured in advance send the mailbox of user checking and to test page into one in order to user for the comparing result
Pacing examination and debugging.
The page that each embodiment provides according to the present invention gets test method ready, and configuration is simple before the page gets test ready, general
Property it is strong, primary configuration is used multiple times, and regression test can be carried out in time by having for the front and back end of web page when any change
(referring to after having modified software, re-start test to confirm modification without introducing new mistake).
The page provided by the invention gets test method, device, system ready and implements to reach in following computing system environments
To optimal implementation result:
Hardware: 64 servers;
Software: linux operating system, java running environment, Firefox31.0, Selenium2.44.0, Jpcap language:
Java。
Each embodiment provided by the invention can be realized in a manner of software, hardware, firmware etc..Regardless of the present invention is with soft
Part, hardware or firmware mode realize that instruction code may be stored in any kind of computer-accessible memory
(such as permanent perhaps revisable volatibility perhaps non-volatile solid perhaps non-solid fixed or
Replaceable medium etc.).Equally, memory may, for example, be programmable logic array (Programmable Array
Logic, referred to as " PAL "), random access memory (Random Access Memory, referred to as " RAM "), it may be programmed read-only deposit
Reservoir (Programmable Read Only Memory, referred to as " PROM "), read-only memory (Read-Only Memory, letter
Claim " ROM "), electrically erasable programmable read-only memory (Electrically Erasable Programmable ROM, referred to as
" EEPROM "), disk, CD, digital versatile disc (Digital Versatile Disc, referred to as " DVD ") etc..
It should be noted that each unit mentioned in each equipment embodiment of the present invention is all logic unit, physically,
One logic unit can be a physical unit, be also possible to a part of a physical unit, can also be with multiple physics
The combination of unit realizes that the Physical realization of these logic units itself is not most important, these logic units institute reality
The combination of existing function is only the key for solving technical problem proposed by the invention.In addition, in order to protrude innovation of the invention
Part, there is no the technical problem relationship proposed by the invention with solution is less close for the above-mentioned each equipment embodiment of the present invention
Unit introduce, this does not indicate above equipment embodiment and there is no other units.
It should be noted that in the claim and specification of this patent, such as first and second or the like relationship
Term is only used to distinguish one entity or operation from another entity or operation, without necessarily requiring or implying
There are any actual relationship or orders between these entities or operation.Moreover, the terms "include", "comprise" or its
Any other variant is intended to non-exclusive inclusion so that include the process, methods of a series of elements, article or
Equipment not only includes those elements, but also including other elements that are not explicitly listed, or further include for this process,
Method, article or the intrinsic element of equipment.In the absence of more restrictions, being wanted by what sentence " including one " limited
Element, it is not excluded that there is also other identical elements in the process, method, article or equipment for including element.
Although being shown and described to the present invention by referring to some of the preferred embodiment of the invention,
It will be understood by those skilled in the art that can to it, various changes can be made in the form and details, without departing from this hair
Bright spirit and scope.
Claims (26)
1. a kind of page gets test method ready characterized by comprising
In response to getting operation, generation test page corresponding with the test page ready bury that place carries out for test page
Get request ready;
In response to getting operation, the generation comparison page corresponding with the comparison page ready bury that place carries out for the comparison page
Get request ready;
It intercepts the test page and gets request ready;
It intercepts the comparison page and gets request ready;
Collect and arrange respectively the test page get ready request in get data ready and the comparison page is got ready in request
Get data ready;
It compares and gets data and the difference generation page for getting data ready from the comparison page ready from the test page
Get test data report ready in face.
2. the page as described in claim 1 gets test method ready, which is characterized in that described in response to existing for test page
What is carried out at burying gets operation ready, generates the step of test page corresponding with the test page gets request ready and includes: before
Configure the access address of the test page;
It configures the preset of the test page and gets rule ready;
Configure burying a little for the test page.
3. the page as described in claim 1 gets test method ready, which is characterized in that described in response to existing for the comparison page
What is carried out at burying gets operation ready, generates the step of comparison page corresponding with the comparison page gets request ready and includes: before
Configure the access address of the comparison page;
It configures comparison the preset of the page and gets rule ready;
Configure burying a little for the comparison page.
4. the page as claimed in claim 2 gets test method ready, which is characterized in that
Described bury a little refers to that the position of request is got in the pre-set automatic transmission of needs ready on the page according to tentation data format.
5. the page as claimed in claim 3 gets test method ready, which is characterized in that
Described bury a little refers to that the position of request is got in the pre-set automatic transmission of needs ready on the page according to tentation data format.
6. the page as claimed in claim 4 gets test method ready, which is characterized in that described in response to being buried for test page
What is carried out at point gets operation ready, includes: before generating the step of test page corresponding with the test page gets request ready
An at least page unique identifier is generated according to the access address of the test page to be arranged into the cookie of the page;It visits
Ask the test page, according to it is preset get ready rule execute get operation ready.
7. the page as claimed in claim 5 gets test method ready, which is characterized in that described in response to being buried for the comparison page
What is carried out at point gets operation ready, includes: before generating the step of comparison page corresponding with the comparison page gets request ready
An at least page unique identifier is generated according to the access address of the comparison page to be arranged into the cookie of the page;
Access the comparison page, according to it is preset get ready rule execute get operation ready.
8. the page as described in claim 1 gets test method ready, which is characterized in that the interception test page, which is got ready, asks
The step of asking include:
The data server that disguises oneself as intercepts the test page and gets request ready.
9. the page as described in claim 1 gets test method ready, which is characterized in that the interception comparison page, which is got ready, asks
The step of asking include:
The data server that disguises oneself as intercepts the comparison page and gets request ready.
10. the page as described in claim 1 gets test method ready, which is characterized in that the interception test page is got ready
The step of request includes:
The transmitted data on network packet that the network interface card of place client issues is monitored and intercepted, includes institute in the transmitted data on network packet
It states test page and gets request ready.
11. the page as described in claim 1 gets test method ready, which is characterized in that the interception comparison page is got ready
The step of request includes:
The transmitted data on network packet that the network interface card of place client issues is monitored and intercepted, includes institute in the transmitted data on network packet
It states the comparison page and gets request ready.
12. the page as claimed in claim 6 gets test method ready, which is characterized in that the collection simultaneously arranges the survey respectively
Examination the page get ready request in get ready data and it is described comparison the page get ready request in include: the step of getting data ready
Get whether data come from the test page ready according to the cookie value differentiation that the page gets the page in request ready;
It collects and arranges getting data ready and get data ready from the comparison page from the test page respectively.
13. the page as claimed in claim 7 gets test method ready, which is characterized in that the collection simultaneously arranges the survey respectively
Examination the page get ready request in get ready data and it is described comparison the page get ready request in include: the step of getting data ready
Get whether data come from the comparison page ready according to the cookie value differentiation that the page gets the page in request ready;
It collects and arranges getting data ready and get data ready from the comparison page from the test page respectively.
14. the page as described in claim 1 gets test method ready, which is characterized in that described compare comes from the test page
Get ready data and from it is described comparison the page get data ready difference generate the page get test data report ready the step of
Include:
It compares one by one and gets data ready and from the data of getting ready for comparing the page, judgement respectively from the test page
Whether the access request parameters for getting data ready are identical;
If identical, get data of the confirmation from the test page get data ready with from the comparison page
Request is got ready from the same page buried a little, gets data ready and from institute from the test page if it is not the same, then confirming
The data of getting ready for stating the comparison page are that the page buried a little from difference gets request ready.
15. the page as claimed in claim 14 gets test method ready, which is characterized in that described compare comes from the test page
Get ready data and from it is described comparison the page get data ready difference generate the page get test data report ready the step of
Further include:
Get ready the data and the data of getting ready of the comparison page for comparing the test page are beaten from the same page buried a little
The difference for getting data ready of point request;
It records the difference and gets test data report ready to generate the page.
16. getting test method ready according to the page as described in claim 1 to 15 any claim, which is characterized in that
The test page refers to the page in the development phase or the page positioned at pre- publisher server;
The comparison page refers to the page in production environment.
17. a kind of page gets test device ready characterized by comprising
Test page gets request generation unit ready, for giving birth in response to getting operation ready bury that place carries out for test page
Request is got ready at test page corresponding with the test page;
The comparison page gets request generation unit ready, in response to getting operation, life ready bury that place carries out for the comparison page
Request is got ready at the comparison page corresponding with the comparison page;
Test page gets request interception unit ready, gets request ready for intercepting the test page;
The comparison page gets request interception unit ready, gets request ready for intercepting the comparison page;
Get data collection finishing unit ready, for collect and respectively arrange the test page get ready request in get ready data with
And the comparison page is got ready in request and gets data ready;
It gets test data comparing unit ready, gets data ready and from the comparison page from the test page for comparing
The difference for getting data ready in face generates the page and gets test data report ready.
18. the page as claimed in claim 17 gets test device ready, which is characterized in that further include:
Test case configuration unit, for configuring test case.
19. the page as claimed in claim 18 gets test device ready, which is characterized in that the test case configuration unit packet
It includes:
First test subelement, configures the access address of the test page;
Second test subelement, configures the preset of the test page and gets rule ready;
Third tests subelement, configures burying a little for the test page.
20. the page as claimed in claim 18 gets test device ready, which is characterized in that the test case configuration unit packet
It includes:
First contrast subunit configures the access address of the comparison page;
Second contrast subunit configures comparison the preset of the page and gets rule ready;
Third contrast subunit configures burying a little for the comparison page.
21. the page as claimed in claim 17 gets test device ready, which is characterized in that the test page is got request ready and intercepted
Unit includes:
4th test subelement, intercepts the test page for the data server that disguises oneself as and gets request ready;And/or
5th test subelement, the transmitted data on network packet that the network interface card for client where monitoring and intercepting issues, the net
Request is got ready comprising the test page in network transmission data packet.
22. the page as claimed in claim 17 gets test device ready, which is characterized in that the comparison page is got request ready and intercepted
Unit includes:
4th contrast subunit intercepts the comparison page for the data server that disguises oneself as and gets request ready;And/or
5th contrast subunit, the transmitted data on network packet that the network interface card for client where monitoring and intercepting issues, the net
Request is got ready comprising the comparison page in network transmission data packet.
23. the page as claimed in claim 17 gets test device ready, which is characterized in that further include:
Test page identification generation unit is uniquely indicated for generating an at least page according to the access address of the test page
Symbol is arranged into the cookie of the page;
Page iden-tity generation unit is compared, is uniquely indicated for generating an at least page according to the access address of the comparison page
Symbol is arranged into the cookie of the page.
24. getting test device ready as claimed in claim 17, which is characterized in that further include:
Test page gets operation execution unit ready, for accessing the test page, according to it is preset get ready rule execute get ready
Operation;
Comparison the page get operation execution unit ready, for accessing the comparison page, according to it is preset get ready rule execute get ready
Operation.
25. getting test device ready as claimed in claim 17, which is characterized in that the test data comparing unit of getting ready also wraps
It includes:
It gets data determining unit ready, gets data ready and from described right respectively from the test page for comparing one by one
Than the data of getting ready of the page, whether the access request parameters for getting data described in judgement ready are identical;
Data validation unit is got ready, for confirming beating from the test page when getting data determining unit ready and judging identical
Point data is to get request ready from the same page buried a little with the data of getting ready from the comparison page, is confirmed when not identical
From the test page get ready data from from it is described comparison the page data of getting ready be to be beaten from the different pages buried a little
Point request.
26. getting test device ready as claimed in claim 17, which is characterized in that get test data comparing unit ready further include:
Get data difference confirmation unit ready, for compare the test page get data ready and the comparison page gets number ready
According to be get request ready from the same page buried a little get data difference ready;
It gets test data report generation unit ready, described gets data difference ready for recording to generate the page and get test data report ready
Table.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510257859.5A CN106294101B (en) | 2015-05-19 | 2015-05-19 | The page gets test method and device ready |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510257859.5A CN106294101B (en) | 2015-05-19 | 2015-05-19 | The page gets test method and device ready |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106294101A CN106294101A (en) | 2017-01-04 |
CN106294101B true CN106294101B (en) | 2019-08-23 |
Family
ID=57632609
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510257859.5A Active CN106294101B (en) | 2015-05-19 | 2015-05-19 | The page gets test method and device ready |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106294101B (en) |
Families Citing this family (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106953740B (en) * | 2017-01-24 | 2020-07-03 | 阿里巴巴集团控股有限公司 | Processing method, client, server and system for page access data in application |
CN107092488B (en) * | 2017-03-31 | 2020-06-16 | 武汉斗鱼网络科技有限公司 | Method and system for realizing non-invasive point burying of application |
CN107133124A (en) * | 2017-04-28 | 2017-09-05 | 努比亚技术有限公司 | A kind of restorative procedure, data processing equipment and storage medium for not conforming to rule data |
CN107870860B (en) * | 2017-05-05 | 2020-12-15 | 平安科技(深圳)有限公司 | Buried point verification system and method |
CN107295088B (en) * | 2017-06-29 | 2020-04-10 | 广东神马搜索科技有限公司 | Dotting information monitoring method and device and client |
CN109960644A (en) * | 2017-12-22 | 2019-07-02 | 北京奇虎科技有限公司 | A kind of test method and system of SDK |
CN108319552A (en) * | 2018-02-07 | 2018-07-24 | 优信数享(北京)信息技术有限公司 | One kind burying a test method, apparatus and system |
CN108595168A (en) * | 2018-03-30 | 2018-09-28 | 武汉斗鱼网络科技有限公司 | Automatically dotting method, apparatus, readable storage medium storing program for executing and equipment |
CN108536438B (en) * | 2018-04-10 | 2021-11-09 | 武汉斗鱼网络科技有限公司 | Dotting module, method and computer readable medium for processing user behavior data |
CN110717130B (en) * | 2018-06-27 | 2022-11-11 | 武汉斗鱼网络科技有限公司 | Dotting method, dotting device, dotting terminal and storage medium |
CN110362498B (en) * | 2019-07-24 | 2023-08-15 | 杭州安恒信息技术股份有限公司 | Page hot spot testing method and device and server |
CN110941608B (en) * | 2019-09-29 | 2023-01-20 | 北京思维造物信息科技股份有限公司 | Method, device and equipment for generating buried point analysis and funnel analysis report |
CN111611141A (en) * | 2020-04-30 | 2020-09-01 | 广州华多网络科技有限公司 | Reporting verification method and device of buried point data, electronic equipment and storage medium |
CN113448832B (en) * | 2020-06-18 | 2024-03-12 | 北京新氧科技有限公司 | Control exposure detection method and application program operation monitoring system |
CN112002021B (en) * | 2020-10-30 | 2021-01-22 | 成都四方伟业软件股份有限公司 | Aggregation dotting visualization method and device based on unity3d |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102946319A (en) * | 2012-09-29 | 2013-02-27 | 焦点科技股份有限公司 | System and method for analyzing network user behavior information |
CN103309887A (en) * | 2012-03-13 | 2013-09-18 | 阿里巴巴集团控股有限公司 | User behavior collection verifying method and verifying device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7441195B2 (en) * | 2003-03-04 | 2008-10-21 | Omniture, Inc. | Associating website clicks with links on a web page |
-
2015
- 2015-05-19 CN CN201510257859.5A patent/CN106294101B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103309887A (en) * | 2012-03-13 | 2013-09-18 | 阿里巴巴集团控股有限公司 | User behavior collection verifying method and verifying device |
CN102946319A (en) * | 2012-09-29 | 2013-02-27 | 焦点科技股份有限公司 | System and method for analyzing network user behavior information |
Also Published As
Publication number | Publication date |
---|---|
CN106294101A (en) | 2017-01-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106294101B (en) | The page gets test method and device ready | |
US11798028B2 (en) | Systems and methods for monitoring malicious software engaging in online advertising fraud or other form of deceit | |
US20200250024A1 (en) | High-volume distributed script error handling | |
US20220004546A1 (en) | System for automatically discovering, enriching and remediating entities interacting in a computer network | |
Rodden et al. | Measuring the user experience on a large scale: user-centered metrics for web applications | |
KR101828506B1 (en) | Visualization of jvm and cross-jvm call stacks | |
US9454450B2 (en) | Modeling and testing of interactions between components of a software system | |
US7953850B2 (en) | Monitoring related content requests | |
US9058429B2 (en) | Usability testing tool | |
US9075914B2 (en) | Analytics driven development | |
CN107402880A (en) | A kind of method of testing and electronic equipment | |
CN103729446A (en) | Processing method and device for user operation data and server | |
US10884911B2 (en) | System and method for use in regression testing of electronic document hyperlinks | |
Reddy et al. | Preprocessing the web server logs: an illustrative approach for effective usage mining | |
AlGhamdi et al. | Towards reducing the time needed for load testing | |
Wimalasooriya et al. | A systematic mapping study addressing the reliability of mobile applications: The need to move beyond testing reliability | |
US20080162687A1 (en) | Data acquisition system and method | |
CN106357466A (en) | Monitoring method for internet products and monitoring system | |
Wang et al. | Application Monitoring for bug reproduction in web-based applications | |
Su et al. | AndroGenerator: An automated and configurable android app network traffic generation system | |
WO2017082861A1 (en) | Using a proxy server to intercept and analyze content | |
Shivakumar et al. | Web Performance Monitoring and Infrastructure Planning | |
Rodestock | Visualizing and explaining the scaling behavior of self-adaptive microservice systems in kubernetes | |
Kim et al. | Automatic monitoring of service reliability for web applications: a simulation‐based approach | |
Su et al. | Research and design of website user behavior data acquisition based on customized event tracking |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |