CN106294101A - Page tracking test method and apparatus - Google Patents

Page tracking test method and apparatus 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
page
test
rbi
data
request
Prior art date
Application number
CN201510257859.5A
Other languages
Chinese (zh)
Inventor
朱海勇
刘威
Original Assignee
阿里巴巴集团控股有限公司
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 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Priority to CN201510257859.5A priority Critical patent/CN106294101A/en
Publication of CN106294101A publication Critical patent/CN106294101A/en

Links

Abstract

Embodiments of the invention provide a page tracking test method and apparatus. The method comprises the steps of generating a test page tracking request corresponding to a test page or a comparison page tracking request corresponding to a comparison page in response to a tracking operation performed for the test page or the comparison page at an embedded element; intercepting the test page tracking request or the comparison page tracking request; collecting and arranging tracking data in the test page tracking request and tracking data in the comparison page tracking request; and comparing differences of the tracking data from the test page and the tracking data from the comparison page to generate a page tracking test data report. According to the webpage test method and apparatus provided by the embodiments of the invention, the correctness of the tracking data is tested by performing the tracking operation on the test page and the comparison page, and the tracking data is automatically monitored and tested, so that the reliability of the tracking test data is effectively ensured.

Description

页面打点测试方法和装置 Test Method and apparatus Page RBI

技术领域 FIELD

[0001] 本发明涉及网页测试领域,尤其是一种页面打点测试方法和装置。 [0001] The present invention relates to the field of website testing, in particular to a method and apparatus for testing dot page.

背景技术 Background technique

[0002] 在互联网的网页测试技术领域中,存在使用打点的方式来拦截页面打点请求并收集用户对网页的各种浏览和操作行为的需求。 [0002] In the field of web testing technology of the Internet, there are ways to use RBI intercept and collect the user requests a page RBI various browsers and operating behavior of a web page needs. 所述“打点”是指对于web页面(万维网上的一种按照HTML格式组织起来的文件。在通过万维网进行信息查询时,以信息页面的形式出现,它可包括图形、文字、声音和视像等信息。)类型的互联网产品,用户访问页面时,通过数据服务器拦截页面打点请求并收集包含用户行为和页面展示效果的网络请求的数据,从而可以根据产品的关注点的不同,来拦截页面打点请求并收集感兴趣的打点数据。 The "dot" refers to a web page (s World Wide Web. When information via the World Wide Web, a page of information in the form of HTML files according to the organized format, which can include graphics, text, audio and video and other information.) types of Internet products, a user accesses a page through the data server intercepts the request page RBI and collect contains data on user behavior and web page showing the effect of the request, which can, depending on the focus of the product, to intercept page RBI RBI request and collect data of interest. 其中,用户行为包括:浏览了哪些页面,点击了哪些元素等;页面展示效果包括:页面展示了哪些元素,元素在页面中的位置等。 Wherein the user behavior include: through the various pages, click on which elements such as; page display of results include: the page shows the location of which elements, and other elements on the page. 数据服务器拦截页面打点请求并收集到这些打点数据后,通过一定的方式聚合,分析产生出数据报表,例如页面展示次数,有多少用户看到过这个页面,页面元素点击次数、点击率、点击产生的交易量,用户的地理位置分布和年龄层分布等。 After the data server intercepts the request and page RBI RBI to collect these data, through a certain way of aggregating, analyzing data to produce a report, such as page impressions, how many users have seen this page, the page element clicks, CTR, clicks trading volume, the user's geographical distribution and age distribution. 这些报表可以为页面样式,产品发展方向,营销活动等提供重要数据支持,为决策人提供直观的决策依据,同时对网站拦截页面打点请求并收集用户信息、用户群体,加强沟通,提高和改进网站建设具有重要意义。 These reports can provide important data to support a page style, product development, marketing activities and provide an intuitive decision-making basis for decision-makers, while the RBI website blocking page request and collect user information, user groups, strengthen communication, enhance and improve website construction of great significance.

[0003] 然而,互联网产品的需求日新月异,经常会产生产品测试需求变动,例如新增打点类型,更换打点方式,新增、删除或修改业务功能,页面样式调整等。 [0003] However, the demand for Internet products with each passing day, often generating product testing needs change, such as new types of RBI, RBI way to replace, add, delete or modify business functions, page style adjustment. 这些变动都有可能导致页面打点发生一些预料之外的变化,例如页面打点请求发送失败,打点数据没有包含必要的数据,重复打点等,这些变化就会导致数据服务器接收不到打点数据,或者说接收到错误的打点数据,进而影响到产品的数据报表。 These changes are likely to lead to some unexpected changes occur RBI page, such as page request fails RBI, RBI data does not contain the necessary data, repeat the RBI, these changes will lead to RBI data server is not receiving data, or RBI received erroneous data, thereby affecting the product's data report.

[0004]目前大多数页面打点测试方案主要在数据拦截页面打点请求并收集以及数据报表的展现方面进行改进,例如目前,国内常用的统计网站有CNZZ、511a、百度统计、51yes、SiteFlow等,一些大型网站还会开发定制自己的打点数据报表。 [0004] Most pages RBI testing program primarily at RBI data interception page request and collect and report data to show the aspects of improvement, such as the current domestic commonly used statistical site CNZZ, 511a, Baidu statistics, 51yes, SiteFlow and so on, some of the large sites will also develop their own custom reports RBI data. 然而,如果出现打点错误,则只有等到数据报表发生异常变动,例如一个打点指标突然大幅上升或下降时,才能发现问题,而这个时候,有可能正确的打点数据是很难找回的,给打点数据带来了不可修正的误差。 However, if the RBI error occurs, only data until a report abnormal changes, such as a sudden sharp rise or fall RBI indicators to identify problems, but this time, it is possible to correct the RBI data is difficult to recover, giving RBI data brought the uncorrectable error.

发明内容 SUMMARY

[0005] 针对现有技术的不足,本发明的目的在于提供一种页面打点测试方法和装置,对打点数据进行测试和监控,提高打点测试数据的准确性和可靠性。 [0005] for the deficiencies of the prior art, an object of the present invention is to provide a method and apparatus for testing a page RBI, RBI and monitoring test data, improve the accuracy and reliability of test data RBI.

[0006] 为解决上述技术问题,本发明的实施方式公开了一种页面打点测试方法,包括: [0006] To solve the above problems, embodiments of the present invention discloses a method of testing the page RBI, comprising:

[0007] 响应于针对测试页面或对比页面在埋点处进行的打点操作,生成与所述测试页面对应的测试页面打点请求,或与所述对比页面对应的对比页面打点请求; [0007] The test operation in response to a page or striking contrast pages buried at a point, generates a page corresponding to the test dot test page request, the page or pages corresponding striking contrast to the Comparative request;

[0008] 拦截所述测试页面打点请求或所述对比页面打点请求; [0008] intercepting the request or the test page striking striking contrast page request;

[0009] 收集并分别整理所述测试页面打点请求中的打点数据以及所述对比页面打点请求中的打点数据; [0009] were collected and organize the data page RBI RBI test request data and the comparative RBI RBI page request;

[0010] 比对来自所述测试页面的打点数据以及来自所述对比页面的打点数据的差异生成页面打点测试数据报表。 [0010] than the striking difference data from the test page and a dot data from the page generating comparative test data pages RBI report.

[0011] 本发明的实施方式还公开了一种页面打点测试装置,包括: [0011] Embodiment of the present invention also discloses a testing device RBI page, comprising:

[0012] 页面打点请求生成单元,用于响应于针对测试页面或对比页面在埋点处进行的打点操作,生成与所述测试页面对应的测试页面打点请求,或与所述对比页面对应的对比页面打点请求; [0012] RBI page request generating unit, in response to an operation performed at the striking point for testing embedded page or pages contrast, the corresponding page generating the test dot test page request, the page or contrast corresponding to the comparison RBI page request;

[0013] 页面打点请求拦截单元,用于拦截所述测试页面打点请求或所述对比页面打点请求; [0013] RBI page request intercepting means for intercepting the request or the test page striking striking contrast page request;

