CN106294101A - The page gets method of testing and device ready - Google Patents

The page gets method of testing and device ready Download PDF

Info

Publication number
CN106294101A
CN106294101A CN201510257859.5A CN201510257859A CN106294101A CN 106294101 A CN106294101 A CN 106294101A CN 201510257859 A CN201510257859 A CN 201510257859A CN 106294101 A CN106294101 A CN 106294101A
Authority
CN
China
Prior art keywords
ready
page
data
test
request
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
CN201510257859.5A
Other languages
Chinese (zh)
Other versions
CN106294101B (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201510257859.5A priority Critical patent/CN106294101B/en
Publication of CN106294101A publication Critical patent/CN106294101A/en
Application granted granted Critical
Publication of CN106294101B publication Critical patent/CN106294101B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the present invention provides a kind of page to get method of testing and device ready, described method includes getting operation ready in response to carry out at burying for test page or the contrast page, generate the test page corresponding with described test page and get request ready, or the contrast page corresponding with the described contrast page gets request ready;Intercept described test page get ready request or the described contrast page get request ready;Collect and arrange respectively described test page get ready in request get data ready and the described contrast page is got ready and is got data ready in request;Comparison from described test page get ready data and from the described contrast page get ready data difference generate the page get test data sheet ready.Webpage method of testing that embodiment of the present invention provides and device are by getting operation ready to test page and the contrast page, the correctness of data is got in test ready, it is achieved air exercise point data automatically monitors and tests, and effective guarantee gets the reliability of test data ready.

Description

The page gets method of testing and device ready
Technical field
The present invention relates to webpage field tests, especially a kind of page gets method of testing and device ready.
Background technology
In the webpage technical field of measurement and test of the Internet, exist and use the mode got ready to beat to intercept the page Point asks and collects user to browse the various of webpage and the demand of operation behavior.Described " getting ready " is Refer to for web page (a kind of file organized according to html format on WWW.Logical Cross WWW when carrying out information inquiry, occur with the form of information page, it can include figure, word, The information such as sound and video.) internet product of type, during user to access pages, taken by data Business device intercepts the page and gets request ready and collect the network request comprising user behavior and page presentation effect Data, such that it is able to the difference of the focus according to product, intercept the page and get request ready and collect sense Interest get data ready.Wherein, user behavior includes: browsed which page, clicks which unit Element etc.;Page presentation effect includes: which element of page presentation, element position etc. in the page. Data server intercepts the page and gets request ready and collect after these get data ready, by the way of certain Polymerization, analyzes and produces data sheet, and such as page presentation number of times has how many users to see this The page, the trading volume that page elements number of clicks, clicking rate, click produce, the geographical position of user Distribution and age level distribution etc..These forms can be style sheet, production development direction, and marketing is lived Dynamic grade provides significant data support, provides decision-making foundation intuitively for policymaker, intercepts website simultaneously The page is got request ready and collects user profile, user group, strengthens linking up, improves and improve website and build Setting tool is significant.
But, the demand of internet product is maked rapid progress, and often produces product test demand shift, Such as newly-increased type of getting ready, replacing dot method, increase newly, business function, page sample are deleted or modified Formula adjustment etc..These variations are likely to cause the page to get some changes beyong contemplation of generation, example ready Get request ready such as the page and send unsuccessfully, get data ready and do not comprise the data of necessity, repeat to get ready, These changes may result in data server and do not receive and get data ready, receive beating of mistake in other words Point data, and then have influence on the data sheet of product.
Current most of page get ready testing scheme mainly the data interception page get ready request and collect with And the aspect that represents of data sheet improves, the most at present, domestic conventional statistics website has CNZZ, 51la, Baidu's statistics, 51yes, SiteFlow etc., some large-scale websites also can be developed fixed That makes oneself gets data sheet ready.But, if there is getting mistake ready, the most only wait until data sheet There is abnormal variation, get index ready when being substantially increased suddenly or decline, just can pinpoint the problems for such as one, And this time, it is possible to correct data of getting ready are difficult to give for change, bring not to getting data ready Amendable error.
Summary of the invention
For the deficiencies in the prior art, it is an object of the invention to provide a kind of page and get method of testing ready And device, air exercise point data is tested and is monitored, and improves the accuracy getting test data ready with reliable Property.
For solving above-mentioned technical problem, embodiments of the present invention disclose a kind of page and get test side ready Method, including:
Get operation ready in response to carry out at burying for test page or the contrast page, generate and institute State test page corresponding to test page and get request, or the contrast page corresponding with the described contrast page ready Get request ready;
Intercept described test page get ready request or the described contrast page get request ready;
Collect and arrange respectively described test page to get ready request gets data and described contrast page ready Face is got ready and is got data ready in request;
Comparison getting data ready and getting data ready from the described contrast page from described test page Difference generate the page get test data sheet ready.
Embodiments of the present invention also disclose a kind of page and get test device ready, including:
The page gets request signal generating unit ready, for burying a little in response to for test page or the contrast page Operation that what place was carried out get ready, generates the test page corresponding with described test page and gets request ready, or with The contrast page that the described contrast page is corresponding gets request ready;
The page gets request interception unit ready, is used for intercepting described test page and gets request or described contrast ready The page gets request ready;
Get data collection ready and arrange unit, get request ready for collecting and arranging described test page respectively In get data ready and the described contrast page is got ready and is got data ready in request;
Get ready test comparing unit, for comparison from described test page get ready data and The difference getting data ready from the described contrast page generates the page and gets test data sheet ready.
Compared with prior art, webpage method of testing described in embodiment of the present invention and device are by right Test page and the contrast page carry out getting ready operation, and the correctness of data is got in test ready, it is achieved to getting ready Data automatically monitor and test, and effective guarantee gets the reliability of test data ready.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet that the page that first embodiment of the invention provides gets method of testing ready;
Fig. 2 is the schematic flow sheet that the page that second embodiment of the invention provides gets method of testing ready;
Fig. 3 is the structural representation that the page that third embodiment of the invention provides gets test device ready;
Fig. 4 is the structural representation that the page that fourth embodiment of the invention provides gets test device ready;
Fig. 5 is that the page of a preferred embodiment offer of the present invention gets test system ready;
Fig. 6 is that the page of a preferred embodiment according to the present invention offer shown in Fig. 5 gets test system ready System carries out the interfacial effect figure of the newly-increased configuration getting Case ready;
Fig. 7 is that the page of a preferred embodiment according to the present invention offer shown in Fig. 5 gets test system ready System performs to get ready the interfacial effect figure of the process of Case;
Fig. 8 is that the page of a preferred embodiment according to the present invention offer shown in Fig. 5 gets test system ready System checks the interfacial effect figure getting result ready.
Detailed description of the invention
In the following description, in order to make reader be more fully understood that, the application proposes many ins and outs. But, even if it will be understood by those skilled in the art that and there is no these ins and outs and based on following The many variations of each embodiment and amendment, it is also possible to realize each claim of the application required for protection Technical scheme.
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to this Bright embodiment is described in further detail.The test page that the application relates to refers to the most formally send out The Webpage of cloth, for instance in Webpage or the pre-release Webpage of development phase.And it is right Refer to be in the page of production environment than the page.Wherein, after production environment refers to that Webpage is issued, with The software and hardware environment of the running software that Webpage is relevant, production environment can process user to webpage The request that the page sends.
Seeing Fig. 1, Fig. 1 is the flow process signal that the page that first embodiment of the invention provides gets method of testing ready Figure.The page shown in Fig. 1 is got method of testing ready and is included step S101-S104.
In step S101, get behaviour ready in response to carry out at burying for test page or the contrast page Make, generate the test page corresponding with described test page and get request ready, or corresponding with the described contrast page The contrast page get request ready.
Wherein, get operation ready and refer to user's operation to webpage, include but not limited to open a webpage page A page elements etc. in face, the webpage clicking page.In an example of the present invention, by net The program code call Selenium Web Driver run on page testing service device automatically opens up browser visitor Family end, Selenium Web Driver is that a set of can being used for simulates the web application opening browser client Program test instrument, it is provided that the method for simulation browser behavior is called for developer, such as can be with mould It is envisaged for browsing the Open Framework of the operation such as Webpage, webpage clicking page elements.According to described test The reference address of the page or the described contrast page generates at least one unique identifier and arranges browser clients The cookie of the page of end (is often referred to website to distinguish user identity, carrying out session tracking and store Data on user local terminal) in, access described test page or the described contrast page, then, Browser client performs to beat according to the rule simulation of getting ready that developer (such as: front end engineer) is default Point operation, can be specifically the Xpath using Web Driver program code automatically clicking to specify, respectively Test page and the contrast page perform the behavior specified, and default rule of getting ready gets test use ready in configuration Define during example.Specifically, before opening described test page and the described contrast page, program can be adjusted With Web Driver, cookie is arranged test page and the contrast page, test page and the contrast page to divide Not corresponding cookie, and only one of which cookie respectively.Xpath refers to the seat of element on the html page Mark, an Xpath can navigate to a unique element (such as one button), just clicks on Xpath Refer to click on a page elements (such as clicking on certain button).
Wherein, bury and a little refer to be pre-set on the such as html page according to tentation data form by developer Need automatically to send the position of request of getting ready.Described tentation data form is intrinsic in http request agreement 's.Get operation ready when certain on the page (such as click on the button on a page or show some pages Surface element) trigger one when burying, then automatically generate and corresponding with this page get http request ready, should Http request gets operation information ready described in containing, the behavioural information i.e. specified.Such as browser client can To get http request ready by script (JS) asynchronous sending.
In step s 102, intercept described test page get ready request or the described contrast page get request ready.
Specifically, webpage testing service device disguise oneself as data server intercept described test page get ready Request or the described contrast page get request ready.The side of requesting host got ready by webpage testing service device by binding Oneself is disguised oneself as by formula, and (such as one is buried the http request a little sent and is data server http://www.abc.com?Click=1&v=2..., testing service device binding www.abc.com, is pointed to Testing service device 127.0.0.1, the request of the most all www.abc.com of issuing all can issue testing service Device, testing service device just can be intercepted this and bury the data a little sent).Described data server is Pre-set the host address of the request of getting ready specified when burying.So, originally it is sent to data server Data send give the data server disguised oneself as, i.e. webpage testing service device.
In step s 103, collect and arrange respectively described test page get ready in request get ready data with And get ready with the described contrast page request gets data ready;
Wherein, get ready and request gets the position that data include that the page is clicked on ready, the element of click, the page Version, browser version etc. volume of data.
In a preferred embodiment of the invention, arrange in the described webpage testing service device and intercept Test page gets request ready or the contrast page is got ready and got data ready in request.
In an example of the present invention, the page according to arranging in step S101 gets the page in request ready Cookie value differentiation to get data ready be from described test page or the described contrast page, collect and point Do not arrange that those intercept in step s 102 gets data ready and from institute from described test page That states the contrast page gets data ready.Cookie value be open the page before arranged in the page by program code , this cookie value is used for distinguishing to be got the test case of test ready and gets the page ready.Such as, beat Point Case A to test two pages, a contrast page, refers to be in the page of production environment, and one is Test page, refers to be in the page of development phase or be positioned at the page of pre-publisher server.This time, When opening the page of production environment arrange cookie value be origin:1 (origin: expression production environment, 1 Represent the ID of Case A), the cookie value arranged when opening the page of test environment is compare:1. This cookie value send get http request ready when, can band in the information of http request.This Sample, get ready testing service device receive get ready after data just can according to the difference of cookie value, arrange and To filter out be which page of which test case have issued this page and gets request ready, then to receiving The data of getting ready belonging to the same page in same test case are done and are merged, and are organized into test sheets respectively Packet is got in face ready and the contrast page gets packet ready.It is to be understood that there are two ponds, a pond Son is to put to get data ready from test page, and pond is to put to get data ready from the contrast page 's.When one get ready request tested server intercepts to after, server according to cookie come handle get ready Data are put in the pond of its correspondence and go.After all discharging, it is possible to the data in two ponds are taken out Contrast.
In a preferred embodiment of the present invention, a test case includes two kinds of pages, and one is test The page, one is the contrast page.Do data merging to refer to merge test page or contrast the page performed finger The fixed data after behavior (clicking on xpath).When the xpath specified is a link, this time point Hit xpath and can open another page, say, that the more than one page may be opened in execution process. Such as one test case is configured with two page A (test page) and α (the contrast page), configuration Xpath is a link, and the A page clicks on this xpath can go to the B page, and the α page clicks on this xpath The β page can be gone to, then the situation that data collection merges is exactly:
The A page-> click xpath-> B page, all of data collection of getting ready sent during this rises Merge be that the test page of this test case sends afterwards get data ready, be organized into test The page gets packet ready.
The α page > click on xpath-> the β page, all of data collection of getting ready sent during this rises Merge be afterwards this test case contrast the page send get data ready, be organized into contrast The page gets packet ready.
In step S104, comparison gets data ready and from described contrast page from described test page The difference getting data ready in face generates the page and gets test data sheet ready.
Specifically, the most one by one comparison respectively from described test page and beating from the described contrast page Point data, it is judged that described in get the access request parameters of data ready the most identical, described access request parameters refers to Get the data of http request ready, including the url of http request, number of parameters, parameter type.If it is identical, Then confirm from described test page get ready data with from the described contrast page get ready data be from The same page buried a little gets request ready, if it is not the same, then confirm to get number ready from described test page According to being to get request ready from the different pages buried a little from the data of getting ready from the described contrast page.Then, Comparison is from same from the data of getting ready of described test page with the data of getting ready from the described contrast page One page buried a little gets the difference getting data ready of request ready.Finally, described difference is recorded to generate the page Get test data sheet ready.
In an example of the present invention, the test page that step S103 generates gets packet and contrast page ready It is two set respectively that packet is got in face ready.Such as test page have issued 15 and gets request (set A) ready, The contrast page have issued 16 and gets request (set B) ready.First take A relative complement set in B, look for Have and getting ready that test page does not has to the contrast page, then take B relative complement set in A, find survey What the examination page had and contrasted that the page do not has gets ready.If the two supplementary set has one not to be sky, or the most not For sky, then be then judged to get data ready twice inconsistent, inconsistent data of getting ready are difference.? After, the data of getting ready recording these differences get test data sheet ready to generate the page.
The page provided according to a first embodiment of the present invention gets method of testing ready, uses when user configures good test Can realize automatically the page being got ready test after example, and point data of fighting each other monitors automatically.One side The error risk that face greatly reduces desk checking test data and produces, on the other hand decreases test person Power cost.
Seeing Fig. 2, Fig. 2 is the flow process signal that the page that second embodiment of the invention provides gets method of testing ready Figure.Second embodiment of the application includes step S201-step S204.Wherein, step S201 and first Step S101 in embodiment is identical, step S203, S204 respectively with step S103 in first embodiment, S104 is identical, the most no longer repeats, and only step S102 is different from step S202.
In step S202, intercept described test page get ready request or the described contrast page get request ready.
Monitoring and intercept the transmitted data on network bag that the network interface card of webpage testing service device sends, described network passes Transmission of data bag comprises comprise corresponding with described test page get the test page of data ready and get request ready, Or the contrast page getting data ready with described corresponding the comprising of the contrast page gets request ready.For example, it is possible to make With Jpcap (a set of network data Packet capturing application program using written in Java increased income, it is provided that capture stream The method crossing network interface card network packet is called for developer) monitor and intercept the TCP/IP data that network interface card sends Bag.
The page provided according to a second embodiment of the present invention gets method of testing ready, by monitoring and intercepting net The transmitted data on network bag that the network interface card of page testing service device sends obtains and comprises the test page getting data ready Get request ready and the contrast page gets request ready.Second embodiment only difference is that with first embodiment: Intercepting different with collecting the mode getting data ready, other are all identical, do not repeat at this.Call Web Driver automatically opens up browser, simulates browsing pages, clicks on page elements, triggers to bury and a little etc. grasps It is all that testing service device completes.When intercepting and data are got in collection ready: first embodiment is by upper State and talk about, on the testing service device host address of binding data server, oneself is disguised oneself as and gets ready Server, intercepts what the mode of all http request issuing data server realized.Second embodiment It is that the network card data bag by snoopy test server realizes.Specifically, each network request Can be through the network interface card of computer, the request of getting ready is a http request, naturally will also pass through network interface card.Jpcap All packets through network interface card can be intercepted, from the packet intercepted, filter out all of getting ready Packet i.e. can be collected all of getting ready and request.
In a preferred embodiment of the invention, such as the first time webpage is got ready test, or In the case of element in webpage there occurs change, in response to being respectively directed to test page and the contrast page Carry out gets operation ready, before generating the step that the corresponding page gets request ready, needs to enter test environment Row configuration.These configurations include but not limited to arrange test page and the reference address of the contrast page and element Index, and get the behavior of operation ready.Such as, in the middle of some examples, can be by arranging Xpath Element in indexing web pages.Xpath is the sprocket bit of a kind of hypertext document (HTML) web page element, It is considered as element coordinate on the page, element corresponding on the page can be found by Xpath. As such, it is possible to after in test page or the contrast page, Xpath is clicked in simulation, browser can be according to Xpath Corresponding element operates, and sends corresponding http request.It addition, the behavior getting operation ready can also It is polytype, such as, mouse roller is rolled to the position of the page 2/3, the mobile page etc..
In a preferred embodiment of the invention, will remember after generating the page and getting test data sheet ready Record the discrepant page to get test data sheet ready and be sent to corresponding user and process.Such as, get ready Test data sheet can be listed and get the place that data are inconsistent ready, is carried out by mail notification associated user Process or web page code reparation.
In another preferred embodiment of the invention, user needs to carry out test page and the contrast page Test, first user's configuration testing use-case according to demand, it is then based on described test case for test The method that the page and the contrast page perform the present invention.The expection of user is: do not burying test page Point make an amendment on the premise of, test page and contrast the page same bury a little send get ready request answer This is consistent, if it is inconsistent, it is to be appreciated that test page and the difference getting data ready of the contrast page Different where.The page that performing this preferred embodiment provides is got method of testing ready and can be automatically derived test sheets Face and the difference results getting data ready of the contrast page, generate the page and get test data sheet ready.
Additionally, in another preferred embodiment of the present invention, the test data sheet of generation can also include Directly get packet ready from described test page and the described contrast page is got getting ready of extraction packet ready and asked Ask and get data ready.Test data sheet can show plurality of kinds of contents, such as page presentation number of times, How many users are had to see this page, the transaction that page elements number of clicks, clicking rate, click produce Amount, the location distribution of user and age level distribution etc..These forms can be style sheet, product Developing direction, marketing activity etc. provides significant data support, provides decision-making foundation intuitively for policymaker, Website intercepts the page get request ready and collect user profile, user group simultaneously, strengthen linking up, improve Web Hosting is significant with improving.
Additionally, in some other embodiments of the present invention, it is also possible to arrange and get test data exception report ready Alert mechanism, carries out automatic alarm when finding and get mistake ready in getting test data ready when, can significantly drop The low risk getting loss of data ready.
The present invention also provides for a kind of page and gets test device ready.Seeing Fig. 3, Fig. 3 is the present invention the 3rd enforcement The page that example provides gets the structural representation of test device ready.In the third embodiment, this page gets survey ready Electricity testing device includes:
The page gets request signal generating unit 310 ready, for burying a little in response to for test page or the contrast page Operation that what place was carried out get ready, generates the test page corresponding with described test page and gets request ready, or with institute The contrast page stating the contrast page corresponding gets request ready;
The page gets request interception unit 320 ready, is used for intercepting described test page and gets request or described contrast ready The page gets request ready;
Get data collection ready and arrange unit 330, get request ready for collecting and arranging described test page respectively In get data ready and the described contrast page is got ready and is got data ready in request;
Get ready test comparing unit 340, for comparison from described test page get ready data and The difference getting data ready from the described contrast page generates the page and gets test data sheet ready.
In the middle of a preferred embodiment of the present invention, the described page is got test device ready and is also included:
Test case dispensing unit 350, for configuration testing use-case.
Get operation execution unit 360 ready, be used for accessing described test page or the described contrast page, according in advance If get ready rule perform get operation ready.
In the middle of a preferred embodiment of the present invention, described test case dispensing unit 350 includes:
First subelement 351, configures described test page or the reference address of the described contrast page;
Second subelement 352, configure described test page or the described contrast page preset get rule ready;
3rd subelement 353, configures burying a little of described test page or the described contrast page.
In the middle of a preferred embodiment of the present invention, the described page is got request interception unit 320 ready and is included:
4th subelement 321, the data server that is used for disguising oneself as intercepts described test page and gets request or institute ready State the contrast page and get request ready;And/or
5th subelement 322, for monitoring and intercept the transmitted data on network that the network interface card of place client sends Bag, described transmitted data on network bag comprises described test page get ready request or the described contrast page get ready Request.
Seeing Fig. 4, Fig. 4 is the structural representation that the page that fourth embodiment of the invention provides gets test device ready Figure.In the fourth embodiment, get request signal generating unit 310, the page ready except the page to get request ready and intercept single Unit 320, get ready data collection arrange unit 330, get ready test comparing unit 340, the described page Get test device ready also to include:
Page iden-tity signal generating unit 370, for according to described test page or the access of the described contrast page Location generates in the cookie that at least one page unique identifier arranges the page.
In a preferred embodiment of the invention, get test comparing unit 340 described in ready also to include:
Get data determining unit 341 ready, get data for comparison one by one ready respectively from described test page And get data ready from the described contrast page, it is judged that described in whether get the access request parameters of data ready Identical;
Get data validation unit 342 ready, for confirming from institute when getting data determining unit ready and judging identical The data of getting ready stating test page are from the same page buried a little with the data of getting ready from the described contrast page Request is got in face ready, when differing confirm from described test page get ready data with from described contrast The data of getting ready of the page are that the page buried a little from difference gets request ready.
In a preferred embodiment of the invention, get test comparing unit 340 ready also to include:
Get data difference confirmation unit 343 ready, for test page described in comparison to get data ready right with described It is to get data difference ready from what the same page buried a little got request ready than the data of getting ready of the page;
Get test data sheet signal generating unit 344 ready, be used for recording described difference and get test ready to generate the page Data sheet.
Seeing Fig. 5, the page provided according to one preferred example of the present invention gets test system, Qi Zhongzhu ready Including:
1, Case manages module: get Case ready for management.User collects and gets Case ready, air exercise Point Case edits, administrator records etc..
2, system module is run: for the management of Web Driver, get the maintenance of Host ready.Case Operation mainly comprise simulation browser behavior, server two parts are got in camouflage ready.
3, Case performs module: mainly include the concurrently execution of Case, with the cookie of Case binding Arrange, task scheduling, and retrying after Case failure, the interception of Case and collection.
4, interpretation of result module is got ready: be used for generating visualization data sheet.The record page have issued Which is got ready, and which the contrast page have issued and get ready, and which the contrast that wherein the two page is got ready has not With.
5, timed task module: for regularly performing Case.(the every day with time of specifying as dimension / weekly etc.), perform to get ready Case, and data are got in contrast ready.
The page provided at this example is got the page running the present invention in test system and providing ready and is got test side ready Method, carries out the newly-increased configuration getting Case ready according to such as Fig. 6, is illustrated in figure 7 the mistake performing to get Case ready Journey, and check at interface as shown in Figure 8 and get result ready.
Visible, the page provided at the preferred embodiment shown in Fig. 5 is got ready in test system except realizing this The page of bright technical scheme is got ready and is also included timed task module outside each module needed for testing device, is used for Timing performs Case.With time of specifying as dimension (every day/weekly etc.), perform to get ready Case, and And contrast get data ready.And then according to the configured in advance of user, described comparing result can also be sent to The mailbox of user is so that user's checking and testing the further of test page and debugging.
Getting method of testing ready according to the page that various embodiments of the present invention provide, the page gets configuration letter before test ready Single, highly versatile, once configuration can be used for multiple times, when having any change for end before and after web page Regression test can be carried out in time and (after referring to have modified software, re-start test to confirm that amendment is not drawn Enter new mistake).
The page that the present invention provides gets method of testing, device, system ready in machine system environments calculated below Implement to be up to optimal implementation result:
Hardware: 64 servers;
Software: linux operating system, java running environment, Firefox31.0, Selenium2.44.0, Jpcap Language: Java.
Each embodiment that the present invention provides all can realize in modes such as software, hardware, firmwares.The most originally Invention is to realize with software, hardware or firmware mode, and instruction code may be stored in any type The addressable memorizer of computer in (the most permanent or revisable, volatibility or non-easily The property lost, solid-state or non-solid, fixing or removable medium etc.).Equally, deposit Reservoir can e.g. programmable logic array (Programmable Array Logic, be called for short " PAL "), Random access memory (Random Access Memory is called for short " RAM "), read-only storage able to programme Device (Programmable Read Only Memory is called for short " PROM "), read only memory (Read-Only Memory, be called for short " ROM "), Electrically Erasable Read Only Memory (Electrically Erasable Programmable ROM, be called for short " EEPROM "), disk, CD, digital versatile disc (Digital Versatile Disc, is called for short " DVD ") etc..
It should be noted that each unit mentioned in the present invention each equipment embodiment is all logical block, Physically, a logical block can be a physical location, it is also possible to be the one of a physical location Part, it is also possible to realize with the combination of multiple physical locations, the physics realization side of these logical blocks itself Formula is not most important, and the combination of the function that these logical blocks are realized is only the solution present invention and is carried The key of the technical problem gone out.Additionally, for the innovative part highlighting the present invention, the present invention is above-mentioned respectively to be set The unit the closest with solving technical problem relation proposed by the invention is not drawn by standby embodiment Entering, this is not intended that the said equipment embodiment does not exist other unit.
It should be noted that in the claim and description of this patent, such as the first and second grades it The relational terms of class is used merely to separate an entity or operation with another entity or operating space, And not necessarily require or imply and there is the relation of any this reality or suitable between these entities or operation Sequence.And, term " includes ", " comprising " or its any other variant are intended to comprising of nonexcludability, So that include that the process of a series of key element, method, article or equipment not only include those key elements, But also include other key elements being not expressly set out, or also include for this process, method, thing Product or the intrinsic key element of equipment.In the case of there is no more restriction, statement " include one " and limit Key element, it is not excluded that there is also other in including the process of key element, method, article or equipment Identical element.
Although by referring to some of the preferred embodiment of the invention, the present invention has been shown and Describe, but it will be understood by those skilled in the art that and can in the form and details it be made respectively Plant and change, without departing from the spirit and scope of the present invention.

Claims (18)

1. a page gets method of testing ready, it is characterised in that including:
Get operation ready in response to carry out at burying for test page or the contrast page, generate with described The test page that test page is corresponding gets request ready, or the contrast page corresponding with the described contrast page is got ready Request;
Intercept described test page get ready request or the described contrast page get request ready;
Collect and arrange respectively described test page to get ready request gets data and the described contrast page ready Get ready and request gets data ready;
Comparison gets data and the data of getting ready from the described contrast page ready from described test page Difference generates the page and gets test data sheet ready.
2. the page as claimed in claim 1 gets method of testing ready, it is characterised in that described in response to Get operation ready for what test page or the contrast page were carried out at burying, generate and described test page pair The test page answered gets request ready, or the contrast page corresponding to the described contrast page get ready request step it Before include:
Configure described test page or the reference address of the described contrast page;
Configure described test page or the described contrast page preset get rule ready;
Configure burying a little of described test page or the described contrast page.
3. the page as claimed in claim 2 gets method of testing ready, it is characterised in that
The described needs a little referring to pre-set on the page according to tentation data form that bury automatically send and get ready The position of request.
4. the page as claimed in claim 3 gets method of testing ready, it is characterised in that described in response to pin Get operation ready to what test page or the contrast page were carried out at burying, generate corresponding with described test page Test page get request ready, or the contrast page corresponding to the described contrast page get request ready step before Including:
Reference address according to described test page or the described contrast page generates at least one page and uniquely indicates Symbol is arranged in the cookie of the page;
Access described test page or the described contrast page, perform to get operation ready according to default rule of getting ready.
5. the page as claimed in claim 1 gets method of testing ready, it is characterised in that described in described interception Test page gets request ready or the described contrast page step of getting request ready includes:
The data server that the disguises oneself as described test page of interception gets request ready or the described contrast page is got ready and asked Ask.
6. the page as claimed in claim 1 gets method of testing ready, it is characterised in that described in described interception Test page gets request ready or the described contrast page step of getting request ready includes:
Monitor and intercept the transmitted data on network bag that the network interface card of place client sends, described network transmission number According to bag in comprise described test page get ready request or the described contrast page get request ready.
7. the page as claimed in claim 4 gets method of testing ready, it is characterised in that described collection also divides Do not arrange described test page get ready in request get data ready and the described contrast page is got ready in request The step getting data ready includes:
Get the cookie value differentiation of the page in request ready getting data ready according to the page is from described test sheets Face or the described contrast page;
Collect and arrange respectively and get data ready and from the described contrast page from described test page Get data ready.
8. the page as claimed in claim 1 gets method of testing ready, it is characterised in that described comparison from Described test page get ready data and from the described contrast page get ready data difference generate the page The step getting test data sheet ready includes:
Comparison gets data and beating from the described contrast page ready respectively from described test page one by one Point data, it is judged that described in get the access request parameters of data ready the most identical;
If identical, then confirm from described test page get ready data with from the described contrast page Getting data ready is to get request ready from the same page buried a little, if it is not the same, then confirm from described survey The data of getting ready of the examination page are to beat from the different pages buried a little from the data of getting ready from the described contrast page Point request.
9. the page as claimed in claim 8 gets method of testing ready, it is characterised in that described comparison from Described test page get ready data and from the described contrast page get ready data difference generate the page The step getting test data sheet ready also includes:
The data of getting ready getting data and the described contrast page ready of test page described in comparison are to bury from same The page of point gets the difference getting data ready of request ready;
Record described difference and get test data sheet ready to generate the page.
10. get method of testing ready according to the page as described in claim 1 to 9 any claim, its It is characterised by,
Described test page refers to be in the page of development phase or be positioned at the page of pre-publisher server;
The described contrast page refers to be in the page of production environment.
11. 1 kinds of pages get test device ready, it is characterised in that including:
The page gets request signal generating unit ready, in response to for test page or the contrast page at burying Carry out gets operation ready, generates the test page corresponding with described test page and gets request ready, or with described The contrast page that the contrast page is corresponding gets request ready;
The page gets request interception unit ready, is used for intercepting described test page and gets request or described contrast page ready Request is got in face ready;
Get data collection ready and arrange unit, get ready in request for collecting and arranging described test page respectively Get data ready and the described contrast page is got ready and is got data ready in request;
Get test comparing unit ready, for comparison getting data ready and coming from described test page Generate the page from the difference getting data ready of the described contrast page and get test data sheet ready.
12. pages as claimed in claim 11 get test device ready, it is characterised in that also include:
Test case dispensing unit, for configuration testing use-case.
13. pages as claimed in claim 12 get test device ready, it is characterised in that described test is used Example dispensing unit includes:
First subelement, configures described test page or the reference address of the described contrast page;
Second subelement, configure described test page or the described contrast page preset get rule ready;
3rd subelement, configures burying a little of described test page or the described contrast page.
14. pages as claimed in claim 11 get test device ready, it is characterised in that the described page is beaten Point request interception unit includes:
4th subelement, the data server that is used for disguising oneself as intercepts described test page and gets request or described ready The contrast page gets request ready;And/or
5th subelement, for monitoring and intercept the transmitted data on network bag that the network interface card of place client sends, Described transmitted data on network bag comprises described test page get ready request or the described contrast page get ready please Ask.
15. pages as claimed in claim 11 get test device ready, it is characterised in that also include:
Page iden-tity signal generating unit, for according to described test page or the reference address of the described contrast page Generate in the cookie that at least one page unique identifier arranges the page.
16. get test device as claimed in claim 11 ready, it is characterised in that also include:
Get operation execution unit ready, be used for accessing described test page or the described contrast page, according to presetting Get ready rule perform get operation ready.
17. get test device as claimed in claim 11 ready, it is characterised in that described in get test number ready Also include according to comparing unit:
Get data determining unit ready, for comparison one by one respectively from described test page get ready data with And get data ready from the described contrast page, it is judged that described in get the access request parameters whether phase of data ready With;
Get data validation unit ready, for confirming from described when getting data determining unit ready and judging identical The data of getting ready of test page are from the same page buried a little with the data of getting ready from the described contrast page Get request ready, when differing confirm from described test page get ready data with from described contrast page The data of getting ready in face are that the page buried a little from difference gets request ready.
18. get test device as claimed in claim 11 ready, it is characterised in that get test data ratio ready Unit is also included:
Get data difference confirmation unit ready, get data and described contrast ready for test page described in comparison The data of getting ready of the page are to get data difference ready from what the same page buried a little got request ready;
Get test data sheet signal generating unit ready, be used for recording described in get data difference ready and beat to generate the page Point test data sheet.
CN201510257859.5A 2015-05-19 2015-05-19 The page gets test method and device ready Active CN106294101B (en)

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 true CN106294101A (en) 2017-01-04
CN106294101B 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)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106953740A (en) * 2017-01-24 2017-07-14 阿里巴巴集团控股有限公司 The processing method of page access data, client, server and system in
CN107092488A (en) * 2017-03-31 2017-08-25 武汉斗鱼网络科技有限公司 It is a kind of that application is carried out to bury realization method and system a little without intrusionization
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
CN107295088A (en) * 2017-06-29 2017-10-24 广东神马搜索科技有限公司 Get information monitoring method, device and client ready
CN107870860A (en) * 2017-05-05 2018-04-03 平安科技(深圳)有限公司 Bury a checking system and method
CN108319552A (en) * 2018-02-07 2018-07-24 优信数享(北京)信息技术有限公司 One kind burying a test method, apparatus and system
CN108536438A (en) * 2018-04-10 2018-09-14 武汉斗鱼网络科技有限公司 Processing user behavior data gets module, method and computer-readable medium ready
CN108595168A (en) * 2018-03-30 2018-09-28 武汉斗鱼网络科技有限公司 Automatically dotting method, apparatus, readable storage medium storing program for executing and equipment
CN109960644A (en) * 2017-12-22 2019-07-02 北京奇虎科技有限公司 A kind of test method and system of SDK
CN110362498A (en) * 2019-07-24 2019-10-22 杭州安恒信息技术股份有限公司 Test method, device and the server of page hot spot
CN110717130A (en) * 2018-06-27 2020-01-21 武汉斗鱼网络科技有限公司 Dotting method, dotting device, dotting terminal and storage medium
CN110941608A (en) * 2019-09-29 2020-03-31 北京思维造物信息科技股份有限公司 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
CN112002021A (en) * 2020-10-30 2020-11-27 成都四方伟业软件股份有限公司 Aggregation dotting visualization method and device based on unity3d
CN113448832A (en) * 2020-06-18 2021-09-28 北京新氧科技有限公司 Control exposure detection method and application program operation monitoring system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090006995A1 (en) * 2003-03-04 2009-01-01 Omniture, Inc. Associating Website Clicks With Links On A Web Page
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090006995A1 (en) * 2003-03-04 2009-01-01 Omniture, Inc. Associating Website Clicks With Links On A Web Page
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

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106953740A (en) * 2017-01-24 2017-07-14 阿里巴巴集团控股有限公司 The processing method of page access data, client, server and system in
CN107092488A (en) * 2017-03-31 2017-08-25 武汉斗鱼网络科技有限公司 It is a kind of that application is carried out to bury realization method and system a little without intrusionization
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
CN107870860A (en) * 2017-05-05 2018-04-03 平安科技(深圳)有限公司 Bury a checking system and method
CN107295088A (en) * 2017-06-29 2017-10-24 广东神马搜索科技有限公司 Get information monitoring method, device and client ready
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
CN108536438A (en) * 2018-04-10 2018-09-14 武汉斗鱼网络科技有限公司 Processing user behavior data gets module, method and computer-readable medium ready
CN108536438B (en) * 2018-04-10 2021-11-09 武汉斗鱼网络科技有限公司 Dotting module, method and computer readable medium for processing user behavior data
CN110717130A (en) * 2018-06-27 2020-01-21 武汉斗鱼网络科技有限公司 Dotting method, dotting device, dotting terminal and storage medium
CN110717130B (en) * 2018-06-27 2022-11-11 武汉斗鱼网络科技有限公司 Dotting method, dotting device, dotting terminal and storage medium
CN110362498A (en) * 2019-07-24 2019-10-22 杭州安恒信息技术股份有限公司 Test method, device and the server of page hot spot
CN110362498B (en) * 2019-07-24 2023-08-15 杭州安恒信息技术股份有限公司 Page hot spot testing method and device and server
CN110941608A (en) * 2019-09-29 2020-03-31 北京思维造物信息科技股份有限公司 Method, device and equipment for generating buried point analysis and funnel analysis report
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
CN113448832A (en) * 2020-06-18 2021-09-28 北京新氧科技有限公司 Control exposure detection method and application program operation monitoring system
CN113448832B (en) * 2020-06-18 2024-03-12 北京新氧科技有限公司 Control exposure detection method and application program operation monitoring system
CN112002021A (en) * 2020-10-30 2020-11-27 成都四方伟业软件股份有限公司 Aggregation dotting visualization method and device based on unity3d

Also Published As

Publication number Publication date
CN106294101B (en) 2019-08-23

Similar Documents

Publication Publication Date Title
CN106294101A (en) The page gets method of testing and device ready
US11444856B2 (en) Systems and methods for configuring a resource for network traffic analysis
CN107562620B (en) Automatic buried point setting method and device
Choudhary et al. X-PERT: Accurate identification of cross-browser issues in web applications
Gupta et al. PHP-sensor: a prototype method to discover workflow violation and XSS vulnerabilities in PHP web applications
US8656006B2 (en) Integrating traffic monitoring data and application runtime data
US8402131B2 (en) Hierarchy for characterizing interactions with an application
Cohen et al. Capturing, indexing, clustering, and retrieving system history
US7953850B2 (en) Monitoring related content requests
CN102946319B (en) Networks congestion control information analysis system and analytical method thereof
US20030053420A1 (en) Monitoring operation of and interaction with services provided over a network
CN108304498A (en) Webpage data acquiring method, device, computer equipment and storage medium
CN102831218B (en) Method and device for determining data in thermodynamic chart
CN105490854A (en) Real-time log collection method and system, and application server cluster
CN104348658A (en) Fault report generation method and system thereof
CN105446706A (en) Method and device for evaluating form page usage effect and providing originality data
Reddy et al. Preprocessing the web server logs: an illustrative approach for effective usage mining
CN101304347A (en) Method for monitoring Flash cartoon access information and apparatus for access information acquisition
CN105450462B (en) The monitoring method and system of presence
CN103618761B (en) Method and browser for processing cookie information
CN108388796A (en) Dynamic domain name verification method, system, computer equipment and storage medium
CN112131085A (en) Method, system and device for recording and playing back Internet business process
CN112446030B (en) Method and device for detecting file uploading vulnerability of webpage end
Khalid On the link between mobile app quality and user reviews
CN106095946B (en) Page processing method and device

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