CN104123210B - Test the method, apparatus and system of browser performance - Google Patents

Test the method, apparatus and system of browser performance Download PDF

Info

Publication number
CN104123210B
CN104123210B CN201310150294.1A CN201310150294A CN104123210B CN 104123210 B CN104123210 B CN 104123210B CN 201310150294 A CN201310150294 A CN 201310150294A CN 104123210 B CN104123210 B CN 104123210B
Authority
CN
China
Prior art keywords
browser
page
address
muscle
test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310150294.1A
Other languages
Chinese (zh)
Other versions
CN104123210A (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.)
Shenzhen Yayue Technology 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 CN201310150294.1A priority Critical patent/CN104123210B/en
Publication of CN104123210A publication Critical patent/CN104123210A/en
Application granted granted Critical
Publication of CN104123210B publication Critical patent/CN104123210B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of method, apparatus and system for testing browser performance, belong to field of computer technology.Methods described includes:Obtain the test page address of browser;The test page of the browser is exported according to the test page address, the test page includes multiple page addresses of the browser;Trigger the multiple page address and perform cycling jump;Obtain the browser sudden strain of a muscle of the cycling jump is performed in the first preset time and move back rate;The performance parameter of the rate acquisition browser is moved back according to the sudden strain of a muscle of the browser.The present invention need not obtain the source code of browser, the page address of browser need to be only programmed into test page, can be achieved with the cycling jump of multiple pages, move back rate so as to obtain the sudden strain of a muscle of browser, realize the test to browser performance, exploitativeness is higher.

Description

Test the method, apparatus and system of browser performance
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method, apparatus and system for testing browser performance.
Background technology
With the development of the development of mobile terminal, especially smart mobile phone, increasing user is used on mobile terminal Browser carry out web page browsing, same webpage may simultaneously browse by users up to ten thousand, thus have to the performance of browser Higher requirement, therefore the performance test of browser is also increasingly taken seriously.
In the test of browser of mobile terminal, a kind of mode is to obtain the source code of browser, by test code insertion Into the source code of browser, browser is set to carry out the circulate operation of the page according to regulation mode within a certain period of time, so as to logical Cross and compare the time length that browser is capable of normal operation, to judge the stability of browser.
During the present invention is realized, inventor has found that prior art at least has problems with:Above-mentioned test mode The source code of acquisition browser is needed, but in many cases, source code is secrecy, can not be obtained, so this to browsing The exploitativeness of device performance test methods is than relatively low.
The content of the invention
In order to realize the test to browser performance, a kind of side for testing browser performance is provided in the embodiment of the present invention Method, equipment and system.The technical scheme is as follows:
On the one hand, there is provided a kind of method for testing browser performance, methods described include:
Obtain the test page address of browser;
The test page of the browser is exported according to the test page address, the test page includes described browse Multiple page addresses of device;
Trigger the multiple page address and perform cycling jump;
Obtain the browser sudden strain of a muscle of the cycling jump is performed in the first preset time and move back rate;
The performance parameter of the rate acquisition browser is moved back according to the sudden strain of a muscle of the browser.
On the other hand, there is provided a kind of device for testing browser performance, described device include:
Test page address acquisition module, for obtaining the test page address of browser;
Test page output module, for exporting the test page of the browser, institute according to the test page address Stating test page includes multiple page addresses of the browser;
Page jump module, cycling jump is performed for triggering the multiple page address;
Rate acquisition module is moved back in sudden strain of a muscle, and the sudden strain of a muscle of the cycling jump is performed for obtaining the browser in the first preset time Move back rate;
Performance evaluation module, for moving back the performance parameter of the rate acquisition browser according to the sudden strain of a muscle of the browser.
On the other hand, a kind of mobile terminal is additionally provided, the mobile terminal includes:Test browser as described above The device of energy.
On the other hand, a kind of system for testing browser performance is additionally provided, the system includes:It is as described above mobile Terminal and server;
The server, the test page address of the browser sent for receiving the mobile terminal, according to institute State the test page that test page address returns to the browser to the mobile terminal.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:Obtain the test page address of browser; The test page of the browser is exported according to the test page address, the test page includes the multiple of the browser Page address;Trigger the multiple page address and perform cycling jump;The browser is obtained to perform in the first preset time Rate is moved back in the sudden strain of a muscle of the cycling jump;The performance parameter of the rate acquisition browser is moved back according to the sudden strain of a muscle of the browser.Wherein, it is not required to The source code of browser is obtained, the page address of browser need to be only programmed into test page, can be achieved with multiple pages Cycling jump, move back rate so as to obtain the sudden strain of a muscle of browser, realize the test to browser performance, exploitativeness is higher.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Fig. 1 is a kind of schematic diagram of the test scene provided in the embodiment of the present invention;
Fig. 2 is a kind of method flow diagram of the test browser performance provided in the embodiment of the present invention one;
Fig. 3 is a kind of method flow diagram of the test browser performance provided in the embodiment of the present invention two;
Fig. 4 is a kind of page jump schematic diagram provided in the embodiment of the present invention two;
Fig. 5 is a kind of apparatus structure schematic diagram of the test browser performance provided in the embodiment of the present invention three;
Fig. 6 is the apparatus structure schematic diagram of another test browser performance provided in the embodiment of the present invention three;
Fig. 7 is a kind of schematic diagram of the mobile terminal provided in the embodiment of the present invention four;
Fig. 8 is a kind of system schematic of the test browser performance provided in the embodiment of the present invention five;
Fig. 9 is the system schematic of another test browser performance provided in the embodiment of the present invention five.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
Mobile terminal in the present embodiment includes but is not limited to:The portable terminals such as smart mobile phone, iPad, to this this implementation In example and it is not specifically limited.
In the present embodiment, on the one hand, multiple page addresses in browser are written as into a test page, and this is surveyed Try page deployment on the server, a test page address is generated for the test page, wherein, each page is a survey Website is tried, the browser on such mobile terminal issues test sheets by the test page Address requests test page, server Face can perform the automatic of test page and redirect to terminal device, browser.On the other hand, browser in-situ FTIR spectroelectrochemitry work(is set Can, by mobile terminal by wired or wirelessly connected together with personal computer, and respectively in mobile terminal and The script of built-in script in personal computer, mobile terminal and desktop computer, which cooperates, to adjust the browser that sudden strain of a muscle is moved back again Rise, and use browser in-situ FTIR spectroelectrochemitry function re-request test page.Wherein personal computer includes but is not limited to:Desktop computer Or the intelligent terminal such as notebook computer.Browser dodges return-charge and included:Because memory problem or logic are asked in the running of browser The abnormal closing phenomenon inscribed and occurred.
Test scene schematic diagram shown in Figure 1, in the present embodiment, the test page of browser is disposed on the server Behind address, the script for having adjusted browser is built into desktop computer and mobile terminal, desktop computer and movement are connected eventually by data wire End, and necessarily set, or pass through SSh (Secure Shell, the safety association established on the basis of application layer and transport layer View) notebook and mobile terminal are connected, enable desktop computer or notebook remote control mobile terminal, so as to realize to multiple Browser on mobile terminal test simultaneously.Wherein, side mobile terminal being specifically connected with desktop computer or notebook In method the present embodiment and it is not specifically limited, as long as the control of desktop computer or notebook to mobile terminal can be realized.
First and second be related in the present embodiment, priority execution sequence is not represented, be intended merely to enter different time Row is distinguished.
Embodiment one
Referring to Fig. 2, a kind of method for testing browser performance is provided in the embodiment of the present invention, including:
101st, the test page address of browser is obtained;
102nd, the test page of the browser is exported according to the test page address, the test page includes described Multiple page addresses of browser;
103rd, trigger the multiple page address and perform cycling jump;
104th, obtain the sudden strain of a muscle that the browser performs the cycling jump in the first preset time and move back rate;
105th, the performance parameter of the rate acquisition browser is moved back according to the sudden strain of a muscle of the browser.
In another embodiment, before the test page address for obtaining browser, including:
Start the in-situ FTIR spectroelectrochemitry function of browser, when the in-situ FTIR spectroelectrochemitry function is moved back for preserving the browser generation sudden strain of a muscle The page redirected.
In another embodiment, methods described also includes:
When sudden strain of a muscle, which occurs, for the browser moves back operation, record the sudden strain of a muscle and move back event, to move back event according to the sudden strain of a muscle of the record Rate is moved back in the sudden strain of a muscle for counting the browser;
The in-situ FTIR spectroelectrochemitry function of the browser is called, to recover the page redirected when the browser occurs and dodges and move back.
In another embodiment, iframe frameworks are embedded in the test page;
The multiple page address of triggering performs cycling jump, including:
Trigger the multiple page address and perform cycling jump in the iframe frameworks.
In another embodiment, the multiple page address of triggering performs cycling jump, including:
The load time for setting each page of the browser is the second preset time;
It is suitable after address loaded in second preset time of the first page in the multiple page address The address of sequence or the second page jumped at random in the multiple page address simultaneously loads the second page;
When address non-loaded in second preset time of the first page, abandon to the first page The address of the loading in face, order or the second page jumped at random in the multiple page simultaneously loads the second page.
The beneficial effect of the present embodiment includes:Obtain the test page address of browser;According to the test page address The test page of the browser is exported, the test page includes multiple page addresses of the browser;Trigger described more Individual page address performs cycling jump;Obtain the browser sudden strain of a muscle of the cycling jump is performed in the first preset time and move back Rate;The performance parameter of the rate acquisition browser is moved back according to the sudden strain of a muscle of the browser.Wherein, it is not necessary to obtain the source generation of browser Code, the page address of browser need to be only programmed into test page, the cycling jump of multiple pages be can be achieved with, so as to obtain Rate is moved back in the sudden strain of a muscle of browser, realizes the test to browser performance, and exploitativeness is higher.
Embodiment two
A kind of method for testing browser performance is provided in the embodiment of the present invention, referring to Fig. 3, method flow includes:
201st, the in-situ FTIR spectroelectrochemitry function of browser is started.
In this step, before the performance test of browser is carried out, first start the in-situ FTIR spectroelectrochemitry function of browser, the function For preserving the page redirected when the browser occurs and dodges and move back.So, when sudden strain of a muscle, which occurs, for browser moves back, it becomes possible to pass through calling In-situ FTIR spectroelectrochemitry function restarts browser.
Browser sudden strain of a muscle is not limited in certain the present embodiment to step back, and is restarted the method for browser, can also be used its other party Method restarts browser, in this present embodiment and being not specifically limited.
202nd, the test page address of browser is obtained, and test page is exported according to the test page address.
In this step, the test page address that user inputs on the address field of browser is received, or on a web browser One test triggering key is set, when user triggers the key, the input test page address on the address field of browser automatically, specifically How to obtain in the present embodiment of test page address and be not specifically limited in implementation procedure.
Preferably, after acquisition for mobile terminal to test page address, browser is exported according to the test page address Test page, including:Test page address is sent to server, server finds browser pair according to the test page address The test page answered, and the test page is returned into mobile terminal, test page corresponding to mobile terminal output browser.Its In, test page includes multiple page addresses of browser.
In the present embodiment, it is preferable that iframe frameworks are embedded in test page so that multiple pages of browser exist Realize that automatic cycle redirects in iframe frameworks, be also not limited to such a mode certainly, it is specific to not done in this present embodiment Limit.
203rd, trigger the multiple page address and perform cycling jump, obtain the browser and held in the first preset time Rate is moved back in the sudden strain of a muscle of the row cycling jump.
In this step, it would be desirable to which the page address of opening is written in test page, and the page is realized by javascript Cycling jump, moved back until because of internal memory or logic error sudden strain of a muscle occurs for browser.Page operation order is divided into sequential looping pattern With random rotation pattern, which kind of endless form is used in specific implementation procedure, in the present embodiment and be not specifically limited.
Preferably, trigger the multiple page address and perform cycling jump, including:
The load time for setting each page of the browser is the second preset time;
It is suitable after address loaded in second preset time of the first page in the multiple page address The address of sequence or the second page jumped at random in the multiple page address simultaneously loads the second page;
When address non-loaded in second preset time of the first page, abandon to the first page The address of the loading in face, order or the second page jumped at random in the multiple page simultaneously loads the second page.
In the present embodiment, load time of each page can with pre-set, can also according to when being tested from One page load time of dynamic generation, in this present embodiment and being not specifically limited.Second preset time is generally higher than or waited Can be 8 seconds in the normal load time of a page, 9 seconds, 10 seconds etc., in this present embodiment and being not specifically limited.
In this step, after test page is exported, iframe frameworks are included with test page and are illustrated, such as schemed Shown in 4, the N number of page for choosing browser is tested, and is realized from A page jumps to the B pages, is further continued in iframe frameworks Redirect, to the last return to first page A, wherein, the load time of each page is that iframe has loaded one in 8 seconds, 8 seconds Individual website then loads next website automatically, has not loaded, and continues waiting for loading, more than 8 seconds after in spite of loaded all Next website can be jumped into.In page loading procedure, test page address is fixed uniquely, and the content of pages in iframe is State pulls the content of real site in browser.
In this step, when sudden strain of a muscle, which occurs, for the browser moves back operation, record the sudden strain of a muscle and move back event, with according to the record Rate is moved back in the sudden strain of a muscle that browser described in event statistics is moved back in sudden strain of a muscle;The in-situ FTIR spectroelectrochemitry function of the browser is called, to recover the browser Occur to dodge the page redirected when moving back, continue to test.The daily record for moving back generation is dodged according to browser after the first preset time Rate is moved back in sudden strain of a muscle in the statistical unit time.
204th, the performance parameter of the rate acquisition browser is moved back according to the sudden strain of a muscle of the browser.
In this step, the performance parameter of browser can further be obtained according to the sudden strain of a muscle rate of moving back of browser, wherein it is possible to logical Cross data analysis program to dodge the rate of moving back analyzed to obtain the performance parameter of browser, the sudden strain of a muscle of the browser can also be moved back rate with The sudden strain of a muscle rate of moving back of other browsers is compared to obtain the performance parameter of the browser, does not do and has in concrete operation method the present embodiment Body limits.
The beneficial effect of the present embodiment includes:Obtain the test page address of browser;According to the test page address The test page of the browser is exported, the test page includes multiple page addresses of the browser;Trigger described more Individual page address performs cycling jump;Obtain the browser sudden strain of a muscle of the cycling jump is performed in the first preset time and move back Rate;The performance parameter of the rate acquisition browser is moved back according to the sudden strain of a muscle of the browser.Wherein, it is not necessary to obtain the source generation of browser Code, the page address of browser need to be only programmed into test page, the cycling jump of multiple pages be can be achieved with, so as to obtain Rate is moved back in the sudden strain of a muscle of browser, realizes the test to browser performance, and exploitativeness is higher.
Embodiment three
Referring to Fig. 5, a kind of device for testing browser performance is provided in the embodiment of the present invention, including:Test page Rate acquisition module 304 and performance evaluation are moved back in location acquisition module 301, test page output module 302, page jump module 303, sudden strain of a muscle Module 305.
Test page address acquisition module 301, for obtaining the test page address of browser;
Test page output module 302, for exporting the test page of the browser according to the test page address, The test page includes multiple page addresses of the browser;
Page jump module 303, cycling jump is performed for triggering the multiple page address;
Rate acquisition module 304 is moved back in sudden strain of a muscle, and the cycling jump is performed in the first preset time for obtaining the browser Sudden strain of a muscle move back rate;
Performance evaluation module 305, for moving back the performance parameter of the rate acquisition browser according to the sudden strain of a muscle of the browser.
Referring to Fig. 6, in another embodiment, described device also includes:
Starting module 306, for the test page address acquisition module 301 obtain browser test page address it Before, start the in-situ FTIR spectroelectrochemitry function of browser, the in-situ FTIR spectroelectrochemitry function, which is used to preserve when the browser generation sudden strain of a muscle is moved back, to be redirected The page.
Referring to Fig. 6, in another embodiment, described device also includes:
Logging modle 307, for when operation is moved back in browser generation sudden strain of a muscle, recording the sudden strain of a muscle and moving back event, with according to institute The sudden strain of a muscle for stating record moves back the sudden strain of a muscle of browser described in event statistics and moves back rate;
Calling module 308, for calling the in-situ FTIR spectroelectrochemitry function of the browser, moved back with recovering the browser generation sudden strain of a muscle When the page that redirects.
In another embodiment, iframe frameworks are embedded in the test page;
The page jump module 303, is specifically used for:
Trigger the multiple page address and perform cycling jump in the iframe frameworks.
In another embodiment, the page jump module 303, including:
Setting unit, it is the second preset time for setting the load time of each page of the browser;
First jump-transfer unit, for when the address of the first page in the multiple page address is when described second is default After interior loaded, described in the address of order or the second page jumped at random in the multiple page address and loading Second page;
Second jump-transfer unit, for when the address of the first page in second preset time non-loaded When, abandon the loading to the first page, the address of order or the second page jumped at random in the multiple page And load the second page.
The beneficial effect of the present embodiment includes:Obtain the test page address of browser;According to the test page address The test page of the browser is exported, the test page includes multiple page addresses of the browser;Trigger described more Individual page address performs cycling jump;Obtain the browser sudden strain of a muscle of the cycling jump is performed in the first preset time and move back Rate;The performance parameter of the rate acquisition browser is moved back according to the sudden strain of a muscle of the browser.Wherein, it is not necessary to obtain the source generation of browser Code, the page address of browser need to be only programmed into test page, the cycling jump of multiple pages be can be achieved with, so as to obtain Rate is moved back in the sudden strain of a muscle of browser, realizes the test to browser performance, and exploitativeness is higher.
Example IV
A kind of mobile terminal 1200 is provided in the embodiment of the present invention, including:Test browser as described in embodiment three The device of performance.
As shown in fig. 7, terminal 1200 can include RF (Radio Frequency, radio frequency) circuit 110, include one Or memory 120, input block 130, display unit 140, sensor 150, the sound of more than one computer-readable recording medium Frequency circuit 160, WiFi (wireless fidelity, Wireless Fidelity) module 170, include one or more than one processing The parts such as the processor 180 and power supply 190 of core.It will be understood by those skilled in the art that the terminal structure shown in Fig. 7 The not restriction of structure paired terminal, it can include than illustrating more or less parts, either combine some parts or difference Part arrangement.Wherein:
RF circuits 110 can be used for receive and send messages or communication process in, the reception and transmission of signal, especially, by base station After downlink information receives, transfer to one or more than one processor 180 is handled;In addition, it is sent to up data are related to Base station.Generally, RF circuits 110 include but is not limited to antenna, at least one amplifier, tuner, one or more oscillators, use Family identity module (SIM) card, transceiver, coupler, LNA (LowNoiseAmplifier, low-noise amplifier), duplexer Deng.In addition, RF circuits 110 can also be communicated by radio communication with network and other equipment.The radio communication can use Any communication standard or agreement, including but not limited to GSM (Global System ofMobile communication, the whole world Mobile communcations system), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code DivisionMultipleAccess, WCDMA), LTE (Long Term Evolution, Long Term Evolution), electronics postal Part, SMS (ShortMessaging Service, Short Message Service) etc..
Memory 120 can be used for storage software program and module, and processor 180 is stored in memory 120 by operation Software program and module, so as to perform various function application and data processing.Memory 120 can mainly include storage journey Sequence area and storage data field, wherein, storing program area can storage program area, the application program (ratio needed at least one function Such as sound-playing function, image player function) etc.;Storage data field can store uses created number according to terminal 1200 According to (such as voice data, phone directory etc.) etc..In addition, memory 120 can include high-speed random access memory, can also wrap Include nonvolatile memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts. Correspondingly, memory 120 can also include Memory Controller, to provide processor 180 and input block 130 to memory 120 access.
Input block 130 can be used for the numeral or character information for receiving input, and generation is set with user and function Control relevant keyboard, mouse, action bars, optics or the input of trace ball signal.Specifically, input block 130 may include to touch Sensitive surfaces 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad, collect and use Family on or near it touch operation (such as user using any suitable object or annex such as finger, stylus in touch-sensitive table Operation on face 131 or near touch sensitive surface 131), and corresponding attachment means are driven according to formula set in advance.It is optional , touch sensitive surface 131 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used The touch orientation at family, and the signal that touch operation is brought is detected, transmit a signal to touch controller;Touch controller is from touch Touch information is received in detection means, and is converted into contact coordinate, then gives processor 180, and can reception processing device 180 The order sent simultaneously is performed.Furthermore, it is possible to using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves Realize touch sensitive surface 131.Except touch sensitive surface 131, input block 130 can also include other input equipments 132.Specifically, Other input equipments 132 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), One or more in trace ball, mouse, action bars etc..
Display unit 140 can be used for display by the information of user's input or be supplied to the information and terminal 1200 of user Various graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its any combination. Display unit 140 may include display panel 141, optionally, can use LCD (Liquid Crystal Display, liquid crystal Show device), the form such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) configure display panel 141.Further, touch sensitive surface 131 can cover display panel 141, when touch sensitive surface 131 detects touching on or near it After touching operation, processor 180 is sent to determine the type of touch event, is followed by subsequent processing type of the device 180 according to touch event Corresponding visual output is provided on display panel 141.Although in the figure 7, touch sensitive surface 131 and display panel 141 are conducts Two independent parts come realize input and input function, but in some embodiments it is possible to by touch sensitive surface 131 with display Panel 141 is integrated and realizes input and output function.
Terminal 1200 may also include at least one sensor 150, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 141, and proximity transducer can close display when terminal 1200 is moved in one's ear Panel 141 and/or backlight.As one kind of motion sensor, gravity accelerometer can detect in all directions (generally Three axles) acceleration size, size and the direction of gravity are can detect that when static, available for identification mobile phone posture application (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);Extremely The other sensors such as the gyroscope that can also configure in terminal 1200, barometer, hygrometer, thermometer, infrared ray sensor, herein Repeat no more.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the COBBAIF between user and terminal 1200.Sound Electric signal after the voice data received conversion can be transferred to loudspeaker 161, is converted to by loudspeaker 161 by frequency circuit 160 Voice signal exports;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, is received by voicefrequency circuit 160 After be converted to voice data, it is such as another to be sent to through RF circuits 110 then after voice data output processor 180 is handled Terminal, or voice data is exported to memory 120 further to handle.Voicefrequency circuit 160 is also possible that earplug is inserted Hole, to provide the communication of peripheral hardware earphone and terminal 1200.
WiFi belongs to short range wireless transmission technology, and terminal 1200 can help user to receive and dispatch electricity by WiFi module 170 Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 7 shows Go out WiFi module 170, but it is understood that, it is simultaneously not belonging to must be configured into for terminal 1200, completely can be according to need To be omitted in the essential scope for do not change invention.
Processor 180 is the control centre of terminal 1200, utilizes various interfaces and each portion of connection whole mobile phone Point, by running or performing the software program and/or module that are stored in memory 120, and call and be stored in memory 120 Interior data, the various functions and processing data of terminal 1200 are performed, so as to carry out integral monitoring to mobile phone.Optionally, handle Device 180 may include one or more processing cores;Preferably, processor 180 can integrate application processor and modulation /demodulation processing Device, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is mainly located Manage radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 180.
Terminal 1200 also includes the power supply 190 (such as battery) to all parts power supply, it is preferred that power supply can pass through electricity Management system and processor 180 are logically contiguous, so as to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.Power supply 190 can also include one or more direct current or AC power, recharging system, power supply event The random component such as barrier detection circuit, power supply changeover device or inverter, power supply status indicator.
Although being not shown, terminal 1200 can also include camera, bluetooth module etc., will not be repeated here.
The beneficial effect of the present embodiment includes:Obtain the test page address of browser;According to the test page address The test page of the browser is exported, the test page includes multiple page addresses of the browser;Trigger described more Individual page address performs cycling jump;Obtain the browser sudden strain of a muscle of the cycling jump is performed in the first preset time and move back Rate;The performance parameter of the rate acquisition browser is moved back according to the sudden strain of a muscle of the browser.Wherein, it is not necessary to obtain the source generation of browser Code, the page address of browser need to be only programmed into test page, the cycling jump of multiple pages be can be achieved with, so as to obtain Rate is moved back in the sudden strain of a muscle of browser, realizes the test to browser performance, and exploitativeness is higher.
Embodiment five
Referring to Fig. 8, a kind of system for testing browser performance is provided in the embodiment of the present invention, including:Such as embodiment five Described mobile terminal 1200 and server 1300,
The server 1300, the test page address of the browser sent for receiving the mobile terminal, root The test page of the browser is returned to the mobile terminal according to the test page address.
Referring to Fig. 9, in another embodiment, the system also includes:Personal computer 1400;
The personal computer 1400, for when operation is moved back in browser generation sudden strain of a muscle, receiving the mobile terminal Call, to restart the browser.
The beneficial effect of the present embodiment includes:Obtain the test page address of browser;According to the test page address The test page of the browser is exported, the test page includes multiple page addresses of the browser;Trigger described more Individual page address performs cycling jump;Obtain the browser sudden strain of a muscle of the cycling jump is performed in the first preset time and move back Rate;The performance parameter of the rate acquisition browser is moved back according to the sudden strain of a muscle of the browser.Wherein, it is not necessary to obtain the source generation of browser Code, the page address of browser need to be only programmed into test page, the cycling jump of multiple pages be can be achieved with, so as to obtain Rate is moved back in the sudden strain of a muscle of browser, realizes the test to browser performance, and exploitativeness is higher.
It should be noted that:The device for the test browser performance that above-described embodiment provides, only with above-mentioned each functional module Division progress for example, in practical application, can be complete by different functional modules by above-mentioned function distribution as needed Into the internal structure of device being divided into different functional modules, to complete all or part of function described above.
In addition, the device for the test browser performance that above-described embodiment provides, mobile terminal, system and test browser The embodiment of the method for energy belongs to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that hardware can be passed through by realizing all or part of step of above-described embodiment To complete, by program the hardware of correlation can also be instructed to complete, described program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent substitution and improvements made etc., it should be included in the scope of the protection.

Claims (13)

  1. A kind of 1. method for testing browser performance, it is characterised in that methods described includes:
    Obtain the test page address of browser;
    The test page of the browser is exported according to the test page address, the test page includes the browser Multiple page addresses;
    Trigger the multiple page address and perform cycling jump;
    Obtain the browser sudden strain of a muscle of the cycling jump is performed in the first preset time and move back rate;
    The performance parameter of the rate acquisition browser is moved back according to the sudden strain of a muscle of the browser.
  2. 2. according to the method for claim 1, it is characterised in that before the test page address for obtaining browser, bag Include:
    Start the in-situ FTIR spectroelectrochemitry function of browser, the in-situ FTIR spectroelectrochemitry function, which is used to preserve when the browser generation sudden strain of a muscle is moved back, to be redirected The page.
  3. 3. according to the method for claim 2, it is characterised in that methods described also includes:
    When sudden strain of a muscle, which occurs, for the browser moves back operation, event is moved back in record sudden strain of a muscle, to browse described in moving back event statistics according to the sudden strain of a muscle of record Rate is moved back in the sudden strain of a muscle of device;
    The in-situ FTIR spectroelectrochemitry function of the browser is called, to recover the page redirected when the browser occurs and dodges and move back.
  4. 4. according to the method for claim 1, it is characterised in that iframe frameworks are embedded in the test page;
    The multiple page address of triggering performs cycling jump, including:
    Trigger the multiple page address and perform cycling jump in the iframe frameworks.
  5. 5. according to the method for claim 1, it is characterised in that the multiple page address of triggering performs circulation and jumped Turn, including:
    The load time for setting each page of the browser is the second preset time;
    After address loaded in second preset time of the first page in the multiple page address, order or It is the address of the second page jumped at random in the multiple page address and loads the second page;
    When address non-loaded in second preset time of the first page, abandon to the first page The address of loading, order or the second page jumped at random in the multiple page simultaneously loads the second page.
  6. 6. a kind of device for testing browser performance, it is characterised in that described device includes:
    Test page address acquisition module, for obtaining the test page address of browser;
    Test page output module, for exporting the test page of the browser, the survey according to the test page address The examination page includes multiple page addresses of the browser;
    Page jump module, cycling jump is performed for triggering the multiple page address;
    Rate acquisition module is moved back in sudden strain of a muscle, and the sudden strain of a muscle that the cycling jump is performed for obtaining the browser in the first preset time is moved back Rate;
    Performance evaluation module, for moving back the performance parameter of the rate acquisition browser according to the sudden strain of a muscle of the browser.
  7. 7. device according to claim 6, it is characterised in that described device also includes:
    Starting module, for the test page address acquisition module obtain browser test page address before, start it is clear Look at the in-situ FTIR spectroelectrochemitry function of device, the in-situ FTIR spectroelectrochemitry function, which is used to preserving the browser, to be occurred to dodge the page redirected when moving back.
  8. 8. device according to claim 7, it is characterised in that described device also includes:
    Logging modle, for when operation is moved back in browser generation sudden strain of a muscle, event to be moved back in record sudden strain of a muscle, and event is moved back with the sudden strain of a muscle according to record Rate is moved back in the sudden strain of a muscle for counting the browser;
    Calling module, for calling the in-situ FTIR spectroelectrochemitry function of the browser, occur to redirect when sudden strain of a muscle is moved back to recover the browser The page.
  9. 9. device according to claim 6, it is characterised in that iframe frameworks are embedded in the test page;
    The page jump module, is specifically used for:
    Trigger the multiple page address and perform cycling jump in the iframe frameworks.
  10. 10. device according to claim 6, it is characterised in that the page jump module, including:
    Setting unit, it is the second preset time for setting the load time of each page of the browser;
    First jump-transfer unit, for when the address of the first page in the multiple page address is in second preset time After loaded, order or the address of second page jumped at random in the multiple page address simultaneously load described second The page;
    Second jump-transfer unit, for when the address of the first page non-loaded in second preset time, putting Abandon the loading to the first page, address and the loading of order or the second page jumped at random in the multiple page The second page.
  11. 11. a kind of mobile terminal, it is characterised in that the mobile terminal includes:Survey as described in claim any one of 6-10 Try the device of browser performance.
  12. 12. a kind of system for testing browser performance, it is characterised in that the system includes:It is as claimed in claim 11 to move Dynamic terminal and server;
    The server, the test page address of the browser sent for receiving the mobile terminal, according to the survey Try the test page that page address returns to the browser to the mobile terminal.
  13. 13. system according to claim 12, it is characterised in that the system also includes:Personal computer;
    The personal computer, for when operation is moved back in browser generation sudden strain of a muscle, the calling of the mobile terminal being received, with weight Open the browser.
CN201310150294.1A 2013-04-26 2013-04-26 Test the method, apparatus and system of browser performance Active CN104123210B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310150294.1A CN104123210B (en) 2013-04-26 2013-04-26 Test the method, apparatus and system of browser performance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310150294.1A CN104123210B (en) 2013-04-26 2013-04-26 Test the method, apparatus and system of browser performance

Publications (2)

Publication Number Publication Date
CN104123210A CN104123210A (en) 2014-10-29
CN104123210B true CN104123210B (en) 2018-01-09

Family

ID=51768630

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310150294.1A Active CN104123210B (en) 2013-04-26 2013-04-26 Test the method, apparatus and system of browser performance

Country Status (1)

Country Link
CN (1) CN104123210B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104182331B (en) * 2013-05-20 2018-04-27 腾讯科技(深圳)有限公司 Browser performance test method, system and terminal
CN105138452B (en) * 2015-08-03 2017-11-07 广东欧珀移动通信有限公司 A kind of browser performance automated testing method based on terminal system
CN108173702B (en) * 2016-12-07 2021-03-16 腾讯科技(深圳)有限公司 Mobile equipment performance evaluation method, device, client and system
CN108111369A (en) * 2017-12-22 2018-06-01 北京奇虎科技有限公司 The test method and device of a kind of webpage performance of mobile terminal
US11513937B2 (en) * 2019-06-19 2022-11-29 Shanghai Bilibili Technology Co., Ltd. Method and device of displaying video comments, computing device, and readable storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8745202B2 (en) * 2009-04-03 2014-06-03 Google Inc. Tracking remote browser crashes via cookies
CN101996226B (en) * 2009-08-08 2015-04-15 康佳集团股份有限公司 Implementation method of multi-data source information browser in set-top box
CN102214223A (en) * 2011-06-15 2011-10-12 奇智软件(北京)有限公司 Method and system for browser access control
CN102346781B (en) * 2011-10-18 2016-04-20 北龙中网(北京)科技有限责任公司 Webpage access control method and device
CN102681874B (en) * 2012-05-14 2015-10-21 腾讯科技(深圳)有限公司 A kind ofly guarantee the method that software normally runs and device

Also Published As

Publication number Publication date
CN104123210A (en) 2014-10-29

Similar Documents

Publication Publication Date Title
CN105320598B (en) Method for testing software and device
CN104978115B (en) Content display method and device
CN103455603B (en) Web page contents caching, webpage loading method, device and terminal unit
CN104978176B (en) Application programming interfaces call method, device and computer readable storage medium
CN104238893B (en) A kind of method and apparatus that video preview picture is shown
CN107094294A (en) Method for connecting network and device
CN104572690B (en) A kind of methods, devices and systems obtaining web data
CN104423822B (en) Record the method and device of automatic test script
CN104123276B (en) The hold-up interception method of pop-up, device and system in a kind of browser
CN104104711B (en) Reading histories treating method and apparatus
CN104159140B (en) A kind of methods, devices and systems of Video processing
CN103258163B (en) A kind of script virus recognition methods, Apparatus and system
CN103279574A (en) Method, device and terminal device for loading explorer pictures
CN104123210B (en) Test the method, apparatus and system of browser performance
CN104135728B (en) Method for connecting network and device
CN105389259B (en) A kind of method, apparatus and system for carrying out Application testing
CN106358225B (en) A kind of processing method of network data, device and mobile terminal
CN104850406A (en) Page switching method and device
CN104065693A (en) Method, device and system for accessing network data in webpage applications
CN104699501B (en) A kind of method and device for running application program
CN107590397A (en) A kind of method and apparatus for showing embedded webpage
CN107783906A (en) Method of testing, device and storage medium
CN104660769B (en) A kind of methods, devices and systems for adding associated person information
CN105045372A (en) Method and equipment controlling wearable device
CN104424203B (en) Photo in mobile device shares state inspection method and system

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20221122

Address after: 1402, Floor 14, Block A, Haina Baichuan Headquarters Building, No. 6, Baoxing Road, Haibin Community, Xin'an Street, Bao'an District, Shenzhen, Guangdong 518133

Patentee after: Shenzhen Yayue Technology Co.,Ltd.

Address before: 2, 518000, East 403 room, SEG science and Technology Park, Zhenxing Road, Shenzhen, Guangdong, Futian District

Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.