CN102761456B - A kind of method, Apparatus and system obtaining browser of mobile terminal performance parameter - Google Patents

A kind of method, Apparatus and system obtaining browser of mobile terminal performance parameter Download PDF

Info

Publication number
CN102761456B
CN102761456B CN201110110538.4A CN201110110538A CN102761456B CN 102761456 B CN102761456 B CN 102761456B CN 201110110538 A CN201110110538 A CN 201110110538A CN 102761456 B CN102761456 B CN 102761456B
Authority
CN
China
Prior art keywords
mobile terminal
browser
server
performance parameter
webpage
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
CN201110110538.4A
Other languages
Chinese (zh)
Other versions
CN102761456A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201110110538.4A priority Critical patent/CN102761456B/en
Publication of CN102761456A publication Critical patent/CN102761456A/en
Application granted granted Critical
Publication of CN102761456B publication Critical patent/CN102761456B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of method, the Apparatus and system that obtain browser of mobile terminal performance parameter.The method comprises: arrange in the terminal in advance and receive instruction and the client terminal device performed according to instruction from server; Receive from the Webpage access instruction of server, trigger the Webpage that the described Webpage access instruction of access is corresponding, and trigger preassembled packet capturing software and carry out packet capturing; And export server to after the encapsulating of crawl being filled; Resolve the wrapper of described crawl, obtain browser of mobile terminal performance parameter and calculate desired data, calculate browser of mobile terminal performance parameter.Application the present invention, can improve the reliability of the browser of mobile terminal performance parameter of acquisition.

Description

A kind of method, Apparatus and system obtaining browser of mobile terminal performance parameter
Technical field
The present invention relates to measuring technology, particularly a kind of method, Apparatus and system obtaining browser of mobile terminal performance parameter.
Background technology
Along with the development of mobile communication technology, user can carry out surfing the web by browser of mobile terminal whenever and wherever possible, customized personal business and inquiry information needed, with the process of network interaction, the experience of quality on customer service of browser of mobile terminal performance has larger impact, and good browser of mobile terminal performance can promote the business experience of user.Wherein, mobile terminal refers to the computer equipment that can use in movement, namely in a mobile communication device, stop from or deliver to the wireless transmission of network, and self-ability is fitted to the computer equipment of wireless transmission, broad sense can comprise mobile phone, notebook, vehicle-mounted computer etc., but in most cases, refer to mobile phone or there is the smart mobile phone of multiple application function.Browser of mobile terminal performance comprises page access speed and traffic consumes amount, page access speed is for representing that user obtains the speed degree of business, the communication quality of direct reflection network, thus the business experience of user can be affected, usually occur that duration and page info show duration completely and identify first with page info, traffic consumes amount is for representing the cost of customer access network.Therefore, if with network service, browser of mobile terminal performance parameter can be obtained, user is made to determine whether continue communication according to the browser of mobile terminal performance parameter obtained particularly important, such as, if the browser of mobile terminal performance parameter obtained is poor, user can select to disconnect network connection and wait for for a long time to avoid opening Webpage.
In prior art, browser of mobile terminal performance parameter can be obtained by following two kinds of methods, carry out brief description below.
The first obtains the method for browser of mobile terminal performance parameter:
While a certain station network page of access, adopt preassembled record to shield software to record a video, then by analyzing each frame of video recording, when occurring that in a certain frame of recording a video mark starts progress bar or the progress percentage of Webpage access first, then using time point corresponding for this frame as starting the time point of accessing this website, record this time point information t1; When there is page info in a certain frame first in this video recording, then the time point that this frame is corresponding is page info time of occurrence point first, records this time point information t2; When occurring display page information completely in a certain frame first in this video recording, then the time point that this frame is corresponding is end time point, and namely page info shows duration point completely, records this time point information t3.When so user accesses this station network page, it is t2-t1 that page info shows duration first, and it is t3-t1 that page info shows duration completely.The traffic consumes amount of Webpage downloading process is obtained by enquiry mobile terminal connection management.
The second obtains the method for browser of mobile terminal performance parameter:
In advance mobile terminal and server are passed through serial communication, infrared ray, bluetooth, or Wireless Fidelity (Wi-Fi, etc. WirelessFidelity) mode connects, server controls browser of mobile terminal execution by instruction and opens Webpage operation, do not stop to carry out screenshotss to current mobile terminal screen in Webpage downloading process, and screenshotss data are transferred to server by modes such as serial communications, server can arrange screenshotss frequency, such as, to cut second every s and once shield.In practical application, when user accesses a Webpage by browser of mobile terminal, when the refreshing identification in the screen upper right corner is one ' × ' first, represents and start to access a certain website; When the refreshing identification in the screen upper right corner is a refreshing identification first, representation page information has shown completely.Like this, by intercepting the little picture in the browser of mobile terminal screen upper right corner, the refreshing identification pre-set with server is first for the picture of ' × ' and refreshing identification are first for the picture of refreshing identification mates, whether complete to verify that Webpage is downloaded, if do not have download to complete, then again carry out screenshotss and the screenshot picture obtained is mated, circulation like this is until downloaded, then, according to the screenshotss frequency pre-set, such as, to cut second every s and once scheme, calculate the time that Webpage is downloaded, namely page info shows duration completely.The traffic consumes amount of Webpage downloading process, as previously mentioned, can be obtained by enquiry mobile terminal connection management.
From above-mentioned, the method of existing acquisition browser of mobile terminal performance parameter, for first method, owing to obtaining browser of mobile terminal performance parameter by manual analysis video recording, when determining the concrete frame of video recording corresponding to browser of mobile terminal performance parameter, there is artificial deviation, can not effective reflect mobile terminal browser performance, reliability is lower, simultaneously, by manual analysis, efficiency is lower.For second method, one, the page info that can not obtain when accessing a certain website shows duration information first; They are two years old, screenshotss software is after screenshot picture, need to judge whether the page has been downloaded, after judging that the page has not been downloaded, carry out screenshotss operation again, and in the process of server judgement, the page may be downloaded, cause larger time error, the browser of mobile terminal Performance reliability of acquisition is lower; Its three, because needs carry out picture contrast, coupling, due to the impact of different contrast, color etc., may make identical two pictures of content of pages, due to the difference of contrast, color, making it can not the match is successful, thus, the reliability of browser of mobile terminal performance parameter is reduced.
Summary of the invention
In view of this, main purpose of the present invention is to propose a kind of method obtaining browser of mobile terminal performance parameter, improves the reliability of the browser of mobile terminal performance parameter obtained.
Another object of the present invention is to propose a kind of device obtaining browser of mobile terminal performance parameter, improve the reliability of the browser of mobile terminal performance parameter obtained.
Another object of the present invention is to propose a kind of system obtaining browser of mobile terminal performance parameter, improves the reliability of the browser of mobile terminal performance parameter obtained.
For achieving the above object, the invention provides a kind of method obtaining browser of mobile terminal performance parameter, the method comprises:
Arrange in the terminal in advance and receive instruction and the client terminal device performed according to instruction from server;
Receive the Webpage access instruction from server, according to the web page information of carrying in Webpage access instruction, trigger the Webpage that the described Webpage access instruction of access is corresponding, and trigger preassembled packet capturing software and carry out packet capturing, to obtain the information of browser of mobile terminal and Webpage server interaction, and export server to after the encapsulating of crawl being filled;
The wrapper captured described in server parses, can in editing files by what resolve that the browser of mobile terminal performance parameter that obtains calculates that desired data write pre-sets; Invoke script reads and the browser of mobile terminal performance parameter in editing files can calculate desired data, calculates browser of mobile terminal performance parameter.
The wrapper of described crawl exports server to packet capture Pcap file data packet format.
Described browser of mobile terminal performance parameter comprises: page info shows duration first and page info shows duration completely, wherein,
It is page info time of occurrence point and the difference of time point starting access web page first that page info shows duration first;
Page info shows the difference that duration is end time point and the time point starting access web page completely.
The time point of described beginning access web page is the time point of asking the request bag of interconnection network server corresponding;
Page info first time of occurrence point is be connected to the webserver and submit the time point that interconnection network server request is corresponding to, or, after the webserver returns request response, the content that request obtains is rendered into the time point on browser of mobile terminal by mobile terminal;
End time point, the web page information sent for the webserver arrives time point corresponding on mobile terminal completely, or mobile terminal has received overall network page info, and request disconnects time point corresponding to the webserver.
Describedly can comprise the file of Excel form, text formatting, notepad form and word form by editing files.
Described script adopts script Python to write.
The described client terminal device pre-set is connected on server by USB, serial communication, infrared ray, bluetooth or Wi-Fi, the instruction that monitor server sends.
Described web page information comprises the one or more Webpage URL information pre-set.
The information of described browser of mobile terminal and Webpage server interaction is: browser of mobile terminal and the mutual each time information of Webpage server; Described mutual information comprises: transmission time information, source address information, destination address information, protocol information and state information.
When triggering access web page, comprise further:
Carry out timing, if do not receive overall network page info in the time threshold arranged in the terminal in advance, then process ends.
The preassembled packet capturing software of described triggering carries out packet capturing and after the step of encapsulation, before resolving the step of the wrapper of described crawl, comprises further:
When receiving overall network page info and disconnecting successfully, stop packet capturing, and export server to after the encapsulating of crawl being filled.
Obtain a client terminal device for browser of mobile terminal performance parameter, this device comprises: client terminal device monitoring modular, Webpage access modules, packet capturing module and package module, wherein,
Client terminal device monitoring modular, for the Webpage access instruction of monitor server, according to the web page information of carrying in the Webpage access instruction received, exports triggering command respectively to Webpage access modules and packet capturing module;
Webpage access modules, for receiving triggering command, the Webpage that access web page access instruction is corresponding;
Packet capturing module, for receiving triggering command, to during Webpage access modules access web page and the information of Webpage server interaction carry out packet capturing, and export the bag of crawl to package module;
Package module, encapsulates for the bag exported packet capturing module, exports outside server to.
Obtain a server-side device for browser of mobile terminal performance parameter, this device comprises: parse module, can editing files memory module and script computing module, wherein,
Parse module, for resolving the wrapper captured, by resolve the browser of mobile terminal performance parameter that obtains calculate desired data write can in editing files memory module;
Can editing files memory module, calculate desired data for the browser of mobile terminal performance parameter storing write;
Script computing module, the browser of mobile terminal performance parameter in editing files memory module can calculate desired data for reading, calculating browser of mobile terminal performance parameter.
Obtain a system for browser of mobile terminal performance parameter, this system comprises: mobile terminal and server, wherein,
Mobile terminal, receives instruction and the client terminal device performed according to instruction for pre-setting from server; Receive the Webpage access instruction from server, according to the web page information of carrying in Webpage access instruction, trigger the Webpage that access web page access instruction is corresponding, and trigger preassembled packet capturing software and carry out packet capturing, to obtain the information of browser of mobile terminal and Webpage server interaction, and export server to after the encapsulating of crawl being filled;
Server, for resolving the wrapper of crawl, can in editing files by what resolve that the browser of mobile terminal performance parameter that obtains calculates that desired data write pre-sets; Invoke script reads and the browser of mobile terminal performance parameter in editing files can calculate desired data, calculates desired data calculate browser of mobile terminal performance parameter according to the performance parameter obtained.
Described mobile terminal comprises: client terminal device monitoring modular, Webpage access modules, packet capturing module and package module, wherein,
Client terminal device monitoring modular, for the Webpage access instruction of monitor server, according to the web page information of carrying in the Webpage access instruction received, exports triggering command respectively to Webpage access modules and packet capturing module;
Webpage access modules, for receiving triggering command, the Webpage that access web page access instruction is corresponding;
Packet capturing module, for receiving triggering command, to during Webpage access modules access web page and the information of Webpage server interaction carry out packet capturing, and export the bag of crawl to package module;
Package module, encapsulates for the bag exported packet capturing module, exports outside server to.
Described server comprises: parse module, can editing files memory module and script computing module, wherein,
Parse module, for resolving the wrapper captured, by resolve the browser of mobile terminal performance parameter that obtains calculate desired data write can in editing files memory module;
Can editing files memory module, calculate desired data for the browser of mobile terminal performance parameter storing write;
Script computing module, the browser of mobile terminal performance parameter in editing files memory module can calculate desired data for reading, calculating browser of mobile terminal performance parameter.
As seen from the above technical solutions, a kind of method, Apparatus and system obtaining browser of mobile terminal performance parameter provided by the invention, arranges in the terminal in advance and receives instruction and the client terminal device performed according to instruction from server; Receive from the Webpage access instruction of server, trigger the Webpage that the described Webpage access instruction of access is corresponding, and trigger preassembled packet capturing software and carry out packet capturing and encapsulate; Resolve the wrapper of described crawl, obtain browser of mobile terminal performance parameter and calculate desired data, calculate browser of mobile terminal performance parameter.Like this, by the test of automation, when overall network page info end of transmission, the bag captured is analyzed, avoid screenshotss, larger time error that judgement, again screenshotss cause, and, do not need to carry out picture contrast, coupling, artificial participation is less, efficiency is high, improves the reliability of the browser of mobile terminal performance parameter of acquisition.
Accompanying drawing explanation
Fig. 1 is the method flow schematic diagram that the embodiment of the present invention obtains browser of mobile terminal performance parameter.
Fig. 2 is the Pcap file data bag schematic diagram that embodiment of the present invention access web page is formed.
Fig. 3 is the apparatus structure schematic diagram that the embodiment of the present invention obtains browser of mobile terminal performance parameter.
Fig. 4 is another apparatus structure schematic diagram that the embodiment of the present invention obtains browser of mobile terminal performance parameter.
Fig. 5 is the system configuration schematic diagram that the embodiment of the present invention obtains browser of mobile terminal performance parameter.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, the present invention is described in further detail below in conjunction with the accompanying drawings and the specific embodiments.
In prior art, obtain the method for browser of mobile terminal performance parameter by manual analysis video recording and judge that coupling obtains the method for browser of mobile terminal performance parameter by screenshotss software screen picture, all there is the defect that browser of mobile terminal Performance reliability is lower.In the embodiment of the present invention, instruction is received and the client terminal device performed according to instruction from server by pre-setting in the terminal, namely the wireless automatic tool set WiMAT of the embodiment of the present invention is installed, for with server communication, server runs corresponding scripts, for notifying that browser of mobile terminal to be measured accesses the Webpage pre-set, such as, Baidu's page, Sina's page and Sohu's page etc., while access web page, LiteSniffer is adopted to carry out packet capturing, by the information of each Webpage of the access of crawl with packet capture (Pcap, PacketCapture) packet form stores, after packet capturing completes, resolve by ParsePcap each Pcap captured to wrap, and resolution data is write in Excel table, afterwards, the script that server runs reads the data of parsing from Excel table, execution calculates browser of mobile terminal performance parameter.
Fig. 1 is the method flow schematic diagram that the embodiment of the present invention obtains browser of mobile terminal performance parameter.See Fig. 1, this flow process comprises:
Step 101, arranges in the terminal in advance and receives instruction and the client terminal device performed according to instruction from server;
In this step, at the client terminal device that running of mobile terminal pre-sets, receive instruction from server for being responsible for and performing.Such as, on mobile terminals WiMAT is installed, and is connected on server by modes such as USB (USB, UniversalSerialBus), serial communication, infrared ray, bluetooth or Wi-Fi, then monitor server, waits for the instruction sent from server.WiMAT is a wireless automatic tool set, can monitor the instruction of incoming terminal, performs operation corresponding to instruction to control mobile terminal.Server triggers Run Script by user, makes this script send instruction from server.
Step 102, receives the Webpage access instruction from server, triggers the Webpage that access web page access instruction is corresponding, and triggers preassembled packet capturing software and carry out packet capturing;
In this step, the client terminal device monitor server that mobile terminal is arranged, receives the Webpage access instruction from server, according to the web page information of carrying in Webpage access instruction, and the Webpage that access web page information is corresponding.
Web page information comprises the one or more Webpage uniform resource locator (URL pre-set, UniversalResourceLocator) information, such as, Baidu's page URL information, Sina's page URL information and Sohu's page URL information etc.Certainly, in practical application, in order to improve the reliability of statistics of the last browser of mobile terminal performance parameter obtained, web page information can also comprise frequency information and the access times information of access web page.Such as, the interval time of the same station network page and total access times are accessed.
When starting access web page, when namely performing the operation of corresponding network page access according to Webpage access instruction, trigger the reciprocal process of preassembled packet capturing software to browser of mobile terminal access web page and Webpage server (webserver) and carry out packet capturing process, that is, obtain the information of browser of mobile terminal and Webpage server interaction, such as, when sending interconnection network server request to Webpage server, capture the transmission time information that it comprises, source address information, destination address information, protocol information and state information etc., when Webpage server returns the response of interconnection network server request, same crawl its transmission time information comprised, source address information, destination address information, protocol information and state information etc.Packet capturing software can be LiteSniffer, also can be other conventional packet capturing software.
Step 103, when receiving overall network page info and disconnecting successfully, stops packet capturing, and exports server to after the encapsulating of crawl being filled;
This step is optional, in the process of access web page, the information of packet capturing software grabs browser of mobile terminal and Webpage server interaction each time, finally, when Webpage server returns overall network page info to browser of mobile terminal, browser of mobile terminal obtains overall network page info, send to Webpage server and disconnect request, Webpage server receives request, disconnect, return to browser of mobile terminal and disconnect request response, browser of mobile terminal receives and disconnects request response, stop packet capturing, and export server to after the encapsulating of crawl being filled.
In practical application, when triggering access web page, comprising further, carrying out timing, if do not receive overall network page info in the time threshold pre-set, then can process ends.
Preferably, in the embodiment of the present invention, the bag of crawl exports server to Pcap file data packet format and stores, and certainly, also can be stored in mobile terminal, but consider the storage capacity of mobile terminal, generally export server to and store.A corresponding Pcap file data bag of access web page.
Pcap file is a kind of file format of standard, has file header and the data packet head of full-length, wherein,
File header is defined as:
structPcap_file_header{
Bpf_u_int32magic; // 4 byte Pcap file identifications are " d4c3b2a1 " at present
U_shortversion_major; // 2 byte major version number
U_shortversion_minor; // 2 bytes time version number
Bpf_int32thiszone; // 4 byte time zones are revised, and not using, is 0 at present entirely
Bpf_u_int32sigfigs; // 4 byte precise time stamps, not using, is 0 at present entirely
Bpf_u_int32snaplen; // 4 byte packet capturing maximum lengths
Bpf_u_int32linktype; // 4 byte Linktypes
};
Data packet head is defined as:
structPcap_pkthdr{
Structtimevalts; // 8 byte packet capturing times
Bpf_u_int32caplen; The packet length that // 4 bytes preserve
Bpf_u_int32len; The actual length of // 4 byte data bags
};
structtimeval{
Longtv_sec; // 4 byte representation number of seconds
Suseconds_ttv_usec; // 4 byte representation microsecond numbers
};
Because Pcap file has file header and the data packet head of full-length, thus, be convenient to untar and resolve, untar can obtain give out a contract for a project address, packet receiving address, the information such as time of giving out a contract for a project from Pcap file data bag.The website of mobile terminal accessing can be determined by give out a contract for a project address and packet receiving address.
Fig. 2 is the Pcap file data bag schematic diagram that embodiment of the present invention access web page is formed.See Fig. 2, the mode of this Pcap file data packet rows row arranges, each behavior once with the visit information of browser of mobile terminal or network web server, comprising: sequence number, time (Time), source address (Source), destination address (Destination), agreement (Protocol) and state information (Info) etc.
Step 104, resolves the bag of the crawl of encapsulation, obtains browser of mobile terminal performance parameter and calculates desired data, calculates desired data calculate browser of mobile terminal performance parameter according to the performance parameter obtained.
In this step, resolve the bag captured and specifically comprise:
What server employing was corresponding with packet capturing software unpacks software, and such as, in the embodiment of the present invention, what packet capturing software LiteSniffer was corresponding unpacks software is ParsePcap, resolves the Pcap file data bag captured.Because Pcap file data bag is a regular packet, form has strict requirement, can obtain browser of mobile terminal performance parameter to be tested and calculates desired data by correspondence position from Pcap file data bag.Such as, for Fig. 2, the time point t that the request bag of the first behavior request interconnection network server is corresponding 0, fourth line is for being connected to the webserver and submitting the time point t that interconnection network server request (comprising GET in information) is corresponding to 1, after the 7th behavior webserver returns request response, the content that request obtains is rendered into time point (comprising HTTP in the information) t on browser of mobile terminal by mobile terminal 2, the web page information that the fourth from the last behavior webserver sends arrives time point (comprising HTTP/1.1200OK in information) t corresponding on mobile terminal completely 3, behavior mobile terminal second from the bottom has received overall network page info, and request disconnects time point (comprising FIN, ACK in information) t corresponding to the webserver 4.Wherein,
t 0=0.000000;t 1=1.128000;t 2=3.647125;t 3=41.574375;t 4=41.696125。
Calculate browser of mobile terminal performance parameter according to the performance parameter calculating desired data obtained specifically to comprise:
A, can in editing files by what resolve that the browser of mobile terminal performance parameter that obtains calculates that desired data write pre-sets;
In this step, it is time point information that browser of mobile terminal performance parameter calculates desired data, can comprise Excel form, text formatting, notepad form and word formatted file by editing files, preferably, because the write of Excel table is convenient, preferential employing Excel table.
In the embodiment of the present invention, if the multiple mobile terminal that has be connected with server is tested, then arranging respectively according to mobile terminal identification can editing files.
B, invoke script read and the browser of mobile terminal performance parameter in editing files can calculate desired data, calculate browser of mobile terminal performance parameter.
In this step, if adopt Excel to show writing mode, the browser of mobile terminal performance parameter that the script of server reads in Excel table calculates desired data, browser of mobile terminal performance parameter according to each station network page calculates desired data, calculate the browser of mobile terminal performance parameter of this station network page of access, if a certain station network page is repeatedly accessed, then calculate according to the average computation desired data of repeatedly accessing this station network page.
Script can adopt script Python to write.
Browser of mobile terminal performance parameter comprises: page info shows duration T first sand page info shows duration T completely w, wherein,
The time point starting access web page is the time point of asking the request bag of interconnection network server corresponding, and namely sequence number is the time point t of the first row of 1 0, generally, acquiescence t 0=0;
Page info first time of occurrence point is be connected to the webserver and submit the time point that interconnection network server request is corresponding to, or, after the webserver returns request response, the content that request obtains is rendered into the time point on browser of mobile terminal by mobile terminal;
End time point, the web page information sent for the webserver arrives time point corresponding on mobile terminal completely, or mobile terminal has received overall network page info, and request disconnects time point corresponding to the webserver.According to the keyword message comprised in information in Pcap file data bag, can inquire about, determine corresponding time point information.
T s=t 2-t 0, or, T s=t 1-t 0;
T w=t 4-t 0, or, T w=t 3-t 0.
From above-mentioned, the method for the acquisition browser of mobile terminal performance parameter of the embodiment of the present invention, arranges in the terminal in advance and receives instruction and the client terminal device performed according to instruction from server; Receive from the Webpage access instruction of server, trigger the Webpage that access web page access instruction is corresponding, and trigger preassembled packet capturing software and carry out packet capturing; Resolve the wrapper captured, obtain browser of mobile terminal performance parameter and calculate desired data, calculate desired data according to the performance parameter obtained and calculate browser of mobile terminal performance parameter.Like this, by the test of automation, analyze each interactive information, avoid the artificial error analyzing appearance, artificial participation is less, efficiency is high; Further, at overall network page info end of transmission and when disconnecting successfully, the bag captured is analyzed, avoids screenshotss, larger time error that judgement, again screenshotss cause, the browser of mobile terminal Performance reliability of acquisition is high; And the specifying information according to comprising in the bag captured judges, does not need to carry out picture contrast, coupling, avoids matching error, thus, improve the reliability of the browser of mobile terminal performance parameter of acquisition.
Fig. 3 is the apparatus structure schematic diagram that the embodiment of the present invention obtains browser of mobile terminal performance parameter.See Fig. 3, this device is mobile terminal, comprising: client terminal device monitoring modular, Webpage access modules, packet capturing module and package module, wherein,
Client terminal device monitoring modular, for the Webpage access instruction of monitor server, according to the Webpage access instruction received, exports triggering command respectively to Webpage access modules and packet capturing module;
Webpage access modules, for receiving triggering command, the Webpage that access web page access instruction is corresponding, when receiving overall network page info and disconnecting successfully, exports to packet capturing module and stops packet capturing instruction;
Packet capturing module, for receiving triggering command, the information mutual to Webpage access modules access web page carries out packet capturing, receives and stops packet capturing instruction, stops packet capturing, and exports the bag of crawl to package module;
Package module, encapsulates for the bag exported packet capturing module, exports outside server to.
Fig. 4 is another apparatus structure schematic diagram that the embodiment of the present invention obtains browser of mobile terminal performance parameter.See figure, this device is server, comprising: parse module, can editing files memory module and script computing module, wherein,
Parse module, for resolving the wrapper captured, by resolve the browser of mobile terminal performance parameter that obtains calculate desired data write can in editing files memory module;
Can editing files memory module, calculate desired data for the browser of mobile terminal performance parameter storing write;
Script computing module, the browser of mobile terminal performance parameter in editing files memory module can calculate desired data for reading, calculating browser of mobile terminal performance parameter.
Fig. 5 is the system configuration schematic diagram that the embodiment of the present invention obtains browser of mobile terminal performance parameter.See Fig. 5, this system comprises: mobile terminal and server, wherein,
Mobile terminal, receives instruction and the client terminal device performed according to instruction for pre-setting from server; Receive from the Webpage access instruction of server, trigger the Webpage that access web page access instruction is corresponding, and trigger preassembled packet capturing software and carry out packet capturing; When receiving overall network page info and disconnecting successfully, stop packet capturing, and export server to after the encapsulating of crawl being filled;
Server, for resolving the wrapper of crawl, obtaining browser of mobile terminal performance parameter and calculating desired data, calculate desired data calculate browser of mobile terminal performance parameter according to the performance parameter obtained.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (16)

1. obtain a method for browser of mobile terminal performance parameter, it is characterized in that, the method comprises:
Arrange in the terminal in advance and receive instruction and the client terminal device performed according to instruction from server;
Receive the Webpage access instruction from server, according to the web page information of carrying in Webpage access instruction, trigger the Webpage that the described Webpage access instruction of access is corresponding, and trigger preassembled packet capturing software and carry out packet capturing, to obtain the information of browser of mobile terminal and Webpage server interaction, and export server to after the encapsulating of crawl being filled;
The wrapper captured described in server parses, can in editing files by what resolve that the browser of mobile terminal performance parameter that obtains calculates that desired data write pre-sets; Invoke script reads and the browser of mobile terminal performance parameter in editing files can calculate desired data, calculates browser of mobile terminal performance parameter.
2. the method for claim 1, is characterized in that, the wrapper of described crawl exports server to packet capture Pcap file data packet format.
3. the method for claim 1, is characterized in that, described browser of mobile terminal performance parameter comprises: page info shows duration first and page info shows duration completely, wherein,
It is page info time of occurrence point and the difference of time point starting access web page first that page info shows duration first;
Page info shows the difference that duration is end time point and the time point starting access web page completely.
4. method as claimed in claim 3, is characterized in that,
The time point of described beginning access web page is the time point of asking the request bag of interconnection network server corresponding;
Page info first time of occurrence point is be connected to the webserver and submit the time point that interconnection network server request is corresponding to, or, after the webserver returns request response, the content that request obtains is rendered into the time point on browser of mobile terminal by mobile terminal;
End time point, the web page information sent for the webserver arrives time point corresponding on mobile terminal completely, or mobile terminal has received overall network page info, and request disconnects time point corresponding to the webserver.
5. the method for claim 1, is characterized in that, describedly can comprise the file of Excel form, text formatting, notepad form and word form by editing files.
6. the method for claim 1, is characterized in that, described script adopts script Python to write.
7. the method as described in any one of claim 1 to 6, is characterized in that, described in the client terminal device that pre-sets be connected on server by USB, serial communication, infrared ray, bluetooth or Wi-Fi, the instruction that monitor server sends.
8. method as claimed in claim 7, it is characterized in that, described web page information comprises the one or more Webpage URL information pre-set.
9. method as claimed in claim 7, it is characterized in that, the information of described browser of mobile terminal and Webpage server interaction is: browser of mobile terminal and the mutual each time information of Webpage server;
Described mutual information comprises: transmission time information, source address information, destination address information, protocol information and state information.
10. method as claimed in claim 7, is characterized in that, when triggering access web page, comprises further:
Carry out timing, if do not receive overall network page info in the time threshold arranged in the terminal in advance, then process ends.
11. methods as claimed in claim 7, is characterized in that, the preassembled packet capturing software of described triggering carries out packet capturing and after the step of encapsulation, before resolving the step of the wrapper of described crawl, comprises further:
When receiving overall network page info and disconnecting successfully, stop packet capturing, and export server to after the encapsulating of crawl being filled.
12. 1 kinds of client terminal devices obtaining browser of mobile terminal performance parameter, it is characterized in that, this device comprises: client terminal device monitoring modular, Webpage access modules, packet capturing module and package module, wherein,
Client terminal device monitoring modular, for the Webpage access instruction of monitor server, according to the web page information of carrying in the Webpage access instruction received, exports triggering command respectively to Webpage access modules and packet capturing module;
Webpage access modules, for receiving triggering command, the Webpage that access web page access instruction is corresponding;
Packet capturing module, for receiving triggering command, to during Webpage access modules access web page and the information of Webpage server interaction carry out packet capturing, and export the bag of crawl to package module;
Package module, encapsulates for the bag exported packet capturing module, exports outside server to.
13. 1 kinds of server-side device obtaining browser of mobile terminal performance parameter, it is characterized in that, this device comprises: parse module, can editing files memory module and script computing module, wherein,
Parse module, for resolving the wrapper captured, by resolve the browser of mobile terminal performance parameter that obtains calculate desired data write can in editing files memory module;
Can editing files memory module, calculate desired data for the browser of mobile terminal performance parameter storing write;
Script computing module, the browser of mobile terminal performance parameter in editing files memory module can calculate desired data for reading, calculating browser of mobile terminal performance parameter.
14. 1 kinds of systems obtaining browser of mobile terminal performance parameter, it is characterized in that, this system comprises: mobile terminal and server, wherein,
Mobile terminal, receives instruction and the client terminal device performed according to instruction for pre-setting from server; Receive the Webpage access instruction from server, according to the web page information of carrying in Webpage access instruction, trigger the Webpage that access web page access instruction is corresponding, and trigger preassembled packet capturing software and carry out packet capturing, to obtain the information of browser of mobile terminal and Webpage server interaction, and export server to after the encapsulating of crawl being filled;
Server, for resolving the wrapper of crawl, can in editing files by what resolve that the browser of mobile terminal performance parameter that obtains calculates that desired data write pre-sets; Invoke script reads and the browser of mobile terminal performance parameter in editing files can calculate desired data, calculates desired data calculate browser of mobile terminal performance parameter according to the performance parameter obtained.
15. systems as claimed in claim 14, it is characterized in that, described mobile terminal comprises: client terminal device monitoring modular, Webpage access modules, packet capturing module and package module, wherein,
Client terminal device monitoring modular, for the Webpage access instruction of monitor server, according to the web page information of carrying in the Webpage access instruction received, exports triggering command respectively to Webpage access modules and packet capturing module;
Webpage access modules, for receiving triggering command, the Webpage that access web page access instruction is corresponding;
Packet capturing module, for receiving triggering command, to during Webpage access modules access web page and the information of Webpage server interaction carry out packet capturing, and export the bag of crawl to package module;
Package module, encapsulates for the bag exported packet capturing module, exports outside server to.
16. systems as described in claims 14 or 15, it is characterized in that, described server comprises: parse module, can editing files memory module and script computing module, wherein,
Parse module, for resolving the wrapper captured, by resolve the browser of mobile terminal performance parameter that obtains calculate desired data write can in editing files memory module;
Can editing files memory module, calculate desired data for the browser of mobile terminal performance parameter storing write;
Script computing module, the browser of mobile terminal performance parameter in editing files memory module can calculate desired data for reading, calculating browser of mobile terminal performance parameter.
CN201110110538.4A 2011-04-29 2011-04-29 A kind of method, Apparatus and system obtaining browser of mobile terminal performance parameter Active CN102761456B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110110538.4A CN102761456B (en) 2011-04-29 2011-04-29 A kind of method, Apparatus and system obtaining browser of mobile terminal performance parameter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110110538.4A CN102761456B (en) 2011-04-29 2011-04-29 A kind of method, Apparatus and system obtaining browser of mobile terminal performance parameter

Publications (2)

Publication Number Publication Date
CN102761456A CN102761456A (en) 2012-10-31
CN102761456B true CN102761456B (en) 2016-01-20

Family

ID=47055782

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110110538.4A Active CN102761456B (en) 2011-04-29 2011-04-29 A kind of method, Apparatus and system obtaining browser of mobile terminal performance parameter

Country Status (1)

Country Link
CN (1) CN102761456B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104077214B (en) * 2013-03-26 2018-02-27 腾讯科技(深圳)有限公司 Software systems loading procedure image-recognizing method and system
CN105024872B (en) * 2014-04-25 2019-02-26 腾讯科技(北京)有限公司 The method and device of applied in network performance test
CN105302530B (en) * 2014-06-17 2019-05-31 腾讯科技(深圳)有限公司 A kind of method and apparatus of the packet of intercepted data on mobile terminals
CN105100201A (en) * 2015-06-12 2015-11-25 小米科技有限责任公司 Data packet capturing method and data packet capturing device
CN106982368B (en) * 2016-01-19 2020-06-23 腾讯科技(深圳)有限公司 Video response speed detection method and system
CN105577453A (en) * 2016-02-24 2016-05-11 北京奇虎科技有限公司 System and method for realizing application test of mobile terminals
CN106202244B (en) * 2016-06-28 2020-01-21 深圳中兴网信科技有限公司 Webpage message returning method and webpage message returning system
CN108173702B (en) * 2016-12-07 2021-03-16 腾讯科技(深圳)有限公司 Mobile equipment performance evaluation method, device, client and system
CN109194706B (en) * 2018-07-20 2021-11-16 网宿科技股份有限公司 Network resource dial testing method and terminal
CN110888795B (en) * 2018-09-11 2023-10-20 中数通信息有限公司 APP security evaluation data acquisition method
CN109446086A (en) * 2018-10-29 2019-03-08 北京酷我科技有限公司 A kind of method of App inside packet capturing
CN110442770B (en) * 2019-08-08 2023-06-20 深圳市今天国际物流技术股份有限公司 Data grabbing and storing method and device, computer equipment and storage medium
CN110740447A (en) * 2019-10-22 2020-01-31 福州汇思博信息技术有限公司 remote log grabbing method for Android terminal
CN110996094A (en) * 2019-11-01 2020-04-10 北京奇艺世纪科技有限公司 Method and device for detecting video jamming, computer equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1521996A (en) * 2003-02-13 2004-08-18 ���ǵ�����ʽ���� Browser testing system and method thereof
US7330887B1 (en) * 2003-01-06 2008-02-12 Cisco Technology, Inc. Method and system for testing web-based applications

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8812648B2 (en) * 2005-11-21 2014-08-19 Ebay Inc. Techniques for measuring above-the-fold page rendering

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7330887B1 (en) * 2003-01-06 2008-02-12 Cisco Technology, Inc. Method and system for testing web-based applications
CN1521996A (en) * 2003-02-13 2004-08-18 ���ǵ�����ʽ���� Browser testing system and method thereof

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
《9款浏览器软件横向评测-浏览器的战国时代》;CHIP;《CHIP新电脑》;20030228(第2期);第152-157页 *
《Web客户端用户行为数据收集研究》;彭鸿儒 等;《软件导刊》;20110228;第10卷(第2期);第155-157页 *
《测量网页的加载时间》;Microsoft TechNet;《URL:https://technet.microsoft.com/zh-cn/library/cc778898(v=ws.10)》;20050831;第1页 *