[0014] 打点数据收集整理单元,用于收集并分别整理所述测试页面打点请求中的打点数据以及所述对比页面打点请求中的打点数据; [0014] RBI collected data unit, respectively, for collecting and sorting the test dot dot data page request and the page data comparison RBI RBI request;

[0015] 打点测试数据比对单元,用于比对来自所述测试页面的打点数据以及来自所述对比页面的打点数据的差异生成页面打点测试数据报表。 [0015] RBI test data comparing means for comparing the difference data from the test dot and dot data pages from the page generating comparative test data pages RBI report.

[0016] 与现有技术相比,本发明实施方式所述的网页测试方法和装置通过对测试页面和对比页面进行打点操作,测试打点数据的正确性,实现对打点数据进行自动监控和测试,有效保障了打点测试数据的可靠性。 [0016] Compared with the prior art, the method and apparatus of page tests embodiment of the present invention by the test page and pages RBI comparison operation, the accuracy of the test dot data, dot data to achieve automatic monitoring and testing, RBI effectively protect the reliability of the test data.

附图说明 BRIEF DESCRIPTION

[0017] 图1是本发明第一实施例提供的页面打点测试方法的流程示意图; [0017] FIG. 1 is a flow page RBI testing method provided in the present invention, a schematic view of a first embodiment;

[0018] 图2是本发明第二实施例提供的页面打点测试方法的流程示意图; [0018] FIG. 2 is a second flow page dot test method according to an embodiment of the present invention, a schematic view;

[0019] 图3是本发明第三实施例提供的页面打点测试装置的结构示意图; [0019] FIG. 3 is a schematic diagram of the test apparatus RBI page provided by a third embodiment of the present invention;

[0020]图4是本发明第四实施例提供的页面打点测试装置的结构示意图; [0020] FIG. 4 is a schematic structural diagram of the fourth page dot test apparatus according to an embodiment of the present invention;

[0021]图5是本发明的一个优选实例提供的页面打点测试系统; [0021] FIG. 5 is a page dot test system a preferred embodiment of the present invention provides;

[0022]图6是根据图5所示的本发明提供的一个优选实例的页面打点测试系统进行新增打点Case的配置的界面效果图; [0022] FIG. 6 is a diagram illustrating a configuration interface effects of the new page RBI RBI Case according to a preferred embodiment of the test system of the present invention is provided in FIG 5;

[0023]图7是根据图5所示的本发明提供的一个优选实例的页面打点测试系统执行打点Case的过程的界面效果图; [0023] FIG. 7 is a screen rendering process is performed based on the page RBI RBI Case of a preferred embodiment of the test system of the present invention shown in FIG. 5 provided;

[0024]图8是根据图5所示的本发明提供的一个优选实例的页面打点测试系统查看打点结果的界面效果图。 [0024] FIG. 8 is a view based on a result page RBI RBI preferred example of a test system of the present invention shown in Figure 5 provides an interface effect FIG.

具体实施方式 Detailed ways

[0025] 在以下的叙述中,为了使读者更好地理解本申请而提出了许多技术细节。 [0025] In the following description, in order to enable the reader to better understand the application and made many technical details. 但是,本领域的普通技术人员可以理解,即使没有这些技术细节和基于以下各实施方式的种种变化和修改,也可以实现本申请各权利要求所要求保护的技术方案。 However, those of ordinary skill in the art can be appreciated, without these technical details and various changes and modifications based on the following embodiments, the present application may also be implemented as claimed in claim various technical solution.

[0026] 为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明的实施方式作进一步地详细描述。 [0026] To make the objectives, technical solutions, and advantages of the present invention will become apparent in conjunction with the following drawings, embodiments of the present invention will be described in further detail. 本申请涉及的测试页面是指尚未正式发布的网页页面,例如处于开发阶段的网页页面或者预发布的网页页面。 This application relates to a test page refers to the web page has not been officially released, for example in web page development stage or pre-release of the web page. 而对比页面是指处于生产环境的页面。 The comparison page refers to a page in a production environment. 其中,生产环境是指网页页面发布后,与网页页面相关的软件运行的软件和硬件环境,生产环境可以处理用户对网页页面发出的请求。 Among them, the production environment is the web page publishing, web page associated with the software running the software and hardware environment, the production environment can handle requests issued by the user on the web page.

[0027] 参见图1,图1是本发明第一实施例提供的页面打点测试方法的流程示意图。 [0027] Referring to FIG. 1, FIG. 1 is a schematic flow diagram of the test method according to a first page RBI embodiment of the present invention. 图1示出的页面打点测试方法包括步骤S101-S104。 Test Method RBI page shown in FIG. 1 comprising the steps of S101-S104.

[0028] 在步骤SlOl中,响应于针对测试页面或对比页面在埋点处进行的打点操作,生成与所述测试页面对应的测试页面打点请求,或与所述对比页面对应的对比页面打点请求。 [0028] In step SlOl, in response to the operation performed at the RBI Buried test for comparison page or pages, corresponding to the page to generate the test dot test page request, the page or pages corresponding striking contrast to the Comparative request .

[0029] 其中,打点操作是指用户对网页的操作,包括但不限于打开一个网页页面、点击网页页面中的一个页面元素等。 [0029] wherein the striking operation is a user operation for a web page, including but not limited to open a web page, clicking on a web page in the page elements, and the like. 在本发明的一个实例中,通过在网页测试服务器上运行的程序代码调用Selenium Web Driver自动打开浏览器客户端,Selenium Web Driver是一套能用于模拟打开浏览器客户端的web应用程序测试工具,可以提供模拟浏览器行为的方法供开发者调用,例如可以模拟用于浏览网页页面、点击网页页面元素等操作的开源框架。 In one example of the present invention, program code running on the web server invokes a test Selenium Web Driver automatically open the browser client, Selenium Web Driver can be used to simulate a web application testing tool to open the browser client, simulate browser behavior may provide a method for developers to call, for example, can be used to simulate browsing the web page, click on the open-source framework for the operation of the web page elements and so on. 根据所述测试页面或所述对比页面的访问地址生成至少一个唯一标示符设置到浏览器客户端的页面的cookie (通常指网站为了辨别用户身份、进行sess1n跟踪而储存在用户本地终端上的数据)中,访问所述测试页面或所述对比页面,然后,浏览器客户端根据开发者(例如:前端工程师)预设的打点规则模拟执行打点操作,具体可以是使用Web Driver程序代码自动点击指定的Xpath,分别对测试页面和对比页面执行指定的行为,预设的打点规则在配置打点测试用例时定义好。 The comparative test page or the page access address generating at least one unique identifier provided to the client browser page in accordance with a cookie (generally refers to the site to identify the user identity data, for tracking purposes sess1n stored on the user's local terminal) in accessing the test page or pages of the comparison, then, according to the client browser developer (for example: the front end engineer) performs analog preset rule RBI RBI operation, specifically using Web Driver program code for automatically clicks designated xpath, respectively, to perform the specified behavior of the test pages and pages contrast, pre-defined rule RBI RBI when configuring good test case. 具体地,在打开所述测试页面和所述对比页面之前,程序会调用Web Driver将cookie设置到测试页面和对比页面,测试页面和对比页面分别对应一个cookie,且分别只有一个cookie。 Specifically, before opening the page and the comparative test page, invokes the Web Driver cookie provided to the test page and page comparison, comparative test page and the page respectively correspond to a cookie, and were only a cookie. Xpath是指html页面上元素的坐标,一个Xpath能定位到一个唯一的元素(例如一个按钮),点击Xpath就是指点击一个页面元素(例如点击某个按钮)。 Xpath refers to the coordinates on the html page elements, a Xpath able to locate a single element (such as a button), click Xpath refers click on a page element (such as clicking a button).

[0030] 其中,埋点是指由开发者根据预定数据格式在例如html页面上预先设置的需要自动发送打点请求的位置。 [0030] wherein, buried point refers to the position to be automatically transmitted by the developer in accordance with a predetermined data format set in advance on the html page e.g. RBI request. 所述预定数据格式是http请求协议中固有的。 Said predetermined data format is http request protocol inherent. 当在页面上的某个打点操作(例如点击一个页面上的按钮或展示一些页面元素)触发了一个埋点时,则自动生成与该页面对应的打点http请求,该http请求包含了所述打点操作信息,即指定的行为信息。 When a dot on a page operation (e.g., click a button on a page or pages show some of the elements) triggers a Buried, RBI http request generated automatically corresponding to the page that contains the http request RBI operational information, which specifies the behavior information. 例如浏览器客户端可以通过脚本(JS)异步发出打点http请求。 For example, a browser client can send out RBI http request by the script (JS) asynchronous.

[0031] 在步骤S102中,拦截所述测试页面打点请求或所述对比页面打点请求。 [0031] In step S102, intercepting the request or the test page striking contrast RBI page request.

[0032] 具体地,网页测试服务器伪装成数据服务器拦截所述测试页面打点请求或所述对比页面打点请求。 [0032] In particular, the test server masquerading web server data request intercepting the striking test page or pages of the striking contrast request. 网页测试服务器通过绑定打点请求主机的方式将自己伪装成数据服务器(例如一个埋点发出的http请求是http:"www.abc.com ? click = l&v = 2...,测试服务器绑定www.abc.com,将其指向测试服务器127.0.0.1,这样所有发给www.abc.com的请求都会发给测试服务器,测试服务器就可以拦截到这个埋点发出的数据了) ο所述数据服务器是预先设置埋点时指定的打点请求的主机地址。这样,原本发送给数据服务器的数据发送给了伪装成的数据服务器,即网页测试服务器。 Web server test by way of binding RBI requesting host will disguise itself as a data server (for example, http request sent by a buried point is http:? "Www.abc.com click = l & v = 2 ..., www test server bindings .abc.com, which point to a test server 127.0.0.1, so that all of the issued requests are sent www.abc.com test server, the test server can intercept the data sent by the buried) o the data server is specified when the preset buried RBI host address request. Thus, the data originally sent to the data server transmits the data to the server disguised, i.e. web test server.

[0033] 在步骤S103中,收集并分别整理所述测试页面打点请求中的打点数据以及与所述对比页面打点请求中的打点数据; [0033] In step S103, finishing the test were collected and RBI RBI data page requests and page data RBI RBI comparison with the request;

[0034] 其中,打点请求中的打点数据包括页面点击的位置,点击的元素,页面版本,浏览器版本等等一系列数据。 [0034] where RBI RBI data request including the location of the page, click, click of the elements, page version, browser version, and so on a series of data.

[0035] 在本发明的一个优选实施例中,在所述网页测试服务器中整理拦截到的测试页面打点请求或对比页面打点请求中的打点数据。 [0035] In a preferred embodiment of the present invention, the web server finishing the test the intercepted request or comparative test page RBI RBI RBI page data request.

[0036] 在本发明的一个实例中,根据步骤SlOl中设置的页面打点请求中的页面的cookie值区分打点数据是来自所述测试页面还是所述对比页面,收集并分别整理那些在步骤S102中拦截到的来自所述测试页面的打点数据以及来自所述对比页面的打点数据。 [0036] In one embodiment of the invention, the distinguishing data according to RBI RBI page request cookie value set in the step SlOl is a page or pages from the comparison of the test page, and are collected in a finishing step S102 that RBI intercepted data from the test page and a dot data from the comparison of the page. cookie值是打开页面之前由程序代码设置到页面中的,这个cookie值用来区分打点测试的测试用例和打点页面的。 Before opening the cookie value is provided by the program code to the page, the page cookie values ​​used to distinguish the test cases and RBI RBI pages. 例如,打点Case A要测试两个页面,一个对比页面,指处于生产环境的页面,一个是测试页面,指处于开发阶段的页面或者位于预发布服务器的页面。 For example, to test two RBI Case A page, a page contrast, refers to the page in a production environment, a test page, refer to the page or in the development stage of the page pre-release server. 这个时候,打开生产环境的页面时设置的cookie值是origin:1 (origin:表示生产环境,I表示Case A的ID),打开测试环境的页面时设置的cookie值是compare:1。 This time, cookie values ​​set when you open the page of the production environment is origin: 1 (origin: indicate the production environment, I express ID Case A's), cookie values ​​set when you open the pages of the test environment is compare: 1. 这个cookie值在发出打点http请求的时候,会带在http请求的信息中。 The RBI issued the cookie value when the http request, will bring in information http request. 这样,打点测试服务器收到打点数据之后就可以根据cookie值的不同,整理和过滤出是哪个测试用例的哪个页面发出了这个页面打点请求,然后对收到的属于同一个测试用例中的同一个页面的打点数据做合并,分别整理成测试页面打点数据包以及对比页面打点数据包。 In this way, after receiving the test server RBI RBI data can be based on different cookie values, sorting and filtering out any page in which test cases of this page RBI issued the request, then part of the same with a test case for the receipt of RBI data pages do merge, are organized into data packets and test page RBI RBI comparison page packet. 可以理解为:有两个池子,一个池子是放来自测试页面的打点数据的,一个池子是放来自对比页面的打点数据的。 Can be understood as: There are two pool, a pond is ready to put the data from the test page, the pond is a comparison of the data from the RBI to put the page. 当一个打点请求被测试服务器拦截到之后,服务器根据cookie来把打点数据放到它对应的池子里去。 When a request is intercepted RBI test server, the server cookie according to the dot data into its corresponding pool go. 都放完之后,就可以把两个池子里的数据拿出来对比。 After all is done and you can put two out of the pool of data to compare.

[0037] 在本发明的一个优选实例中,一个测试用例包括两种页面,一种是测试页面,一种是对比页面。 [0037] In a preferred embodiment of the present invention, a test case comprises two pages A test page is a page are comparative. 做数据合并是指合并测试页面或对比页面执行完指定的行为(点击xpath)之后的数据。 For data consolidation refers to the data after the merger test page or pages executing the contrast behavior specified in (click xpath). 当指定的xpath是一个链接时,这时点击xpath会打开另一个页面,也就是说在执行过程可能会打开多于一个页面。 When the specified xpath is a link, then click on the xpath will open another page, that may open more than one page in the implementation process. 例如一个测试用例配置了两个页面A(测试页面)和α (对比页面),配置的xpath是一个链接,A页面点击这个xpath会去到B页面,α页面点击这个xpath会去到β页面,那么数据收集合并的情况就是: For example, a test page is configured with two A (test page) and [alpha] (Comparative page), is a link configuration xpath, A xpath click on the page will go to the page B, [alpha] xpath page click on the page will go to β, then the situation of data collection is merged:

[0038] A页面_>点击xpath->B页面,这个过程中发出的所有的打点数据收集起来合并之后即为这个测试用例的测试页面发出的打点数据,将其整理成测试页面打点数据包。 [0038] A page _> Click xpath-> B page, all the dot data issued during this dot data collected after the merger test is the test page issued to organize it into a test page RBI packet.

[0039] α页面-> 点击Xpath->i3页面,这个过程中发出的所有的打点数据收集起来合并之后即为这个测试用例的对比页面发出的打点数据,将其整理成对比页面打点数据包。 [0039] α page -> Click Xpath-> i3 page, all the dot data issued during this dot data collected after the merger test is the comparison of the emitted page, the page will finish its striking contrast to the packet.

[0040] 在步骤S104中,比对来自所述测试页面的打点数据以及来自所述对比页面的打点数据的差异生成页面打点测试数据报表。 [0040] In step S104, the striking difference in comparison of the test data from the page and a dot data from the page generating comparative test data pages RBI report.

[0041] 具体地,首先逐条比对分别来自所述测试页面与来自所述对比页面的打点数据,判断所述打点数据的访问请求参数是否相同,所述访问请求参数指打点http请求的数据,包括http请求的url,参数个数,参数类型。 [0041] Specifically, first, one by one from each of the test compared with the page from the page RBI comparison data, determines the dot data access request parameters are the same, the parameter refers to dot data access request http request, including url, the number of parameters, parameter types http request. 如果相同,则确认来自所述测试页面的打点数据与来自所述对比页面的打点数据是来自同一埋点的页面打点请求,如果不相同,则确认来自所述测试页面的打点数据与来自所述对比页面的打点数据是来自不同埋点的页面打点请求。 If the same, it is confirmed from the test page of dot data and the dot data from RBI comparison page is a page requests from the same point buried, if not identical, it is confirmed from the dot data from the test page and comparison of the data page is RBI RBI page requests from different points buried. 然后,比对来自所述测试页面的打点数据与来自所述对比页面的打点数据是来自同一埋点的页面打点请求的打点数据的差异。 Then, the dot data from the test page is compared with the dot data from said dot contrast difference page is a page of data from the same dot Buried requests. 最后,记录所述差异以生成页面打点测试数据报表。 Finally, recording the difference data to generate a test report page RBI.

[0042] 在本发明的一个实例中,步骤S103生成的测试页面打点数据包与对比页面打点数据包分别是两个集合。 [0042] In one embodiment of the invention, the test page generated in step S103 RBI RBI packet Comparative page are two sets of data packets. 例如测试页面发出了15个打点请求(集合A),对比页面发出了16个打点请求(集合B)。 E.g. test page request sent RBI 15 (set A), compare page 16 issued a request RBI (set B). 首先取A在B中的相对补集,找到对比页面有而测试页面没有的打点,然后取B在A中的相对补集,找到测试页面有而对比页面没有的打点。 First, take the relative complement of A in B, to find the comparison test page has no page RBI, then take the relative complement of B in A, while the comparative find the test page has no page RBI. 如果这两个补集有一个不为空,或者都不为空,那么则判定为两次打点数据不一致,不一致的打点数据即为差异。 If these two have a complementary set is not empty or not empty, then it is determined that the two are inconsistent dot data, the dot data inconsistency is the difference. 最后,记录这些差异的打点数据以生成页面打点测试数据报表。 Finally, the RBI data record for these differences in order to generate the page RBI test data report.

[0043] 根据本发明第一实施例提供的页面打点测试方法,当用户配置好测试用例后可实现自动对页面进行打点测试,并且对打点数据进行自动监控。 [0043] The page dot test method according to a first embodiment of the present invention, when a user may be configured to automatically test page RBI, RBI and monitored automatically after test data. 一方面大大减少了人工校验测试数据而产生的误差风险,另一方面减少了测试人力成本。 On the one hand greatly reducing the manual calibration test data generated by the risk of error, on the other hand reduces test labor costs.

[0044] 参见图2,图2是本发明第二实施例提供的页面打点测试方法的流程示意图。 [0044] Referring to FIG. 2, FIG. 2 is a schematic flow diagram of a test method for a second embodiment of the dot pages provided by the present invention. 本申请的第二实施例包括步骤S201-步骤S204。 The second embodiment of the present application comprises the step S201- step S204. 其中,步骤S201与第一实施例中的步骤SlOl相同,步骤S203、S204分别与第一实施例中的步骤S103、S104相同,此处均不再进行赘述,仅步骤S102与步骤S202不同。 Wherein the same as steps SlOl step S201 in the first embodiment, the steps S203, S204, respectively in step S103 of the first embodiment, the same as S104, here were no longer repeated, only step S102 and step S202 are different.

[0045] 在步骤S202中,拦截所述测试页面打点请求或所述对比页面打点请求。 [0045] In step S202, intercepting the request or the test page striking contrast RBI page request.

[0046] 监听并拦截网页测试服务器的网卡发出的网络传输数据包,所述网络传输数据包中包含与所述测试页面对应的包含打点数据的测试页面打点请求,或与所述对比页面对应的包含打点数据的对比页面打点请求。 [0046] Network monitor and intercept data packets transmitted page test card issuing server, the network comprising transport packets corresponding to the test page comprising a dot dot test page request for data, or the comparison of the page corresponding to Comparative comprising RBI RBI page data request. 例如,可以使用Jpcap (—套开源的用Java编写的网络数据包捕获应用程序,提供抓取流过网卡网络数据包的方法供开发者调用)监听并拦截网卡发出的TCP/IP数据包。 For example, you can use Jpcap (- set of open source written in Java network packet capture application that provides a method to fetch data flowing through the network card package for developers call) monitor and intercept TCP / IP packets sent by the card.

[0047] 根据本发明第二实施例提供的页面打点测试方法,通过监听并拦截网页测试服务器的网卡发出的网络传输数据包来获得包含打点数据的测试页面打点请求以及对比页面打点请求。 Network transport packets [0047] Test method for providing dot page according to the second embodiment of the present invention, by monitoring and intercepting page test card issuing server to obtain comparative test page and a page request RBI RBI RBI request contains data. 第二实施例与第一实施例的唯一不同在于:拦截和收集打点数据的方式不同,其他的都是相同的,在此不做赘述。 Example of the first embodiment except that the second embodiment only: intercepting and collecting different data RBI manner, the other is the same, which is not repeated herein. 调用Web Driver自动打开浏览器,模拟浏览页面,点击页面元素,触发埋点等操作都是测试服务器完成的。 Call the Web Driver automatically open the browser, analog browse page, click on page elements, such as trigger point buried operations are completed the test server. 在拦截和收集打点数据时:第一实施例是通过上述讲到的,在测试服务器上绑定数据服务器的主机地址,将自己伪装成打点服务器,拦截所有发给数据服务器的http请求的方式来实现的。 RBI during a stop and collect data: by way of the first embodiment mentioned above, bound to the test server host address of the data server, the server will disguise itself as RBI, intercept all http request to the data server to achieved. 第二实施例是通过监听测试服务器的网卡数据包来实现的。 The second embodiment is accomplished by monitoring the packets test server card. 具体地,每一个网络请求都会经过计算机的网卡,打点请求是一个http请求,自然也会经过网卡。 Specifically, the request will go through each network computer's NIC, RBI http request is a request, it will naturally pass card. Jpcap可以拦截到所有经过网卡的数据包,从拦截到的数据包里过滤出所有的打点数据包即可以收集到所有的打点请求了。 Jpcap may intercept all packets through the network adapter, filter out all the dot data packets which can collect all requests from RBI intercepted data package.

[0048] 在本发明的一个优选实施例中,例如第一次对网页进行打点测试,或者网页中的元素发生了变化的情况下,在响应于分别针对测试页面和对比页面进行的打点操作,生成对应的页面打点请求的步骤之前,需要对测试环境进行配置。 In the case [0048] In a preferred embodiment of the present invention, for example the first time the striking test pages or web page elements changes in response to a dot for each test page and Comparative pages operation, before striking the generating step corresponding to the requested page, it is necessary to configure the test environment. 这些配置包括但不限于设置测试页面和对比页面的访问地址和元素标引,以及打点操作的行为。 These configurations include, but are not limited to set and Comparative test page address page and access indexing element, and the behavior of RBI operations. 例如,在一些实例当中,可以通过设置Xpath标引网页中的元素。 For example, in some examples, which may be provided by the Xpath element indexing web pages. Xpath是一种超文本文件(HTML)网页元素的定位符号,可以看作一个元素在页面上的坐标,通过Xpath可以找到页面上对应的元素。 Xpath is a hypertext documents (HTML) positioning symbol page elements can be seen as the coordinates of an element on the page can be found on the corresponding page elements via Xpath. 这样,可以在测试页面或对比页面中模拟点击Xpath后,浏览器可以根据Xpath对应的元素进行操作,发出相应的http请求。 Thus, click Xpath, the browser may operate according to the corresponding Xpath element can be simulated in a test page or pages in contrast, issue the corresponding http request. 另外,打点操作的行为也可以是多种类型的,例如将鼠标滚轮滚动到页面2/3的位置,移动页面等。 Further, the behavior of the striking operation may be of various types, for example, a mouse wheel page location, etc. move page 2/3.

[0049] 在本发明的一个优选实施例中,在生成页面打点测试数据报表之后将记录有差异的页面打点测试数据报表发送给相应的用户进行处理。 [0049] In a preferred embodiment of the present invention, after generating the report page dot test data pages recorded striking difference report test data transmitted to the corresponding user processes. 例如,打点测试数据报表可以列出打点数据不一致的地方,通过邮件通知相关用户进行处理或网页代码修复。 For example, the test data reports can be listed RBI RBI data inconsistency place, notify users by e-mail or web page processing code fixes.

[0050] 在本发明的另一个优选实施例中,用户需要对测试页面和对比页面进行测试,首先用户根据需求配置测试用例,然后基于所述的测试用例针对测试页面和对比页面执行本发明的方法。 [0050] In another preferred embodiment of the present invention, the user needs to compare the test page and the pages test, first test configuration according to user requirements, and based on the execution of a test case for the present invention and comparative test page page method. 用户的预期是:在没有对测试页面的埋点做修改的前提下,测试页面和对比页面的在同一个埋点发出的打点请求应该是一致的,如果不一致,则需要知道测试页面和对比页面的打点数据的差异在哪里。 Users are expected to be: in the absence of making changes to the Buried test page on the premise, the RBI issued the same Buried request a test page and contrast of the page should be consistent, and if not, you need to know the test page and contrast the page where differences RBI data. 执行本优选实施例提供的页面打点测试方法即可自动得到测试页面和对比页面的打点数据的差异结果,生成页面打点测试数据报表。 Test page RBI performing the present method provided the preferred embodiment to automatically obtain the striking differences in the results of test data pages and pages contrast, generates dot test data report page.

[0051] 此外,在本发明的另一个优选实例中,生成的测试数据报表还可以包括直接从所述测试页面打点数据包与所述对比页面打点数据包中提取的打点请求以及打点数据。 [0051] Further, in another preferred embodiment of the invention, the test data generated report may further include extracting a page RBI packet directly from the test page RBI RBI comparison with the data packet request and the dot data. 测试数据报表可以展示出多种内容,例如页面展示次数,有多少用户看到过这个页面,页面元素点击次数、点击率、点击产生的交易量,用户的地理位置分布和年龄层分布等。 Test data reports can demonstrate a variety of content, such as page impressions, how many users have seen this page, the page element clicks, CTR, trading volume clicks, the user's geographical distribution and age distribution. 这些报表可以为页面样式,产品发展方向,营销活动等提供重要数据支持,为决策人提供直观的决策依据,同时对网站拦截页面打点请求并收集用户信息、用户群体,加强沟通,提高和改进网站建设具有重要意义。 These reports can provide important data to support a page style, product development, marketing activities and provide an intuitive decision-making basis for decision-makers, while the RBI website blocking page request and collect user information, user groups, strengthen communication, enhance and improve website construction of great significance.

[0052] 此外,在本发明的一些其他实施例中,还可以设置打点测试数据异常报警机制,当在打点测试数据中发现打点错误的时候进行自动报警,可大大降低打点数据丢失的风险。 [0052] Further, in some other embodiments of the present invention, the test data may be provided striking abnormality alarm system, when an error is found in RBI RBI test data automatically when the alarm RBI can greatly reduce the risk of data loss.

[0053] 本发明还提供一种页面打点测试装置。 [0053] The present invention also provides a test apparatus RBI page. 参见图3,图3是本发明第三实施例提供的页面打点测试装置的结构示意图。 Referring to FIG. 3, FIG. 3 is a schematic view of a third page dot test apparatus embodiment of the present invention is provided. 在第三实施例中,该页面打点测试装置包括: In a third embodiment, the page dot test apparatus comprising:

[0054] 页面打点请求生成单元310,用于响应于针对测试页面或对比页面在埋点处进行的打点操作,生成与所述测试页面对应的测试页面打点请求,或与所述对比页面对应的对比页面打点请求; [0054] RBI page request generating unit 310, in response to the operation performed at the striking point for burying test page or pages contrast, generates dot test page corresponding to the page request with the test, or with the corresponding page contrast Comparative RBI page request;

[0055] 页面打点请求拦截单元320,用于拦截所述测试页面打点请求或所述对比页面打点请求; [0055] RBI page request intercepting unit 320 for intercepting the test request or page the striking striking contrast page request;

[0056] 打点数据收集整理单元330,用于收集并分别整理所述测试页面打点请求中的打点数据以及所述对比页面打点请求中的打点数据; [0056] RBI collected data unit 330, respectively, for collecting and sorting the test dot dot data page request and the page data comparison RBI RBI request;

[0057] 打点测试数据比对单元340,用于比对来自所述测试页面的打点数据以及来自所述对比页面的打点数据的差异生成页面打点测试数据报表。 [0057] RBI test data comparing unit 340 for comparing the difference data from the test dot and dot data pages from the page generating comparative test data pages RBI report.

[0058] 在本发明的一个优选实施例当中,所述页面打点测试装置还包括: [0058] In a preferred embodiment of the present invention which embodiment, the apparatus further comprises a test page dot:

[0059] 测试用例配置单元350,用于配置测试用例。 [0059] The test configuration unit 350, for configuring the test.

[0060] 打点操作执行单元360,用于访问所述测试页面或所述对比页面,根据预设的打点规则执行打点操作。 [0060] RBI operation execution unit 360 to access the test page or pages of the comparison, according to a preset rule execution RBI RBI operation.

[0061] 在本发明的一个优选实施例当中,所述测试用例配置单元350包括: [0061] In a preferred embodiment of the present invention, among the test configuration unit 350 comprises:

[0062] 第一子单元351,配置所述测试页面或所述对比页面的访问地址; [0062] The first subunit 351, configured to access the test or page address of the page comparison;

[0063] 第二子单元352,配置所述测试页面或所述对比页面的预设的打点规则; [0063] The second sub-unit 352 configured to compare the test page or pages of the preset rule RBI;

[0064] 第三子单元353,配置所述测试页面或所述对比页面的埋点。 [0064] The third sub-unit 353, the embedded test point configuration page or pages of the comparison.

[0065] 在本发明的一个优选实施例当中,所述页面打点请求拦截单元320包括: [0065] In a preferred embodiment of the present invention, among the dot page request intercepting unit 320 comprises:

[0066] 第四子单元321,用于伪装成数据服务器拦截所述测试页面打点请求或所述对比页面打点请求;和/或 [0066] The fourth sub-unit 321, disguised data server for intercepting the test page request or striking the striking contrast page request; and / or

[0067] 第五子单元322,用于监听并拦截所在客户端的网卡发出的网络传输数据包,所述网络传输数据包中包含所述测试页面打点请求或所述对比页面打点请求。 Network card transport packets [0067] The fifth sub-unit 322, configured to monitor and intercept where the client sent, the network transport packets containing the test page request or striking the striking contrast page request.

[0068] 参见图4,图4是本发明第四实施例提供的页面打点测试装置的结构示意图。 [0068] Referring to FIG. 4, FIG. 4 is a schematic view of a page dot test apparatus according to a fourth embodiment of the present invention. 在第四实施例中,除了页面打点请求生成单元310、页面打点请求拦截单元320、打点数据收集整理单元330、打点测试数据比对单元340,所述页面打点测试装置还包括: In the fourth embodiment, in addition to the page request generating unit 310 RBI, RBI page request intercepting unit 320, the data collected unit 330 RBI RBI test data comparison unit 340, the test apparatus further comprises dot page:

[0069] 页面标识生成单元370,用于根据所述测试页面或所述对比页面的访问地址生成至少一页面唯一标示符设置到页面的cookie中。 [0069] page identifier generating unit 370, for generating at least one unique identifier provided to the page of the page cookie access address according to the comparison of the test page or pages.

[0070] 在本发明的一个优选实施例中,所述打点测试数据比对单元340还包括: [0070] In a preferred embodiment of the present invention, the dot test data comparison unit 340 further comprises:

[0071] 打点数据判断单元341,用于逐条比对分别来自所述测试页面的打点数据以及来自所述对比页面的打点数据,判断所述打点数据的访问请求参数是否相同; [0071] The dot data determining unit 341, one by one for each comparison data from the test dot and dot data pages from the pages of comparison, determining the dot data access request parameters are the same;

[0072] 打点数据确认单元342,用于当打点数据判断单元判断相同时确认来自所述测试页面的打点数据与来自所述对比页面的打点数据是来自同一埋点的页面打点请求,当不相同时确认来自所述测试页面的打点数据与来自所述对比页面的打点数据是来自不同埋点的页面打点请求。 [0072] The dot data acknowledgment unit 342, a data judging means judges if the striking confirmation striking the same data from the test page and the dot data from the dot contrast page is a page requests from the same point buried, when not in while recognizing the dot data from the test page and dot data from the dot contrast page is a page request from a different point buried.

[0073] 在本发明的一个优选实施例中,打点测试数据比对单元340还包括: [0073] In a preferred embodiment of the present invention, the test data RBI comparison unit 340 further comprises:

[0074] 打点数据差异确认单元343,用于比对所述测试页面的打点数据与所述对比页面的打点数据是来自同一埋点的页面打点请求的打点数据差异; [0074] The striking differences in data confirmation unit 343, dot data for the test page is compared with the comparison data page RBI RBI RBI discrepancies page requests from the same point buried;

[0075] 打点测试数据报表生成单元344,用于记录所述差异以生成页面打点测试数据报表。 [0075] RBI report test data generating unit 344, for recording the difference data to generate a test report page RBI.

[0076] 参见图5,根据本发明的一个优选实例提供的页面打点测试系统,其中主要包括: [0076] Referring to FIG. 5, page RBI test system provided in accordance with a preferred example of the present invention, comprising mainly:

[0077] UCase管理模块:用于管理打点Case。 [0077] UCase Management Module: used to manage RBI Case. 用户收集打点Case,对打点Case做编辑,管理员记录等。 Case users to collect RBI, RBI Case for an editor, administrator records.

[0078] 2、运行系统模块:用于Web Driver的管理,打点Host的维护。 [0078] 2, the operation of the system module: maintenance management for Web Driver, Host of RBI. Case的运行主要包含模拟浏览器行为,伪装打点服务器两部分。 Case consists mainly of running the simulation browser behavior, camouflage RBI server in two parts.

[0079] 3、Case执行模块:主要包括Case的并发执行,与Case绑定的cookie设置,任务调度,以及Case失败后的重试,Case的拦截和收集。 [0079] 3, Case execution module: Case includes concurrent execution of bindings with Case cookie settings, scheduling, and retries after failure of Case, Case interception and collected.

[0080] 4、打点结果分析模块:用于生成可视化数据报表。 [0080] 4, the striking results of analysis modules: visualization data for generating reports. 记录页面发出了哪些打点,对比页面发出了哪些打点,其中这两个页面打点的对比有哪些不同。 Record page which RBI issued, compared to what RBI issued a page, where the two actually striking contrast What are the different pages.

[0081] 5、定时任务模块:用于定时执行Case。 [0081] 5, a timing task module: performing a timing Case. 以指定的时间为维度(每日/每周等),来执行打点Case,并且对比打点数据。 Specified time dimension (daily / weekly, etc.) to perform RBI Case, RBI and comparative data.

[0082] 在本实例提供的页面打点测试系统上运行本发明提供的页面打点测试方法,按照如图6进行新增打点Case的配置,如图7所示为执行打点Case的过程,并在如图8所示的界面查看打点结果。 [0082] RBI page test system in the present example provides a test method for operating a page RBI present invention provides, for the new configuration in accordance with the RBI Case 6, 7 to perform the process of FIG Case RBI, and as interface shown in FIG. 8 RBI view results.

[0083] 可见,在图5所示的优选实例提供的页面打点测试系统中除了实现本发明技术方案的页面打点测试装置所需的各模块外还包括定时任务模块,用于定时执行Case。 [0083] visible, page RBI test system provided in the preferred example shown in FIG 5 in addition to the modules required to implement the page dot test apparatus aspect of the present invention further comprises a timing task module, a timing for performing Case. 以指定的时间为维度(每日/每周等),来执行打点Case,并且对比打点数据。 Specified time dimension (daily / weekly, etc.) to perform RBI Case, RBI and comparative data. 进而还可以根据用户的事先配置将所述的对比结果发送到用户的邮箱以便于用户的查看和对测试页面的进一步测试和调试。 Furthermore the user can also send the results of the comparison of the pre-configured to the user's mailbox for the user to view and further testing and debugging the test page.

[0084] 根据本发明各实施例提供的页面打点测试方法,页面打点测试前配置简单,通用性强,一次配置可多次使用,对于web页面的前后端有任何改动时可以及时进行回归测试(指修改了软件后,重新进行测试以确认修改没有引入新的错误)。 [0084] According to various embodiments of the present invention, the test method provided by RBI page, the page before the striking test configuration simple, versatile, one configuration can be used repeatedly, regression testing may be performed in a timely manner when the front and rear ends of a web page for any changes ( after the software is modified by finger, re-test to confirm the modification does not introduce new errors).

[0085] 本发明提供的页面打点测试方法、装置、系统在以下计算机系统环境中实施将达到最佳的实施效果: [0085] The present invention provides a method of testing the page RBI, apparatus, computer system implemented in the system environment to achieve the best results embodiments:

[0086] 硬件:64位服务器; [0086] Hardware: 64 Server;

[0087]软件:Iinux 操作系统,java 运行环境,Firefox31.0,Selenium2.44.0,Jpcap 语g:Java0 [0087] Software: Iinux operating system, java runtime environment, Firefox31.0, Selenium2.44.0, Jpcap language g: Java0

[0088] 本发明提供的各实施例均可以以软件、硬件、固件等方式实现。 [0088] Embodiments of the present invention is provided may be implemented in software, hardware, firmware, or the like. 不管本发明是以软件、硬件、还是固件方式实现,指令代码都可以存储在任何类型的计算机可访问的存储器中(例如永久的或者可修改的,易失性的或者非易失性的,固态的或者非固态的,固定的或者可更换的介质等等)。 Regardless of the present invention in software, hardware, or firmware manner, the instruction codes stored in the memory can be any type of computer accessible (e.g., permanent or may be modified, volatile or non-volatile, solid-state or non-solid, fixed or replaceable media, etc.). 同样,存储器可以例如是可编程阵列逻辑(Programmable ArrayLogic,简称“PAL”)、随机存取存储器(Random Access Memory,简称“RAM”)、可编程只读存储器(Programmable Read Only Memory,简称“PROM”)、只读存储器(Read-Only Memory,简称“ROM”)、电可擦除可编程只读存储器(Electrically Erasable Programmable ROM,简称“EEPR0M”)、磁盘、光盘、数字通用光盘(Digital Versatile Disc,简称“DVD”)等等。 Similarly, for example, memory may be programmable array logic (Programmable ArrayLogic, referred to as "PAL"), a random access memory (Random Access Memory, referred to as "RAM"), programmable read-only memories (Programmable Read Only Memory, referred to as "PROM" ), read-only memory (Read-Only memory, referred to as "ROM"), electrically erasable programmable read only memory (electrically erasable programmable ROM, referred to as "EEPR0M"), magnetic disk, optical disc, digital versatile disc (digital versatile disc, referred to as "DVD") and so on.

[0089] 需要说明的是,本发明各设备实施方式中提到的各单元都是逻辑单元,在物理上,一个逻辑单元可以是一个物理单元,也可以是一个物理单元的一部分,还可以以多个物理单元的组合实现,这些逻辑单元本身的物理实现方式并不是最重要的,这些逻辑单元所实现的功能的组合才是解决本发明所提出的技术问题的关键。 [0089] Incidentally, each of the units are logical unit apparatus embodiment of the present invention mentioned embodiment, physically, a logic unit may be a physical unit, or may be part of one physical unit, but also to combining a plurality of physical units of implementation, the logic unit itself, the physical implementation is not the most important, the combination of these functional units are implemented logic is the key technical problem of the proposed solution according to the present invention. 此外,为了突出本发明的创新部分,本发明上述各设备实施方式并没有将与解决本发明所提出的技术问题关系不太密切的单元引入,这并不表明上述设备实施方式并不存在其它的单元。 Further, in order to highlight the innovative part of the present invention, embodiments of the present invention and each apparatus is not introduced into the unit above and to solve the technical problem proposed by the present invention, the relationship is less close, which does not show the above-described embodiments are not present apparatus further unit.

[0090] 需要说明的是,在本专利的权利要求和说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。 [0090] Incidentally, in the claims and specification of this patent, relational terms such as first and second and the like are only used to distinguish one entity or operation from another entity or operation, without some requiring or implying any actual relationship or order between these entities or operations. 而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。 Further, the term "comprising", "containing" or any other variation thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, article, or apparatus not include only those elements but not expressly listed further comprising the other elements, or further comprising such process, method, article, or apparatus inherent elements. 在没有更多限制的情况下,由语句“包括一个”限定的要素,并不排除在包括要素的过程、方法、物品或者设备中还存在另外的相同要素。 Without more constraints, by the wording "include a" defining element does not exclude the existence of additional identical elements include the elements in the process, method, article, or apparatus.

[0091] 虽然通过参照本发明的某些优选实施方式,已经对本发明进行了图示和描述,但本领域的普通技术人员应该明白,可以在形式上和细节上对其作各种改变,而不偏离本发明的精神和范围。 [0091] While the invention has been shown and described with reference to certain preferred embodiments of the present invention, but those of ordinary skill in the art should be understood that various changes may be made thereto in form and details without departing from the spirit and scope of the invention.

Claims (18)

1.一种页面打点测试方法,其特征在于,包括: 响应于针对测试页面或对比页面在埋点处进行的打点操作,生成与所述测试页面对应的测试页面打点请求,或与所述对比页面对应的对比页面打点请求; 拦截所述测试页面打点请求或所述对比页面打点请求; 收集并分别整理所述测试页面打点请求中的打点数据以及所述对比页面打点请求中的打点数据; 比对来自所述测试页面的打点数据以及来自所述对比页面的打点数据的差异生成页面打点测试数据报表。 A test page RBI method comprising: in response to an operation performed at the dot Buried test for comparison pages or page, the page corresponding to generate the test dot test page request, or contrast with the RBI comparison page corresponding to a page request; intercepting the request or the test page striking striking contrast page request; were collected and the test data page collation RBI RBI RBI data request and the page request RBI comparison; ratio striking difference data from the test page and a dot data from the page generating comparative test data pages RBI report.
2.如权利要求1所述的页面打点测试方法,其特征在于,在所述响应于针对测试页面或对比页面在埋点处进行的打点操作,生成与所述测试页面对应的测试页面打点请求,或所述对比页面对应的对比页面打点请求的步骤之前包括: 配置所述测试页面或所述对比页面的访问地址; 配置所述测试页面或所述对比页面的预设的打点规则; 配置所述测试页面或所述对比页面的埋点。 2. The method of testing the page striking claim 1, wherein said test operation in response to a page or striking contrast pages buried at a point corresponding to the test page generating the test page request RBI , or before the step of striking contrast page requested page corresponding to said contrast comprises: an access address to the configuration of the comparative test page or pages; preset configuration of the comparative test page or the page RBI rules; configuration buried said comparative test page or pages.
3.如权利要求2所述的页面打点测试方法,其特征在于, 所述埋点是指根据预定数据格式在页面上预先设置的需要自动发送打点请求的位置。 RBI said page test method as claimed in claim 2, wherein said buried point refers to the automatic transmission position request RBI needed predetermined data format set in advance on the page.
4.如权利要求3所述的页面打点测试方法,其特征在于,所述响应于针对测试页面或对比页面在埋点处进行的打点操作,生成与所述测试页面对应的测试页面打点请求,或所述对比页面对应的对比页面打点请求的步骤之前包括: 根据所述测试页面或所述对比页面的访问地址生成至少一页面唯一标示符设置到页面的cookie中; 访问所述测试页面或所述对比页面,根据预设的打点规则执行打点操作。 4. The test method of the striking page to claim 3, wherein the test page request corresponding to the test page RBI RBI in response to an operation performed at the test page for Buried contrast or pages, generated, Comparative request or page the step of striking contrast to the previous corresponding page comprises: generating at least one unique identifier provided to the page of the page cookie access address according to the comparison of the test page or page; accessing the page or the test said comparison page, perform operations according to a preset RBI RBI rules.
5.如权利要求1所述的页面打点测试方法,其特征在于,所述拦截所述测试页面打点请求或所述对比页面打点请求的步骤包括: 伪装成数据服务器拦截所述测试页面打点请求或所述对比页面打点请求。 5. The method of testing the page striking claim 1, wherein said request intercepting page or striking contrast to the striking step request the test page comprising: a server pretending to intercept the data dot test page request or the striking contrast page request.
6.如权利要求1所述的页面打点测试方法,其特征在于,所述拦截所述测试页面打点请求或所述对比页面打点请求的步骤包括: 监听并拦截所在客户端的网卡发出的网络传输数据包,所述网络传输数据包中包含所述测试页面打点请求或所述对比页面打点请求。 6. The method of testing the page striking claim 1, wherein said request intercepting page or striking contrast to the striking step request the test page comprising: a network monitor and intercept data transmission where the client card issued packet, the network transport packets containing the test page request or striking the striking contrast page request.
7.如权利要求4所述的页面打点测试方法,其特征在于,所述收集并分别整理所述测试页面打点请求中的打点数据以及所述对比页面打点请求中的打点数据的步骤包括: 根据页面打点请求中的页面的cookie值区分打点数据是来自所述测试页面还是所述对比页面; 收集并分别整理来自所述测试页面的打点数据以及来自所述对比页面的打点数据。 7. The method of testing the page RBI claim 4, characterized in that the collection and collation of the respective test page RBI RBI data request and a step of comparison of the page request RBI RBI data comprising: the cookie value to distinguish dot dot data page request from the test page is a page or page comparison; collect and organize each of the dot data from the test page and a dot data from the comparison of the page.
8.如权利要求1所述的页面打点测试方法,其特征在于,所述比对来自所述测试页面的打点数据以及来自所述对比页面的打点数据的差异生成页面打点测试数据报表的步骤包括: 逐条比对分别来自所述测试页面的打点数据以及来自所述对比页面的打点数据,判断所述打点数据的访问请求参数是否相同; 如果相同,则确认来自所述测试页面的打点数据与来自所述对比页面的打点数据是来自同一埋点的页面打点请求,如果不相同,则确认来自所述测试页面的打点数据与来自所述对比页面的打点数据是来自不同埋点的页面打点请求。 8. The method of testing the page striking claim 1, wherein said step of comparing the difference data from the test page dot and dot data from the dot generation page page comparative test data report comprises : one by one dot than the test data from each page, and the dot data from the comparison of the page, determines the dot data access request parameters are the same; if the same, it is confirmed from the dot data from the test page and the comparison of the data page is RBI RBI page requests from the same point buried, if not identical, it is confirmed from the test page of dot data and the dot data from RBI comparison page is a page request from a different point buried.
9.如权利要求8所述的页面打点测试方法,其特征在于,所述比对来自所述测试页面的打点数据以及来自所述对比页面的打点数据的差异生成页面打点测试数据报表的步骤还包括: 比对所述测试页面的打点数据与所述对比页面的打点数据是来自同一埋点的页面打点请求的打点数据的差异; 记录所述差异以生成页面打点测试数据报表。 9. The test method of the striking page to claim 8, wherein the step of striking difference data from the test page and the dot data from the dot generation page page comparative test data for further reporting the ratio comprising: RBI RBI data than the data of the test page is a page contrast difference RBI RBI data from the same page requests buried; recording the difference data to generate a test report page RBI.
10.根据如权利要求1至9任一权利要求所述的页面打点测试方法,其特征在于, 所述测试页面是指处于开发阶段的页面或者位于预发布服务器的页面; 所述对比页面是指处于生产环境的页面。 10. The test method of the striking pages 1 to 9, any one of the preceding claims, wherein the test page refers to a page in the development stage or pre-release of the page server as claimed in claim; refers to the comparison page in page production environment.
11.一种页面打点测试装置,其特征在于,包括: 页面打点请求生成单元,用于响应于针对测试页面或对比页面在埋点处进行的打点操作,生成与所述测试页面对应的测试页面打点请求,或与所述对比页面对应的对比页面打点请求; 页面打点请求拦截单元,用于拦截所述测试页面打点请求或所述对比页面打点请求;打点数据收集整理单元,用于收集并分别整理所述测试页面打点请求中的打点数据以及所述对比页面打点请求中的打点数据; 打点测试数据比对单元,用于比对来自所述测试页面的打点数据以及来自所述对比页面的打点数据的差异生成页面打点测试数据报表。 A page dot test apparatus, characterized by comprising: striking a page request generating unit, in response to the operation performed at the striking point for testing embedded page or pages contrast, the test page generating corresponding test page RBI request, or with the comparative contrast page corresponding to the page request RBI; RBI page request intercepting means for intercepting the request or the test page striking striking contrast page request; RBI collected data unit, respectively, for collecting and the test page data arrangement RBI RBI RBI data request and the striking contrast page request; RBI test data comparison unit for comparing RBI RBI data from the test page and a page from the comparison difference data to generate the page RBI test data report.
12.如权利要求11所述的页面打点测试装置,其特征在于,还包括: 测试用例配置单元,用于配置测试用例。 12. The test apparatus 11 page dot claim, characterized in that, further comprising: a test configuration unit for configuring the test.
13.如权利要求12所述的页面打点测试装置,其特征在于,所述测试用例配置单元包括: 第一子单元,配置所述测试页面或所述对比页面的访问地址; 第二子单元,配置所述测试页面或所述对比页面的预设的打点规则; 第三子单元,配置所述测试页面或所述对比页面的埋点。 13. The test apparatus 12 page dot claim, wherein the test configuration unit comprises: a first sub-unit configured to compare the test page or the page access address; and a second subunit, configuring the test page or pages of the preset RBI comparison rule; buried third sub-unit, the configuration of the comparative test page or pages.
14.如权利要求11所述的页面打点测试装置,其特征在于,所述页面打点请求拦截单元包括: 第四子单元,用于伪装成数据服务器拦截所述测试页面打点请求或所述对比页面打点请求;和/或第五子单元,用于监听并拦截所在客户端的网卡发出的网络传输数据包,所述网络传输数据包中包含所述测试页面打点请求或所述对比页面打点请求。 14. The test apparatus 11 page dot claim, wherein said page request RBI intercepting unit comprises: a server intercepting the striking test page request page or disguise the comparative data for the fourth sub-unit, for RBI request; and / or fifth sub-unit, configured to monitor and intercept transport packet network where the client issuing the card, the network transport packets containing the test page request or striking the striking contrast page request.
15.如权利要求11所述的页面打点测试装置,其特征在于,还包括: 页面标识生成单元,用于根据所述测试页面或所述对比页面的访问地址生成至少一页面唯一标示符设置到页面的cookie中。 15. The test apparatus 11 page dot claim, characterized in that, further comprising: a page identifier generating unit, for the test page or the page access address comparison generates at least one page in accordance with the unique identifier provided to the page cookie.
16.如权利要求11所述的打点测试装置,其特征在于,还包括: 打点操作执行单元,用于访问所述测试页面或所述对比页面,根据预设的打点规则执行打点操作。 16. The dot test apparatus according to claim 11, characterized in that, further comprising: a striking operation execution unit for accessing said test page or pages of the comparison, according to a preset rule execution RBI RBI operation.
17.如权利要求11所述的打点测试装置,其特征在于,所述打点测试数据比对单元还包括: 打点数据判断单元,用于逐条比对分别来自所述测试页面的打点数据以及来自所述对比页面的打点数据,判断所述打点数据的访问请求参数是否相同; 打点数据确认单元,用于当打点数据判断单元判断相同时确认来自所述测试页面的打点数据与来自所述对比页面的打点数据是来自同一埋点的页面打点请求,当不相同时确认来自所述测试页面的打点数据与来自所述对比页面的打点数据是来自不同埋点的页面打点请求。 17. The dot test apparatus according to claim 11, wherein said test data RBI comparison unit further comprises: dot data judging means, by one dot data for the test page and from each alignment from the RBI comparison of said data page, determines the dot data access request parameters are the same; RBI data confirmation unit for, when dot data judging means judges the same page confirmation from the test data from the RBI comparison page dot dot data from the same page buried request confirmation striking is not the same when the data from the test page and the dot data from the dot contrast page is a page request from a different point buried.
18.如权利要求11所述的打点测试装置,其特征在于,打点测试数据比对单元还包括: 打点数据差异确认单元,用于比对所述测试页面的打点数据与所述对比页面的打点数据是来自同一埋点的页面打点请求的打点数据差异; 打点测试数据报表生成单元,用于记录所述打点数据差异以生成页面打点测试数据报表。 18. The test apparatus 11 RBI claim, wherein the striking test data comparison unit further comprises: striking differences in data confirmation unit, RBI RBI data than for the comparative test page with the page data RBI RBI discrepancies from the same page requests buried; RBI report the test data generation means for recording the difference data RBI RBI test data to generate the report page.
CN201510257859.5A 2015-05-19 2015-05-19 Page tracking test method and apparatus CN106294101A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510257859.5A CN106294101A (en) 2015-05-19 2015-05-19 Page tracking test method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510257859.5A CN106294101A (en) 2015-05-19 2015-05-19 Page tracking test method and apparatus

Publications (1)

Publication Number Publication Date
CN106294101A true CN106294101A (en) 2017-01-04

Family

ID=57632609

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510257859.5A CN106294101A (en) 2015-05-19 2015-05-19 Page tracking test method and apparatus

Country Status (1)

Country Link
CN (1) CN106294101A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107295088A (en) * 2017-06-29 2017-10-24 广东神马搜索科技有限公司 Point clicking information monitoring method and device, and client

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 (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107295088A (en) * 2017-06-29 2017-10-24 广东神马搜索科技有限公司 Point clicking information monitoring method and device, and client

Similar Documents

Publication Publication Date Title
US8504991B2 (en) Cross-browser testing of a web application
JP3651873B2 (en) Computer System Configuration change tracking method
JP5864583B2 (en) Support for parameterized queries / views in complex event processing
EP2508996B1 (en) Visualizing relationships between a transaction trace graph and a map of logical subsystems
US8671097B2 (en) Method and system for log file analysis based on distributed computing network
US8650292B2 (en) Synthetic transactions to test blindness in a network system
US8335848B2 (en) Method and apparatus for monitoring and synchronizing user interface events with network data
US7496960B1 (en) Tracking and reporting of computer virus information
EP1264261B1 (en) Monitoring operation of and interaction with services provided over a network
JP5511845B2 (en) Method for performing server-side logging of the client browser state through the mark-up language
US6175832B1 (en) Method, system and program product for establishing a data reporting and display communication over a network
JP5990605B2 (en) A method and system to get the Ajax web page content
CN101504671B (en) Visible processing method, apparatus and system for web page access behavior of users
US8402131B2 (en) Hierarchy for characterizing interactions with an application
US20130060915A1 (en) Aggregated web analytics request systems and methods
US8656006B2 (en) Integrating traffic monitoring data and application runtime data
US7953850B2 (en) Monitoring related content requests
US20140013306A1 (en) Computer Load Generator Marketplace
US8813039B2 (en) Method and system for software defect reporting
US8578017B2 (en) Automatic correlation of service level agreement and operating level agreement
CN100596353C (en) Method and system for providing log service
US20130282545A1 (en) Marketplace for Monitoring Services
US7392321B1 (en) Method and system for evaluating quality of service for transactions over a network
US7441195B2 (en) Associating website clicks with links on a web page
CN102129372B (en) To identify the root cause of the problem by event-related

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination