CN106528432A - Construction method and apparatus for test scene data, and buried point test method - Google Patents
Construction method and apparatus for test scene data, and buried point test method Download PDFInfo
- Publication number
- CN106528432A CN106528432A CN201611136510.7A CN201611136510A CN106528432A CN 106528432 A CN106528432 A CN 106528432A CN 201611136510 A CN201611136510 A CN 201611136510A CN 106528432 A CN106528432 A CN 106528432A
- Authority
- CN
- China
- Prior art keywords
- data
- page
- server
- buried point
- test
- 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
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 171
- 238000010276 construction Methods 0.000 title claims abstract description 32
- 238000010998 test method Methods 0.000 title claims abstract description 14
- 238000000034 method Methods 0.000 claims abstract description 73
- 238000004590 computer program Methods 0.000 claims description 24
- 230000005540 biological transmission Effects 0.000 claims description 4
- 230000004048 modification Effects 0.000 abstract description 40
- 238000012986 modification Methods 0.000 abstract description 40
- 230000008569 process Effects 0.000 description 15
- 238000005516 engineering process Methods 0.000 description 14
- 238000010586 diagram Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 11
- 238000004891 communication Methods 0.000 description 5
- 230000009193 crawling Effects 0.000 description 5
- 230000008901 benefit Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000001914 filtration Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/951—Indexing; Web crawling techniques
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
技术领域technical field
本发明涉及互联网测试技术领域,具体而言,涉及一种测试场景数据的构建方法及装置、埋点测试方法。The invention relates to the technical field of Internet testing, in particular to a method and device for constructing test scene data, and a point-buried testing method.
背景技术Background technique
埋点是指在客户端(如手机或者电脑)显示的页面中添加抓取脚本,当用户点击页面上的链接时,通过该抓取脚本抓取页面的埋点数据,将埋点数据发送至埋点服务器进行存储。数据分析人员通过分析埋点数据,能够获知用户的页面浏览习惯,从而优化页面,发掘用户的潜在需求等。Buried point refers to adding a crawling script to the page displayed on the client (such as a mobile phone or computer). When the user clicks a link on the page, the buried point data of the page is captured by the crawling script, and the buried point data is sent to Buried server for storage. By analyzing buried point data, data analysts can learn the user's page browsing habits, thereby optimizing the page and discovering the potential needs of users.
为了保证埋点数据准确发送至埋点服务器,需要进行埋点测试,埋点测试的过程为:客户端显示埋点测试页面;触发抓取脚本抓取埋点测试页面中各个链接的关联信息,将关联信息作为埋点数据发送至埋点服务器;比对客户端发出的埋点数据和埋点服务器接收到的埋点数据是否一致。In order to ensure that the buried point data is accurately sent to the buried point server, a buried point test is required. The process of the buried point test is: the client displays the buried point test page; triggers the crawling script to capture the associated information of each link in the buried point test page, Send the associated information as buried point data to the buried point server; compare whether the buried point data sent by the client is consistent with the buried point data received by the buried point server.
在埋点测试过程中,客户端需要显示埋点测试页面,由于后台实时生成的页面可能不满足埋点测试需求,如当前需要测试的是购买商品付款成功的页面的埋点数据,后台实时生成的页面为付款失败页面,该种情况下需要对后台数据进行修改,得到符合埋点测试需求的页面作为埋点测试页面。During the buried point test process, the client needs to display the buried point test page, because the page generated in real time in the background may not meet the requirements of the buried point test, such as the current need to test the buried point data of the page where the payment for the purchased product is successful, and the background is generated in real time The page is the payment failure page. In this case, the background data needs to be modified to obtain a page that meets the requirements of the buried point test as the buried point test page.
相关技术中,大多在服务器端直接修改服务器内的数据,客户端根据服务器内修改后的数据显示埋点测试页面,该埋点测试页面满足埋点测试需求。然而,由于在服务器端直接修改服务器内的数据,需要服务器端的开发人员配合,因此数据修改时间长,数据修改不方便。In related technologies, the data in the server is mostly directly modified on the server side, and the client displays a buried point test page according to the modified data in the server, and the buried point test page meets the requirements of the buried point test. However, since the data in the server is directly modified on the server side, the cooperation of the server-side developers is required, so the data modification time is long and the data modification is inconvenient.
发明内容Contents of the invention
有鉴于此,本发明的目的在于提供一种测试场景数据的构建方法及装置、埋点测试方法,以解决相关技术中在服务器端直接修改服务器内的数据,数据修改时间长,数据修改不方便的问题。In view of this, the purpose of the present invention is to provide a construction method and device for test scene data, and a method for embedded point testing, so as to solve the problem of directly modifying the data in the server on the server side in the related technology, the data modification time is long, and the data modification is inconvenient The problem.
第一方面,本发明实施例提供了一种测试场景数据的构建方法,所述方法包括:接收客户端发送的页面请求并转发至数据服务器;接收所述数据服务器根据所述页面请求返回的页面数据;根据所述页面数据与预设的数据要求之间的匹配情况,确定测试场景数据。In the first aspect, an embodiment of the present invention provides a method for constructing test scene data, the method comprising: receiving a page request sent by a client and forwarding it to a data server; receiving a page returned by the data server according to the page request Data; determine the test scene data according to the matching between the page data and the preset data requirements.
结合第一方面,本发明实施例提供了第一方面第一种可能的实施方式,其中,所述根据所述页面数据与预设的数据要求之间的匹配情况,确定测试场景数据,包括:若所述页面数据满足所述预设的数据要求,则将所述页面数据作为所述测试场景数据;若所述页面数据不满足所述预设的数据要求,则根据所述预设的数据要求对所述页面数据进行修改,将修改后的所述页面数据作为所述测试场景数据。With reference to the first aspect, the embodiment of the present invention provides a first possible implementation manner of the first aspect, wherein the determining the test scenario data according to the matching between the page data and the preset data requirements includes: If the page data meets the preset data requirements, use the page data as the test scene data; if the page data does not meet the preset data requirements, then use the preset data It is required to modify the page data, and use the modified page data as the test scene data.
结合第一方面第一种可能的实施方式,本发明实施例提供了第一方面第二种可能的实施方式,其中,所述根据所述预设的数据要求对所述页面数据进行修改,包括:确定所述预设的数据要求对应的字段,对所述页面数据中的所述字段的内容进行编辑,或者,在所述页面数据中增加所述字段,或者,在所述页面数据中删除所述字段,其中,所述页面数据包括多个字段。With reference to the first possible implementation manner of the first aspect, this embodiment of the present invention provides a second possible implementation manner of the first aspect, wherein modifying the page data according to the preset data requirements includes : Determine the corresponding field of the preset data requirement, edit the content of the field in the page data, or add the field in the page data, or delete it in the page data The fields, wherein the page data includes a plurality of fields.
结合第一方面第一种可能的实施方式,本发明实施例提供了第一方面第三种可能的实施方式,其中,所述根据所述预设的数据要求对所述页面数据进行修改,包括:确定所述预设的数据要求对应的标准页面数据,利用所述标准页面数据替换所述页面数据。With reference to the first possible implementation manner of the first aspect, the embodiment of the present invention provides a third possible implementation manner of the first aspect, wherein modifying the page data according to the preset data requirements includes: : Determine the standard page data corresponding to the preset data requirement, and replace the page data with the standard page data.
结合第一方面第一种可能的实施方式,本发明实施例提供了第一方面第四种可能的实施方式,其中,所述根据所述预设的数据要求对所述页面数据进行修改,包括:将所述预设的数据要求对应的数据添加到所述页面数据中。With reference to the first possible implementation manner of the first aspect, this embodiment of the present invention provides a fourth possible implementation manner of the first aspect, wherein modifying the page data according to the preset data requirements includes: : Add the data corresponding to the preset data requirement to the page data.
结合第一方面上述的实施方式,本发明实施例提供了第一方面第五种可能的实施方式,其中,在所述根据所述预设的数据要求对所述页面数据进行修改之前,所述方法还包括:读取预设的配置文件,获取所述预设的数据要求,其中,所述预设的数据要求记录在所述配置文件中。In combination with the foregoing implementation manners of the first aspect, the embodiment of the present invention provides a fifth possible implementation manner of the first aspect, wherein, before modifying the page data according to the preset data requirements, the The method further includes: reading a preset configuration file, and obtaining the preset data requirement, wherein the preset data requirement is recorded in the configuration file.
第二方面,本发明实施例提供了一种埋点测试方法,所述方法包括:控制客户端根据代理服务器发送的测试场景数据进行埋点测试,其中,所述测试场景数据由所述代理服务器采用上述第一方面所述的方法确定;控制所述代理服务器接收所述客户端发送的埋点数据,并控制所述代理服务器将接收到的埋点数据发送至埋点服务器;根据所述代理服务器接收到的埋点数据和所述埋点服务器接收到的埋点数据的一致性比对结果确定埋点测试结果。In the second aspect, the embodiment of the present invention provides a buried point test method, the method comprising: controlling the client to perform the buried point test according to the test scenario data sent by the proxy server, wherein the test scenario data is provided by the proxy server Determined by the method described in the first aspect above; control the proxy server to receive the buried point data sent by the client, and control the proxy server to send the received buried point data to the buried point server; according to the proxy A consistency comparison result between the buried point data received by the server and the buried point data received by the buried point server determines the buried point test result.
结合第二方面,本发明实施例提供了第二方面第一种可能的实施方式,其中,所述方法还包括:控制所述代理服务器将接收到的埋点数据存储于本地的埋点日志文件中,以及,控制所述埋点服务器将接收到的埋点数据存储于本地的埋点日志文件中。In combination with the second aspect, the embodiment of the present invention provides the first possible implementation of the second aspect, wherein the method further includes: controlling the proxy server to store the received buried point data in a local buried point log file In, and, controlling the buried point server to store the received buried point data in a local buried point log file.
结合第二方面上述的实施方式,本发明实施例提供了第二方面第二种可能的实施方式,其中,在所述根据所述代理服务器接收到的埋点数据和所述埋点服务器接收到的埋点数据的一致性比对结果确定埋点测试结果之前,所述方法还包括:利用统一资源定位符URL格式的访问请求访问所述代理服务器,获取所述代理服务器接收到的埋点数据;获取所述埋点服务器接收到的埋点数据。In combination with the above-mentioned implementation manner of the second aspect, the embodiment of the present invention provides a second possible implementation manner of the second aspect, wherein, according to the buried point data received by the proxy server and the buried point data received by the buried point server Before the consistency comparison result of the buried point data confirms the buried point test result, the method also includes: accessing the proxy server with an access request in the form of a Uniform Resource Locator URL, and obtaining the buried point data received by the proxy server ; Obtain the buried point data received by the buried point server.
第三方面,本发明实施例提供了一种测试场景数据的构建装置,所述装置包括:第一接收模块,用于接收客户端发送的页面请求并转发至数据服务器;第二接收模块,用于接收所述数据服务器根据所述页面请求返回的页面数据;数据确定模块,用于根据所述页面数据与预设的数据要求之间的匹配情况,确定测试场景数据。In a third aspect, an embodiment of the present invention provides a device for constructing test scene data, the device comprising: a first receiving module, configured to receive a page request sent by a client and forward it to a data server; a second receiving module, configured to To receive the page data returned by the data server according to the page request; the data determination module is configured to determine the test scenario data according to the matching between the page data and the preset data requirements.
第四方面,本发明实施例提供了一种计算机设备,包括存储器和处理器,所述存储器上存储有可在所述处理器上运行的计算机程序,所述处理器运行所述计算机程序时执行上述第一方面所述的方法。In a fourth aspect, an embodiment of the present invention provides a computer device, including a memory and a processor, the memory stores a computer program that can run on the processor, and when the processor runs the computer program, it executes The method described in the first aspect above.
第五方面,本发明实施例提供了一种计算机存储介质,所述计算机存储介质上存储有计算机程序,所述计算机程序被处理器运行时执行上述第一方面所述的方法。In a fifth aspect, an embodiment of the present invention provides a computer storage medium, where a computer program is stored on the computer storage medium, and when the computer program is run by a processor, the method described in the first aspect above is executed.
第六方面,本发明实施例提供了一种计算机存储介质,所述计算机存储介质上存储有计算机程序,所述计算机程序被处理器运行时执行上述第二方面所述的方法。In a sixth aspect, an embodiment of the present invention provides a computer storage medium, where a computer program is stored on the computer storage medium, and when the computer program is run by a processor, the method described in the second aspect above is executed.
本发明实施例中,接收客户端发送的页面请求并转发至数据服务器,接收数据服务器根据页面请求返回的页面数据,根据页面数据与预设的数据要求之间的匹配情况,确定测试场景数据。由于本发明实施例中在构建测试场景数据时,从数据服务器中获取与页面请求对应的页面数据,在数据服务器外根据页面数据确定测试场景数据,而不是在数据服务端直接修改数据,因此数据服务器只负责提供页面数据,无需承担页面数据修改工作,不过多占用数据服务器资源,且无需服务器端的开发人员配合,因此与相关技术相比,通过本发明实施例中的测试场景数据的构建方法及装置、埋点测试方法,数据构建耗时短,数据构建方便,能够解决相关技术中在服务器端直接修改服务器内的数据,数据修改时间长,数据修改不方便的问题。In the embodiment of the present invention, the page request sent by the client is received and forwarded to the data server, the page data returned by the data server is received according to the page request, and the test scene data is determined according to the matching between the page data and the preset data requirements. Since the page data corresponding to the page request is obtained from the data server when constructing the test scene data in the embodiment of the present invention, the test scene data is determined according to the page data outside the data server instead of directly modifying the data at the data server end, so the data The server is only responsible for providing page data, and does not need to undertake page data modification work, but takes up too much data server resources, and does not require the cooperation of server-side developers. Therefore, compared with related technologies, the test scene data construction method and The device and buried point test method, the data construction time is short, the data construction is convenient, and can solve the problems in the related technology that the data in the server is directly modified on the server side, the data modification time is long, and the data modification is inconvenient.
为使本发明的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。In order to make the above-mentioned objects, features and advantages of the present invention more comprehensible, preferred embodiments will be described in detail below together with the accompanying drawings.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本发明的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention, and thus It should be regarded as a limitation on the scope, and those skilled in the art can also obtain other related drawings based on these drawings without creative work.
图1为本发明实施例提供的测试场景数据的构建方法及装置、埋点测试方法的应用场景示意图;Fig. 1 is a schematic diagram of the application scene of the construction method and device of the test scene data provided by the embodiment of the present invention, and the buried point test method;
图2为本发明实施例提供的HTTP埋点代理服务器的模块组成示意图;Fig. 2 is a schematic diagram of the module composition of the HTTP buried point proxy server provided by the embodiment of the present invention;
图3为本发明第一实施例提供的测试场景数据的构建方法的一种流程示意图;FIG. 3 is a schematic flow chart of a method for constructing test scenario data provided by the first embodiment of the present invention;
图4为本发明第一实施例提供的测试场景数据的构建装置的一种模块组成示意图;FIG. 4 is a schematic diagram of a module composition of the test scenario data construction device provided by the first embodiment of the present invention;
图5为本发明第一实施例提供的计算机设备的模块组成示意图;Fig. 5 is a schematic diagram of the module composition of the computer device provided by the first embodiment of the present invention;
图6为本发明第二实施例提供的埋点测试方法的流程示意图;FIG. 6 is a schematic flow chart of a buried point testing method provided in a second embodiment of the present invention;
图7为本发明第二实施例提供的埋点测试装置的模块组成示意图;Fig. 7 is a schematic diagram of the module composition of the embedded test device provided by the second embodiment of the present invention;
图8为本发明第二实施例提供的计算机设备的模块组成示意图。Fig. 8 is a schematic diagram of the module composition of the computer device provided by the second embodiment of the present invention.
具体实施方式detailed description
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本发明实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本发明的实施例的详细描述并非旨在限制要求保护的本发明的范围,而是仅仅表示本发明的选定实施例。基于本发明的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is a part of embodiments of the present invention, but not all embodiments. The components of the embodiments of the invention generally described and illustrated in the figures herein may be arranged and designed in a variety of different configurations. Accordingly, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative efforts belong to the protection scope of the present invention.
考虑到相关技术中在服务器端直接修改服务器内的数据,数据修改时间长,数据修改不方便的问题,本发明实施例提供了一种测试场景数据的构建方法及装置、埋点测试方法,下面结合实施例进行具体描述。Considering the problems in the related art that the data in the server is directly modified on the server side, the data modification time is long, and the data modification is inconvenient, the embodiment of the present invention provides a test scene data construction method and device, and a buried point test method, as follows Describe in detail in conjunction with the embodiment.
为了清楚的介绍本发明实施例中的测试场景数据的构建方法及装置、埋点测试方法,下面首先介绍本发明实施例的应用场景,图1为本发明实施例提供的测试场景数据的构建方法及装置、埋点测试方法的应用场景示意图,如图1所示,该场景包括脚本服务器1、客户端2、HTTP(HyperText Transfer Protocol,超文本传输协议)埋点代理服务器3、数据服务器4和埋点服务器5。其中,脚本服务器1内运行有自动化脚本,脚本服务器1通过运行该自动化脚本控制客户端2和HTTP代理服务器3进行埋点测试,客户端2和HTTP代理服务器3进行埋点测试的具体过程如下。In order to clearly introduce the construction method and device of the test scene data in the embodiment of the present invention, and the buried point test method, the application scene of the embodiment of the present invention is firstly introduced below, and Fig. 1 is the construction method of the test scene data provided by the embodiment of the present invention And the application scene schematic diagram of device, buried point test method, as shown in Figure 1, this scene comprises script server 1, client 2, HTTP (HyperText Transfer Protocol, hypertext transfer protocol) buried point proxy server 3, data server 4 and Buried server 5. Wherein, the script server 1 runs an automated script, and the script server 1 controls the client 2 and the HTTP proxy server 3 to perform the embedded test by running the automated script. The specific process of the embedded test performed by the client 2 and the HTTP proxy server 3 is as follows.
客户端2向HTTP埋点代理服务器3发送页面请求,HTTP埋点代理服务器3接收客户端2发送的页面请求,将页面请求发送至数据服务器4,并接收数据服务器4返回的页面数据。HTTP埋点代理服务器3中预先存储有配置文件,该配置文件中记录有预设的数据要求,HTTP埋点代理服务器3根据接收到的页面数据和预设的数据要求之间的匹配关系,确定测试场景数据,并将测试场景数据发送至客户端2。客户端2根据测试场景数据显示埋点测试页面,并在脚本服务器1的触发下抓取埋点数据,将抓取的埋点数据发送至HTTP埋点代理服务器3。HTTP埋点代理服务器3接收客户端2发送的埋点数据,将埋点数据存储到本地的埋点日志文件中,以及将埋点数据发送至埋点服务器5。埋点服务器5接收HTTP埋点代理服务器3发送的埋点数据,并存储在本地的埋点日志文件中。The client 2 sends a page request to the HTTP buried proxy server 3, and the HTTP buried proxy server 3 receives the page request sent by the client 2, sends the page request to the data server 4, and receives the page data returned by the data server 4. A configuration file is pre-stored in the HTTP buried point proxy server 3, and preset data requirements are recorded in the configuration file, and the HTTP buried point proxy server 3 determines according to the matching relationship between the received page data and the preset data requirements Test the scene data, and send the test scene data to client 2. The client 2 displays the buried point test page according to the test scene data, and captures the buried point data under the trigger of the script server 1, and sends the captured buried point data to the HTTP buried point proxy server 3. The HTTP buried point proxy server 3 receives the buried point data sent by the client 2, stores the buried point data in a local buried point log file, and sends the buried point data to the buried point server 5. The buried point server 5 receives the buried point data sent by the HTTP buried point proxy server 3, and stores it in a local buried point log file.
这里解释埋点数据的含义,在客户端内,当页面中的链接被触发时,页面中预置的抓取脚本会抓取该链接的关联信息,如该链接为广告链接时,则抓取该广告链接对应的广告商ID、广告费用等信息,还会抓取客户端的型号、链接打开时间等信息,这些由抓取脚本抓取的信息统称为埋点数据。对于链接的关联信息,一般直接记录在链接对应的代码中,抓取脚本能够从页面数据中获得,这些埋点数据是页面数据的一部分,对于客户端的型号、链接打开时间等信息,抓取脚本需要从客户端上获取,这些埋点数据不是页面数据的一部分。Here is an explanation of the meaning of buried point data. In the client, when a link in a page is triggered, the crawling script preset in the page will capture the associated information of the link. If the link is an advertising link, it will capture Information such as the advertiser ID and advertising fee corresponding to the advertisement link will also capture information such as the model of the client and the time when the link was opened. These information captured by the capture script are collectively referred to as buried point data. Link related information is generally directly recorded in the code corresponding to the link. The crawling script can be obtained from the page data. It needs to be obtained from the client, and these buried point data are not part of the page data.
脚本服务器1还向HTTP埋点代理服务器3发送第一埋点数据访问请求,获取HTTP埋点代理服务器3接收到的第一埋点数据,以及向埋点服务器5发送第二埋点数据访问请求,获取埋点服务器5接收到的第二埋点数据,脚本服务器1比较第一埋点数据和第二埋点数据是否一致,从而确定埋点测试结果。其中,第一埋点数据访问请求为URL(Uniform ResourceLocator,统一资源定位符)格式。The script server 1 also sends the first buried point data access request to the HTTP buried point proxy server 3, obtains the first buried point data received by the HTTP buried point proxy server 3, and sends the second buried point data access request to the buried point server 5 , to obtain the second buried point data received by the buried point server 5, and the script server 1 compares whether the first buried point data is consistent with the second buried point data, so as to determine the buried point test result. Wherein, the first buried point data access request is in URL (Uniform Resource Locator, Uniform Resource Locator) format.
图2为本发明实施例提供的HTTP埋点代理服务器的模块组成示意图,如图2所示,本实施例中的HTTP埋点代理服务器3包括HTTP代理模块31和HTTP服务模块32,其中,HTTP代理模块31包括数据修改子模块311和通信子模块312,HTTP服务模块32包括测试场景数据存储子模块321、配置文件存储子模块322和埋点日志存储子模块323。在埋点测试过程中,通信子模块312与脚本服务器1、客户端2、数据服务器4和埋点服务器5通信,负责与脚本服务器1、客户端2、数据服务器4和埋点服务器5之间的数据传输;数据修改子模块311从配置文件存储子模块322中读取配置文件,根据配置文件中记录的预设的数据要求和数据服务器返回的页面数据确定测试场景数据,并将测试场景数据存储至测试场景数据存储子模块321中;埋点日志存储子模块323存储埋点日志文件,埋点日志文件中记录有客户端2发送的埋点数据。Fig. 2 is the module composition diagram of the HTTP buried point proxy server that the embodiment of the present invention provides, as shown in Fig. 2, HTTP buried point proxy server 3 in the present embodiment comprises HTTP proxy module 31 and HTTP service module 32, wherein, HTTP The proxy module 31 includes a data modification submodule 311 and a communication submodule 312 , and the HTTP service module 32 includes a test scenario data storage submodule 321 , a configuration file storage submodule 322 and a buried point log storage submodule 323 . During the buried point test process, the communication sub-module 312 communicates with the script server 1, the client 2, the data server 4 and the buried point server 5, and is responsible for communicating with the script server 1, the client 2, the data server 4 and the buried point server 5. data transmission; the data modification submodule 311 reads the configuration file from the configuration file storage submodule 322, determines the test scenario data according to the preset data requirements recorded in the configuration file and the page data returned by the data server, and stores the test scenario data Stored in the test scene data storage submodule 321; the buried point log storage submodule 323 stores the buried point log file, and the buried point data sent by the client 2 is recorded in the buried point log file.
需要说明的是,本发明实施例中的HTTP埋点代理服务器3并非本领域内常见的HTTP代理服务器(http proxy server),本领域内常见的HTTP代理服务器只具备代理功能,也即只能够将客户端发送的数据转发出去,以及将发送至客户端的数据拦截下来发送至客户端,不具备数据修改功能,本实施例中的HTTP埋点代理服务器3继承了本领域内常见的HTTP代理服务器的所有功能,在此基础上还增加了页面数据修改功能,并且和HTTP Server(HTTP服务)组合,提供统一资源定位符URL的数据访问方式,从而实现测试场景数据的确定和埋点数据的访问,因此本实施例中的HTTP埋点代理服务器3并非本领域内常见的HTTP代理服务器。It should be noted that the HTTP buried point proxy server 3 in the embodiment of the present invention is not a common HTTP proxy server (http proxy server) in the field, and the common HTTP proxy server in the field only possesses proxy functions, that is, it can only The data sent by the client is forwarded, and the data sent to the client is intercepted and sent to the client. It does not have a data modification function. The HTTP buried point proxy server 3 in this embodiment inherits the common HTTP proxy server in the art. All functions, on the basis of which, the page data modification function is added, and it is combined with HTTP Server (HTTP service) to provide data access mode of Uniform Resource Locator URL, so as to realize the determination of test scene data and the access of buried point data. Therefore, the HTTP buried proxy server 3 in this embodiment is not a common HTTP proxy server in the field.
下面结合图1中的应用场景描述本发明实施例中的测试场景数据的构建方法及装置、埋点测试方法。The following describes the method and device for constructing test scene data and the buried point test method in the embodiment of the present invention in conjunction with the application scene in FIG. 1 .
实施例一Embodiment one
本发明第一实施例提供了一种测试场景数据的构建方法,该方法的执行主体为图1中的HTTP埋点代理服务器3,图3为本发明第一实施例提供的测试场景数据的构建方法的一种流程示意图,如图3所示,该方法包括以下步骤:The first embodiment of the present invention provides a method for constructing test scenario data. The execution subject of the method is the HTTP buried point proxy server 3 in FIG. 1 , and FIG. 3 is the construction of the test scenario data provided by the first embodiment of the present invention. A schematic flow chart of the method, as shown in Figure 3, the method comprises the following steps:
步骤S202,接收客户端发送的页面请求并转发至数据服务器。Step S202, receiving the page request sent by the client and forwarding it to the data server.
以图1中的应用场景为例,客户端2在埋点测试过程中,在脚本服务器1的触发下向HTTP埋点代理服务器3发送页面请求,HTTP埋点代理服务器3接收客户端2发送的页面请求,并将该页面请求转发至数据服务器4。其中,该页面请求可以为URL网页地址,也即网页链接。Taking the application scenario in Figure 1 as an example, client 2 sends a page request to HTTP buried proxy server 3 under the trigger of script server 1 during the buried point test process, and HTTP buried point proxy server 3 receives the page request sent by client 2. page request, and forward the page request to the data server 4. Wherein, the page request may be a URL webpage address, that is, a webpage link.
通常情况下,在脚本服务器1运行的自动化脚本内写有埋点测试程序,该埋点测试程序设置了客户端2发送的页面请求的内容,客户端2只需在自动化脚本的控制下发送设定好的页面请求,页面请求的内容与埋点测试需求有关,比如,埋点测试需求为测试购物流程中各个页面的埋点数据,则页面请求的内容为对应的购物网页链接,又如,埋点测试需求为测试广告页面的埋点数据,则页面请求的内容为对应的广告页面链接。Usually, in the automated script that script server 1 runs, there is a buried point test program, which sets the content of the page request sent by client 2, and client 2 only needs to send the set page under the control of the automated script. For a predetermined page request, the content of the page request is related to the buried point test requirements. For example, if the buried point test requirement is to test the buried point data of each page in the shopping process, the content of the page request is the corresponding shopping web page link. For example, The buried point test requirement is to test the buried point data of the advertisement page, and the content of the page request is the corresponding advertisement page link.
步骤S204,接收数据服务器根据该页面请求返回的页面数据。Step S204, receiving the page data returned by the data server according to the page request.
以图1中的应用场景为例,数据服务器4接收HTTP埋点代理服务器3发送的页面请求,数据服务器4内存储有实时的后台数据,数据服务器4根据页面请求查找实时的后台数据,将查找到的数据作为页面数据发送至HTTP埋点代理服务器3。HTTP埋点代理服务器3接收数据服务器发送的页面数据。Taking the application scenario in Figure 1 as an example, the data server 4 receives the page request sent by the HTTP buried point proxy server 3, and the real-time background data is stored in the data server 4, and the data server 4 searches for the real-time background data according to the page request, and will search The received data is sent to the HTTP buried point proxy server 3 as page data. The HTTP buried point proxy server 3 receives the page data sent by the data server.
需要说明的是,数据服务器4可以看作是后台服务器,其中存储有实时的后台数据,当数据服务器4接收到页面请求时,能够根据页面请求获取实时的页面数据,因此该页面数据是真实的页面数据,不是伪造的页面数据。举例而言,当页面请求为通过百度搜索引擎搜索“火锅”时,则数据服务器4返回的页面数据为当前实时的跟关键词“火锅”相关的页面,其中该页面包括打广告的商家和未打广告但和关键词很相关的商家,当页面请求为某物品的订单页面时,则数据服务器4返回的页面数据为当前实时的该订单页面。It should be noted that the data server 4 can be regarded as a background server, which stores real-time background data. When the data server 4 receives a page request, it can obtain real-time page data according to the page request, so the page data is real Page data, not fake page data. For example, when the page request is to search for "hot pot" through the Baidu search engine, the page data returned by the data server 4 is a current real-time page related to the keyword "hot pot", wherein the page includes advertisers and unidentified When the page request is an order page of a certain item for a merchant who advertises but is very relevant to keywords, the page data returned by the data server 4 is the current real-time order page.
步骤S206,根据该页面数据与预设的数据要求之间的匹配情况,确定测试场景数据。Step S206, according to the matching between the page data and the preset data requirements, determine the test scene data.
具体地,HTTP埋点代理服务器3判断页面数据是否满足预设的数据要求,若该页面数据满足预设的数据要求,则将该页面数据作为测试场景数据,若该页面数据不满足预设的数据要求,则根据预设的数据要求对该页面数据进行修改,将修改后的页面数据作为测试场景数据。其中,预设的数据要求记录在上述的配置文件中。Specifically, the HTTP buried point proxy server 3 judges whether the page data meets the preset data requirements, if the page data meets the preset data requirements, then the page data is used as the test scene data, if the page data does not meet the preset data requirements Data requirements, modify the page data according to the preset data requirements, and use the modified page data as the test scene data. Among them, the preset data requirements are recorded in the above-mentioned configuration file.
一种情况下,页面数据中包含多个字段,开发人员在设计页面数据时,添加每个字段的内容即能够得到开发完成的页面数据,这种情况下,根据预设的数据要求对该页面数据进行修改,具体实现为:确定预设的数据要求对应的字段,对页面数据中的该字段的内容进行编辑,或者,在页面数据中增加该字段,或者,在页面数据中删除该字段。预设的数据要求对应的字段能够是与广告链接有关的字段,还能够是具有标准格式的埋点数据的字段,其中,页面数据中的埋点数据也由多个字段组成。In one case, the page data contains multiple fields. When the developer designs the page data, adding the content of each field can obtain the developed page data. Data modification is specifically realized by: determining the corresponding field of the preset data requirement, editing the content of the field in the page data, or adding the field in the page data, or deleting the field in the page data. The fields corresponding to the preset data requirements can be fields related to advertisement links, and can also be fields with buried point data in a standard format, wherein the buried point data in the page data is also composed of multiple fields.
比如,当埋点测试需求为测试包含广告链接的页面的埋点数据时,预设的数据要求为页面数据中包含广告链接,预设的数据要求对应的字段为与广告链接有关的字段,如“广告商序号”、“广告费用”等,在页面数据中增加该字段,并设置字段的内容,从而使页面数据中包含广告链接。For example, when the buried point test requirement is to test the buried point data of the page containing the advertisement link, the preset data requirement is that the page data contains the advertisement link, and the corresponding field of the preset data requirement is the field related to the advertisement link, such as "Advertiser serial number", "advertising fee", etc., add this field in the page data, and set the content of the field, so that the page data includes the advertisement link.
又如,当埋点测试需求为测试不包含广告链接的页面的埋点数据时,预设的数据要求为页面数据中不包含广告链接,预设的数据要求对应的字段为与广告链接有关的字段,如“广告商序号”、“广告费用”等,删除页面数据中与广告链接有关的字段,使得页面数据中不包含广告链接。As another example, when the buried point test requirement is to test the buried point data of a page that does not contain an advertisement link, the default data requirement is that the page data does not contain an advertisement link, and the corresponding field of the preset data requirement is related to the advertisement link Fields, such as "advertiser serial number", "advertising cost", etc., delete the fields related to advertising links in the page data, so that the page data does not contain advertising links.
又如,当埋点测试需求为测试指定位置是广告链接的页面的埋点数据时,预设的数据要求为,页面数据中对应指定页面位置的数据为广告链接,修改页面数据中对应指定页面位置的数据,具体修改该数据中与广告链接有关的字段,使其变为广告链接,从而使修改后的页面数据满足预设的数据要求。As another example, when the buried point test requirement is to test the buried point data of the page whose specified position is an advertisement link, the preset data requirement is that the data corresponding to the specified page position in the page data is the advertisement link, and the corresponding specified page in the modified page data The location data, and specifically modify the fields related to the advertisement link in the data to make it into an advertisement link, so that the modified page data meets the preset data requirements.
再如,由于埋点服务器具有过滤错误的埋点数据不予存储的功能,当需要通过埋点测试验证埋点服务器的该功能时,预设的数据要求为页面数据包含错误的埋点数据,则此时预设的数据要求对应的字段为具有标准格式的埋点数据的字段,如埋点数据中的“地点”、“时间”字段等,修改页面数据中具有标准格式的埋点数据的字段的内容,如将“地理坐标”的内容修改为错误格式的内容,或者将字段“时间”的内容修改为错误格式的内容,以验证埋点服务器的过滤功能。For another example, since the tracking server has the function of filtering and not storing the wrong tracking data, when it is necessary to verify the function of the tracking server through the tracking test, the preset data requirement is that the page data contains wrong tracking data, At this time, the preset data requires that the corresponding field is a field with buried point data in a standard format, such as the "location" and "time" fields in the buried point data. The content of the field, such as modifying the content of "geographical coordinates" to the content of the wrong format, or modifying the content of the field "time" to the content of the wrong format, to verify the filtering function of the buried point server.
另一种情况下,HTTP埋点代理服务器中预先存储有标准页面数据,该标准页面数据满足预设的数据要求,该种情况下,根据预设的数据要求对该页面数据进行修改,具体实现为:确定预设的数据要求对应的标准页面数据,利用标准页面数据替换页面数据。In another case, standard page data is pre-stored in the HTTP buried point proxy server, and the standard page data meets the preset data requirements. In this case, the page data is modified according to the preset data requirements. The specific implementation To: determine the standard page data corresponding to the preset data requirement, and replace the page data with the standard page data.
比如,当埋点测试的测试需求为测试预设的用户操作对应的页面的埋点数据时,预设的数据要求为,页面数据是预设的用户操作对应的页面数据,将预设的用户操作对应的页面数据存储为标准页面数据,利用标准页面数据替换页面数据,从而得到预设的用户操作对应的页面数据,其中,预设的用户操作包括下单操作、支付操作、退款操作等。For example, when the test requirement of the buried point test is to test the buried point data of the page corresponding to the preset user operation, the preset data requirement is that the page data is the page data corresponding to the preset user operation, and the preset user operation The page data corresponding to the operation is stored as standard page data, and the standard page data is used to replace the page data, so as to obtain the page data corresponding to the preset user operations, where the preset user operations include ordering operations, payment operations, refund operations, etc. .
又如,当埋点测试的测试需求为测试预设的地区和/预设的时间所展示的页面的埋点数据时,预设的数据要求为,页面数据是预设的地区和/预设的时间所展示的页面数据,将预设的地区和/预设的时间所展示的页面数据存储为标准页面数据,利用标准页面数据替换页面数据,从而得到预设的地区和/预设的时间所展示的页面数据。As another example, when the test requirement of the buried point test is to test the buried point data of the page displayed in the preset region and/preset time, the preset data requirement is that the page data is the preset region and/preset The page data displayed at the time, store the page data displayed at the preset region and/or the preset time as standard page data, and replace the page data with the standard page data, so as to obtain the preset region and/or preset time The displayed page data.
再一种情况下,需要在页面数据中添加指定内容,使得页面数据满足预设的数据要求,该种情况下,根据预设的数据要求对该页面数据进行修改,具体实现为:将预设的数据要求对应的数据添加到页面数据中,预设的数据要求对应的数据能够为网页链接数据、图片数据、文档数据、视频数据等。In another case, it is necessary to add specified content to the page data so that the page data meets the preset data requirements. In this case, modify the page data according to the preset data requirements. The specific implementation is as follows: the preset The corresponding data is required to be added to the page data, and the corresponding data required by the preset data can be webpage link data, picture data, document data, video data, etc.
比如,当埋点测试需求为测试包含视频的网页的埋点数据时,预设的数据要求为,页面数据中包含视频数据,预设的数据要求对应的数据为视频数据,将视频数据添加到页面数据中,得到满足要求的页面数据。For example, when the buried point test requirement is to test the buried point data of a webpage containing video, the preset data requirement is that the page data contains video data, and the preset data requires that the corresponding data is video data, and the video data is added to In the page data, the page data that meets the requirements is obtained.
以图1中的应用场景为例,步骤S206具体为,HTTP埋点代理服务器3中预先存储有配置文件,配置文件中记录有预设的数据要求,HTTP埋点代理服务器3接收到数据服务器4返回的页面数据时,首先判断页面数据是否满足预设的数据要求,若满足,则将页面数据作为测试场景数据,若不满足,则根据预设的数据要求对页面数据进行修改,将修改后的页面数据作为测试场景数据。Taking the application scenario in Figure 1 as an example, step S206 is specifically, a configuration file is pre-stored in the HTTP buried point proxy server 3, and preset data requirements are recorded in the configuration file, and the HTTP buried point proxy server 3 receives data from the data server 4 When returning the page data, first judge whether the page data meets the preset data requirements, if so, use the page data as the test scene data, if not, modify the page data according to the preset data requirements, and convert the modified The page data of is used as the test scene data.
通过步骤S206,能够采用多种方式对页面数据进行修改,从而确定满足预设的数据要求的测试场景数据。Through step S206, the page data can be modified in various ways, so as to determine the test scene data that meets the preset data requirements.
本发明实施例中,在确定测试场景数据后,还能够将测试场景数据发送至客户端,使得客户端根据测试场景数据显示埋点测试页面,从而使客户端进行埋点测试。In the embodiment of the present invention, after the test scene data is determined, the test scene data can also be sent to the client, so that the client can display the buried point test page according to the test scene data, so that the client can perform the buried point test.
以图1中的应用场景为例,HTTP埋点代理服务器3将测试场景数据返回至客户端2,客户端2根据测试场景数据显示埋点测试页面。当脚本服务器1检测到客户端2显示埋点测试页面时,触发客户端2启动埋点数据的抓取,并触发客户端2将抓取的埋点数据发送至HTTP埋点代理服务器3。HTTP埋点代理服务器3接收客户端2发送的埋点数据,将埋点数据存储在本地埋点日志文件中,以及将埋点数据发送至埋点服务器5。其中,埋点测试页面包括多个链接,当打开一个链接时,客户端2将会向HTTP埋点代理服务器3发送该链接对应的埋点数据,链接打开的动作可以为程序执行、也可为用户触发。Taking the application scenario in Figure 1 as an example, the HTTP buried point proxy server 3 returns the test scenario data to the client 2, and the client 2 displays the buried point test page according to the test scenario data. When the script server 1 detects that the client 2 displays the buried point test page, it triggers the client 2 to start capturing the buried point data, and triggers the client 2 to send the captured buried point data to the HTTP buried point proxy server 3 . The HTTP buried point proxy server 3 receives the buried point data sent by the client 2, stores the buried point data in a local buried point log file, and sends the buried point data to the buried point server 5. Among them, the buried point test page includes multiple links. When opening a link, the client 2 will send the buried point data corresponding to the link to the HTTP buried point proxy server 3. The action of opening the link can be executed by the program or can be Triggered by the user.
本发明实施例中,接收客户端发送的页面请求并转发至数据服务器,接收数据服务器根据页面请求返回的页面数据,根据页面数据与预设的数据要求之间的匹配情况,确定测试场景数据。由于本发明实施例中在构建测试场景数据时,从数据服务器中获取与页面请求对应的页面数据,在数据服务器外根据页面数据确定测试场景数据,而不是在数据服务端直接修改数据,因此数据服务器只负责提供页面数据,无需承担页面数据修改工作,不过多占用数据服务器资源,且无需服务器端的开发人员配合,因此与相关技术相比,通过本发明实施例中的测试场景数据的构建方法,数据构建耗时短,数据构建方便,能够解决相关技术中在服务器端直接修改服务器内的数据,数据修改时间长,数据修改不方便的问题。In the embodiment of the present invention, the page request sent by the client is received and forwarded to the data server, the page data returned by the data server is received according to the page request, and the test scene data is determined according to the matching between the page data and the preset data requirements. Since the page data corresponding to the page request is obtained from the data server when constructing the test scene data in the embodiment of the present invention, the test scene data is determined according to the page data outside the data server instead of directly modifying the data at the data server end, so the data The server is only responsible for providing page data, and does not need to undertake page data modification work, but occupies too much data server resources, and does not require the cooperation of server-side developers. Therefore, compared with related technologies, through the construction method of test scene data in the embodiment of the present invention, The data construction time is short and the data construction is convenient, which can solve the problems in the related technologies that the data in the server is directly modified on the server side, the data modification time is long, and the data modification is inconvenient.
另外,本实施例中,利用数据服务器中实时的页面数据构造埋点测试数据,构造出来的埋点测试数据具有真实度较高的优势,保证埋点测试环境的真实性。In addition, in this embodiment, real-time page data in the data server is used to construct buried point test data, and the constructed buried point test data has the advantage of high authenticity, which ensures the authenticity of the buried point test environment.
进一步地,在根据预设的数据要求对页面数据进行修改之前,还需要确定预设的数据要求,具体确定过称为:读取预设的配置文件,获取预设的数据要求,其中,预设的数据要求记录在配置文件中。其中该预设的配置文件即为上述的HTTP埋点代理服务器3中存储的配置文件。Furthermore, before modifying the page data according to the preset data requirements, it is also necessary to determine the preset data requirements. The specific determination is called: reading the preset configuration file, obtaining the preset data requirements, wherein the preset The set data requirements are recorded in the configuration file. The preset configuration file is the configuration file stored in the above-mentioned HTTP buried point proxy server 3 .
以图1中的应用场景为例,HTTP埋点代理服务器3中预先存储有配置文件,配置文件中记录有预设的数据要求,HTTP埋点代理服务器3接收脚本服务器1发送的设置指令,根据该设置指令读取配置文件,将其中的部分内容确定为预设的数据要求。其中,该设置指令能够是用户发送至脚本服务器1的,其作用是将配置文件中的部分内容确定为预设的数据要求,该设置指令与埋点测试需求相对应。Taking the application scenario in Figure 1 as an example, a configuration file is pre-stored in the HTTP buried point proxy server 3, and preset data requirements are recorded in the configuration file, and the HTTP buried point proxy server 3 receives the setting instruction sent by the script server 1, according to The setting instruction reads the configuration file, and determines part of the contents as preset data requirements. Wherein, the setting instruction can be sent by the user to the script server 1, and its function is to determine part of the content in the configuration file as a preset data requirement, and the setting instruction corresponds to the buried point test requirement.
本实施例中,能够从预设的配置文件中获取预设的数据要求,不需用户在埋点测试过程中临时提供,数据要求获取过程方便易行。In this embodiment, the preset data requirement can be obtained from the preset configuration file, and the user does not need to temporarily provide it during the point-buried test process, and the process of obtaining the data requirement is convenient and easy.
最后,本实施例中的方法应用在HTTP代理服务器上,多人通过配置不同的数据要求能够进行各自的埋点测试,方便多人利用一台设备进行埋点测试,提高埋点测试的效率,其中,每个人均对应有一个数据要求,多个数据要求对应多个埋点测试任务,且多个数据要求彼此之间不相互关联。Finally, the method in this embodiment is applied on the HTTP proxy server, and multiple people can perform their own buried point tests by configuring different data requirements, which is convenient for multiple people to use one device to perform buried point tests and improve the efficiency of buried point tests. Among them, each person corresponds to one data requirement, and multiple data requirements correspond to multiple embedded test tasks, and multiple data requirements are not related to each other.
对应图3中的方法,本发明实施例还提供了一种测试场景数据的构建装置,该装置能够集成在图1中的HTTP埋点代理服务器3中,图4为本发明第一实施例提供的测试场景数据的构建装置的一种模块组成示意图,如图4所示,该装置包括:第一接收模块41,用于接收客户端发送的页面请求并转发至数据服务器;第二接收模块42,用于接收数据服务器根据页面请求返回的页面数据;数据确定模块43,用于根据页面数据与预设的数据要求之间的匹配情况,确定测试场景数据。Corresponding to the method in FIG. 3, the embodiment of the present invention also provides a device for constructing test scenario data, which can be integrated in the HTTP buried point proxy server 3 in FIG. 1, and FIG. A schematic diagram of the module composition of the construction device of the test scenario data, as shown in Figure 4, the device includes: a first receiving module 41, which is used to receive the page request sent by the client and forward it to the data server; a second receiving module 42 , used to receive the page data returned by the data server according to the page request; the data determination module 43 is used to determine the test scenario data according to the matching between the page data and the preset data requirements.
具体地,数据确定模块43包括确定子模块和修改确定子模块,确定子模块用于若页面数据满足预设的数据要求,则将页面数据作为测试场景数据,修改子模块用于若页面数据不满足预设的数据要求,则根据预设的数据要求对页面数据进行修改,将修改后的页面数据作为测试场景数据。Specifically, the data determination module 43 includes a determination submodule and a modification determination submodule. The determination submodule is used to use the page data as test scene data if the page data meets the preset data requirements, and the modification submodule is used to modify the page data if the page data does not meet the preset data requirements. If the preset data requirements are met, the page data is modified according to the preset data requirements, and the modified page data is used as test scene data.
一种情况下,修改子模块具体用于,确定预设的数据要求对应的字段,对页面数据中的字段的内容进行编辑,或者,在页面数据中增加字段,或者,在页面数据中删除字段,其中,页面数据包括多个字段。In one case, the modification sub-module is specifically used to determine the fields corresponding to the preset data requirements, edit the content of the fields in the page data, or add fields to the page data, or delete fields in the page data , where the page data includes multiple fields.
另一种情况下,修改子模块具体用于,确定预设的数据要求对应的标准页面数据,利用标准页面数据替换页面数据。In another case, the modifying submodule is specifically configured to determine the standard page data corresponding to the preset data requirement, and replace the page data with the standard page data.
再一种情况下,修改子模块具体用于,将预设的数据要求对应的数据添加到页面数据中。In another case, the modifying submodule is specifically used to add data corresponding to preset data requirements to the page data.
本发明实施例中,接收客户端发送的页面请求并转发至数据服务器,接收数据服务器根据页面请求返回的页面数据,根据页面数据与预设的数据要求之间的匹配情况,确定测试场景数据。由于本发明实施例中在构建测试场景数据时,从数据服务器中获取与页面请求对应的页面数据,在数据服务器外根据页面数据确定测试场景数据,而不是在数据服务端直接修改数据,因此数据服务器只负责提供页面数据,无需承担页面数据修改工作,不过多占用数据服务器资源,且无需服务器端的开发人员配合,因此与相关技术相比,通过本发明实施例中的测试场景数据的构建装置,数据构建耗时短,数据构建方便,能够解决相关技术中在服务器端直接修改服务器内的数据,数据修改时间长,数据修改不方便的问题。In the embodiment of the present invention, the page request sent by the client is received and forwarded to the data server, the page data returned by the data server is received according to the page request, and the test scene data is determined according to the matching between the page data and the preset data requirements. Since the page data corresponding to the page request is obtained from the data server when constructing the test scene data in the embodiment of the present invention, the test scene data is determined according to the page data outside the data server instead of directly modifying the data at the data server end, so the data The server is only responsible for providing page data, and does not need to undertake page data modification work, but occupies too much data server resources, and does not require the cooperation of server-side developers. Therefore, compared with related technologies, through the test scene data construction device in the embodiment of the present invention, The data construction time is short and the data construction is convenient, which can solve the problems in the related technologies that the data in the server is directly modified on the server side, the data modification time is long, and the data modification is inconvenient.
进一步地,本实施例中,还包括要求获取模块,用于在根据预设的数据要求对页面数据进行修改之前,读取预设的配置文件,获取预设的数据要求,其中,预设的数据要求记录在该配置文件中。Further, in this embodiment, a requirement acquisition module is also included, which is used to read a preset configuration file and acquire a preset data requirement before modifying the page data according to the preset data requirement, wherein the preset Data requirements are documented in this configuration file.
本实施例中,通过要求获取模块,能够从预设的配置文件中获取预设的数据要求,不需用户在埋点测试过程中临时提供,数据要求获取过程方便易行。In this embodiment, the preset data requirement can be obtained from the preset configuration file through the requirement acquisition module, and the user does not need to temporarily provide it during the buried point test process, and the data requirement acquisition process is convenient and easy.
对应图3中的方法,本发明实施例还提供了一种计算机设备,图5为本发明第一实施例提供的计算机设备的模块组成示意图,如图5所示,该设备包括存储器1000和处理器2000,存储器1000上存储有可在处理器2000上运行的计算机程序,处理器2000运行该计算机程序时,执行上述的测试场景数据的构建方法。Corresponding to the method in FIG. 3 , an embodiment of the present invention also provides a computer device. FIG. 5 is a schematic diagram of the module composition of the computer device provided in the first embodiment of the present invention. As shown in FIG. 5 , the device includes a memory 1000 and a processing The memory 1000 stores a computer program that can run on the processor 2000. When the processor 2000 runs the computer program, it executes the above method for constructing test scenario data.
具体地,存储器1000和处理器2000能够为通用的存储器和处理器,这里不做具体限定,当处理器2000运行存储器1000存储的计算机程序时,能够执行上述的测试场景数据的构建方法,从而解决相关技术中在服务器端直接修改服务器内的数据,数据修改时间长,数据修改不方便的问题。Specifically, the memory 1000 and the processor 2000 can be general-purpose memory and processor, which are not specifically limited here. When the processor 2000 runs the computer program stored in the memory 1000, it can execute the above-mentioned method for constructing test scenario data, thereby solving the problem of In the related art, the data in the server is directly modified at the server side, and the data modification takes a long time and the data modification is inconvenient.
对应图3中的方法,本发明实施例还提供了一种计算机存储介质,该计算机存储介质上存储有计算机程序,该计算机程序被处理器运行时,执行上述的测试场景数据的构建方法。Corresponding to the method in FIG. 3 , an embodiment of the present invention also provides a computer storage medium, on which a computer program is stored. When the computer program is run by a processor, the above method for constructing test scenario data is executed.
具体地,该存储介质能够为通用的存储介质,如移动磁盘、硬盘等,该存储介质上的计算机程序被运行时,能够执行上述的测试场景数据的构建方法,从而解决相关技术中在服务器端直接修改服务器内的数据,数据修改时间长,数据修改不方便的问题。Specifically, the storage medium can be a general-purpose storage medium, such as a removable disk, a hard disk, etc. When the computer program on the storage medium is run, it can execute the above-mentioned method for constructing the test scenario data, thereby solving the problem of server-side problems in related technologies. Directly modify the data in the server, the data modification time is long, and the data modification is inconvenient.
实施例二Embodiment two
在通过图3中的方法构建测试场景数据的基础上,本发明第二实施例提供了一种埋点测试方法,该方法的执行主体为图1中的脚本服务器1,该方法用于进行埋点测试,图6为本发明第二实施例提供的埋点测试方法的流程示意图,如图6所示,该流程包括以下步骤:On the basis of constructing the test scenario data by the method in FIG. 3 , the second embodiment of the present invention provides a buried test method, the execution subject of the method is the script server 1 in FIG. 1 , and the method is used for buried Point test, FIG. 6 is a schematic flow chart of the buried point test method provided by the second embodiment of the present invention. As shown in FIG. 6, the process includes the following steps:
步骤S302,控制客户端根据代理服务器发送的测试场景数据进行埋点测试,其中,测试场景数据由代理服务器采用实施例一中的测试场景数据构建方法确定。In step S302, the client is controlled to perform a point-buried test according to the test scenario data sent by the proxy server, wherein the test scenario data is determined by the proxy server using the method for constructing test scenario data in Embodiment 1.
以图1为例,客户端2接收HTTP埋点代理服务器3返回的测试场景数据,脚本服务器1控制客户端2根据该测试场景数据显示埋点测试页面,并控制客户端2抓取埋点测试页面的埋点数据,将抓取的埋点数据发送至HTTP埋点代理服务器3。Taking Figure 1 as an example, client 2 receives the test scenario data returned by HTTP buried point proxy server 3, script server 1 controls client 2 to display the buried point test page according to the test scenario data, and controls client 2 to grab the buried point test The buried point data of the page, and send the captured buried point data to the HTTP buried point proxy server 3.
步骤S304,控制代理服务器接收客户端发送的埋点数据,并控制代理服务器将接收到的埋点数据发送至埋点服务器。Step S304, controlling the proxy server to receive the buried point data sent by the client, and controlling the proxy server to send the received buried point data to the buried point server.
以图1为例,脚本服务器1控制HTTP埋点代理服务器3接收客户端2在埋点测试过程中发送的埋点数据,并控制HTTP埋点代理服务器3将接收到的埋点数据发送至埋点服务器5。Taking Figure 1 as an example, the script server 1 controls the HTTP buried point proxy server 3 to receive the buried point data sent by the client 2 during the buried point test, and controls the HTTP buried point proxy server 3 to send the received buried point data to the buried point Point server 5.
步骤S306,根据代理服务器接收到的埋点数据和埋点服务器接收到的埋点数据的一致性比对结果确定埋点测试结果。In step S306, the buried point test result is determined according to the consistency comparison result between the buried point data received by the proxy server and the buried point data received by the buried point server.
以图1为例,脚本服务器1比较HTTP埋点代理服务器3接收到的埋点数据和埋点服务器5接收到的埋点数据是否一致,若比对结果一致,则确定测试成功,否则确定测试失败。Taking Figure 1 as an example, the script server 1 compares whether the buried point data received by the HTTP buried point proxy server 3 and the buried point data received by the buried point server 5 are consistent. If the comparison results are consistent, the test is determined to be successful, otherwise the test is determined fail.
本实施例还提供了埋点数据的存储过程,具体为,控制代理服务器将接收到的埋点数据存储于本地的埋点日志文件中,以及,控制埋点服务器将接收到的埋点数据存储于本地的埋点日志文件中。This embodiment also provides the storage process of buried point data, specifically, the control proxy server stores the received buried point data in the local buried point log file, and controls the buried point server to store the received buried point data in the local buried log file.
以图1为例,在HTTP埋点代理服务器3接收到埋点数据之后,脚本服务器1控制HTTP埋点代理服务器3将接收到的埋点数据存储于本体的埋点日志文件中,本领域技术人员能够理解,这里“本地”的含义指的是HTTP埋点代理服务器3这台服务器,“本体的埋点日志文件”指的是HTTP埋点代理服务器3这台服务器中的埋点日志文件。同样地,在埋点服务器5接收到HTTP埋点代理服务器3发送的埋点数据后,脚本服务器1控制埋点服务器5将接收到的埋点数据存储在本地的埋点日志文件中,这里“本地”指的是埋点服务器5这台服务器,“本体的埋点日志文件”指的是埋点服务器5这台服务器中的埋点日志文件。Taking Fig. 1 as an example, after the HTTP buried point proxy server 3 receives the buried point data, the script server 1 controls the HTTP buried point proxy server 3 to store the received buried point data in the buried point log file of the body. Personnel can understand that the meaning of "local" here refers to the HTTP buried proxy server 3, and "the buried log file of the ontology" refers to the buried log files in the HTTP buried proxy server 3. Similarly, after the buried point server 5 receives the buried point data sent by the HTTP buried point proxy server 3, the script server 1 controls the buried point server 5 to store the received buried point data in the local buried point log file, where " "Local" refers to the buried point server 5, and "ontology buried point log file" refers to the buried point log file in the buried point server 5.
本实施例中,脚本服务器1在执行步骤S308之前,还利用统一资源定位符URL格式的访问请求访问代理服务器,获取代理服务器接收到的埋点数据。In this embodiment, before executing step S308, the script server 1 also accesses the proxy server by using an access request in URL format to obtain the buried point data received by the proxy server.
以图1中的应用场景为例,脚本服务器1向HTTP埋点代理服务器3发送第一埋点数据访问请求,第一埋点数据访问请求为URL格式,通过URL格式的访问请求获取HTTP埋点代理服务器3存储的第一埋点数据。Taking the application scenario in Figure 1 as an example, the script server 1 sends the first buried point data access request to the HTTP buried point proxy server 3, the first buried point data access request is in URL format, and the HTTP buried point is obtained through the access request in URL format The first buried point data stored by the proxy server 3.
上述的URL格式的埋点数据访问请求举例为:http://localhost:8080/getlog/?20:09:03,该请求的具体格式为//代理服务器地址//埋点日志文件标识/埋点数据接收时间,通过该种格式,能够获取埋点服务器在某个时间点之后的接收到的埋点数据。An example of the buried point data access request in the above URL format is: http://localhost:8080/getlog/? 20:09:03, the specific format of the request is //proxy server address//buried point log file identifier/buried point data receiving time, through this format, the data received by the buried point server after a certain time point can be obtained The buried point data.
本实施中,脚本服务器1在执行步骤S308之前,还获取埋点服务接收到的埋点数据。具体为,脚本服务器1向埋点服务器5发送第二埋点数据访问请求,获取埋点服务器5接收到的第二埋点数据。脚本服务器1能够采用相关技术中的任意方式获取埋点服务器5接收到的埋点数据,这里不做具体限定。In this implementation, before executing step S308, the script server 1 also acquires the buried point data received by the buried point service. Specifically, the script server 1 sends a second buried point data access request to the buried point server 5 to obtain the second buried point data received by the buried point server 5 . The script server 1 can acquire the buried point data received by the buried point server 5 by any means in related technologies, which is not specifically limited here.
本实施例中,通过URL格式的埋点日志访问请求获取代理服务器存储的埋点数据,与相关技术中的通过文件系统本地或者远程访问、或者下载日志文件的方式相比,不存在文件系统兼容问题和服务器权限问题,访问形式一致,脚本编写十分简单方便。通过URL格式的埋点日志访问请求获取代理服务器存储的埋点数据,与相关技术中的登录代理服务器访问埋点日志的方式相比,不需要经过繁琐的登录和查找,过滤等步骤,不需要随着代理服务器的系统的改变而更换登录方式。In this embodiment, the buried point data stored by the proxy server is obtained through the buried point log access request in the URL format. Compared with the local or remote access through the file system in the related art, or the way of downloading log files, there is no file system compatibility. The problem and the server permission problem, the access form is consistent, and the script writing is very simple and convenient. Obtain the buried point data stored by the proxy server through the buried point log access request in the URL format. Compared with the method of logging into the proxy server to access the buried point log in the related technology, it does not need to go through cumbersome steps such as login, search, and filtering. Change the login method according to the change of the proxy server system.
由于本发明实施例中,测试场景数据由代理服务器采用实施例一中的测试场景数据构建方法确定,因此通过本发明实施例中的埋点测试方法,数据服务器只负责提供页面数据,无需承担页面数据修改工作,不过多占用数据服务器资源,且无需服务器端的开发人员配合,因此与相关技术相比,通过本发明实施例中的测试场景数据的构建装置,数据构建耗时短,数据构建方便,能够解决相关技术中在服务器端直接修改服务器内的数据,数据修改时间长,数据修改不方便的问题。Because in the embodiment of the present invention, the test scene data is determined by the proxy server using the test scene data construction method in the first embodiment, so through the buried point test method in the embodiment of the present invention, the data server is only responsible for providing page data, and does not need to undertake page data. Data modification does not take up too much data server resources, and does not require the cooperation of server-side developers. Therefore, compared with related technologies, through the test scene data construction device in the embodiment of the present invention, the data construction time is short and the data construction is convenient. The invention can solve the problems in the related art that the data in the server is directly modified at the server end, the data modification time is long, and the data modification is inconvenient.
对应图6中的方法,本发明实施例提供了一种埋点测试装置,该装置能够集成在图1中的脚本服务器1内,图7为本发明第二实施例提供的埋点测试装置的模块组成示意图,如图7所示,该装置包括:第一控制模块71,用于控制客户端根据代理服务器发送的测试场景数据进行埋点测试,其中,测试场景数据由代理服务器采用上述实施例一中的测试场景数据的构建方法确定;第一控制模块72,用于控制代理服务器接收客户端发送的埋点数据,并控制代理服务器将接收到的埋点数据发送至埋点服务器;结果确定模块73,用于根据代理服务器接收到的埋点数据和埋点服务器接收到的埋点数据的一致性比对结果确定埋点测试结果。Corresponding to the method in FIG. 6, the embodiment of the present invention provides a buried point testing device, which can be integrated into the script server 1 in FIG. 1, and FIG. 7 shows the buried point testing device provided in the second embodiment of the present invention. A schematic diagram of the module composition, as shown in Figure 7, the device includes: a first control module 71, which is used to control the client to perform a buried point test according to the test scenario data sent by the proxy server, wherein the test scenario data is used by the proxy server according to the above-mentioned embodiment The construction method of the test scene data in one is determined; the first control module 72 is used to control the proxy server to receive the buried point data sent by the client, and control the proxy server to send the received buried point data to the buried point server; the result is determined Module 73, configured to determine the buried point test result according to the consistency comparison result between the buried point data received by the proxy server and the buried point data received by the buried point server.
进一步地,该装置还包括:存储控制模块,用于控制代理服务器将接收到的埋点数据存储于本地的埋点日志文件中,以及,控制埋点服务器将接收到的埋点数据存储于本地的埋点日志文件中。Further, the device further includes: a storage control module, configured to control the proxy server to store the received buried point data in a local buried point log file, and to control the buried point server to store the received buried point data locally in the buried point log file.
进一步地,该装置还包括:第一数据获取模块,用于利用统一资源定位符URL格式的访问请求访问代理服务器,获取代理服务器接收到的埋点数据;第二数据获取模块,用于获取埋点服务器接收到的埋点数据。Further, the device further includes: a first data acquisition module, configured to access the proxy server with an access request in URL format, and acquire buried point data received by the proxy server; a second data acquisition module, configured to acquire buried point data received by the proxy server. Buried point data received by the point server.
本实施例中,代理服务器接收到的埋点数据存储于代理服务器的埋点日志文件中;埋点服务器接收到的埋点数据存储于埋点服务器的埋点日志文件中。In this embodiment, the buried point data received by the proxy server is stored in the buried point log file of the proxy server; the buried point data received by the buried point server is stored in the buried point log file of the buried point server.
由于本发明实施例中,测试场景数据由代理服务器采用实施例一中的测试场景数据构建方法确定,因此通过本发明实施例中的埋点测试装置,数据服务器只负责提供页面数据,无需承担页面数据修改工作,不过多占用数据服务器资源,且无需服务器端的开发人员配合,因此与相关技术相比,通过本发明实施例中的测试场景数据的构建装置,数据构建耗时短,数据构建方便,能够解决相关技术中在服务器端直接修改服务器内的数据,数据修改时间长,数据修改不方便的问题。In the embodiment of the present invention, the test scene data is determined by the proxy server using the test scene data construction method in the first embodiment, so through the buried point test device in the embodiment of the present invention, the data server is only responsible for providing page data, and does not need to undertake page data. Data modification does not take up too much data server resources, and does not require the cooperation of server-side developers. Therefore, compared with related technologies, through the test scene data construction device in the embodiment of the present invention, the data construction time is short and the data construction is convenient. The invention can solve the problems in the related art that the data in the server is directly modified at the server end, the data modification time is long, and the data modification is inconvenient.
对应图6中的方法,本发明实施例还提供了一种计算机设备,图8为本发明第二实施例提供的计算机设备的模块组成示意图,如图8所示,该设备包括存储器3000和处理器4000,存储器3000上存储有可在处理器4000上运行的计算机程序,处理器4000运行该计算机程序时,执行上述的埋点测试方法。Corresponding to the method in FIG. 6, an embodiment of the present invention also provides a computer device. FIG. 8 is a schematic diagram of the module composition of the computer device provided in the second embodiment of the present invention. As shown in FIG. 8, the device includes a memory 3000 and a processing The memory 3000 stores a computer program that can run on the processor 4000, and when the processor 4000 runs the computer program, it executes the above-mentioned embedded point testing method.
具体地,存储器3000和处理器4000能够为通用的存储器和处理器,这里不做具体限定,当处理器4000运行存储器3000存储的计算机程序时,能够执行上述的埋点测试方法,从而解决相关技术中在服务器端直接修改服务器内的数据,数据修改时间长,数据修改不方便的问题。Specifically, the memory 3000 and the processor 4000 can be general-purpose memory and processors, which are not specifically limited here. When the processor 4000 runs the computer program stored in the memory 3000, it can execute the above-mentioned buried point testing method, thereby solving related technical problems. In the process of directly modifying the data in the server on the server side, the data modification time is long and the data modification is inconvenient.
对应图6中的方法,本发明实施例还提供了一种计算机存储介质,该计算机存储介质上存储有计算机程序,该计算机程序被处理器运行时,执行上述的埋点测试方法。Corresponding to the method in FIG. 6 , an embodiment of the present invention further provides a computer storage medium, on which a computer program is stored, and when the computer program is run by a processor, the above-mentioned buried point testing method is executed.
具体地,该存储介质能够为通用的存储介质,如移动磁盘、硬盘等,该存储介质上的计算机程序被运行时,能够执行上述的埋点测试方法,从而解决相关技术中在服务器端直接修改服务器内的数据,数据修改时间长,数据修改不方便的问题。Specifically, the storage medium can be a general-purpose storage medium, such as a removable disk, a hard disk, etc. When the computer program on the storage medium is run, it can execute the above-mentioned buried point testing method, thereby solving the problem of directly modifying the data at the server side in related technologies. For the data in the server, the data modification time is long, and the data modification is inconvenient.
本发明实施例所提供的各个装置可以为设备上的特定硬件或者安装于设备上的软件或固件等。本发明实施例所提供的装置,其实现原理及产生的技术效果和前述方法实施例相同,为简要描述,装置实施例部分未提及之处,可参考前述方法实施例中相应内容。所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,前述描述的系统、装置和单元的具体工作过程,均可以参考上述方法实施例中的对应过程,在此不再赘述。Each device provided in the embodiment of the present invention may be specific hardware on the device or software or firmware installed on the device. The implementation principles and technical effects of the devices provided by the embodiments of the present invention are the same as those of the aforementioned method embodiments. For brief description, for the parts not mentioned in the device embodiments, reference may be made to the corresponding content in the aforementioned method embodiments. Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described systems, devices, and units can refer to the corresponding processes in the above-mentioned method embodiments, and will not be repeated here.
在本发明所提供的实施例中,应该理解到,所揭露装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in the present invention, it should be understood that the disclosed devices and methods may be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some communication interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明提供的实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in the embodiments provided by the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes. .
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释,此外,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。It should be noted that like numerals and letters denote similar items in the following drawings, therefore, once an item is defined in one drawing, it does not require further definition and explanation in subsequent drawings, In addition, the terms "first", "second", "third", etc. are only used for distinguishing descriptions, and should not be construed as indicating or implying relative importance.
最后应说明的是:以上所述实施例,仅为本发明的具体实施方式,用以说明本发明的技术方案,而非对其限制,本发明的保护范围并不局限于此,尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本发明实施例技术方案的精神和范围。都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。Finally, it should be noted that: the above-described embodiments are only specific implementations of the present invention, to illustrate the technical solutions of the present invention, rather than to limit it, and the scope of protection of the present invention is not limited thereto, although referring to the foregoing The embodiment has described the present invention in detail, and those of ordinary skill in the art should understand that any person familiar with the technical field can still modify the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present invention Changes can be easily imagined, or equivalent replacements can be made to some of the technical features; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention. All should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims (13)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611136510.7A CN106528432B (en) | 2016-12-12 | 2016-12-12 | Construction method and device of test scene data, and buried point test method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611136510.7A CN106528432B (en) | 2016-12-12 | 2016-12-12 | Construction method and device of test scene data, and buried point test method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106528432A true CN106528432A (en) | 2017-03-22 |
CN106528432B CN106528432B (en) | 2019-01-25 |
Family
ID=58341861
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611136510.7A Expired - Fee Related CN106528432B (en) | 2016-12-12 | 2016-12-12 | Construction method and device of test scene data, and buried point test method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106528432B (en) |
Cited By (29)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
CN107395420A (en) * | 2017-07-26 | 2017-11-24 | 携程计算机技术(上海)有限公司 | Server performance testing method, system, electronic device and storage medium |
CN107729246A (en) * | 2017-10-13 | 2018-02-23 | 广州阿里巴巴文学信息技术有限公司 | For the auxiliary test methods of intended application, device, equipment and storage medium |
CN107832216A (en) * | 2017-11-08 | 2018-03-23 | 无线生活(杭州)信息科技有限公司 | One kind buries a method of testing and device |
CN107870860A (en) * | 2017-05-05 | 2018-04-03 | 平安科技(深圳)有限公司 | Bury a checking system and method |
CN108255701A (en) * | 2017-06-27 | 2018-07-06 | 平安普惠企业管理有限公司 | Scrnario testing method and mobile terminal |
CN108255993A (en) * | 2017-12-29 | 2018-07-06 | 北京三快在线科技有限公司 | Extract method, apparatus, electronic equipment and the storage medium of service fields |
CN108305055A (en) * | 2017-10-20 | 2018-07-20 | 掌合天下(北京)信息技术有限公司 | Pay test method and device |
CN108322436A (en) * | 2017-12-28 | 2018-07-24 | 瑞庭网络技术(上海)有限公司 | Verification method, device, computer equipment and the readable storage medium storing program for executing of network request |
CN108319552A (en) * | 2018-02-07 | 2018-07-24 | 优信数享(北京)信息技术有限公司 | One kind burying a test method, apparatus and system |
CN108427635A (en) * | 2018-01-03 | 2018-08-21 | 深圳壹账通智能科技有限公司 | Quickly method, server and the computer readable storage medium of test web page |
CN108664401A (en) * | 2018-05-11 | 2018-10-16 | 阿里巴巴集团控股有限公司 | Bury a little rational appraisal procedure and device |
CN109582583A (en) * | 2018-12-14 | 2019-04-05 | 平安健康保险股份有限公司 | Method for testing software, device, computer equipment and storage medium |
CN110083459A (en) * | 2019-03-16 | 2019-08-02 | 平安城市建设科技(深圳)有限公司 | The data in cross-page face bury point methods, device, equipment and storage medium |
CN110083529A (en) * | 2019-03-20 | 2019-08-02 | 北京字节跳动网络技术有限公司 | Automated testing method, device, medium and electronic equipment |
CN110098978A (en) * | 2019-04-12 | 2019-08-06 | 网宿科技股份有限公司 | A kind of test method, device and the network equipment of DNS scheduling |
CN110263070A (en) * | 2019-05-30 | 2019-09-20 | 北京创鑫旅程网络技术有限公司 | Event report method and device |
CN110730107A (en) * | 2019-09-02 | 2020-01-24 | 深圳壹账通智能科技有限公司 | Test data generation method and device, computer equipment and storage medium |
CN110750431A (en) * | 2019-10-24 | 2020-02-04 | 阿里巴巴(中国)有限公司 | Data buried point configuration method and device |
CN110825609A (en) * | 2018-08-10 | 2020-02-21 | 阿里巴巴集团控股有限公司 | Service testing method, device and system |
CN111130956A (en) * | 2018-10-30 | 2020-05-08 | 九阳股份有限公司 | Data transmission method of intelligent household appliance and intelligent household appliance |
CN111209201A (en) * | 2020-01-03 | 2020-05-29 | 恩亿科(北京)数据科技有限公司 | Advertisement putting test method and device |
CN111858293A (en) * | 2019-11-21 | 2020-10-30 | 北京嘀嘀无限科技发展有限公司 | A detection method, detection device, electronic device and readable storage medium |
WO2020253034A1 (en) * | 2019-06-19 | 2020-12-24 | 平安普惠企业管理有限公司 | Client buried point test method, apparatus and device, and storage medium |
CN112633908A (en) * | 2019-10-09 | 2021-04-09 | 上海哔哩哔哩科技有限公司 | Advertisement test object generation method and device and computer equipment |
CN112749078A (en) * | 2019-10-31 | 2021-05-04 | 北京沃东天骏信息技术有限公司 | Buried point testing method and device |
CN113127373A (en) * | 2021-05-18 | 2021-07-16 | 爱驰汽车有限公司 | Visual point burying method, system, device, equipment and storage medium |
CN113656282A (en) * | 2021-07-19 | 2021-11-16 | 广州虎牙科技有限公司 | Non-intrusive test method and related device and storage medium |
CN115114161A (en) * | 2022-06-30 | 2022-09-27 | 北京城市网邻信息技术有限公司 | Online testing method and device, electronic equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101241467A (en) * | 2008-03-05 | 2008-08-13 | 罗笑南 | Automatized white box test system and method facing to WEB application |
US20100238169A1 (en) * | 2009-03-19 | 2010-09-23 | International Business Machines Corporation | Physical Rendering With Textured Bounding Volume Primitive Mapping |
CN103186460A (en) * | 2011-12-30 | 2013-07-03 | 金蝶软件(中国)有限公司 | Method, device and system for generating script of test case |
CN104915296A (en) * | 2015-06-29 | 2015-09-16 | 北京金山安全软件有限公司 | Buried point testing method, data query method and device |
CN105959180A (en) * | 2016-06-12 | 2016-09-21 | 乐视控股(北京)有限公司 | Data detection method and device |
CN106066826A (en) * | 2016-05-24 | 2016-11-02 | 北京金山安全软件有限公司 | Automatic testing method and device for buried point and terminal |
-
2016
- 2016-12-12 CN CN201611136510.7A patent/CN106528432B/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101241467A (en) * | 2008-03-05 | 2008-08-13 | 罗笑南 | Automatized white box test system and method facing to WEB application |
US20100238169A1 (en) * | 2009-03-19 | 2010-09-23 | International Business Machines Corporation | Physical Rendering With Textured Bounding Volume Primitive Mapping |
CN103186460A (en) * | 2011-12-30 | 2013-07-03 | 金蝶软件(中国)有限公司 | Method, device and system for generating script of test case |
CN104915296A (en) * | 2015-06-29 | 2015-09-16 | 北京金山安全软件有限公司 | Buried point testing method, data query method and device |
CN106066826A (en) * | 2016-05-24 | 2016-11-02 | 北京金山安全软件有限公司 | Automatic testing method and device for buried point and terminal |
CN105959180A (en) * | 2016-06-12 | 2016-09-21 | 乐视控股(北京)有限公司 | Data detection method and device |
Cited By (43)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
CN107870860A (en) * | 2017-05-05 | 2018-04-03 | 平安科技(深圳)有限公司 | Bury a checking system and method |
CN107870860B (en) * | 2017-05-05 | 2020-12-15 | 平安科技(深圳)有限公司 | Buried point verification system and method |
CN108255701B (en) * | 2017-06-27 | 2022-07-22 | 平安普惠企业管理有限公司 | Scene testing method and mobile terminal |
CN108255701A (en) * | 2017-06-27 | 2018-07-06 | 平安普惠企业管理有限公司 | Scrnario testing method and mobile terminal |
CN107395420A (en) * | 2017-07-26 | 2017-11-24 | 携程计算机技术(上海)有限公司 | Server performance testing method, system, electronic device and storage medium |
CN107395420B (en) * | 2017-07-26 | 2020-11-24 | 携程计算机技术(上海)有限公司 | Server performance testing method, system, electronic device and storage medium |
CN107729246A (en) * | 2017-10-13 | 2018-02-23 | 广州阿里巴巴文学信息技术有限公司 | For the auxiliary test methods of intended application, device, equipment and storage medium |
CN107729246B (en) * | 2017-10-13 | 2020-12-01 | 阿里巴巴(中国)有限公司 | Auxiliary test method, device and equipment for target application and storage medium |
CN108305055A (en) * | 2017-10-20 | 2018-07-20 | 掌合天下(北京)信息技术有限公司 | Pay test method and device |
CN107832216A (en) * | 2017-11-08 | 2018-03-23 | 无线生活(杭州)信息科技有限公司 | One kind buries a method of testing and device |
CN108322436A (en) * | 2017-12-28 | 2018-07-24 | 瑞庭网络技术(上海)有限公司 | Verification method, device, computer equipment and the readable storage medium storing program for executing of network request |
CN108255993A (en) * | 2017-12-29 | 2018-07-06 | 北京三快在线科技有限公司 | Extract method, apparatus, electronic equipment and the storage medium of service fields |
CN108427635A (en) * | 2018-01-03 | 2018-08-21 | 深圳壹账通智能科技有限公司 | Quickly method, server and the computer readable storage medium of test web page |
CN108319552A (en) * | 2018-02-07 | 2018-07-24 | 优信数享(北京)信息技术有限公司 | One kind burying a test method, apparatus and system |
CN108664401A (en) * | 2018-05-11 | 2018-10-16 | 阿里巴巴集团控股有限公司 | Bury a little rational appraisal procedure and device |
CN110825609B (en) * | 2018-08-10 | 2023-05-02 | 阿里巴巴集团控股有限公司 | Service testing method, device and system |
CN110825609A (en) * | 2018-08-10 | 2020-02-21 | 阿里巴巴集团控股有限公司 | Service testing method, device and system |
CN111130956A (en) * | 2018-10-30 | 2020-05-08 | 九阳股份有限公司 | Data transmission method of intelligent household appliance and intelligent household appliance |
CN111130956B (en) * | 2018-10-30 | 2022-05-03 | 九阳股份有限公司 | Data transmission method of intelligent household appliance and intelligent household appliance |
CN109582583A (en) * | 2018-12-14 | 2019-04-05 | 平安健康保险股份有限公司 | Method for testing software, device, computer equipment and storage medium |
CN110083459A (en) * | 2019-03-16 | 2019-08-02 | 平安城市建设科技(深圳)有限公司 | The data in cross-page face bury point methods, device, equipment and storage medium |
CN110083529A (en) * | 2019-03-20 | 2019-08-02 | 北京字节跳动网络技术有限公司 | Automated testing method, device, medium and electronic equipment |
CN110098978A (en) * | 2019-04-12 | 2019-08-06 | 网宿科技股份有限公司 | A kind of test method, device and the network equipment of DNS scheduling |
CN110098978B (en) * | 2019-04-12 | 2021-02-26 | 网宿科技股份有限公司 | DNS scheduling test method and device, network equipment and storage medium |
CN110263070B (en) * | 2019-05-30 | 2021-10-08 | 北京创鑫旅程网络技术有限公司 | Event reporting method and device |
CN110263070A (en) * | 2019-05-30 | 2019-09-20 | 北京创鑫旅程网络技术有限公司 | Event report method and device |
WO2020253034A1 (en) * | 2019-06-19 | 2020-12-24 | 平安普惠企业管理有限公司 | Client buried point test method, apparatus and device, and storage medium |
WO2021042914A1 (en) * | 2019-09-02 | 2021-03-11 | 深圳壹账通智能科技有限公司 | Test data generation method and apparatus, computer device and storage medium |
CN110730107B (en) * | 2019-09-02 | 2022-07-12 | 深圳壹账通智能科技有限公司 | Test data generation method and device, computer equipment and storage medium |
CN110730107A (en) * | 2019-09-02 | 2020-01-24 | 深圳壹账通智能科技有限公司 | Test data generation method and device, computer equipment and storage medium |
CN112633908A (en) * | 2019-10-09 | 2021-04-09 | 上海哔哩哔哩科技有限公司 | Advertisement test object generation method and device and computer equipment |
CN112633908B (en) * | 2019-10-09 | 2024-02-20 | 上海哔哩哔哩科技有限公司 | Advertisement test object generation method and device and computer equipment |
CN110750431A (en) * | 2019-10-24 | 2020-02-04 | 阿里巴巴(中国)有限公司 | Data buried point configuration method and device |
CN110750431B (en) * | 2019-10-24 | 2023-11-03 | 阿里巴巴(中国)有限公司 | Data embedded point configuration method and device |
CN112749078A (en) * | 2019-10-31 | 2021-05-04 | 北京沃东天骏信息技术有限公司 | Buried point testing method and device |
CN111858293B (en) * | 2019-11-21 | 2024-11-12 | 北京嘀嘀无限科技发展有限公司 | A detection method, a detection device, an electronic device and a readable storage medium |
CN111858293A (en) * | 2019-11-21 | 2020-10-30 | 北京嘀嘀无限科技发展有限公司 | A detection method, detection device, electronic device and readable storage medium |
CN111209201A (en) * | 2020-01-03 | 2020-05-29 | 恩亿科(北京)数据科技有限公司 | Advertisement putting test method and device |
CN111209201B (en) * | 2020-01-03 | 2023-08-25 | 恩亿科(北京)数据科技有限公司 | Advertisement putting test method and device |
CN113127373A (en) * | 2021-05-18 | 2021-07-16 | 爱驰汽车有限公司 | Visual point burying method, system, device, equipment and storage medium |
CN113656282A (en) * | 2021-07-19 | 2021-11-16 | 广州虎牙科技有限公司 | Non-intrusive test method and related device and storage medium |
CN115114161A (en) * | 2022-06-30 | 2022-09-27 | 北京城市网邻信息技术有限公司 | Online testing method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106528432B (en) | 2019-01-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106528432A (en) | Construction method and apparatus for test scene data, and buried point test method | |
CN107622135B (en) | Method and apparatus for displaying information | |
KR102504075B1 (en) | Matching and attributes of user device events | |
CN105530175B (en) | Message processing method, device and system | |
CN102203765B (en) | Uniquely identifying network-distributed devices without explicitly provided device or user identifying information | |
US10182046B1 (en) | Detecting a network crawler | |
KR101868529B1 (en) | Associating user interactions across multiple applications on a client device | |
CN108132814A (en) | Page loading method, device, computer equipment and the storage medium of application program | |
US20140325391A1 (en) | System and method for updating information in an instant messaging application | |
CN107872534B (en) | Information push method, device, server and readable storage medium | |
US7987243B2 (en) | Method for media discovery | |
JP2015527629A (en) | Component analysis of software applications on computer equipment | |
US20090248729A1 (en) | Online application platform and user communities | |
US10496696B2 (en) | Search method and apparatus | |
TW201018298A (en) | Data access based on content of image recorded by a mobile device | |
CN103944944A (en) | Webpage link sharing method and system, and electronic device | |
CN108667915B (en) | Information pushing system, method and device | |
CN104063475A (en) | User-defined list processing method and device | |
KR101659147B1 (en) | Information processing apparatus, and control method therefor | |
GB2581634A (en) | Providing reporting and analysis for campaign-driven messages and websites | |
US20130173428A1 (en) | Augmenting product information on a client device | |
CN106446640B (en) | User identification method and server | |
CN114385382B (en) | Light application access method, device, computer equipment and storage medium | |
CN109697129A (en) | A kind of information sharing method, equipment and computer readable storage medium | |
US11521250B2 (en) | Method and apparatus for providing digital product using user account synchronization |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20190807 Address after: 100020 Beijing Chaoyang District Wangjing East Road 6 Courtyard 6 Building - 2 Floors to 4 Floors 01 Inner 4 Floors 01 Co-patentee after: BEIJING SANKUAI ONLINE TECHNOLOGY Co.,Ltd. Patentee after: Sankuai Cloud Online (Beijing) Technology Co.,Ltd. Address before: 100080 Beijing Haidian District North Fourth Ring Road West, No. 9 2106-030 Patentee before: BEIJING SANKUAI ONLINE TECHNOLOGY Co.,Ltd. |
|
TR01 | Transfer of patent right | ||
CP01 | Change in the name or title of a patent holder |
Address after: 100020 building 6, yard 6, Wangjing East Road, Chaoyang District, Beijing Patentee after: Beijing Sankuai Network Technology Co.,Ltd. Patentee after: BEIJING SANKUAI ONLINE TECHNOLOGY Co.,Ltd. Address before: 100020 building 6, yard 6, Wangjing East Road, Chaoyang District, Beijing Patentee before: Sankuai Cloud Online (Beijing) Technology Co.,Ltd. Patentee before: BEIJING SANKUAI ONLINE TECHNOLOGY Co.,Ltd. |
|
CP01 | Change in the name or title of a patent holder | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190125 |
|
CF01 | Termination of patent right due to non-payment of annual fee |