Also Published As

Publication number Publication date
CN102761456A (en) 2012-10-31

Similar Documents

Publication Publication Date Title
CN102761456B (en) A kind of method, Apparatus and system obtaining browser of mobile terminal performance parameter
CN102361484B (en) Passive network performance measuring system and page identification method thereof
US8737243B2 (en) Methods and apparatus for monitoring network link quality
US10887201B2 (en) Method for automatically monitoring end-to-end end user performance and apparatus for performing the method
CN103067423B (en) The method of browser kernel adaptation and browser
CN107124430B (en) Page hijacking monitoring method, device, system and storage medium
CN102412999B (en) Packet capturing based remote fault location method, system and device
CN108920376A (en) Test method, device and the medium of application program
CN102984028A (en) Remote centralized test method for mobile terminals
CN107257364A (en) Wireless mobile hard disk, wireless mobile hard disk collocation method and access method
CN109977027A (en) A kind of method, apparatus of performance test, system, equipment and storage medium
CN103116645A (en) Method and device for browsing webpage with mobile device
CN107766509A (en) A kind of method and apparatus of webpage static backup
CN102970356A (en) Communication method, system and device for cloud side server and client side
CN111447170A (en) Data processing method and system, computer system and computer readable medium
CN110213113A (en) The WEB configuring management method of base station and base station
CN106210032A (en) The method and device reported based on terminal data batch
CN101159739B (en) Subtitling display process and communication system and related equipment
CN108345606A (en) The acquisition methods and device of web page resources
CN103347215B (en) A kind of multi-screen interaction method and Set Top Box
CN103856827A (en) Service simulation interaction-based video content obtaining method and system
CN109285046A (en) A kind of electric business big data acquisition system based on business plug-in unit
CN102421005A (en) Embedded type based code stream analysis system
CN104796929A (en) Network debugging method and device
CN103106140A (en) Intelligent display device testing information display method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant