CN104915296B - Buried point testing method, data query method and device - Google Patents

Buried point testing method, data query method and device Download PDF

Info

Publication number
CN104915296B
CN104915296B CN201510370210.4A CN201510370210A CN104915296B CN 104915296 B CN104915296 B CN 104915296B CN 201510370210 A CN201510370210 A CN 201510370210A CN 104915296 B CN104915296 B CN 104915296B
Authority
CN
China
Prior art keywords
point data
bury
little
burying
under testing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510370210.4A
Other languages
Chinese (zh)
Other versions
CN104915296A (en
Inventor
刘小梅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201510370210.4A priority Critical patent/CN104915296B/en
Publication of CN104915296A publication Critical patent/CN104915296A/en
Application granted granted Critical
Publication of CN104915296B publication Critical patent/CN104915296B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Storage Device Security (AREA)

Abstract

The invention provides a buried point testing method, a data query method and a data query device. The buried point testing method comprises the following steps: executing software to be tested, wherein the software to be tested is provided with a plurality of embedded points which respectively correspond to a plurality of functional modules in the software to be tested and are used for being triggered when the corresponding functional modules are executed; when monitoring that the buried point in the software to be tested is triggered, acquiring buried point data corresponding to the corresponding buried point; and reporting the buried point data to a query server to generate a database of the query server, wherein the query server provides corresponding buried point data according to the input buried point information. The buried point testing method of the embodiment of the invention is convenient for a user to check the buried point data, simplifies the operation of checking the buried point data by the user, improves the efficiency of checking the buried point data by the user and further can improve the testing efficiency.

Description

Bury the querying method and device of a test method, data
Technical field
The present invention relates to field of computer technology more particularly to a kind of querying methods and dress for burying a test method, data It puts.
Background technology
With the rapid development of software technology, the work(such as text editing, image procossing, chat, playing audio-video can be realized The various softwares of energy emerge in an endless stream, and in order to study the functional effect of user behavior and software, usually before software publication, can exist Many is set to bury a little in software.When user is during software is used, if user triggers the function of pre-setting and bury a little Module, software will be sent to server it is corresponding bury point data, by analysis bury point data, can know the good of software function It is bad, and then adjust or improve software function.
In order to ensure that burying for setting a little can be used normally, usual software test personnel are after setting is buried a little, it is also necessary to right It buries and is a little tested.It is relevant that bury a test method as follows:After setting is buried a little, software test personnel intercept net using packet catcher The data packet of network transmission, and a little is tested according to the data packet being truncated to burying, if data packet is encryption data packet, is needed pair It is tested again after the decryption of encryption data packet.
However, it is relevant bury a test method the problem is that:More due to burying quantity, tester needs frequent Using packet catcher packet capturing, and in data encryption, tester also needs to that data are decrypted and can just check and bury point data, Tester checks that bury operating procedure needed for point data more, checks and buries point data, take time and effort, it is relatively low to bury a testing efficiency. In addition, tester needs to be grasped the use of packet catcher, technical threshold is higher, is unfavorable for burying a test.
Invention content
The present invention is directed to solve at least some of the technical problems in related technologies.For this purpose, the present invention First purpose is that proposition one kind buries a test method, and this method causes user without packet capturing and ciphertext data, only by looking into Ask server can check it is different bury a little corresponding to bury point data, facilitate user and check and bury point data, simplify user and look into It sees the operation for burying point data, improves user and check the efficiency for burying point data, and then testing efficiency can be improved.
Second object of the present invention is to propose a kind of querying method of data.
Third object of the present invention is to propose that one kind buries a test system.
Fourth object of the present invention is to propose that one kind buries a test device.
The 5th purpose of the present invention is to propose a kind of inquiry unit of data.
To achieve the above object, first aspect present invention embodiment proposes one kind and buries a test method, including:Execution is treated Survey software, wherein, in the software under testing have it is multiple bury a little, it is the multiple bury a little respectively with it is multiple in the software under testing Function module corresponds to, for being triggered when the corresponding function module performs;A quilt is buried when monitoring in software under testing During triggering, obtain it is corresponding bury a little corresponding to bury point data;It is reported to inquiry server and described buries point data to generate described look into The database of server is ask, wherein, the inquiry server provides according to the information of burying of input and corresponding buries point data.
Optionally, it is described to inquiry server report it is described bury point data, including:The host host files of modification are obtained, And the address information of the inquiry server is obtained according to modified host host files, and based on the inquiry server Address information reports to the inquiry server and described buries point data.
According to embodiments of the present invention buries a test method, to be measured soft when monitoring during software under testing performs When burying of being set in part is a little triggered, obtains corresponding bury and a little corresponding bury point data, and points are buried to inquiring server and reporting According to the database of generation inquiry server, and inquiring server and can provide corresponding bury a little according to the information of burying of input Data, as a result, user is without packet capturing and ciphertext data, only by inquire server can check it is different bury a little corresponding to Point data is buried, user is facilitated and checks and bury point data, simplify user and check the step of burying point data, user is improved and checks and bury The efficiency of point data, and then testing efficiency can be improved.
To achieve the above object, second aspect of the present invention embodiment proposes a kind of querying method of data, including:It receives The querying condition of input;And obtain meet the querying condition bury point data, so that user surveys according to the point data of burying Try it is a little whether correct for burying of setting of the software under testing, wherein, preserved on the inquiry server terminal report it is to be measured Software buries point data.
Optionally, the software under testing that the terminal reports bury point data including unencryption bury point data and/or encryption bury Point data, it is corresponding on the inquiry server to preserve the unencryption that the software under testing reports and bury point data and/or right The encryption is buried buries point data after point data is decrypted.
The querying method of data according to embodiments of the present invention receives the querying condition of input, and obtains and meet submission Point data is buried, to facilitate user a little whether correct for burying for software under testing setting according to point data test is buried, entirely realizes process Without using the data packet of packet catcher intercept network transmission, frequent packet capturing operation is avoided, user's usually inquiry can obtain It takes and buries point data, realize simply, conveniently, facilitate user's inquiry and bury point data, and then improve Efficiency of Software Testing.
To achieve the above object, third aspect present invention embodiment proposes one kind and buries a test system, including first eventually End, second terminal and inquiry server, wherein:Software under testing, the first terminal, for holding are installed in the first terminal Row software under testing, wherein, in the software under testing have it is multiple bury a little, it is the multiple bury a little respectively in the software under testing Multiple function modules correspond to, for being triggered when the corresponding function module performs;When monitoring pair in software under testing When burying of answering a little is triggered, obtain it is corresponding bury it is a little corresponding bury point data, and to inquiry server report described in bury point data; The second terminal for receiving the information of burying of input, and generates inquiry request, and look into described according to the information of burying Server is ask to send the inquiry request and receive the query result that the inquiry server returns.The inquiry server, Point data is buried to generate the database of the inquiry server and receive described for receive that the first terminal sends The inquiry request that two terminals are sent, and information acquisition is corresponding buries point data for burying in the inquiry request.
Optionally, the first terminal is specifically used for:The host host files of modification are obtained, and according to modified host Host files obtain the address information of the inquiry server, and the address information based on the inquiry server is to the inquiry Server buries point data described in reporting.
Optionally, the point data of burying for the software under testing that the first terminal reports is buried point data including unencryption and/or is added Close to bury point data, the corresponding unencryption for preserving the software under testing that the first terminal reports buries on the inquiry server Point data and/or the encryption is buried and buries point data after point data is decrypted.
According to embodiments of the present invention buries a test system, to be measured soft when monitoring during software under testing performs When burying of being set in part is a little triggered, first terminal obtains corresponding bury and a little corresponding buries point data, and to inquiring on server Report buries point data, and with the database of generation inquiry server, then, user can be looked by second terminal to inquiry server transmission Request is ask, inquiry server returns to second terminal according to inquiry request query result, and by query result, as a result, user Without packet capturing and ciphertext data, it can only be obtained to inquiry server inquiry request by second terminal and bury point data, facilitated User, which checks, buries point data, simplifies user and checks the operation for burying point data, improves user and checks the efficiency for burying point data, into And testing efficiency can be improved.
To achieve the above object, fourth aspect present invention embodiment proposes one kind and buries a test device, including:Perform mould Block, for performing software under testing, wherein, it is buried a little with multiple in the software under testing, the multiple bury a little is treated with described respectively The multiple function modules surveyed in software correspond to, for being triggered when the corresponding function module performs;Acquisition module is used for When monitoring burying in software under testing and being a little triggered, obtain it is corresponding bury a little corresponding to bury point data;Reporting module, for Inquiry server buries point data to generate the database of the inquiry server described in reporting, wherein, the inquiry server root It provides according to the information of burying of input and corresponding buries point data.
Optionally, the reporting module, is specifically used for:The host host files of modification are obtained, and according to modified master Machine host files obtain the address information of the inquiry server, and the address information based on the inquiry server is looked into described Inquiry server buries point data described in reporting.
According to embodiments of the present invention buries a test device, is performed by execution module software under testing, to be measured when monitoring When burying of being set in software is a little triggered, acquisition module obtain it is corresponding bury a little corresponding to bury point data and reporting module to Inquiry server reports and buries point data, with the database of generation inquiry server, and inquire server can burying according to input Point information provide it is corresponding buries point data, as a result, user is without packet capturing and ciphertext data, only by inquiring server Check it is different bury a little corresponding to bury point data, facilitate user and check and bury point data, simplify user and check and bury point data Operation, improves user and checks the efficiency for burying point data, and then can improve testing efficiency.
To achieve the above object, fifth aspect present invention embodiment proposes a kind of inquiry unit of data, including:It receives Module, for receiving the querying condition of input;And acquisition module, for obtain meet the querying condition bury point data, So that user buries point data test is whether burying for software under testing setting be a little correct according to described, wherein, the inquiry clothes That the software under testing that terminal reports is preserved on business device buries point data.
Optionally, the software under testing that the terminal reports bury point data including unencryption bury point data and/or encryption bury Point data, it is corresponding on the inquiry server to preserve the unencryption that the software under testing reports and bury point data and/or right The encryption is buried buries point data after point data is decrypted.
The inquiry unit of data according to embodiments of the present invention receives querying condition input by user by receiving module, Read module meets the inquiry data of querying condition from the reading of preset intranet server, user to be facilitated to be surveyed according to inquiry data It tries to bury a little whether correct, the entire data realized process and transmitted without using packet catcher intercept network for what software under testing was set It wraps, saves frequent packet capturing operation, inquiry data can be obtained by access queries platform, realizes simply, conveniently, improves Testing efficiency.
Description of the drawings
Fig. 1 is the flow chart according to an embodiment of the invention for burying a test method.
Fig. 2 is the flow chart of the querying method of data according to an embodiment of the invention.
Fig. 3 is the schematic diagram of query page according to an embodiment of the invention.
Fig. 4 is the structure diagram according to an embodiment of the invention for burying test system.
Fig. 5 is the structure diagram according to an embodiment of the invention for burying a test device.
Fig. 6 is the structure diagram of the inquiry unit of data according to an embodiment of the invention.
Specific embodiment
The embodiment of the present invention is described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached The embodiment of figure description is exemplary, it is intended to for explaining the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings the querying method and device that bury a test method, data of the embodiment of the present invention are described.
Fig. 1 is the flow chart according to an embodiment of the invention for burying a test method.
Include as shown in Figure 1, this buries a test method:
S101 performs software under testing.
Wherein, in software under testing have it is multiple bury a little, it is multiple bury a little respectively with multiple function modules pair in software under testing Should, for being triggered when corresponding function module performs.Above-mentioned software under testing can be various application programs (APP), such as Can be QQ softwares, cheetah browser, Jinshan anti-virus software etc..
Wherein, the behavior for a little referring to monitor user is buried, can be to monitor every single stepping that user clicks, example specifically Such as monitor whether user clicks a certain function button.
By taking QQ softwares as an example, software test personnel can bury a little for " login " function setting, when software test personnel point " login " button of QQ softwares has been hit, has been equivalent to and performs to burying trigger action a little.
S102, when monitoring burying in software under testing and being a little triggered, obtain it is corresponding bury a little corresponding to bury point data.
Wherein, it buries that point data is related with the function of the specific functional modules of software under testing, is the different function of software under testing After module setting is buried a little, difference bury obtain to bury point data different.
For example it is assumed that software under testing is QQ softwares, software test personnel bury a little 1 for " login " function setting of QQ softwares, And a little 2 are buried for transport function setting, when " login " button of software test personnel click QQ softwares, and logged in When, it can monitor to bury and a little 1 be triggered, a little login time, place of 1 corresponding login user etc. are buried at this point it is possible to obtain Information buries a little information such as 1 corresponding login time, place for burying point data as login user.If user is by QQ to good friend Transmit picture, that is, bury and a little 2 be triggered, at this point, according to bury a little 2 can obtain start the transmission initial time of picture, picture format, And whether picture the information such as be successfully transmitted, it is to bury a little 2 to bury point data to obtain with the relevant information of picture transfer.
S103 reports the database for burying point data to generate inquiry server to inquiry server.
Wherein, above-mentioned inquiry server provides according to the information of burying of input and corresponding buries point data.
In one embodiment of the invention, in order to can be reported to inquiry server rather than outer net to software under testing Server, which reports, buries point data, can be realized by changing the Hosts file i.e. host files of software under testing.Wherein, host texts Part refers to the file for including network address domain name and IP address correspondence.Specifically, by changing the host files of software under testing, Address can be reported to be revised as the IP address of inquiry server information, points are buried so as to fulfill being reported to inquiry server According to.
In addition, it is necessary to explanation, what above-mentioned inquiry server can receive unencryption buries point data, can receive encryption Bury point data.When inquire the data that receive of server for it is encrypted bury point data when, inquiry server can be to encrypted It buries point data to be decrypted, and preserves bury point data after decryption in the database, user's inquiry to be facilitated to bury point data.
Wherein, it buries in point data other than including some related data of function module, can also include but not limited to The title of software under testing, version number, trigger action the information such as mark.
After reporting to inquiry server and burying point data, user can be inquired by inquiring the query webpage built on server Bury point data.Specifically, query webpage can receive input bury information i.e. querying condition and from inquiry server data Read in library it is satisfactory bury point data and shown in query webpage it is satisfactory bury point data, as a result, with Family without packet capturing and decryption step can easily check it is different bury a little corresponding to bury point data, facilitate user and check and bury a little Data simplify user and check the operation for burying point data.
Wherein, above-mentioned query webpage can be based on preset frame structure.It for example, can be based on the inquiry of webpy framework establishments Webpage, webpy frames are the web frames of lightweight open source python, for rapid build web page, therefore, pass through webpy Framework establishment query webpage can improve the efficiency of the structure page.It should be understood that above-mentioned inquired based on webpy framework establishments Webpage is only a kind of example, is also based on other framework establishments query webpages.
Wherein, above-mentioned information of burying can include but is not limited to bury title a little, bury mark a little, bury a little belonging to it is to be measured soft Title, version number of part etc..
For example, user can by terminal access query webpage, and into query webpage input software under testing title, inquiry Webpage receives the title of software under testing, and sends inquiry request to inquiry server, inquires server after inquiry request is received, The title of software under testing in inquiry request can be obtained from database corresponding treats set in side software all bury a little Bury point data, and point data is buried in display in query webpage.
It is above-mentioned to bury a test method embodiment, during software under testing performs, set when monitoring in software under testing Bury when being a little triggered, obtain it is corresponding bury it is a little corresponding bury point data, and reported to inquiry server and bury point data, to generate Inquire the database of server, and inquire server can according to input bury information provide it is corresponding bury point data, as a result, So that user is without packet capturing and ciphertext data, only by inquire server can check it is different bury a little corresponding to bury point data, It facilitates user and checks and bury point data, simplify user and check the operation for burying point data, improve user and check and bury point data Efficiency, and then testing efficiency can be improved.
Fig. 2 is the flow chart of the querying method of data according to an embodiment of the invention, which services from inquiry Device side is described.
As shown in Fig. 2, the querying method of the data includes:
S201 receives the querying condition of input.
In this embodiment, the query page that inquiry server provides can be with as shown in figure 3, tester can be in Fig. 3 Input inquiry condition in shown query page.It should be noted that Fig. 3 is only the example of a query page, actually should In, query page can be different from Fig. 3.
S202, obtain meet querying condition bury point data, so that user sets according to point data test is buried for software under testing Whether burying for putting be a little correct, wherein, that the software under testing that terminal reports is preserved on inquiry server buries point data.
For example it is assumed that query webpage is as shown in figure 3, user can be defeated in the input frame of the denomination of dive in query webpage After entering keyword " transmission ", inquiry server will be searched from database and keyword " transmission " is related buries a little, and acquisition pair Point data of burying a little should be buried, and show in query webpage it is corresponding bury upload bury point data, facilitate user's inquiry as a result, Bury point data.
In one embodiment of the invention, after burying point data what is obtained from inquiry server, this can be buried to points It is compared according to expected data, if the two is consistent, it is determined that it is a little correct for burying for software under testing setting, if the two differs It causes, it is determined that it is a little incorrect for burying for software under testing setting, it needs to reset and bury a little.
In addition, it is necessary to explanation, the software under testing that terminal reports buries the data that point data can be unencryption, also may be used Think it is encrypted bury point data, when inquire the data that receive of server for it is encrypted bury point data when, inquiry server can be with Encrypted point data of burying is decrypted, and preserves bury point data after decryption in the database, so that user is in query process In, without being decrypted to burying point data, reduce user and check the operating procedure for burying point data.
After showing that as shown in Figure 3 two bury point data in query webpage, tester can be according to this two data Content judge it is set bury it is a little whether correct.It should be noted that the safety based on information, in this embodiment, right Two datas exported in Fig. 3 are handled.
The querying method embodiment of above-mentioned data, receives the querying condition of input, and obtain meet submission bury point data, Whether to facilitate user a little correct for burying of setting of software under testing according to point data test is buried, entire realization process is without using grabbing The data packet of job contract tool intercept network transmission avoids frequent packet capturing operation, and user's usually inquiry, which can obtain, buries point data, It realizes simply, conveniently, facilitates user's inquiry and bury point data, and then improve Efficiency of Software Testing.
In order to realize above-described embodiment, the present invention also proposes that one kind buries a test system.
Fig. 4 is the structure diagram according to an embodiment of the invention for burying test system.
As shown in figure 4, this, which buries a test system, includes first terminal 10, second terminal 20 and inquiry server 30.
Specifically, software under testing is installed, first terminal 10 is used to perform software under testing in first terminal 10;When monitoring Corresponding in software under testing is buried when being a little triggered, and is obtained corresponding bury and a little corresponding is buried point data, and to inquiring on server Report buries point data.
Wherein, in software under testing have it is multiple bury a little, it is multiple bury a little respectively with multiple function modules pair in software under testing Should, for being triggered when corresponding function module performs.Wherein, software under testing can be various application programs (APP), such as Can be QQ softwares, cheetah browser, Jinshan anti-virus software etc..
In addition, it is necessary to explanation, it is related with the function of the specific functional modules of software under testing to bury point data, is to be measured soft After the different function module setting of part is buried a little, difference bury obtain to bury point data different.
For example it is assumed that software under testing is QQ softwares, software test personnel bury a little 1 for " login " function setting of QQ softwares, And a little 2 are buried for transport function setting, when " login " button of software test personnel click QQ softwares, and logged in When, it can monitor to bury and a little 1 be triggered, a little login time, place of 1 corresponding login user etc. are buried at this point it is possible to obtain Information buries a little information such as 1 corresponding login time, place for burying point data as login user.If user is by QQ to good friend Transmit picture, that is, bury and a little 2 be triggered, at this point, according to bury a little 2 can obtain start the transmission initial time of picture, picture format, And whether picture the information such as be successfully transmitted, it is to bury a little 2 to bury point data to obtain with the relevant information of picture transfer.
Point data is buried in order to report rather than be reported to the external network server of software under testing to inquiry server, may be used also It, specifically, can be by the host texts of software under testing to change the Hosts file of the software under testing in first terminal 10 i.e. host files The IP address of inquiry server 30 is revised as in information reporting address in part, and points are buried so as to fulfill being reported to inquiry server 30 According to.
Specifically, first terminal 10 obtain software under testing bury point data after, first terminal 10 can obtain modification Host host files, and the address information for inquiring server 30 is obtained according to modified host host files, and based on inquiry The address information of server 30 reports to inquiry server 30 and buries point data.
Second terminal 20 buries information for receive input, and generates an inquiry request according to information is buried, and to inquiry Server sends inquiry request and receives the query result that inquiry server returns.
Wherein, above-mentioned information of burying can include but is not limited to bury title a little, bury mark a little, bury a little belonging to it is to be measured soft Title, version number of part etc..
Inquiry server 30 be used for receive first terminal 20 transmission bury point data with generate inquiry server database, And the inquiry request that second terminal is sent is received, and information acquisition is corresponding buries point data for burying in inquiry request.
For example, user can by 20 access queries webpage of second terminal, and into query webpage input software under testing name Claim, query webpage receives the title of software under testing, and passes through second terminal 20 and send inquiry request, inquiry to inquiry server 30 After inquiry request is received, the title of the software under testing in inquiry request from database can obtain correspondence and treat server 30 Set all point datas of burying buried a little in side software, and second terminal 20 is returned to, in the query webpage of second terminal 20 What display inquiry server 30 returned buries point data.
It is above-mentioned to bury a test system embodiment, during software under testing performs, set when monitoring in software under testing Bury when being a little triggered, first terminal obtains corresponding bury and a little corresponding buries point data, and bury points to inquiring server and reporting According to, with the database of generation inquiry server, then, user can send inquiry request by second terminal to inquiry server, Inquiry server returns to second terminal according to inquiry request query result, and by query result, as a result, user is without packet capturing And ciphertext data, it can only be obtained to inquiry server inquiry request by second terminal and bury point data, facilitated user and check Point data is buried, user is simplified and checks the operation for burying point data, user is improved and checks the efficiency for burying point data, and then can improve Testing efficiency.
In order to realize above-described embodiment, the present invention also proposes that one kind buries a test device.
Fig. 5 is the structure diagram according to an embodiment of the invention for burying a test device.
As shown in figure 5, this, which buries a test device, includes execution module 110, acquisition module 120 and reporting module 130, In:
Execution module 110 is used to perform software under testing, wherein, it is buried a little with multiple in software under testing, it is multiple to bury a difference It is corresponding with multiple function modules in software under testing, for being triggered when corresponding function module performs;Acquisition module 120 is used In when monitoring burying in software under testing and being a little triggered, obtain it is corresponding bury a little corresponding to bury point data;Reporting module 130 is used Point data is buried to generate the database for inquiring server in being reported to inquiry server, wherein, inquiry server is according to input It buries information and provides and corresponding bury point data.
Wherein, above-mentioned software under testing can be various application programs (APP), such as can be QQ softwares, cheetah browser, Jinshan anti-virus software etc..
In addition, it is necessary to explanation, it is related with the function of the specific functional modules of software under testing to bury point data, is to be measured soft After the different function module setting of part is buried a little, difference bury obtain to bury point data different.
For example it is assumed that software under testing is QQ softwares, software test personnel bury a little 1 for " login " function setting of QQ softwares, And a little 2 are buried for transport function setting, when " login " button of software test personnel click QQ softwares, and logged in When, it can monitor to bury and a little 1 be triggered, at this point, acquisition module 120 can obtain the login for burying a little 1 corresponding login user The information such as time, place bury a little information such as 1 corresponding login time, place for burying point data as login user.If user is led to It crosses QQ and transmits picture to good friend, that is, bury and a little 2 be triggered, at this point, acquisition module 120 can be obtained when starting to transmit the starting of picture Between, picture format and picture the information such as whether be successfully transmitted, the relevant information of above-mentioned acquisition and picture transfer is to bury a little 2 bury point data.
In one embodiment of the invention, in order to can be reported to inquiry server rather than outer net to software under testing Server, which reports, buries point data, can be realized by changing the Hosts file i.e. host files of software under testing.Wherein, host texts Part refers to the file for including network address domain name and IP address correspondence.Specifically, by changing the host files of software under testing, Address can be reported to be revised as the IP address of inquiry server information, points are buried so as to fulfill being reported to inquiry server According to.
In addition, it is necessary to explanation, what above-mentioned inquiry server can receive unencryption buries point data, can receive encryption Bury point data.When inquire the data that receive of server for it is encrypted bury point data when, inquiry server can be to encrypted It buries point data to be decrypted, and preserves bury point data after decryption in the database, user's inquiry to be facilitated to bury point data.
Wherein, it buries in point data other than including some related data of function module, can also include but not limited to The title of software under testing, version number, trigger action the information such as mark.
Acquisition module 120 obtain be triggered bury a little it is corresponding bury point data after, reporting module can obtain the master of modification Machine host files, and the address information for inquiring server is obtained according to modified host host files, and based on inquiry service The address information of device reports to inquiry server and buries point data.
A test device of burying comprising execution module 110, acquisition module 120 and reporting module 130 carries out burying a test Process can be found in Fig. 1, not repeat herein.
It is above-mentioned to bury a test device embodiment, it is performed by execution module software under testing, is set when monitoring in software under testing When burying of putting a little is triggered, acquisition module obtains corresponding bury and a little corresponding buries point data and reporting module to inquiry service Device, which reports, buries point data, can be carried with generating the database of inquiry server, and inquiring server according to the information of burying of input Point data is buried for corresponding, as a result, user only can check difference without packet capturing and ciphertext data by inquiring server Bury it is a little corresponding bury point data, facilitate user and check and bury point data, simplify user and check the operation for burying point data, improve User checks the efficiency for burying point data, and then can improve testing efficiency.
In order to realize above-described embodiment, the present invention also proposes a kind of inquiry unit of data.
Fig. 6 is the structure diagram of the inquiry unit of data in accordance with another embodiment of the present invention, the inquiry of the data Device is located in inquiry server.
As shown in fig. 6, the inquiry unit of the data includes receiving module 210 and acquisition module 220, wherein:
The querying condition that receiving module 210 inputs for reception;And acquisition module 220 meets querying condition for obtaining Bury point data, so as to user according to bury point data test for software under testing set bury it is a little whether correct, wherein, inquiry service That the software under testing that terminal reports is preserved on device buries point data.
Wherein, the software under testing that terminal reports bury point data including unencryption bury point data and/or encryption bury point data, On inquiry server it is corresponding preserve the unencryption that software under testing reports and bury point data and/or point data is buried to encryption be decrypted Afterwards bury point data.
Receiving module 210 is used to receive querying condition input by user;And read module 220 is used for from preset Intranet Server, which is read, meets the inquiry data of above-mentioned querying condition, to facilitate user according to above-mentioned inquiry data test to be above-mentioned to be measured Whether burying for software setting be a little correct, wherein, the information that software under testing reports is preserved in above-mentioned intranet server.
Specifically, input inquiry condition in the query page that tester can be shown in Fig. 3, at this point, receiving module 210 Querying condition is received, acquisition module 220 buries point data based on what querying condition inquiry server acquisition met querying condition, by This, facilitates user's inquiry and buries point data, improve user and check the efficiency for burying point data.
In addition, it is necessary to explanation, software under testing can include the information of unencryption to the information that intranet server reports, Can also include encryption information, still, when the information reported include encryption information when, intranet server can to encryption information into Row decryption, inquires for searching platform and uses.
Specifically, inquiry inquiry data can be compared by acquisition module 220 with expected data, if the two is consistent, It is a little correct to be then determined as burying for software under testing setting, if the two is inconsistent, it is determined that it is a little incorrect for burying for software under testing setting, It needs to reset and bury a little.
A test device of burying comprising receiving module 210 and acquisition module 220 carries out burying a process for test and can be found in figure 2, it does not repeat herein.
The inquiry unit embodiment of above-mentioned data receives querying condition input by user, read module by receiving module Meet the inquiry data of querying condition from the reading of preset intranet server, to facilitate user according to inquiry data test to be to be measured Whether burying for software setting be a little correct, and the entire data packet realized process and transmitted without using packet catcher intercept network is saved Frequent packet capturing operation can obtain inquiry data by access queries platforms, realize simple, conveniently, improve test effect Rate.
In the description of this specification, reference term " one embodiment ", " example ", " is specifically shown " some embodiments " The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description Point is contained at least one embodiment of the present invention or example.In the present specification, schematic expression of the above terms are not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office It is combined in an appropriate manner in one or more embodiments or example.In addition, without conflicting with each other, the skill of this field Art personnel can tie the different embodiments or examples described in this specification and the feature of different embodiments or examples It closes and combines.
In addition, term " first ", " second " are only used for description purpose, and it is not intended that instruction or hint relative importance Or the implicit quantity for indicating indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the present invention, " multiple " are meant that at least two, such as two, three It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, represent to include Module, segment or the portion of the code of the executable instruction of one or more the step of being used to implement specific logical function or process Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discuss suitable Sequence, including according to involved function by it is basic simultaneously in the way of or in the opposite order, to perform function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The system of row system, device or equipment instruction fetch and execute instruction) it uses or combines these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass Defeated program is for instruction execution system, device or equipment or the dress used with reference to these instruction execution systems, device or equipment It puts.The more specific example (non-exhaustive list) of computer-readable medium is including following:Electricity with one or more wiring Connecting portion (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can be for example by carrying out optical scanner to paper or other media, then into edlin, interpretation or when necessary with it His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the present invention can be realized with hardware, software, firmware or combination thereof.Above-mentioned In embodiment, software that multiple steps or method can in memory and by suitable instruction execution system be performed with storage Or firmware is realized.If for example, with hardware come realize in another embodiment, can be under well known in the art Any one of row technology or their combination are realized:With for the logic gates to data-signal realization logic function Discrete logic, have suitable combinational logic gate circuit application-specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are appreciated that realize all or part of step that above-described embodiment method carries Suddenly it is that relevant hardware can be instructed to complete by program, the program can be stored in a kind of computer-readable storage medium In matter, the program when being executed, one or a combination set of the step of including embodiment of the method.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, it can also That each unit is individually physically present, can also two or more units be integrated in a module.Above-mentioned integrated mould The form that hardware had both may be used in block is realized, can also be realized in the form of software function module.The integrated module is such as Fruit is realized in the form of software function module and is independent product sale or in use, can also be stored in a computer In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although it has been shown and retouches above The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the limit to the present invention System, those of ordinary skill in the art can be changed above-described embodiment, change, replace and become within the scope of the invention Type.

Claims (9)

1. one kind buries a test method, which is characterized in that including:
Perform software under testing, wherein, in the software under testing have it is multiple bury a little, it is the multiple bury a little respectively with it is described to be measured soft Multiple function modules in part correspond to, for being triggered when the corresponding function module performs;
When monitoring burying in software under testing and being a little triggered, obtain it is corresponding bury a little corresponding to bury point data;
It is reported to inquiry server and described buries point data to generate the database of the inquiry server;
The information of burying of input is received, and inquiry request is generated, and send to the inquiry server according to the information of burying The inquiry request and the query result for receiving the inquiry server return;
Point data of burying in the query result is compared with expected data, if the two is consistent, it is determined that be to be measured soft Burying for part setting is a little correct, if the two is inconsistent, it is determined that and it is a little incorrect for burying for software under testing setting, it needs to reset and bury Point.
2. according to the method described in claim 1, it is characterized in that, it is described to inquiry server report it is described bury point data, wrap It includes:
The host host files of modification are obtained, and the address of the inquiry server is obtained according to modified host host files Information, and the address information based on the inquiry server reports to the inquiry server and described buries point data.
3. a kind of querying method of data, which is characterized in that including:
Receive the querying condition of input;And
Obtain meet the querying condition bury point data, so that user buries point data test and is set for software under testing according to described Bury it is a little whether correct;
Before the querying condition for receiving input, receive the software under testing that terminal reports buries point data, and received To bury point data for it is encrypted bury point data when, encrypted point data of burying is decrypted, and in the database preserve decryption Afterwards bury point data;
Wherein, the user buries point data test is whether burying for software under testing setting be a little correct according to described, including:
The point data of burying for meeting the querying condition is compared with expected data, if the two is consistent, it is determined that be to be measured Burying for software setting is a little correct, if the two is inconsistent, it is determined that and it is a little incorrect for burying for software under testing setting, it needs to reset It buries a little.
4. one kind buries a test system, which is characterized in that including first terminal, second terminal and inquiry server, wherein:
Software under testing is installed in the first terminal, the first terminal, for performing software under testing, wherein, it is described to be measured In software have it is multiple bury a little, it is the multiple bury it is a little corresponding with multiple function modules in the software under testing respectively, for The corresponding function module is triggered when performing;When monitor in software under testing it is corresponding bury a little be triggered when, obtain pair It should bury and a little corresponding bury point data, and reported to inquiry server and described bury point data;
The second terminal buries information for receive input, and generates an inquiry request according to the information of burying, and to institute Inquiry server is stated to send the inquiry request and receive the query result that the inquiry server returns;
The inquiry server buries point data to generate the number of the inquiry server for receive that the first terminal sends According to the inquiry request that library and the reception second terminal are sent, and an information acquisition pair is buried in the inquiry request That answers buries point data.
5. according to claim 4 bury a test system, which is characterized in that the first terminal is specifically used for:It is repaiied The host host files changed, and the address information for inquiring server, and base are obtained according to modified host host files It is reported in the address information of the inquiry server to the inquiry server and described buries point data.
6. a test system is buried according to claim 4-5 any one of them, which is characterized in that the first terminal reported treats The point data of burying for surveying software includes that unencryption buries point data and/or point data is buried in encryption, corresponding preservation on the inquiry server There is the unencryption of software under testing that the first terminal reports to bury point data and/or bury point data to the encryption to solve Point data is buried after close.
7. one kind buries a test device, which is characterized in that including:
Execution module, for performing software under testing, wherein, have in the software under testing it is multiple bury a little, it is the multiple to bury a little minute It is not corresponding with multiple function modules in the software under testing, for being triggered when the corresponding function module performs;
Acquisition module, for when monitoring burying in software under testing and being a little triggered, obtain it is corresponding bury a little corresponding to bury points According to;
Reporting module, for inquiry server report it is described bury point data to generate the database of the inquiry server, In, the inquiry server provides according to the information of burying of input and corresponding buries point data;
Receiving module for receiving the information of burying of input, and generates inquiry request, and look into described according to the information of burying Server is ask to send the inquiry request and receive the query result that the inquiry server returns;
Processing module, for the point data of burying in the query result to be compared with expected data, if the two is consistent, It is a little correct to be determined as burying for software under testing setting, if the two is inconsistent, it is determined that it is a little incorrect for burying for software under testing setting, it needs It resets and buries a little.
8. device according to claim 7, which is characterized in that the reporting module is specifically used for:
The host host files of modification are obtained, and the address of the inquiry server is obtained according to modified host host files Information, and the address information based on the inquiry server reports to the inquiry server and described buries point data.
9. a kind of inquiry unit of data, which is characterized in that including:
Receiving module, for receiving the querying condition of input;And
Acquisition module, for obtain meet the querying condition bury point data, so that user buries point data test according to described It is a little whether correct for burying for software under testing setting;
Processing module, for before the receiving module receives the querying condition inputted, receiving the software under testing that terminal reports Bury point data, and it is received bury point data for it is encrypted bury point data when, encrypted point data of burying is decrypted, And it preserves bury point data after decryption in the database;
Wherein, the user buries point data test is whether burying for software under testing setting be a little correct according to described, including:
The point data of burying for meeting the querying condition is compared with expected data, if the two is consistent, it is determined that be to be measured Burying for software setting is a little correct, if the two is inconsistent, it is determined that and it is a little incorrect for burying for software under testing setting, it needs to reset It buries a little.
CN201510370210.4A 2015-06-29 2015-06-29 Buried point testing method, data query method and device Active CN104915296B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510370210.4A CN104915296B (en) 2015-06-29 2015-06-29 Buried point testing method, data query method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510370210.4A CN104915296B (en) 2015-06-29 2015-06-29 Buried point testing method, data query method and device

Publications (2)

Publication Number Publication Date
CN104915296A CN104915296A (en) 2015-09-16
CN104915296B true CN104915296B (en) 2018-07-10

Family

ID=54084374

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510370210.4A Active CN104915296B (en) 2015-06-29 2015-06-29 Buried point testing method, data query method and device

Country Status (1)

Country Link
CN (1) CN104915296B (en)

Families Citing this family (41)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106708899B (en) * 2015-11-17 2021-04-27 阿里巴巴集团控股有限公司 Automatic point burying method and device
CN107145489B (en) * 2016-03-01 2020-12-01 阿里巴巴集团控股有限公司 Information statistics method and device for client application based on cloud platform
CN106469185A (en) * 2016-08-29 2017-03-01 浪潮电子信息产业股份有限公司 A kind of method carrying out data collection in website statistics
CN106571949A (en) * 2016-09-23 2017-04-19 北京五八信息技术有限公司 Event tracking point processing method and apparatus
CN108063691A (en) * 2016-11-08 2018-05-22 阿里巴巴集团控股有限公司 One kind buries point data consistency detecting method, apparatus and system
CN106528432B (en) * 2016-12-12 2019-01-25 北京三快在线科技有限公司 The construction method and device of test scene data bury a test method
CN106777086B (en) * 2016-12-13 2020-04-10 东软集团股份有限公司 Dynamic management method and device for webpage embedded points
CN106598868B (en) * 2016-12-24 2018-03-02 上海壹账通金融科技有限公司 Method and system a little are buried to the application program of client dynamic
CN108255659B (en) * 2016-12-28 2021-06-29 平安科技(深圳)有限公司 Application program performance monitoring method and system
CN106844217B (en) * 2017-01-26 2020-03-20 网易(杭州)网络有限公司 Method and device for embedding point of applied control and readable storage medium
CN107688530B (en) * 2017-04-06 2020-04-10 平安科技(深圳)有限公司 Software testing method and device
CN107870860B (en) * 2017-05-05 2020-12-15 平安科技(深圳)有限公司 Buried point verification system and method
CN107295088B (en) * 2017-06-29 2020-04-10 广东神马搜索科技有限公司 Dotting information monitoring method and device and client
CN107832210A (en) * 2017-10-27 2018-03-23 广州四三九九信息科技有限公司 Access method of testing, device and a server are buried in daily record
CN107832216A (en) * 2017-11-08 2018-03-23 无线生活(杭州)信息科技有限公司 One kind buries a method of testing and device
CN108595450B (en) * 2017-11-29 2021-06-04 五八有限公司 Buried point database construction method, buried point database and buried point query method
CN108038053B (en) * 2017-11-29 2019-07-26 上海恺英网络科技有限公司 A kind of dynamic configuration buries method and apparatus a little
CN108319552A (en) * 2018-02-07 2018-07-24 优信数享(北京)信息技术有限公司 One kind burying a test method, apparatus and system
CN108347532B (en) * 2018-02-07 2021-03-19 深圳壹账通智能科技有限公司 Function access method, device, terminal equipment and storage medium
CN108833459B (en) * 2018-04-09 2022-05-13 平安普惠企业管理有限公司 Data reporting method and terminal equipment
CN108829710A (en) * 2018-05-03 2018-11-16 北京奇虎科技有限公司 A kind of data analysing method and device
CN108932188A (en) * 2018-05-03 2018-12-04 北京奇虎科技有限公司 A kind of data processing method and device
CN108664397A (en) * 2018-05-03 2018-10-16 北京奇虎科技有限公司 A kind of user's shunt method and device for application test
CN108874660A (en) * 2018-05-03 2018-11-23 北京奇虎科技有限公司 A kind of application testing method and device
CN108920354B (en) * 2018-05-07 2021-01-01 未鲲(上海)科技服务有限公司 Embedded point management method and device, computer equipment and storage medium
CN108664401B (en) * 2018-05-11 2021-10-12 创新先进技术有限公司 Method and device for evaluating reasonability of buried point
CN109245883A (en) * 2018-09-21 2019-01-18 深圳市德名利电子有限公司 A kind of randomizer and production methods are counted at any time
CN109525643A (en) * 2018-10-19 2019-03-26 中国银行股份有限公司 A kind of user behavior analysis method and device of bank's mobile application
CN111130956B (en) * 2018-10-30 2022-05-03 九阳股份有限公司 Data transmission method of intelligent household appliance and intelligent household appliance
CN109684583A (en) * 2018-11-12 2019-04-26 深圳壹账通智能科技有限公司 Analysis method, device, terminal and the readable storage medium storing program for executing of Page user behavior
CN109542743B (en) * 2018-11-16 2022-04-12 北京微播视界科技有限公司 Log checking method and device, electronic equipment and computer readable storage medium
CN109491921B (en) * 2018-11-29 2021-10-12 携程旅游网络技术(上海)有限公司 Management method and system of buried point information
CN112698999B (en) * 2019-10-23 2022-03-29 Oppo广东移动通信有限公司 System monitoring method, device, terminal equipment and storage medium
CN111090592A (en) * 2019-12-20 2020-05-01 上海品顺信息科技有限公司 Automatic testing method of buried point, terminal and readable storage medium
CN111338931B (en) * 2020-01-14 2022-10-14 江苏满运软件科技有限公司 Buried point testing method, device, equipment and storage medium
CN111263215A (en) * 2020-02-12 2020-06-09 湖南快乐阳光互动娱乐传媒有限公司 Method and system for processing reported data of IPTV set top box
CN111367814A (en) * 2020-03-17 2020-07-03 深圳市前海随手数据服务有限公司 Embedded point testing method and device, terminal equipment and storage medium
CN111611140B (en) * 2020-04-30 2023-05-16 广州华多网络科技有限公司 Report verification method and device for buried point data, electronic equipment and storage medium
CN111866071A (en) * 2020-06-08 2020-10-30 北京百度网讯科技有限公司 Data uploading method and device of business application, electronic equipment and storage medium
CN112286834B (en) * 2020-12-31 2021-04-16 智道网联科技(北京)有限公司 Multi-device software testing method, testing device, electronic device and storage medium
CN114331574A (en) * 2022-03-17 2022-04-12 北京搜狐新媒体信息技术有限公司 Verification method, device, storage medium and equipment for reporting buried point

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1825812A (en) * 2005-02-25 2006-08-30 华为技术有限公司 System and method for managing network web log information
CN102053906A (en) * 2009-10-30 2011-05-11 国际商业机器公司 System and method for collecting program runtime information
CN102739802A (en) * 2012-07-06 2012-10-17 广东电网公司汕头供电局 Service application-oriented IT contralized operation and maintenance analyzing system
CN104077232A (en) * 2014-07-21 2014-10-01 上海零一拼装信息技术有限公司 Testing device and method based on use case and source code two-way tracing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1825812A (en) * 2005-02-25 2006-08-30 华为技术有限公司 System and method for managing network web log information
CN102053906A (en) * 2009-10-30 2011-05-11 国际商业机器公司 System and method for collecting program runtime information
CN102739802A (en) * 2012-07-06 2012-10-17 广东电网公司汕头供电局 Service application-oriented IT contralized operation and maintenance analyzing system
CN104077232A (en) * 2014-07-21 2014-10-01 上海零一拼装信息技术有限公司 Testing device and method based on use case and source code two-way tracing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Android应用中埋点监控的思考与设计;Stackvoid小菜;《博客频道》;20141010;第1-3页 *

Also Published As

Publication number Publication date
CN104915296A (en) 2015-09-16

Similar Documents

Publication Publication Date Title
CN104915296B (en) Buried point testing method, data query method and device
US10362050B2 (en) System and methods for scalably identifying and characterizing structural differences between document object models
CN103748573B (en) Method and system for reducing redirects
Mowery et al. Fingerprinting information in JavaScript implementations
US9858341B2 (en) Method and apparatus for remotely monitoring a social website
US20170255706A1 (en) Methods and apparatus to track web browsing sessions
TWI515588B (en) Machine behavior determination method, web browser and web server
CN104104649B (en) The method of page login, apparatus and system
CN102833212B (en) Webpage visitor identity identification method and system
CN108684205A (en) Customize digital assembly
CN109428878A (en) Leak detection method, detection device and detection system
WO2015188743A1 (en) Web page vulnerability detection method and apparatus
CN106603296A (en) Log processing method and device
CN102968584B (en) A kind of method and apparatus of log-on webpage
CN110059269B (en) Page tracking method and device, electronic equipment and computer readable storage medium
WO2013019897A2 (en) Apparatus, system, and method for dynamically customizing a web page
CN104951700B (en) Webpage leak detection method and device
CN104410546A (en) Testing method and device of real-time processing system
CN104698919A (en) Method and device for inspecting intelligent terminal
CN104331369A (en) Browser-based webpage detection method and device, and server
US11405403B2 (en) Method and device, and server and terminal for processing network resource access
US11157948B2 (en) Method and system for independent validation of asset serving
CN104580380B (en) The synchronous method and system of logging state
CN104978257B (en) Computing device elasticity methods of marking and device
CN104025089B (en) The method and system creeped based on situation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant