CN104182331B - Browser performance test method, system and terminal - Google Patents

Browser performance test method, system and terminal Download PDF

Info

Publication number
CN104182331B
CN104182331B CN201310188132.7A CN201310188132A CN104182331B CN 104182331 B CN104182331 B CN 104182331B CN 201310188132 A CN201310188132 A CN 201310188132A CN 104182331 B CN104182331 B CN 104182331B
Authority
CN
China
Prior art keywords
browser
test page
measured
page
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
CN201310188132.7A
Other languages
Chinese (zh)
Other versions
CN104182331A (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 CN201310188132.7A priority Critical patent/CN104182331B/en
Publication of CN104182331A publication Critical patent/CN104182331A/en
Application granted granted Critical
Publication of CN104182331B publication Critical patent/CN104182331B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention discloses a kind of browser performance test method, system and terminal, belong to testing field.The described method includes:The test page address of input is received, and the request for obtaining test page is sent to server, so that test page is sent to terminal by server;The test page for receiving browser execution to be measured, the testing results page include since browser to be measured the load test page to the content that test page is shown after the completion of loading;When the time of browser execution test page being more than preset time, what then execution was previously inserted in test page redirects script, the information for the next test page specified according to redirecting in script sends the request for obtaining test page to server, and the next test page for sending browser execution server to be measured.The present invention by using browser automatic cycling operating test page mode so that in browser performance test process, can quick obtaining test page tested, improve testing efficiency.

Description

Browser performance test method, system and terminal
Technical field
The present invention relates to browser technology field, more particularly to a kind of browser performance test method, system and terminal.
Background technology
At present, with the rapid development of Internet technology, browser becomes the important tool for obtaining the network information.Browse Device is widely used on the electronic equipments such as PC, DTV, mobile phone.During Development of Web Browser, It is frequently necessary to carry out the performances of different browsers contrast test, such as the compatibility to browser, security, stability, is The index of the reflection performances such as system resources occupation rate, the speed for opening webpage is tested, to find existing for browser performance not Foot part, easy to further be optimized to the performance of browser.
In the more existing method tested browser performance, browser performance is manually mostly carried out by tester Test, that is, need tester to access the page that each website is provided one by one using browser, to obtain test knot Fruit.Using this test method, it is often necessary to manually for a long time, repeatedly carry out page access operation or wait loading page, lead Cause testing efficiency extremely low.Exist in addition, this test method when contrasting different browsers performance, particularly contrasts different browsers During long-play during stability, because environment when cannot ensure test(For example, the running environment of browser)And survey Try web page contents(For example, the website of browser access and the webpage of website)It is completely the same etc. test condition, so cannot be very Good explanation contrasts the quality of different browser performances.
The content of the invention
The present invention provides a kind of browser performance test method, system and terminal, to solve to test in browser performance The problems such as Cheng Zhong, testing efficiency is relatively low.
Specifically, an embodiment of the present invention provides a kind of browser performance test method, the method, including:Receive defeated The test page address entered, and the request for obtaining test page is sent to server according to test page address, so that server Test page according to corresponding to request by test page address is sent to terminal;Test page is received, and makes browser to be measured The testing results page, the testing results page include since browser to be measured the load test page to showing test after the completion of loading The content of the page;When the time of browser execution test page to be measured being more than preset time, then perform pre- in test page That is first inserted into redirects script, is sent according to the information for redirecting the next test page specified in script to server and obtains test The request of the page, so that next test page is sent to terminal by server according to request, and makes under browser execution to be measured One test page.
In addition, an embodiment of the present invention provides a kind of terminal, the terminal, including:Page acquisition module, page operation mould Block and jump module, page acquisition module, for receiving the test page address of input, and according to test page address to clothes Business device sends the request for obtaining test page, so that test page hair of the server according to corresponding to request by test page address Give terminal;The page runs module, for receiving test page, and makes browser execution test page to be measured, testing results page Face includes since browser to be measured the load test page to the content that test page is shown after the completion of loading;Jump module, is used When preset time is more than in the time of browser execution test page to be measured, then the jump being previously inserted in test page is performed Turn script, sent according to the information for redirecting the next test page specified in script to server and obtain asking for test page Ask, so that next test page is sent to terminal by server according to request, and make the next test of browser execution to be measured The page.
In addition, an embodiment of the present invention provides a kind of browser performance test system, the system, including:At least one eventually End and server;The terminal includes page acquisition module, page operation module and jump module;The server includes Test page sending module;Page acquisition module, for receive input test page address, and according to test page address to Server sends the request for obtaining test page;Test page sending module, for according to request that test page address institute is right The test page answered is sent to terminal;The page runs module, for receiving test page, and makes browser execution test sheets to be measured Face, the testing results page include since browser to be measured the load test page to showing in test page after the completion of loading Hold;Jump module, for when the time of browser execution test page to be measured being more than preset time, then performing in test page In be previously inserted redirect script, obtained according to redirecting the information of the next test page specified in script and being sent to server The request of test page, so that next test page is sent to end by the test page sending module of server according to request End, and make the next test page of browser execution to be measured.
The beneficial effect that technical solution provided in an embodiment of the present invention is brought is:
Preset time is more than by the time of the test page provided in browser execution server to be measured, then performs and is surveying What is be previously inserted in the examination page redirects script, is obtained according to the information for redirecting the next test page specified in script from server Next test page is taken for browser execution to be measured, so that browser to be measured being capable of circular flow test page.Solve In browser performance test process, the problems such as testing efficiency is relatively low, using the side of browser automatic cycling operating test page Formula so that in browser performance test process, can quick obtaining test page tested, improve test effect Rate.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of specification, and in order to allow the above and other objects, features and advantages of the present invention can Become apparent, below especially exemplified by preferred embodiment, and coordinate attached drawing, describe in detail as follows.
Brief description of the drawings
Fig. 1 is the method flow diagram of browser performance test method provided by one embodiment of the present invention;
Fig. 2A is the method flow diagram for the browser performance test method that another embodiment of the present invention provides;
Fig. 2 B are that insertion redirects the signal for carrying out cycling jump after script between test page in each test page Figure;
Fig. 3 A are the method flow diagrams for the browser performance test method that further embodiment of the present invention provides;
Fig. 3 B are the schematic diagrames of the partial page of a website;
Fig. 4 is the main frame block diagram of terminal provided by one embodiment of the present invention;
Fig. 5 is the main frame block diagram for the terminal that another embodiment of the present invention provides;
Fig. 6 is the main frame block diagram for the terminal that further embodiment of the present invention provides;
Fig. 7 is a kind of structure diagram of terminal;
Fig. 8 is the running environment schematic diagram of browser performance test system provided in an embodiment of the present invention;
Fig. 9 is the main frame block diagram of browser performance test system provided by one embodiment of the present invention;
Figure 10 is the main frame block diagram for the browser performance test system that another embodiment of the present invention provides;
Figure 11 is the main frame block diagram for the browser performance test system that further embodiment of the present invention provides.
Embodiment
Further to illustrate the present invention to reach the technological means and effect that predetermined goal of the invention is taken, below in conjunction with Attached drawing and preferred embodiment, to according to its specific embodiment party of browser performance test method, system and terminal proposed by the present invention Formula, structure, feature and effect, describe in detail as after.
For the present invention foregoing and other technology contents, feature and effect, in the following preferable reality coordinated with reference to schema Applying during example describes in detail to be clearly presented.By the explanation of embodiment, when predetermined mesh can be reached to the present invention The technological means taken and effect be able to more deeply and it is specific understand, but institute's accompanying drawings are only to provide with reference to saying It is bright to be used, not it is used for being any limitation as the present invention.
Please refer to Fig.1, it illustrates the method flow of browser performance test method provided by one embodiment of the present invention Figure.The browser performance test method, it may include following steps 101-105:
Step 101, the test page address of input is received, and is sent according to test page address to server and obtains test The request of the page, so that test page of the server according to corresponding to request by test page address is sent to terminal.
If browser to be measured is installed in terminal(Such as mobile terminal)On be tested for the property, then user can be in terminal The address field of browser inputs the address of a test page, can also input a survey in the address field of terminal browser automatically The address of the page is tried, after the completion of input, clicks on and determines, then can be sent with this test page address to server and obtain test The request of the page, with the test page corresponding to this test page address of acquisition request.
Step 103, test page is received, and makes browser execution test page to be measured, the testing results page is included from treating Survey browser and start the content that the load test page shows test page to after the completion of loading.
Step 105, when the time of browser execution test page to be measured being more than preset time, then perform in test page In be previously inserted redirect script, obtained according to redirecting the information of the next test page specified in script and being sent to server The request of test page, so that next test page is sent to terminal by server according to request, and transports browser to be measured The next test page of row.
The information of next test page can include the information such as the address of next test page.
In conclusion browser performance test method provided in this embodiment, by browser execution server to be measured The time of the test page of offer is more than preset time, then what execution was previously inserted in test page redirects script, according to jump The information for the next test page for turning to specify in script obtains next test page so that browser to be measured is transported from server OK, so that browser to be measured being capable of circular flow test page.Solve in browser performance test process, testing efficiency compared with Low problem, by the way of browser automatic cycling operating test page, so that in browser performance test process, Can quick obtaining test page tested, improve testing efficiency.
Please refer to Fig.2, the method stream of the browser performance test method provided it illustrates another embodiment of the present invention Cheng Tu.Fig. 2 is improved on the basis of Fig. 1.The browser performance test method, it may include following steps 201- 213:
Step 201, the test page address of input is received, and is sent according to test page address to server and obtains test The request of the page, so that test page of the server according to corresponding to request by test page address is sent to terminal.
If browser to be measured is installed in terminal(Such as mobile terminal)On be tested for the property, then user can be in terminal The address field of browser inputs the address of a test page, can also input a survey in the address field of terminal browser automatically The address of the page is tried, after the completion of input, clicks on and determines, then can be sent with this test page address to server and obtain test The request of the page, with the test page corresponding to this test page address of acquisition request.
The test page address can be set in advance, therefore to compare the height of different browsers stability When, because the content of test page set in advance is entirely consistent, therefore it can more accurately compare different browsers The quality of performance.
Step 203, this test page is received, and makes this test page of browser execution to be measured, runs this test sheets bread Since browser to be measured the load test page is included to the content that test page is shown after the completion of loading.
During operation, the run time script set in advance in test page is also performed:Even each test sheets The run time in face then performs more than preset time and redirects script, as described in step 205,209.In addition, run this test page Process can also according to actual needs and including from server send test page to terminal, start to load to browser to be measured Test page shows the process of the content of test page to after the completion of loading.The process of the load test page includes browser resolves Test page, and load the contents such as script, word, picture.
Step 205, judge whether the time of browser execution test page to be measured is more than preset time, if so, then carrying out Step 209.
Preferably, in step 205, may also include:If it is not, then carry out step 207.
Step 207, if browser to be measured completes the load test page, and the interior of the test page for loading completion has been shown Hold, then browser to be measured is continued the content that display loads the test page completed, if test page does not load completion, make Browser to be measured continues the load test page, and carries out step 205.
Step 209, perform be previously inserted in test page redirect script, according to redirect specified in script it is next The information of test page sends the request for obtaining test page to server so that server according to request by next test sheets Face is sent to terminal, and makes this next test page of browser execution to be measured.
The information of next test page can include the information such as the address of next test page.
For example, if current test page is the A pages as shown in Figure 2 B, what is be previously inserted in the A pages redirects foot This is will jump to the B pages in next step, then when the time of the browser execution A pages to be measured being more than preset time, automated execution This redirects script, the request for obtaining the B pages is sent to server, the B pages are sent to terminal by server according to request, and make end The browser to be measured at end jumps to the B pages.
Step 211, detect browser to be measured sudden strain of a muscle whether occurs and move back, and generate detection signal, if so, step 213 is then carried out, If it is not, then carry out step 209.
Sudden strain of a muscle moves back i.e. browser and is closed and exits because terminal low memory or browser situations such as logic error occur.Browse The logic error of device, such as can be code, function mistake of browser etc..
Step 213, the detection signal generated when occurring by browser to be measured and dodge and move back is sent to control device, so that control Equipment makes to be pre-set at the script for being used to adjust browser in terminal and restarts browser, treat according to this detection signal The address for surveying before browser is moved back according to sudden strain of a muscle the test page run sends the request for obtaining test page to server again, and remembers Record browser to be measured to occur to dodge information when moving back, then carry out in step 201 so that server is according to request, by test page The step of test page corresponding to location is sent to terminal.
The in-situ FTIR spectroelectrochemitry functional unit of browser to be measured can according to dodge move back before operation test page address again to Server sends the request for obtaining test page.Specifically, the in-situ FTIR spectroelectrochemitry functional unit of browser to be measured can be controlled in advance Open, then the in-situ FTIR spectroelectrochemitry functional unit of browser to be measured can according to dodge move back before operation test page address again to Server sends the request for obtaining test page.Certainly, in embodiments of the present invention, it can also control and treat according to actual needs The address for surveying before browser is moved back according to sudden strain of a muscle the test page run sends the request for obtaining test page to server again.
If the terminal and control device of testing browser performance merge into an equipment(Such as terminal), then preferably, step In rapid 213, it may also include:Moved back if sudden strain of a muscle occurs for browser to be measured, the detection generated when occurring according to browser to be measured and dodge and move back Signal, makes to be pre-set at the script for being used to adjust browser in terminal and restarts browser to be measured, browser root to be measured The address for the test page for moving back preceding operation according to dodging sends the request for obtaining test page to server again, and records to be measured browse Device occurs to dodge information when moving back.
The browser to be measured of record occurs to dodge information when moving back, such as can include the memory service condition for dodging terminal when moving back (Occupancy), dodge the test page information opened when moving back, dodge whether browser to be measured when moving back logic error occurs(Such as function or Code error)And the logic error information occurred(Such as there is mistake in which specific function or which section code)In at least One.
Information record when can be moved back sudden strain of a muscle occurs is in the daily record of terminal, in order to which user carries out checking browser to be measured Sudden strain of a muscle move back situation.Move back number by contrasting to dodge in the unit interval and can deduce stabilization of the different browsers in terms of page browsing The height of property.
Because the terminal that the present invention carries out test browser performance is provided with same network bandwidth, and the net tested It is all consistent that page content, which may be set to be, therefore can more accurately compare the quality of different browsers performance.
In conclusion browser performance test method provided in this embodiment, by browser execution server to be measured The time of the test page of offer is more than preset time, then what execution was previously inserted in test page redirects script, according to jump The information for the next test page for turning to specify in script obtains next test page so that browser to be measured is transported from server OK, so that browser to be measured being capable of circular flow test page.Solve in browser performance test process, testing efficiency compared with Low problem, by the way of browser automatic cycling operating test page, so that in browser performance test process, Can quick obtaining test page tested, improve testing efficiency.
In addition, the present embodiment is also by that when detecting that browser generation sudden strain of a muscle to be measured is moved back, can make to be pre-set at terminal On the script for being used to adjust browser restart browser to be measured, the test page of operation before browser to be measured is moved back according to sudden strain of a muscle Address obtain test page from server again, additionally it is possible to record browser to be measured and occur to dodge information when moving back.It can also lead to Cross when detecting that browser generation sudden strain of a muscle is moved back, the detection signal generated when can occur by browser to be measured and dodge and move back is sent to control Control equipment, so that control device according to signal is detected, makes to be pre-set at is used to adjust the script of browser again in terminal Start browser to be measured.So as to occur also can automatically to recover when sudden strain of a muscle is moved back in browser to be measured, testing efficiency is further increased, It can also facilitate user to carry out checking that situation is moved back in the sudden strain of a muscle of browser, move back number by contrasting to dodge in the unit interval and can deduce difference The height of stability of the browser in terms of page browsing, can also realize and carry out remote control browser generation by control device Reboot operation when moving back is dodged, is more convenient for test operation.
Please refer to Fig.3, the method stream of the browser performance test method provided it illustrates further embodiment of the present invention Cheng Tu.Fig. 3 is improved on the basis of Fig. 2, it is similar to the method shown in Fig. 2, its difference is, also wraps Include:Step 301 is to 305, specifically, the browser performance test method, it may include following steps 301-319:
Step 301, all test pages of advance download test station point.
Terminal can control browser or download tool that all test pages of all test stations are downloaded and preserved.Survey Examination website and the test page of test station can be set in advance according to actual needs.Such as test station can be set It is set to the websites such as Sohu, Netease, test page can be set as all related link pages of the websites such as Sohu, Netease, including The information such as picture, word, are as shown in Figure 3B the partial page of a website, and a url page face in this page includes clicking on The page opened after headline 330.
The method for downloading test page specifically can be as follows:Recording instrument is used in advance by the download of a test page Cheng Jinhang is recorded, and so when downloading other test pages, the downloading process that recording instrument is recorded is played back, terminal can To control browser or download tool to download other test pages according to the downloading process of playback automatically.Such as record instrument and record The downloading process of a test page be:The address of a test page is inputted first in the address field of browser, is clicked on Determine so that the browser load test page, after the completion of this test page loads in a browser, then downloads and preserve this survey Try the page.When then downloading other test pages, it is possible to according to the above-mentioned downloading process of playback, according to other test sheets of offer The address list in face and other test pages are downloaded and preserved automatically.
Step 303, downloaded test page is changed.
The downloaded test page of modification can be inserted into the test page of each download to be redirected script and sets fortune Row time script, run time script, which includes performing if the run time of each test page is more than preset time, redirects foot This.Run time include since browser the load test page to show after the completion of loading used in the content of test page when Between summation, this redirect script be used for specify next step jump to the information of next test page.
After the completion of the content i.e. test page loading of test page is shown after the completion of loading, by the content of test page clear Look in device and shown.There are many Webpage load progress bars on the net now.Such as when inquiring about mass data, Webpage Loading is slower, when Webpage loads, shows progress bar, and when Webpage, which loads, to be completed, progress bar disappears, and shows webpage The page has loaded the content of completion.
It can be javascript scripts to redirect script.The information of next test page can include next test sheets The information such as the address in face.
The process that the insertion in each test page redirects script is illustrated, as shown in Figure 2 B, if presetting from A pages Face jumps to the B pages, from B page jumps to the C pages, then needs in the A pages insertion to redirect script and specify and jumps to B in next step The page, insertion redirects script and specifies in the B pages will jump to the C pages in next step, and to be also inserted into the C pages and redirect foot This is specified will jump in next step for which page.Redirecting for the magnanimity page just needs to change test page one by one to specify in next step Which page is jumped to, eventually forms a circulation as shown in Figure 2 B.
If the run time of each test page of setting is more than preset time, execution redirects script, that is, setting is often The run time of a test page, at runtime after, then perform redirect script.Preset time can be carried out according to being actually needed Respective settings, such as 8 seconds.I.e. the run time of test page, which is more than then to perform for 8 seconds, redirects script, the run time of test page Two kinds of situations can be included by reaching 8 seconds, if one kind is test page, loading is slower, reaches 8 seconds test pages and has not loaded yet, If another kind is test page, loading is very fast, can load completion less than 8 seconds, and show test page after loading is complete Content, then from the load test page is started to showing that the time used in the content of test page reaches 8 seconds after the completion of loading.This two In the case of kind, the run time for being satisfied by test page reaches 8 seconds.In the case of the first after 8 seconds, no longer to current test sheets Face is loaded, but jumps directly to run next test page, until browser because of terminal low memory or browses There is situations such as logic error and sudden strain of a muscle occurs and moves back in device, under the second situation after 8 seconds, the survey that also no longer the current loading of display is completed The content of the page is tried, but jumps directly to run next test page, until browser is because of terminal low memory or clear There is situations such as logic error and sudden strain of a muscle occurs and moves back in device of looking at.Sudden strain of a muscle moves back i.e. browser because logic mistake occur in terminal low memory or browser By mistake situations such as and be closed and exit.The logic error of browser, such as can be code, function mistake of browser etc..
Step 305, amended test page is sent to server to be stored, and sets and be used to adjust browser Script, the storage location of test page on the server are the address of test page, and perform step 307.
Preferably, in step 305, may also include:Start the in-situ FTIR spectroelectrochemitry functional unit of browser to be measured.
The in-situ FTIR spectroelectrochemitry functional unit of browser to be measured is a component of existing browser, if starting this component, After browser is moved back and is restarted because of sudden strain of a muscle, the test page address of last time can be preserved, and automatically according to dodge move back before operation survey The address for trying the page sends the request for obtaining test page to server again.
One test page can be stored in a file, and a file can correspond to a network address, i.e., any One test page has a corresponding test address(That is network address).
Terminal is installed in browser to be measured(Such as mobile terminal)On be tested for the property exemplified by, by amended survey The examination page is sent to after server stored, and terminal can set the script for having adjusted browser on it.Again by having Line mode(Such as USB connections)Or wirelessly(Such as SSH, Secure Shell, safety shell protocol)Connection is eventually End and control device(Such as desktop computer or notebook etc.), enable control device remote control terminal.
After being set as above, terminal, which can detect browser to be measured sudden strain of a muscle whether occurs, moves back, and generates detection signal, when to be measured clear When device of looking at generation sudden strain of a muscle is moved back, the detection signal that terminal is generated when occurring by browser to be measured and dodge and move back is sent to control device, controls Equipment makes to be pre-set at the script for being used to adjust browser in terminal and restarts browser to be measured according to detection signal.
Certainly, in embodiments of the present invention, terminal and control device can also be set according to being actually needed to merge as one It is standby.An if equipment(Such as one terminal device of synthesis), then terminal, which detects browser to be measured sudden strain of a muscle whether occurs, moves back, and generates Signal is detected, when sudden strain of a muscle, which occurs, for browser to be measured moves back, the detection signal that is generated when moving back occurs to dodge according to browser to be measured for terminal, Make to be pre-set at the script for being used to adjust browser in terminal and restart browser to be measured.
Step 307 is identical to step 213 with the step 201 in Fig. 2 embodiments respectively to step 319, specifically refer to State the corresponding description of Fig. 2 embodiments.
In conclusion browser performance test method provided in this embodiment, by browser execution server to be measured The time of the test page of offer is more than preset time, then what execution was previously inserted in test page redirects script, according to jump The information for the next test page for turning to specify in script obtains next test page so that browser to be measured is transported from server OK, so that browser to be measured being capable of circular flow test page.Solve in browser performance test process, testing efficiency compared with Low problem, by the way of browser automatic cycling operating test page, so that in browser performance test process, Can quick obtaining test page tested, improve testing efficiency.
In addition, the present embodiment is also by that when detecting that browser generation sudden strain of a muscle to be measured is moved back, can make to be pre-set at terminal On the script for being used to adjust browser restart browser to be measured, the test page of operation before browser to be measured is moved back according to sudden strain of a muscle Address obtain test page from server again, additionally it is possible to record browser to be measured and occur to dodge information when moving back.It can also lead to Cross when detecting that browser generation sudden strain of a muscle is moved back, the detection signal generated when can occur by browser to be measured and dodge and move back is sent to control Control equipment, so that control device according to signal is detected, makes to be pre-set at is used to adjust the script of browser again in terminal Start browser to be measured.So as to occur also can automatically to recover when sudden strain of a muscle is moved back in browser to be measured, testing efficiency is further increased, It can also facilitate user to carry out checking that situation is moved back in the sudden strain of a muscle of browser, move back number by contrasting to dodge in the unit interval and can deduce difference The height of stability of the browser in terms of page browsing, can also realize and carry out remote control browser generation by control device Reboot operation when moving back is dodged, is more convenient for test operation.
Also by all test pages of advance download test station point, and downloaded test page is changed, under each Insertion redirects script and sets run time script in the test page of load, and amended test page be sent to server into Row storage, and the script for being used for having adjusted browser is set, the storage location of test page on the server is the ground of test page Location.As a result of the as above various setting methods before test, it so ensure that the terminal for carrying out test browser performance is set Same network bandwidth, and the web page contents tested may be set to be all is consistent, therefore can be more accurately Compare the quality of different browsers performance.
It is below the device of the invention embodiment, the details of not detailed description, may be referred to above-mentioned in device embodiment Corresponding embodiment of the method.
Please refer to Fig.4, it illustrates the main frame block diagram of terminal provided by one embodiment of the present invention.The terminal, Including:Page acquisition module 401, page operation module 403 and jump module 405.
Specifically, page acquisition module 401, for receiving the test page address of input, and according to test page address The request for obtaining test page is sent to server, so that test sheets of the server according to corresponding to request by test page address Face is sent to terminal;
The page runs module 403, for receiving test page, and makes browser execution test page to be measured, testing results The page includes since browser to be measured the load test page to the content that test page is shown after the completion of loading;
Jump module 405, for when the time of browser execution test page to be measured being more than preset time, then performing What is be previously inserted in test page redirects script, according to redirecting the information of the next test page specified in script to server The request for obtaining test page is sent, so that next test page is sent to terminal by server according to request, and is made to be measured The next test page of browser execution.
Preferably, jump module 405, are additionally operable to be not more than preset time in the time of browser execution test page to be measured When, if then browser to be measured completes the load test page, and has shown the content for loading the test page completed, then make to be measured Browser continues the content that display loads the test page completed, if test page does not load completion, makes browser to be measured Continue the load test page.
In conclusion terminal provided in this embodiment, passes through the test page provided in browser execution server to be measured Time be more than preset time, then perform be previously inserted in test page redirect script, according to redirecting what is specified in script The information of next test page obtains next test page for browser execution to be measured from server, so as to be measured browse Device being capable of circular flow test page.Solve in browser performance test process, the problems such as testing efficiency is relatively low, use is clear Look at the mode of device automatic cycling operating test page so that in browser performance test process, can quick obtaining survey The examination page is tested, and improves testing efficiency.
Fig. 5 is refer to, the main frame block diagram of the terminal provided it illustrates another embodiment of the present invention.Itself and Fig. 4 Shown terminal is similar, its difference is, further includes:Detection module 507 and control module 509.
Page acquisition module 501, the page operation module 503 and jump module 505 respectively with the page in Fig. 4 embodiments Face acquisition module 401, page operation module 403 and jump module 405 correspond to identical, specifically refer to above-mentioned Fig. 4 embodiments Corresponding description.
Whether detection module 507, occur sudden strain of a muscle for detecting browser to be measured and move back, and generates detection signal;
Control module 509, if being moved back for sudden strain of a muscle to occur, the detection generated when occurring according to browser to be measured and dodge and move back is believed Number, make to be pre-set at the script restarting browser to be measured for being used to adjust browser in terminal, browser to be measured according to The address for dodging the test page of operation before moving back sends the request for obtaining test page to server again, and records browser to be measured Occur to dodge information when moving back.
Preferably, control module 509, are moved back if being additionally operable to browser to be measured and sudden strain of a muscle occurring, and browser to be measured generation sudden strain of a muscle is moved back When the detection signal that is generated be sent to control device so that control device makes to be pre-set in terminal according to detection signal The script for being used to adjust browser restart browser to be measured, the test page of operation before browser to be measured is moved back according to sudden strain of a muscle Address sends the request for obtaining test page to server again, and records browser to be measured and occur to dodge information when moving back.
The information that browser to be measured occurs to dodge when moving back includes dodging the memory usage of terminal when moving back, dodges the test opened when moving back It is at least one in the logic error information that browser to be measured occurs when page info and sudden strain of a muscle are moved back.
In conclusion terminal provided in this embodiment, also by that when detecting that browser generation sudden strain of a muscle to be measured is moved back, can make The script for being used to adjust browser being pre-set in terminal restarts browser to be measured, before browser to be measured is moved back according to sudden strain of a muscle The address of the test page of operation obtains test page from server again, additionally it is possible to records browser to be measured and occurs to dodge when moving back Information.Can also be by the way that browser to be measured when detecting that browser generation sudden strain of a muscle is moved back, can to that the inspection generated when sudden strain of a muscle be moved back occur Survey signal and be sent to control device, so that control device makes to be pre-set at clear for having adjusted in terminal according to detection signal The script of device look at restarts browser to be measured.So as to occur also can automatically to recover when sudden strain of a muscle is moved back in browser to be measured, further Testing efficiency is improved, can also facilitate user to carry out checking that situation is moved back in the sudden strain of a muscle of browser, is moved back time by contrasting to dodge in the unit interval Number can deduce the height of stability of the different browsers in terms of page browsing, can also realize and be carried out far by control device Process control browser occurs to dodge reboot operation when moving back, and is more convenient for test operation.
Fig. 6 is refer to, the main frame block diagram of the terminal provided it illustrates further embodiment of the present invention.Itself and Fig. 5 Shown terminal is similar, its difference is, further includes:Setup module 611.
Page acquisition module 601, page operation module 603, jump module 605, detection module 607 and control module 609 run module 503 and jump module 505, detection mould with the page acquisition module 501 in Fig. 5 embodiments, the page respectively Block 507 and control module 509 correspond to identical, specifically refer to the corresponding description of above-mentioned Fig. 5 embodiments.
Setup module 611, all test pages for advance download test station point;The downloaded test page of modification, Insertion redirects script and sets run time script in the test page of each download, if run time script includes each survey The run time of the examination page is then performed more than preset time redirects script, and run time, which includes loading since browser to be measured, to be surveyed The examination page redirects script for specifying next step to redirect to temporal summation used in the content of test page show after the completion of loading To the information of next test page;Amended test page is sent to server to be stored, and sets and is used to adjust The script of browser, the storage location of test page on the server are the address of test page.
In conclusion terminal provided in this embodiment, also by all test pages of advance download test station point, and is repaiied Change downloaded test page, insertion redirects script and sets run time script in the test page of each download, and repaiies Test page after changing is sent to server and is stored, and sets the script for being used for having adjusted browser, and test page is servicing Storage location on device is the address of test page.As a result of the as above various setting methods before test, so ensure that The terminal for carrying out test browser performance is provided with same network bandwidth, and the web page contents tested may be set to be All it is consistent, therefore can more accurately compares the quality of different browsers performance.
Fig. 7 is refer to, it illustrates a kind of structure diagram of terminal.As shown in fig. 7, terminal includes memory 702, storage Controller 704, it is one or more(One is only shown in figure)Processor 706, Peripheral Interface 708, radio-frequency module 710, shooting mould Block 714, audio-frequency module 716, Touch Screen 718 and key-press module 720.These components by one or more communication bus/ Signal wire mutually communicates.
It is appreciated that the structure shown in Fig. 7 is only to illustrate, terminal may also include more more than shown in Fig. 7 or less Component, or there is the configuration different from shown in Fig. 7.Each component shown in Fig. 7 can use hardware, software or its combination real It is existing.
Memory 702 can be used for storage software program and module, as clear in carried out in the embodiment of the present invention in terminal Look at the corresponding programmed instruction/module of method of device performance test, processor 702 is stored in soft in memory 704 by operation Part program and module, so as to perform various functions application and data processing, that is, realize and above-mentioned are browsed in terminal The method of device performance test.
Memory 702 may include high speed random access memory, may also include nonvolatile memory, such as one or more magnetic Property storage device, flash memory or other non-volatile solid state memories.In some instances, memory 702 can further comprise Relative to the remotely located memory of processor 706, these remote memories can pass through network connection to terminal.Above-mentioned network Example include but not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.Processor 706 and its He can carry out under the control of storage control 704 in access of the possible component to memory 702.
Various input/output devices are coupled to CPU and memory 702 by Peripheral Interface 708.The operation of processor 706 is deposited Various softwares in reservoir 702, instruction are to perform the various functions of terminal and carry out data processing.
In certain embodiments, Peripheral Interface 708, processor 706 and storage control 704 can be in one single chips Realize.In some other example, they can be realized by independent chip respectively.
Radio-frequency module 710 is used to receiving and sending electromagnetic wave, realizes the mutual conversion of electromagnetic wave and electric signal, so that with Communication network or other equipment are communicated.Radio-frequency module 710 may include the various existing electricity for being used to perform these functions Circuit component, for example, antenna, RF transceiver, digital signal processor, encryption/deciphering chip, subscriber identity module(SIM)Card, Memory etc..Radio-frequency module 710 can be communicated or led to various networks such as internet, intranet, wireless network Wireless network is crossed to be communicated with other equipment.Above-mentioned wireless network may include cellular telephone networks, WLAN or Metropolitan Area Network (MAN).Above-mentioned wireless network can use various communication standards, agreement and technology, and including but not limited to the whole world is mobile logical Letter system(Global System for Mobile Communication,GSM), enhanced mobile communication technology (Enhanced Data GSM Environment, EDGE), Wideband CDMA Technology(wideband code division multiple access,W-CDMA), Code Division Multiple Access(Code division access,CDMA), time division multiple access technology (time division multiple access,TDMA), bluetooth, adopting wireless fidelity technology(Wireless, Fidelity, WiFi)(Such as American Institute of Electrical and Electronics Engineers standard IEEE 802.11a, IEEE802.11b, IEEE802.11g and/or IEEE802.11n), the networking telephone(Voice over internet protocal,VoIP), worldwide interoperability for microwave accesses (Worldwide Interoperability for Microwave Access, Wi-Max), other be used for mail, Instant Messenger The agreement of news and short message, and any other suitable communications protocol, or even may include that those are not developed currently yet Agreement.
Photographing module 714 is used to shoot photo or video.The photo or video of shooting can be stored to memory 702 It is interior, and can be sent by radio-frequency module 710.
Audio-frequency module 716 provides a user audio interface, it may include one or more microphones, one or more raises Sound device and voicefrequency circuit.Voicefrequency circuit receives voice data at Peripheral Interface 708, and voice data is converted to power information, Power information is transmitted to loudspeaker.Power information is converted to the sound wave that human ear can hear by loudspeaker.Voicefrequency circuit is also from microphone Place receives power information, converts electrical signals to voice data, and by data transmission in network telephony into Peripheral Interface 708 with into advancing one The processing of step.Voice data can obtain at memory 702 or by radio-frequency module 710.In addition, voice data can also Store into memory 702 or be transmitted by radio-frequency module 710.In some instances, audio-frequency module 716 may also include One earphone broadcasts hole, for providing audio interface to earphone or other equipment.
Touch Screen 718 provides an output and inputting interface at the same time between terminal and user.Specifically, Touch Screen 718 show video output to user, and the content of these videos output may include word, figure, video and its any combination.One Export a bit the result is that corresponding to some user interface objects.Touch Screen 718 also receives the input of user, such as the point of user The gesture operation such as hit, slide, so that input of the user interface object to these users responds.Detect technology input by user Can be based on resistance-type, condenser type or any other possible touch control detection technology.The tool of 718 display unit of Touch Screen Body example includes but is not limited to liquid crystal display or light emitting polymer displays.
Key-press module 720 equally provides user's interface inputted to terminal, user can by press it is different by Key is so that terminal performs different functions.
Fig. 8 is refer to, it illustrates the running environment signal of browser performance provided in an embodiment of the present invention test system Figure.As shown in figure 8, whole system running environment may include server 800 and multiple terminals, whole system running environment can be with According to actual needs including control device 801.In the present embodiment, the plurality of terminal includes first terminal 802, second terminal 803rd, third terminal 805.First terminal 802, second terminal 803, third terminal 805 can pass through first network 807 and server 800 are communicated, or are communicated between each other.First terminal 802, second terminal 803, third terminal 805 can pass through Two networks 809 are communicated with control device 801, or are communicated between each other.The instantiation of first and second network Including but not limited to WLAN or mobile communication network.First and two network can also be same network.Can be with Understand, more terminals are may also include in Fig. 8.
Operationally, above-mentioned multiple terminals respectively at the same time can test the performance of browser, to compare out difference The quality of browser performance.
Fig. 9 is refer to, it illustrates the main frame of browser performance provided by one embodiment of the present invention test system Block diagram.The system, including:At least a terminal and server.Wherein, each terminal includes page acquisition module 901, the page Run module 903 and jump module 905.Server includes test page sending module 921.
Page acquisition module 901, for receiving the test page address of input, and according to test page address to server Send the request for obtaining test page.
Test page sending module 921, for according to request by test page address corresponding to test page be sent to Terminal.
The page runs module 903, for receiving test page, and makes browser execution test page to be measured, testing results The page includes since browser to be measured the load test page to the content that test page is shown after the completion of loading;
Jump module 905, for when the time of browser execution test page to be measured being more than preset time, then performing What is be previously inserted in test page redirects script, according to redirecting the information of the next test page specified in script to server Send the request for obtaining test page so that the test page sending module 921 of server according to request by next test sheets Face is sent to terminal, and makes the next test page of browser execution to be measured.
Preferably, jump module 905, are additionally operable to be not more than preset time in the time of browser execution test page to be measured When, if then browser to be measured completes the load test page, and has shown the content for loading the test page completed, then make to be measured Browser continues the content that display loads the test page completed, if test page does not load completion, makes browser to be measured Continue the load test page.
In conclusion browser performance test system provided in this embodiment, by browser execution server to be measured The time of the test page of offer is more than preset time, then what execution was previously inserted in test page redirects script, according to jump The information for the next test page for turning to specify in script obtains next test page so that browser to be measured is transported from server OK, so that browser to be measured being capable of circular flow test page.Solve in browser performance test process, testing efficiency compared with Low problem, by the way of browser automatic cycling operating test page, so that in browser performance test process, Can quick obtaining test page tested, improve testing efficiency.
0 is please referred to Fig.1, the main frame of the browser performance test system provided it illustrates another embodiment of the present invention Structure block diagram.It is similar to the browser performance test system shown in Fig. 9, its difference is, the terminal further includes:Detection Module 1007 and control module 1009.
Page acquisition module 1001, page operation module 1003, jump module 1005 and test page sending module 1021 run module 903, jump module 905 and test sheets with the page acquisition module 901 in Fig. 9 embodiments, the page respectively Face sending module 921 corresponds to identical, specifically refer to the corresponding description of above-mentioned Fig. 9 embodiments.
Whether detection module 1007, occur sudden strain of a muscle for detecting browser to be measured and move back, and generates detection signal;
Control module 1009, if being moved back for sudden strain of a muscle to occur, the detection generated when occurring according to browser to be measured and dodge and move back is believed Number, make to be pre-set at the script restarting browser to be measured for being used to adjust browser in terminal, browser to be measured according to The address for dodging the test page of operation before moving back sends the request for obtaining test page to server again, and records browser to be measured Occur to dodge information when moving back.
Preferably, the system can also include:Control device, the control device include calling module 1032.
Then control module 1009, are moved back if being additionally operable to browser to be measured and sudden strain of a muscle occurring, and browser to be measured generation sudden strain of a muscle is moved back when institute The detection signal of generation is sent to control device, and records browser to be measured and occur to dodge information when moving back.
The calling module 1032 of control device, is used to adjust for according to signal is detected, making to be pre-set in terminal The script of browser restarts browser to be measured, browser to be measured according to dodge move back before operation test page address again to Server sends the request for obtaining test page.
In conclusion browser performance test system provided in this embodiment, also by detecting browser hair to be measured When raw sudden strain of a muscle is moved back, it can make to be pre-set at the script for being used to adjust browser in terminal and restart browser to be measured, it is to be measured The address for the test page that browser is run before being moved back according to sudden strain of a muscle obtains test page from server again, additionally it is possible to records to be measured clear Device of looking at occurs to dodge information when moving back.So as to occur also can automatically to recover when sudden strain of a muscle is moved back in browser, test effect is further increased Rate, can also facilitate user to carry out checking that situation is moved back in the sudden strain of a muscle of browser, move back number by contrasting to dodge in the unit interval and can deduce The height of stability of the different browsers in terms of page browsing.Also by when detecting that browser to be measured occurs sudden strain of a muscle and moves back, energy Enough make to be pre-set at the script for being used to adjust browser in terminal and restart browser to be measured, browser to be measured is according to sudden strain of a muscle The address of the test page of operation obtains test page from server again before moving back, additionally it is possible to records browser generation sudden strain of a muscle to be measured and moves back When information.Can also be by that when detecting that browser generation sudden strain of a muscle is moved back, browser to be measured can be occurred to be generated when sudden strain of a muscle be moved back Detection signal be sent to control device so that control device according to detection signal, make to be pre-set in terminal be used for adjust The script for playing browser restarts browser to be measured.So as to occur also can automatically to recover when sudden strain of a muscle is moved back in browser to be measured, into One step improves testing efficiency, can also facilitate user to carry out checking that situation is moved back in the sudden strain of a muscle of browser, be dodged by contrasting in the unit interval The height of stability of the different browsers in terms of page browsing can be deduced by moving back number, can also realize by control device into Row remote control browser occurs to dodge reboot operation when moving back, and is more convenient for test operation.
1 is please referred to Fig.1, the main frame of the browser performance test system provided it illustrates further embodiment of the present invention Structure block diagram.It is similar to the browser performance test system shown in Figure 10, its difference is, the terminal further includes:If Module 1111 is put, the server further includes:Memory module 1122.In addition, the system can also be wrapped according to actual needs Include:Control device as shown in Figure 10, the control device include calling module as shown in Figure 10(Figure 11 is not shown control and sets It is standby).
Page acquisition module 1101, the page operation module 1103, jump module 1105, test page sending module 1121, Detection module 1107, control module 1109 run module with the page acquisition module 1001 in Figure 10 embodiments, the page respectively 1003rd, jump module 1005, test page sending module 1021, detection module 1007, control module 1009 correspond to similar, specifically It refer to the corresponding description of above-mentioned Figure 10 embodiments.
Setup module 1111, all test pages for advance download test station point;The downloaded test page of modification, Insertion redirects script and sets run time script in the test page of each download, if run time script includes each survey The run time of the examination page is then performed more than preset time redirects script, and run time, which includes loading since browser to be measured, to be surveyed The examination page redirects script for specifying next step to redirect to temporal summation used in the content of test page show after the completion of loading To the information of next test page;Amended test page is sent to server to be stored, and sets and is used to adjust The script of browser;
Memory module 1122, for storing amended test page, the storage location of test page on the server is The address of test page.
In conclusion browser performance test system provided in this embodiment, also passes through the institute of advance download test station point Have a test page, and change downloaded test page, in the test page of each download insertion redirect script and fortune be set Row time script, and amended test page is sent to server and is stored, and the script for being used for having adjusted browser is set, The storage location of test page on the server is the address of test page.As a result of the as above various setting sides before test Method, so ensure that the terminal for carrying out test browser performance is provided with same network bandwidth, and in the webpage tested It is all consistent that appearance, which may be set to be, therefore can more accurately compare the quality of different browsers performance.
In addition, the embodiment of the present invention also provides a kind of computer-readable recording medium, it is stored with computer and can perform Instruction, above-mentioned computer-readable recording medium is, for example, nonvolatile memory such as CD, hard disk or flash memory.It is above-mentioned Computer executable instructions be used to allow computer or similar arithmetic unit to complete above-mentioned browser performance test method.
The above described is only a preferred embodiment of the present invention, not make limitation in any form to the present invention, though So the present invention is disclosed above with preferred embodiment, but is not limited to the present invention, any to be familiar with this professional technology people Member, without departing from the scope of the present invention, when the technology contents using the disclosure above make a little change or modification For the equivalent embodiment of equivalent variations, as long as being the technical spirit pair according to the present invention without departing from technical solution of the present invention content Any simple modification, equivalent change and modification that above example is made, in the range of still falling within technical solution of the present invention.

Claims (13)

  1. A kind of 1. browser performance test method, it is characterised in that the described method includes:
    The test page address of input is received, and is sent according to the test page address to server and obtains asking for test page Ask, so that test page of the server according to corresponding to the request by the test page address is sent to terminal;
    The test page is received, and test page described in making browser execution to be measured, running the test page is included from institute Browser to be measured is stated to start to load the content that the test page shows the test page to after the completion of loading;
    When the time of the browser execution test page to be measured being more than preset time, then perform pre- in the test page That is first inserted into redirects script, is sent according to the information of the next test page for redirecting and being specified in script to the server The request of test page is obtained, so that next test page is sent to the terminal by server according to the request, And make next test page described in the browser execution to be measured;
    Before the test page address for receiving input, further include:
    All test pages of advance download test station point;
    The downloaded test page of modification, in the test page of each download insertion redirect script and run time foot be set Originally, foot is redirected described in being performed if the run time script if the run time of each test page including being more than preset time This, the run time includes since browser to be measured the load test page to the content that test page is shown after the completion of loading Temporal summation used, it is described redirect script be used for specify next step jump to the information of next test page;
    Amended test page is sent to the server to be stored, and the foot for being used for having adjusted the browser is set This, storage location of the test page on the server is the address of the test page.
  2. 2. browser performance test method according to claim 1, it is characterised in that described to make the browser fortune to be measured After row next test page, further include:
    Detect the browser to be measured sudden strain of a muscle whether occurs and move back, and generate detection signal;
    If generation sudden strain of a muscle is moved back, the detection signal that is generated when occurring according to the browser to be measured and dodge and move back makes to be pre-set at end The script for being used to adjust browser on end restarts the browser to be measured, and the browser to be measured moves back preceding operation according to sudden strain of a muscle The address of test page the request for obtaining test page is sent to the server again, and record the browser to be measured hair The raw information dodged when moving back.
  3. 3. browser performance test method according to claim 1, it is characterised in that described to make the browser fortune to be measured After row next test page, further include:
    Detect the browser to be measured sudden strain of a muscle whether occurs and move back, and generate detection signal;
    Moved back if sudden strain of a muscle occurs for the browser to be measured, the detection signal generated when occurring by the browser to be measured and dodge and move back is sent To control device, so that the control device makes to be pre-set at being browsed for having adjusted in terminal according to the detection signal The script of device restarts the browser to be measured, the address weight for the test page that the browser to be measured is run before being moved back according to sudden strain of a muscle The request for obtaining test page is newly sent to the server, and records the browser to be measured and occurs to dodge information when moving back.
  4. 4. the browser performance test method according to any one of Claims 2 or 3, it is characterised in that described to be measured clear The information that device of looking at occurs to dodge when moving back includes dodging the memory usage of terminal when moving back, dodges the test page information opened when moving back and dodge It is at least one in the logic error information that browser to be measured occurs when moving back.
  5. 5. browser performance test method according to claim 1, it is characterised in that it is described to receive the test page, And after making test page described in browser execution to be measured, further include:
    When the time of the browser execution test page to be measured being not more than the preset time, if the then browser to be measured Complete to load the test page, and shown the content for the test page for load completion, then make the browser to be measured after Continuous display loads the content for the test page completed;If the test page does not load completion, make the browser to be measured Continue to load the test page.
  6. A kind of 6. terminal, it is characterised in that the terminal, including:
    Page acquisition module, sends out for receiving the test page address of input, and according to the test page address to server The request for obtaining test page is sent, so that test of the server according to corresponding to the request by the test page address The page is sent to terminal;
    The page runs module, for receiving the test page, and makes test page described in browser execution to be measured, described in operation Test page includes loading the test page since the browser to be measured to showing the test page after the completion of loading Content;
    Jump module, for when the time of the browser execution test page to be measured being more than preset time, then performing in institute State be previously inserted in test page redirect script, according to the information of the next test page for redirecting and being specified in script to The server sends the request for obtaining test page, so that server sends out next test page according to the request The terminal is given, and makes next test page described in the browser execution to be measured;
    Setup module, all test pages for advance download test station point;The downloaded test page of modification, under each Insertion redirects script and sets run time script in the test page of load, if the run time script includes each test sheets The run time in face more than preset time then perform it is described redirect script, the run time include since browser to be measured plus Test page is carried to showing temporal summation used in the content of test page after the completion of loading, it is described redirect script for specifying under One step jumps to the information of next test page;Amended test page is sent to the server to be stored, and The script for being used for having adjusted the browser is set, and storage location of the test page on the server is the test sheets The address in face.
  7. 7. terminal according to claim 6, it is characterised in that the terminal, further includes:
    Whether detection module, occur sudden strain of a muscle for detecting the browser to be measured and move back, and generates detection signal;
    Control module, if being moved back for sudden strain of a muscle to occur, the detection signal generated when occurring according to the browser to be measured and dodge and move back, makes The script for being used to adjust browser being pre-set in terminal restarts the browser to be measured, the browser root to be measured The address of the test page of operation sends the request for obtaining test page to the server again before being moved back according to sudden strain of a muscle, and described in record Browser to be measured occurs to dodge information when moving back.
  8. 8. terminal according to claim 6, it is characterised in that the terminal, further includes:
    Whether detection module, occur sudden strain of a muscle for detecting the browser to be measured and move back, and generates detection signal;
    Control module, is moved back if sudden strain of a muscle occurs for the browser to be measured, and the browser to be measured is occurred to be generated when sudden strain of a muscle is moved back Detection signal be sent to control device so that the control device makes to be pre-set in terminal according to the detection signal The script for being used to adjust browser restart the browser to be measured, the survey of operation before the browser to be measured is moved back according to sudden strain of a muscle The address for trying the page sends the request for obtaining the test page to the server again, and records the browser hair to be measured The raw information dodged when moving back.
  9. 9. the terminal according to any one of claim 7 or 8, it is characterised in that when the browser generation sudden strain of a muscle to be measured is moved back Information include dodging the memory usage of terminal when moving back, dodge the test page information opened when moving back and browser to be measured when sudden strain of a muscle is moved back It is at least one in the logic error information of appearance.
  10. 10. terminal according to claim 6, it is characterised in that the jump module, is additionally operable in the browser to be measured When the time of the testing results page is not more than the preset time, if then the browser to be measured is completed to load the test sheets Face, and shown the content for loading the test page completed, then the browser to be measured is continued display and load what is completed The content of test page;If the test page does not load completion, the browser to be measured is set to continue to load the survey Try the page.
  11. 11. a kind of browser performance tests system, it is characterised in that the system comprises:At least a terminal and server;
    The terminal includes page acquisition module, page operation module, jump module, setup module and memory module;
    The server includes test page sending module;
    The page acquisition module, for receiving the test page address of input, and according to the test page address to service Device sends the request for obtaining test page;
    The test page sending module, for according to it is described request by the test page address corresponding to test page hair Give terminal;
    The page runs module, for receiving the test page, and makes test page described in browser execution to be measured, runs The test page includes loading the test page since the browser to be measured to showing the test after the completion of loading The content of the page;
    The jump module, for when the time of the browser execution test page to be measured being more than preset time, then performing What is be previously inserted in the test page redirects script, according to the letter of the next test page for redirecting and being specified in script Cease to the server send obtain test page request so that the test page sending module of the server according to Next test page is sent to the terminal by the request, and makes next survey described in the browser execution to be measured Try the page;
    The setup module, all test pages for advance download test station point;The downloaded test page of modification, every Insertion redirects script and sets run time script in the test page of a download, if the run time script includes each survey The run time of the examination page be more than preset time then perform it is described redirect script, the run time from browser to be measured including opening The beginning load test page shows the temporal summation used in the content of test page to after the completion of loading, and the script that redirects is used to refer to The fixed information for jumping to next test page in next step;Amended test page is sent to the server to be deposited Storage, and the script for being used for having adjusted the browser is set;
    The memory module, for storing amended test page, storage position of the test page on the server It is set to the address of the test page.
  12. 12. browser performance according to claim 11 tests system, it is characterised in that the terminal, further includes:
    Whether detection module, occur sudden strain of a muscle for detecting the browser to be measured and move back, and generates detection signal;
    Control module, if being moved back for sudden strain of a muscle to occur, the detection signal generated when occurring according to the browser to be measured and dodge and move back, makes The script for being used to adjust browser being pre-set in terminal restarts the browser to be measured, the browser root to be measured The address of the test page of operation sends the request for obtaining test page to the server again before being moved back according to sudden strain of a muscle, and described in record Browser to be measured occurs to dodge information when moving back.
  13. 13. browser performance according to claim 11 tests system, it is characterised in that the browser performance test system System further includes:Control device, the control device include:Calling module, the terminal further include:Detection module and control mould Block, wherein,
    Whether the detection module, occur sudden strain of a muscle for detecting the browser to be measured and move back, and generates detection signal;
    The control module, is moved back if sudden strain of a muscle occurs for the browser to be measured, and the browser to be measured sudden strain of a muscle, which occur, moves back when institute The detection signal of generation is sent to the control device, and records the browser to be measured and occur to dodge information when moving back;
    The calling module of the control device, is used to adjust for according to the detection signal, making to be pre-set in terminal The script of browser restarts the browser to be measured, the ground for the test page that the browser to be measured is run before being moved back according to sudden strain of a muscle Location sends the request for obtaining the test page to the server again.
CN201310188132.7A 2013-05-20 2013-05-20 Browser performance test method, system and terminal Active CN104182331B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310188132.7A CN104182331B (en) 2013-05-20 2013-05-20 Browser performance test method, system and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310188132.7A CN104182331B (en) 2013-05-20 2013-05-20 Browser performance test method, system and terminal

Publications (2)

Publication Number Publication Date
CN104182331A CN104182331A (en) 2014-12-03
CN104182331B true CN104182331B (en) 2018-04-27

Family

ID=51963398

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310188132.7A Active CN104182331B (en) 2013-05-20 2013-05-20 Browser performance test method, system and terminal

Country Status (1)

Country Link
CN (1) CN104182331B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018142588A1 (en) * 2017-02-03 2018-08-09 楽天株式会社 Information processing device, information processing method, program, and storage medium
CN107861875B (en) * 2017-11-15 2021-02-05 北京中电普华信息技术有限公司 Simulation method and system for hybrid mobile application
CN108399129B (en) * 2018-02-28 2021-03-23 车智互联(北京)科技有限公司 H5 page performance detection method
CN110134609A (en) * 2019-05-20 2019-08-16 广东电网有限责任公司 Enterprise-level web application system page method for testing performance, device and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102346781A (en) * 2011-10-18 2012-02-08 北龙中网(北京)科技有限责任公司 Webpage access control method and device
CN102681874A (en) * 2012-05-14 2012-09-19 腾讯科技(深圳)有限公司 Method and device for ensuring normal running of software
CN104123210A (en) * 2013-04-26 2014-10-29 腾讯科技(深圳)有限公司 Method, device and system for testing performance of browser

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9892650B2 (en) * 2006-09-11 2018-02-13 Houghton Mifflin Harcourt Publishing Company Recovery of polled data after an online test platform failure

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102346781A (en) * 2011-10-18 2012-02-08 北龙中网(北京)科技有限责任公司 Webpage access control method and device
CN102681874A (en) * 2012-05-14 2012-09-19 腾讯科技(深圳)有限公司 Method and device for ensuring normal running of software
CN104123210A (en) * 2013-04-26 2014-10-29 腾讯科技(深圳)有限公司 Method, device and system for testing performance of browser

Also Published As

Publication number Publication date
CN104182331A (en) 2014-12-03

Similar Documents

Publication Publication Date Title
US9462495B2 (en) System and method for evaluating performance of concurrent mobile services of mobile devices
CN104965848B (en) A kind of front end resource loading method and device
CN105528229B (en) Improve the method and device that mobile terminal first powers on speed
CN104618316B (en) Safe verification method, device and system
CN104424241B (en) Web site url processing method based on two dimensional code, apparatus and system
CN105472694B (en) Method, device, terminal and storage medium for accessing WiFi through scanning two-dimensional code
CN104333643B (en) Add the method for contact person, system and terminal
CN105049319A (en) Friend adding method and system, client, and server
CN104796385A (en) Terminal binding method, device and system
WO2011095914A1 (en) Systems, methods, and apparatuses for facilitating distribution of firmware updates
CN104182331B (en) Browser performance test method, system and terminal
CN106326091A (en) Browser webpage compatibility detection method and system
CN104394600A (en) Method and device for transmitting files
CN105657781B (en) WiFi network access method and device
CN105320616A (en) External device control method and device
CN105653195B (en) Screenshotss method and mobile terminal
CN105704106B (en) A kind of visualization IVR implementation method and mobile terminal
CN106294707A (en) A kind of countdown information output intent and device
CN106095132B (en) Playback equipment keypress function setting method and device
CN104980793B (en) A kind of method and terminal of video detection
CN106598821A (en) Webpage loading speed test method and device
CN105512542B (en) Data inputting method and device
CN107948904A (en) The method, apparatus and computer-readable recording medium of speaker degradation
CN106294388A (en) A kind of method of page presentation and terminal
CN106302002A (en) Method of testing and device

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

Effective date of registration: 20221201

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 518000

Patentee after: Shenzhen Yayue Technology Co.,Ltd.

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

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

TR01 Transfer of patent right