CN104182331A - Browser performance test method, browser performance test system and terminal - Google Patents

Browser performance test method, browser performance test system and terminal Download PDF

Info

Publication number
CN104182331A
CN104182331A CN201310188132.7A CN201310188132A CN104182331A CN 104182331 A CN104182331 A CN 104182331A CN 201310188132 A CN201310188132 A CN 201310188132A CN 104182331 A CN104182331 A CN 104182331A
Authority
CN
China
Prior art keywords
test page
browser
measured
test
page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310188132.7A
Other languages
Chinese (zh)
Other versions
CN104182331B (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 browser performance test method, a browser performance test system and a terminal, and belongs to the field of test. The method comprises the following steps that an input test page address is received, and in addition, a request for obtaining a test page is sent to a server so that the server sends the test page to the terminal; a browser to be tested operates the received test page, the test page operation includes the operation from the test page loading beginning by the browser to be tested to the test page content display after the loading completion; when the test page operation time by the browser is longer than the preset time, a jumping script pre-inserted into test page is executed, the request for obtaining the test page is sent to the server according to the information of a next test page specified in the jumping script, and in addition, the browser to be tested operates the next test page sent by the server. The browser performance test method, the browser performance test system and the terminal have the advantages that the mode that the browser automatically and cyclically operates the test page is adopted, so that in the browser performance test process, the test page can be fast obtained for testing, and the test efficiency is improved.

Description

Browser performance method of testing, system and terminal
Technical field
The present invention relates to browser technology field, particularly a kind of browser performance method of testing, system and terminal.
Background technology
At present, along with the develop rapidly of Internet technology, browser becomes the important tool of obtaining the network information.Browser is widely used on electronic equipments such as PC, Digital Television, mobile phone.In the process of Development of Web Browser, often need to carry out contrast test to the performance of different browsers, such as the compatibility of browser, security, stability, system resource occupancy, the index of opening the reflection performances such as speed of webpage are tested, with the weak point of finding that browser performance exists, be convenient to the performance of browser further to optimize.
In the more existing method that browser performance is tested, mostly by tester, manually carry out browser performance test, need tester to use the browser page that each website of accessing provides one by one, to obtain test result.Adopt this method of testing, often need manually for a long time, repeatedly to carry out page access operation or wait for load page, cause testing efficiency extremely low.In addition, this method of testing is when contrast different browsers performance, particularly contrast different browsers in long-play process during stability, for example, because the environment in the time of can not guaranteeing to test (, the running environment of browser) and test web page contents (for example, the website of browser access and the webpage of website) etc. test condition in full accord, so the quality of the different browser performance of contrast just can not be well described.
Summary of the invention
The invention provides a kind of browser performance method of testing, system and terminal, to solve in browser performance test process, the problem such as testing efficiency is lower.
Particularly, the embodiment of the present invention provides a kind of browser performance method of testing, described method, comprise: the test page address that receives input, and according to test page address, to server, send the request of obtaining test page, so that server sends to terminal according to request by the corresponding test page in test page address; Receive test page, and make browser execution test page to be measured, operation test page comprises the content of demonstration test page from browser to be measured starts to load test page and completes to loading; When the time of browser execution test page to be measured is greater than Preset Time, carry out the redirect script inserting in advance in test page, according to the information of the next test page of appointment in redirect script, to server, send the request of obtaining test page, so that server sends to terminal according to request by next test page, and make the next test page of browser execution to be measured.
In addition, the embodiment of the present invention provides a kind of terminal, described terminal, comprise: page acquisition module, page operation module and redirect module, page acquisition module, for receiving the test page address of input, and to server, send the request of obtaining test page according to test page address, so that server sends to terminal according to request by the corresponding test page in test page address; Page operation module, for receiving test page, and makes browser execution test page to be measured, and operation test page comprises the content of demonstration test page from browser to be measured starts to load test page and completes to loading; Redirect module, for when the time of browser execution test page to be measured is greater than Preset Time, carry out the redirect script inserting in advance in test page, according to the information of the next test page of appointment in redirect script, to server, send the request of obtaining test page, so that server sends to terminal according to request by next test page, and make the next test page of browser execution to be measured.
In addition, the embodiment of the present invention provides a kind of browser performance test macro, and described system, comprising: at least one terminal and server; Described terminal comprises page acquisition module, page operation module and redirect module; Described server comprises test page sending module; Page acquisition module, for receiving the test page address of input, and sends the request of obtaining test page to server according to test page address; Test page sending module, for sending to terminal according to request by the corresponding test page in test page address; Page operation module, for receiving test page, and makes browser execution test page to be measured, and operation test page comprises the content of demonstration test page from browser to be measured starts to load test page and completes to loading; Redirect module, for when the time of browser execution test page to be measured is greater than Preset Time, carry out the redirect script inserting in advance in test page, according to the information of the next test page of appointment in redirect script, to server, send the request of obtaining test page, so that the test page sending module of server sends to terminal according to request by next test page, and make the next test page of browser execution to be measured.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
Time by the test page that provides at browser execution server to be measured is greater than Preset Time, carry out the redirect script inserting in advance in test page, according to the information of the next test page of appointment in redirect script, from server, obtain next test page for browser execution to be measured, so that browser to be measured can circular flow test page.Solved in browser performance test process, the problems such as testing efficiency is lower, adopt the mode of browser automatic cycling operating test page, thereby make in browser performance test process, can test by quick obtaining test page, improved testing efficiency.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to better understand technological means of the present invention, and can be implemented according to the content of instructions, and for above and other object of the present invention, feature and advantage can be become apparent, below especially exemplified by preferred embodiment, and coordinate accompanying drawing, be described in detail as follows.
Accompanying drawing explanation
Fig. 1 is the method flow diagram of the browser performance method of testing that provides of one embodiment of the invention;
Fig. 2 A is the method flow diagram of the browser performance method of testing that provides of another embodiment of the present invention;
Fig. 2 B carries out the schematic diagram of cycling jump insert redirect script in each test page after between test page;
Fig. 3 A is the method flow diagram of the browser performance method of testing that provides of another embodiment of the present invention;
Fig. 3 B is the schematic diagram of the partial page of a website;
Fig. 4 is the main block architecture diagram of the terminal that provides of one embodiment of the invention;
Fig. 5 is the main block architecture diagram of the terminal that provides of another embodiment of the present invention;
Fig. 6 is the main block architecture diagram of the terminal that provides of another embodiment of the present invention;
Fig. 7 is a kind of structured flowchart of terminal;
Fig. 8 is the running environment schematic diagram of the browser performance test macro that provides of the embodiment of the present invention;
Fig. 9 is the main block architecture diagram of the browser performance test macro that provides of one embodiment of the invention;
Figure 10 is the main block architecture diagram of the browser performance test macro that provides of another embodiment of the present invention;
Figure 11 is the main block architecture diagram of the browser performance test macro that provides of another embodiment of the present invention.
Embodiment
For further setting forth the present invention, reach technological means and the effect that predetermined goal of the invention is taked, below in conjunction with accompanying drawing and preferred embodiment, its embodiment of browser performance method of testing, system and terminal, structure, feature and effect to proposing according to the present invention, be described in detail as follows.
Relevant aforementioned and other technology contents of the present invention, Characteristic, can clearly present in following cooperation in describing in detail with reference to graphic preferred embodiment.By the explanation of embodiment, when can be to reach technological means and the effect that predetermined object takes to be able to more deeply and concrete understanding to the present invention, yet appended graphic being only to provide with reference to the use with explanation be not used for the present invention to be limited.
Please refer to Fig. 1, it shows the method flow diagram of the browser performance method of testing that one embodiment of the invention provides.Described browser performance method of testing, can comprise the following steps 101-105:
Step 101, receives the test page address of input, and according to test page address, to server, sends the request of obtaining test page, so that server sends to terminal according to request by the corresponding test page in test page address.
For example, if being installed in terminal (mobile terminal), browser to be measured carries out performance test, user can input at the address field of terminal browser the address of a test page, also can automatically at the address field of terminal browser, input the address of a test page, after having inputted, click and determine, just the request of obtaining test page can be sent to server with this test page address, with this corresponding test page in test page address of acquisition request.
Step 103, receives test page, and makes browser execution test page to be measured, and operation test page comprises the content of demonstration test page from browser to be measured starts to load test page and completes to loading.
Step 105, when the time of browser execution test page to be measured is greater than Preset Time, carry out the redirect script inserting in advance in test page, according to the information of the next test page of appointment in redirect script, to server, send the request of obtaining test page, so that server sends to terminal according to request by next test page, and make the next test page of browser execution to be measured.
The information of next test page can comprise the information such as address of next test page.
In sum, the browser performance method of testing that the present embodiment provides, time by the test page that provides at browser execution server to be measured is greater than Preset Time, carry out the redirect script inserting in advance in test page, according to the information of the next test page of appointment in redirect script, from server, obtain next test page for browser execution to be measured, so that browser to be measured can circular flow test page.Solved in browser performance test process, the problems such as testing efficiency is lower, adopt the mode of browser automatic cycling operating test page, thereby make in browser performance test process, can test by quick obtaining test page, improved testing efficiency.
Please refer to Fig. 2, it shows the method flow diagram of the browser performance method of testing that another embodiment of the present invention provides.Fig. 2 improves on the basis of Fig. 1.Described browser performance method of testing, can comprise the following steps 201-213:
Step 201, receives the test page address of input, and according to test page address, to server, sends the request of obtaining test page, so that server sends to terminal according to request by the corresponding test page in test page address.
For example, if being installed in terminal (mobile terminal), browser to be measured carries out performance test, user can input at the address field of terminal browser the address of a test page, also can automatically at the address field of terminal browser, input the address of a test page, after having inputted, click and determine, just the request of obtaining test page can be sent to server with this test page address, with this corresponding test page in test page address of acquisition request.
Described test page address can be predefined, if in the time of therefore will comparing the height of different browsers stability, because the content of predefined test page is consistent completely, therefore can compare more accurately the quality of different browsers performance.
Step 203, receives this test page, and makes this test page of browser execution to be measured, moves the content that this test page comprises demonstration test page from browser to be measured starts to load test page and completes to loading.
In the process of operation, also carry out script working time arranging in advance in test page: be even greater than Preset Time the working time of each test page and carry out redirect script, as described in step 205,209.In addition, the process of moving this test page also can comprise according to actual needs from server transmission test page to terminal, to browser to be measured, starts to load test page to the process that has loaded the content of rear demonstration test page.The process that loads test page comprises browser resolves test page, and the content such as loading scripts, word, picture.
Step 205, judges whether the time of browser execution test page to be measured is greater than Preset Time, if so, carry out step 209.
Preferably, in step 205, also can comprise: if not, carry out step 207.
Step 207, if browser to be measured completes loading test page, and show the content of the test page having been loaded, make browser to be measured continue to show the content of the test page having been loaded, if test page has not loaded, make browser to be measured proceed to load test page, and carry out step 205.
Step 209, the redirect script that execution is inserted in advance in test page, according to the information of the next test page of appointment in redirect script, to server, send the request of obtaining test page, so that server sends to terminal according to request by next test page, and make this next test page of browser execution to be measured.
The information of next test page can comprise the information such as address of next test page.
Illustrate, if current test page is the A page as shown in Figure 2 B, the redirect script inserting in advance in the A page will jump to the B page for next step, when the time of the browser execution A page to be measured is greater than Preset Time, automatically perform this redirect script, to server, send the request of obtaining the B page, server sends to terminal according to request by the B page, and makes the browser to be measured of terminal jump to the B page.
Whether step 211, detect browser to be measured and occur to dodge and move back, and generate detection signal, if so, carry out step 213, if not, carry out step 209.
Sudden strain of a muscle is moved back, and to be browser exit because terminal low memory or browser occur that the situations such as logic error are closed.The logic error of browser, such as thinking code, function mistake of browser etc.
Step 213, the detection signal that browser to be measured is occurred to generate when sudden strain of a muscle is moved back sends to opertaing device, so that opertaing device is according to this detection signal, make to set in advance in the script for browser adjusting in terminal and restart browser, browser to be measured moves back the test page of front operation address according to sudden strain of a muscle sends the request of obtaining test page to server again, and record browser generation to be measured and dodge the information while moving back, in carry out step 201 again so that server, according to request, sends to the corresponding test page in test page address the step of terminal.
The address that the on-the-spot restore funcitons assembly of browser to be measured can move back the test page of front operation according to sudden strain of a muscle sends to server the request obtain test page again.Particularly, can control in advance the on-the-spot restore funcitons assembly of browser to be measured and open, the on-the-spot restore funcitons assembly of browser to be measured just can move back the request that the address of the test page of front operation obtains test page to server transmission again according to sudden strain of a muscle.Certainly, in embodiments of the present invention, also can control according to actual needs browser to be measured moves back the test page of front operation address according to sudden strain of a muscle and again to server, send the request obtain test page.
For example, if terminal and the opertaing device of test browser performance are merged into an equipment (terminal), preferably, in step 213, also can comprise: if browser to be measured occurs to dodge, move back, according to browser to be measured, there is the detection signal generating when sudden strain of a muscle is moved back, make to set in advance in the script for browser adjusting in terminal and restart browser to be measured, browser to be measured moves back the test page of front operation address according to sudden strain of a muscle again sends and obtains the request of test page to server, and records browser generation to be measured and dodge the information while moving back.
There is to dodge the information while moving back in the browser to be measured of record, such as can comprise dodge terminal while moving back internal memory service condition (occupancy), dodge the test page information opened while moving back, dodge whether browser to be measured while moving back occurs logic error (such as function or code error) and the logic error information (occurring wrong such as concrete which function or which section code) that occurs etc. at least one.
Information recording when generation sudden strain of a muscle can be moved back, in the daily record of terminal, moves back situation so that user checks the sudden strain of a muscle of browser to be measured.By dodging in the contrast unit interval, move back number of times and can infer and different browsers at the height of the stability aspect page browsing.
Because the present invention tests the terminal of browser performance and is provided with the same network bandwidth, and the web page contents of testing also can be set to be all consistent, therefore can compare more accurately the quality of different browsers performance.
In sum, the browser performance method of testing that the present embodiment provides, time by the test page that provides at browser execution server to be measured is greater than Preset Time, carry out the redirect script inserting in advance in test page, according to the information of the next test page of appointment in redirect script, from server, obtain next test page for browser execution to be measured, so that browser to be measured can circular flow test page.Solved in browser performance test process, the problems such as testing efficiency is lower, adopt the mode of browser automatic cycling operating test page, thereby make in browser performance test process, can test by quick obtaining test page, improved testing efficiency.
In addition, the present embodiment is also by occurring to dodge while moving back browser to be measured being detected, can make to set in advance in the script for browser adjusting in terminal and restart browser to be measured, the address that browser to be measured moves back the test page of front operation according to sudden strain of a muscle obtains test page from server again, can also record browser to be measured information while moving back occurs to dodge.Can also be by occur dodging while moving back browser being detected, browser to be measured can be there is to dodge the detection signal generating while moving back and send to opertaing device, so that according to detection signal, making to set in advance in the script for browser adjusting in terminal, opertaing device restarts browser to be measured.Thereby occur when sudden strain of a muscle is moved back also can automatically recover at browser to be measured, further improved testing efficiency, also can facilitate user to check that the sudden strain of a muscle of browser moves back situation, by dodging in the contrast unit interval, move back number of times and can infer and different browsers at the height of the stability aspect page browsing, can also realize and by opertaing device, carry out Long-distance Control browser and occur to dodge the reboot operation while moving back, be more convenient for test operation.
Please refer to Fig. 3, it shows the method flow diagram of the browser performance method of testing that another embodiment of the present invention provides.Fig. 3 improves on the basis of Fig. 2, and it is similar to the method shown in Fig. 2, and its difference is, also comprises: step 301 is to 305, and particularly, described browser performance method of testing, can comprise the following steps 301-319:
Step 301, in advance all test pages of download test station point.
Terminal can control browser or download tool is downloaded all test pages of all test station preserve.The test page of test station and test station all can be set according to actual needs and in advance.Such as test station, can be set as the websites such as Sohu, Netease, test page can be set as all peer link pages of the websites such as Sohu, Netease, comprise the information such as picture, word, be the partial page of a website as shown in Figure 3 B, a url page face in this page comprises clicks rear the opened page of headline 330.
The method of downloading test page specifically can be as follows: employing is in advance recorded instrument the downloading process of a test page is recorded, like this when downloading other test page, the downloading process that the instrument of recording is recorded is carried out playback, and terminal just can be controlled browser or download tool and automatically according to the downloading process of playback, download other test page.The downloading process of the test page that the instrument of for example recording is recorded is: the address of first inputting a test page in the address field of browser, click and determine so that browser loads test page, after this test page has loaded in browser, then download and preserve this test page.While downloading other test page, just can, according to the above-mentioned downloading process of playback, according to the address list of other test page providing, automatically other test page be downloaded and be preserved.
Step 303, revises the test page of downloading.
Revise the test page of downloading and can in the test page of each download, insert redirect script and script working time is set, if working time, script comprised that being greater than Preset Time the working time of each test page carries out redirect script.The content temporal summation used that comprises demonstration test page from browser starts to load test page and completes to loading working time, this redirect script is used to specify the information that next step jumps to next test page.
After loading completes, the content of demonstration test page is after test page has loaded, and the content of test page is shown in browser.There are now a lot of Webpages to load progress bar on the net.For example, when inquiry mass data, Webpage loads slower, when Webpage loads, and progress displaying bar, when Webpage has loaded, progress bar disappears, the content that the display web page page has loaded.
Redirect script can be javascript script.The information of next test page can comprise the information such as address of next test page.
Illustrate the process of inserting redirect script in each test page, as shown in Figure 2 B, if preset from A page jump to the B page, from B page jump to the C page, need in the A page, insert redirect script specifies next step to jump to the B page, in the B page, insert redirect script and specify next step will jump to the C page, and in the C page, also will insert redirect script and specify next step will jump to which page.The redirect of the magnanimity page just need to be revised test page one by one to specify next step will jump to which page, finally forms a circulation as shown in Figure 2 B.
If set, be greater than Preset Time the working time of each test page, carry out redirect script, namely set the working time of each test page, after working time, carry out redirect script.Preset Time can carry out respective settings, for example 8 seconds according to actual needs.Be working time of test page to be greater than 8 seconds to carry out redirect script, reach 8 seconds the working time of test page and can comprise two kinds of situations, a kind of, be if that test page loading is slower, reaching 8 seconds test pages has not loaded yet, if being test page, another kind loads comparatively fast, be less than 8 seconds and just can have loaded, and after loading completes, show the content of test page, from starting to load test page and completing to loading, the content time used of demonstration test page reaches 8 seconds.Under both of these case, reach 8 seconds working time that all meets test page.In the first situation after 8 seconds, no longer current test page is loaded, but directly jump to the next test page of operation, until browser moves back because terminal low memory or browser occur that the situations such as logic error occur to dodge, in the second situation after 8 seconds, also no longer show the content of the test page that current loading completes, but directly jump to the next test page of operation, until browser moves back because terminal low memory or browser occur that the situations such as logic error occur to dodge.Sudden strain of a muscle is moved back, and to be browser exit because terminal low memory or browser occur that the situations such as logic error are closed.The logic error of browser, such as thinking code, function mistake of browser etc.
Step 305, sends to server by amended test page and stores, and is provided for having adjusted the script of browser, the address that the memory location of test page on server is test page, and perform step 307.
Preferably, in step 305, also can comprise: the on-the-spot restore funcitons assembly that starts browser to be measured.
The assembly that the on-the-spot restore funcitons assembly of browser to be measured is existing browser, if start this assembly, at browser because of after dodging and moving back and be restarted, can preserve the test page address of last time, and automatic address of moving back the test page of front operation according to sudden strain of a muscle sends the request of obtaining test page to server again.
A test page can leave in a file, and file can a corresponding network address, and any one test page has a corresponding test address (being network address).
The browser to be measured of take is for example installed in, in terminal (mobile terminal) and carries out performance test as example, and after amended test page is sent to server and stores, terminal can be provided for having adjusted the script of browser thereon.For example, by wired mode (USB connect) or for example, by wireless mode (SSH, Secure Shell, safety shell protocol), connect terminal and opertaing device (such as desktop computer or notebook etc.) again, make the opertaing device can remote control terminal.
As above after arranging, whether terminal can detect browser to be measured and occur to dodge and move back, and generate detection signal, when browser generation sudden strain of a muscle to be measured is moved back, the detection signal that terminal occurs that browser to be measured generate when sudden strain of a muscle is moved back sends to opertaing device, opertaing device is according to detection signal, makes to set in advance in the script for browser adjusting in terminal to restart browser to be measured.
Certainly, in embodiments of the present invention, terminal and opertaing device also can merge according to actual needs becomes an equipment.An if equipment (a for example synthetic terminal device), whether terminal detects browser to be measured and occurs to dodge and move back, and generate detection signal, when browser generation sudden strain of a muscle to be measured is moved back, there is to dodge the detection signal generating while moving back in terminal, makes to set in advance in the script for browser adjusting in terminal to restart browser to be measured according to browser to be measured.
Step 307 is identical to step 213 with the step 201 in Fig. 2 embodiment respectively to step 319, specifically please refer to description corresponding to above-mentioned Fig. 2 embodiment.
In sum, the browser performance method of testing that the present embodiment provides, time by the test page that provides at browser execution server to be measured is greater than Preset Time, carry out the redirect script inserting in advance in test page, according to the information of the next test page of appointment in redirect script, from server, obtain next test page for browser execution to be measured, so that browser to be measured can circular flow test page.Solved in browser performance test process, the problems such as testing efficiency is lower, adopt the mode of browser automatic cycling operating test page, thereby make in browser performance test process, can test by quick obtaining test page, improved testing efficiency.
In addition, the present embodiment is also by occurring to dodge while moving back browser to be measured being detected, can make to set in advance in the script for browser adjusting in terminal and restart browser to be measured, the address that browser to be measured moves back the test page of front operation according to sudden strain of a muscle obtains test page from server again, can also record browser to be measured information while moving back occurs to dodge.Can also be by occur dodging while moving back browser being detected, browser to be measured can be there is to dodge the detection signal generating while moving back and send to opertaing device, so that according to detection signal, making to set in advance in the script for browser adjusting in terminal, opertaing device restarts browser to be measured.Thereby occur when sudden strain of a muscle is moved back also can automatically recover at browser to be measured, further improved testing efficiency, also can facilitate user to check that the sudden strain of a muscle of browser moves back situation, by dodging in the contrast unit interval, move back number of times and can infer and different browsers at the height of the stability aspect page browsing, can also realize and by opertaing device, carry out Long-distance Control browser and occur to dodge the reboot operation while moving back, be more convenient for test operation.
Also pass through all test pages of download test station point in advance, and revise the test page download, in the test page of each download, insert redirect script and script working time is set, and amended test page sends to server and stores, and be provided for having adjusted the script of browser, the address that the memory location of test page on server is test page.Owing to having adopted the as above various establishing methods before test, so guaranteed that the terminal of testing browser performance is provided with the same network bandwidth, and it is all consistent that the web page contents of testing also can be set to, therefore can compare more accurately the quality of different browsers performance.
Be below device embodiment of the present invention, the details of detailed description not in device embodiment, can be with reference to the embodiment of the method for above-mentioned correspondence.
Please refer to Fig. 4, it shows the main block architecture diagram of the terminal that one embodiment of the invention provides.Described terminal, comprising: page acquisition module 401, page operation module 403 and redirect module 405.
Particularly, page acquisition module 401, for receiving the test page address of input, and sends the request of obtaining test page, so that server sends to terminal according to request by the corresponding test page in test page address to server according to test page address;
Page operation module 403, for receiving test page, and makes browser execution test page to be measured, and operation test page comprises the content of demonstration test page from browser to be measured starts to load test page and completes to loading;
Redirect module 405, for when the time of browser execution test page to be measured is greater than Preset Time, carry out the redirect script inserting in advance in test page, according to the information of the next test page of appointment in redirect script, to server, send the request of obtaining test page, so that server sends to terminal according to request by next test page, and make the next test page of browser execution to be measured.
Preferably, redirect module 405, while being also not more than Preset Time for the time at browser execution test page to be measured, if browser to be measured completes loading test page, and show the content of the test page having been loaded, make browser to be measured continue to show the content of the test page having been loaded, if test page has not loaded, make browser to be measured proceed to load test page.
In sum, the terminal that the present embodiment provides, time by the test page that provides at browser execution server to be measured is greater than Preset Time, carry out the redirect script inserting in advance in test page, according to the information of the next test page of appointment in redirect script, from server, obtain next test page for browser execution to be measured, so that browser to be measured can circular flow test page.Solved in browser performance test process, the problems such as testing efficiency is lower, adopt the mode of browser automatic cycling operating test page, thereby make in browser performance test process, can test by quick obtaining test page, improved testing efficiency.
Please refer to Fig. 5, it shows the main block architecture diagram of the terminal that another embodiment of the present invention provides.It is similar to the terminal shown in Fig. 4, and its difference is, also comprises: detection module 507 and control module 509.
Page acquisition module 501, page operation module 503 and redirect module 505 are corresponding identical with page acquisition module 401, page operation module 403 and redirect module 405 in Fig. 4 embodiment respectively, specifically please refer to description corresponding to above-mentioned Fig. 4 embodiment.
Whether detection module 507, occur to dodge for detection of browser to be measured and move back, and generate detection signal;
Control module 509, if move back for occurring to dodge, according to browser to be measured, there is the detection signal generating when sudden strain of a muscle is moved back, make to set in advance in the script for browser adjusting in terminal and restart browser to be measured, browser to be measured moves back the test page of front operation address according to sudden strain of a muscle again sends and obtains the request of test page to server, and records browser generation to be measured and dodge the information while moving back.
Preferably, control module 509, if also occur to dodge for browser to be measured, move back, browser to be measured be there is to dodge the detection signal generating while moving back and send to opertaing device, so that opertaing device is according to detection signal, make to set in advance in the script for browser adjusting in terminal and restart browser to be measured, browser to be measured moves back the test page of front operation address according to sudden strain of a muscle again sends and obtains the request of test page to server, and records browser to be measured information while moving back occurs to dodge.
The information that browser to be measured occurs to dodge while moving back comprises the test page information of opening when memory usage, the sudden strain of a muscle of terminal when sudden strain of a muscle is moved back are moved back and dodges at least one in the logic error information that while moving back, browser to be measured occurs.
In sum, the terminal that the present embodiment provides, also by occurring to dodge while moving back browser to be measured being detected, can make to set in advance in the script for browser adjusting in terminal and restart browser to be measured, the address that browser to be measured moves back the test page of front operation according to sudden strain of a muscle obtains test page from server again, can also record browser to be measured information while moving back occurs to dodge.Can also be by occur dodging while moving back browser being detected, browser to be measured can be there is to dodge the detection signal generating while moving back and send to opertaing device, so that according to detection signal, making to set in advance in the script for browser adjusting in terminal, opertaing device restarts browser to be measured.Thereby occur when sudden strain of a muscle is moved back also can automatically recover at browser to be measured, further improved testing efficiency, also can facilitate user to check that the sudden strain of a muscle of browser moves back situation, by dodging in the contrast unit interval, move back number of times and can infer and different browsers at the height of the stability aspect page browsing, can also realize and by opertaing device, carry out Long-distance Control browser and occur to dodge the reboot operation while moving back, be more convenient for test operation.
Please refer to Fig. 6, it shows the main block architecture diagram of the terminal that another embodiment of the present invention provides.It is similar to the terminal shown in Fig. 5, and its difference is, also comprises: module 611 is set.
Page acquisition module 601, page operation module 603, redirect module 605, detection module 607 and control module 609 are corresponding identical with page acquisition module 501, page operation module 503 and redirect module 505, detection module 507 and control module 509 in Fig. 5 embodiment respectively, specifically please refer to description corresponding to above-mentioned Fig. 5 embodiment.
Module 611 is set, for all test pages of download test station point in advance; Revise the test page of downloading, in the test page of each download, insert redirect script and script working time is set, if working time, script comprised that being greater than Preset Time the working time of each test page carries out redirect script, the content temporal summation used that comprises demonstration test page from browser to be measured starts to load test page and completes to loading working time, redirect script is used to specify next step information that jumps to next test page; Amended test page is sent to server and store, and be provided for having adjusted the script of browser, the address that the memory location of test page on server is test page.
In sum, the terminal that the present embodiment provides, also pass through all test pages of download test station point in advance, and revise the test page download, in the test page of each download, insert redirect script and script working time is set, and amended test page sends to server and store, and be provided for having adjusted the script of browser, the address that the memory location of test page on server is test page.Owing to having adopted the as above various establishing methods before test, so guaranteed that the terminal of testing browser performance is provided with the same network bandwidth, and it is all consistent that the web page contents of testing also can be set to, therefore can compare more accurately the quality of different browsers performance.
Please refer to Fig. 7, it shows a kind of structured flowchart of terminal.As shown in Figure 7, terminal comprises storer 702, memory controller 704, one or more (only illustrating one in figure) processor 706, Peripheral Interface 708, radio-frequency module 710, photographing module 714, audio-frequency module 716, Touch Screen 718 and key-press module 720.These assemblies are by the mutual communication of one or more communication bus/signal wire.
Be appreciated that the structure shown in Fig. 7 is only signal, terminal also can comprise than assembly more shown in Fig. 7 or still less, or have and configurations different shown in Fig. 7.Each assembly shown in Fig. 7 can adopt hardware, software or its combination to realize.
Storer 702 can be used for storing software program and module, as the programmed instruction/module corresponding to method of carrying out browser performance test in terminal in the embodiment of the present invention, processor 702 is stored in software program and the module in storer 704 by operation, thereby carry out the application of various functions and data processing, realize the above-mentioned method of browser performance test of carrying out in terminal.
Storer 702 can comprise high speed random access memory, also can comprise nonvolatile memory, as one or more magnetic storage device, flash memory or other non-volatile solid state memories.In some instances, storer 702 can further comprise the storer with respect to processor 706 long-range settings, and these remote memories can be connected to terminal by network.The example of above-mentioned network includes but not limited to internet, intranet, LAN (Local Area Network), mobile radio communication and combination thereof.Processor 706 and other possible assemblies can carry out the access of storer 702 under the control of memory controller 704.
Peripheral Interface 708 is coupled to CPU and storer 702 by various input/output devices.Various softwares in processor 706 run memories 702, instruction are to carry out the various functions of terminal and to carry out data processing.
In certain embodiments, Peripheral Interface 708, processor 706 and memory controller 704 can be realized in one single chip.In some other example, they can be respectively realized by chip independently.
Radio-frequency module 710, for receiving and sending electromagnetic wave, is realized the mutual conversion of electromagnetic wave and electric signal, thereby is carried out communication with communication network or other equipment.Radio-frequency module 710 can comprise various existing for carrying out the circuit component of these functions, for example, and antenna, radio-frequency (RF) transceiver, digital signal processor, encrypt/decrypt chip, subscriber identity module (SIM) card, storer etc.Radio-frequency module 710 can carry out communication or carry out communication by wireless network and other equipment as internet, intranet, wireless network with diverse network.Above-mentioned wireless network can comprise cellular telephone networks, WLAN (wireless local area network) or Metropolitan Area Network (MAN).Above-mentioned wireless network can be used various communication standards, agreement and technology, include, but are not limited to global system for mobile communications (Global System for Mobile Communication, GSM), enhancement mode mobile communication technology (Enhanced Data GSM Environment, EDGE), Wideband CDMA Technology (wideband code division multiple access, W-CDMA), CDMA (Code Division Multiple Access) (Code division access, CDMA), tdma (time division multiple access, TDMA), bluetooth, adopting wireless fidelity technology (Wireless, Fidelity, WiFi) (as the standard IEEE 802.11a of IEEE-USA, IEEE802.11b, IEEE802.11g and/or IEEE802.11n), the networking telephone (Voice over internet protocal, VoIP), worldwide interoperability for microwave access (Worldwide Interoperability for Microwave Access, Wi-Max), other are for mail, the agreement of instant messaging and short message, and any other suitable communications protocol, even can comprise those current agreements being developed not yet.
Photographing module 714 is for taking pictures or video.Photo or the video taken can be stored in storer 702, and can send by radio-frequency module 710.
Audio-frequency module 716 provides audio interface to user, and it can comprise one or more microphones, one or more loudspeaker and voicefrequency circuit.Voicefrequency circuit receives voice data from Peripheral Interface 708, and voice data is converted to telecommunications breath, and telecommunications breath is transferred to loudspeaker.Loudspeaker changes by telecommunications breath the sound wave that can hear into people's ear.Voicefrequency circuit also receives telecommunications breath from microphone, converts electrical signals to voice data, and by data transmission in network telephony in Peripheral Interface 708 to be further processed.Voice data can obtain from storer 702 or by radio-frequency module 710.In addition, voice data also can be stored in storer 702 or by radio-frequency module 710 and send.In some instances, audio-frequency module 716 also can comprise that an earphone broadcasts hole, for providing audio interface to earphone or other equipment.
Touch Screen 718 provides an output and inputting interface between terminal and user simultaneously.Particularly, Touch Screen 718 is to the output of user's display video, and the content of these video outputs can comprise word, figure, video and combination in any thereof.Some Output rusults are corresponding to some user interface object.Touch Screen 718 also receives user's input, such as gesture operations such as user's click, slips, so that user interface object is made response to these users' input.The technology that detects user's input can be based on resistance-type, condenser type or other any possible touch control detection technology.The instantiation of Touch Screen 718 display units includes, but are not limited to liquid crystal display or light emitting polymer display.
The interface that key-press module 720 provides user to input to terminal equally, user can be by pressing different buttons so that terminal be carried out different functions.
Please refer to Fig. 8, it shows the running environment schematic diagram of the browser performance test macro that the embodiment of the present invention provides.As shown in Figure 8, whole system running environment can comprise server 800 and a plurality of terminal, and whole system running environment can also comprise opertaing device 801 according to actual needs.In the present embodiment, the plurality of terminal comprises first terminal 802, the second terminal 803, third terminal 805.First terminal 802, the second terminal 803, third terminal 805 can carry out communication by first network 807 and server 800, or carry out communication each other.First terminal 802, the second terminal 803, third terminal 805 can carry out communication by second network 809 and opertaing device 801, or carry out communication each other.The instantiation of first and second network includes, but are not limited to WLAN (wireless local area network) or mobile communication network.First and two networks can be also same network.Be appreciated that in Fig. 8 and also can comprise more terminal.
When operation, above-mentioned a plurality of terminals can be tested the performance of browser respectively simultaneously, to compare out the quality of different browsers performance.
Please refer to Fig. 9, it shows the main block architecture diagram of the browser performance test macro that one embodiment of the invention provides.Described system, comprising: at least one terminal and server.Wherein, each terminal comprises page acquisition module 901, page operation module 903 and redirect module 905.Server comprises test page sending module 921.
Page acquisition module 901, for receiving the test page address of input, and sends the request of obtaining test page to server according to test page address.
Test page sending module 921, for sending to terminal according to request by the corresponding test page in test page address.
Page operation module 903, for receiving test page, and makes browser execution test page to be measured, and operation test page comprises the content of demonstration test page from browser to be measured starts to load test page and completes to loading;
Redirect module 905, for when the time of browser execution test page to be measured is greater than Preset Time, carry out the redirect script inserting in advance in test page, according to the information of the next test page of appointment in redirect script, to server, send the request of obtaining test page, so that the test page sending module 921 of server sends to terminal according to request by next test page, and make the next test page of browser execution to be measured.
Preferably, redirect module 905, while being also not more than Preset Time for the time at browser execution test page to be measured, if browser to be measured completes loading test page, and show the content of the test page having been loaded, make browser to be measured continue to show the content of the test page having been loaded, if test page has not loaded, make browser to be measured proceed to load test page.
In sum, the browser performance test macro that the present embodiment provides, time by the test page that provides at browser execution server to be measured is greater than Preset Time, carry out the redirect script inserting in advance in test page, according to the information of the next test page of appointment in redirect script, from server, obtain next test page for browser execution to be measured, so that browser to be measured can circular flow test page.Solved in browser performance test process, the problems such as testing efficiency is lower, adopt the mode of browser automatic cycling operating test page, thereby make in browser performance test process, can test by quick obtaining test page, improved testing efficiency.
Please refer to Figure 10, it shows the main block architecture diagram of the browser performance test macro that another embodiment of the present invention provides.It is similar to the browser performance test macro shown in Fig. 9, and its difference is, described terminal also comprises: detection module 1007 and control module 1009.
Page acquisition module 1001, page operation module 1003, redirect module 1005 and test page sending module 1021 are corresponding identical with page acquisition module 901, page operation module 903, redirect module 905 and test page sending module 921 in Fig. 9 embodiment respectively, specifically please refer to description corresponding to above-mentioned Fig. 9 embodiment.
Whether detection module 1007, occur to dodge for detection of browser to be measured and move back, and generate detection signal;
Control module 1009, if move back for occurring to dodge, according to browser to be measured, there is the detection signal generating when sudden strain of a muscle is moved back, make to set in advance in the script for browser adjusting in terminal and restart browser to be measured, browser to be measured moves back the test page of front operation address according to sudden strain of a muscle again sends and obtains the request of test page to server, and records browser generation to be measured and dodge the information while moving back.
Preferably, described system can also comprise: opertaing device, described opertaing device comprises calling module 1032.
Control module 1009, if also occur to dodge for browser to be measured, move back, and the detection signal generating browser to be measured is occurred to dodge and send to opertaing device, and record browser generation to be measured and dodge the information while moving back while moving back.
The calling module 1032 of opertaing device, be used for according to detection signal, make to set in advance in the script for browser adjusting in terminal and restart browser to be measured, browser to be measured moves back the test page of front operation address according to sudden strain of a muscle sends the request of obtaining test page to server again.
In sum, the browser performance test macro that the present embodiment provides, also by occurring to dodge while moving back browser to be measured being detected, can make to set in advance in the script for browser adjusting in terminal and restart browser to be measured, the address that browser to be measured moves back the test page of front operation according to sudden strain of a muscle obtains test page from server again, can also record browser to be measured information while moving back occurs to dodge.Thereby occur when sudden strain of a muscle is moved back also can automatically recover at browser, further improved testing efficiency, also can facilitate user to check that the sudden strain of a muscle of browser moves back situation, by dodging in the contrast unit interval, move back number of times and can infer and different browsers at the height of the stability aspect page browsing.Also by occurring to dodge while moving back browser to be measured being detected, can make to set in advance in the script for browser adjusting in terminal and restart browser to be measured, the address that browser to be measured moves back the test page of front operation according to sudden strain of a muscle obtains test page from server again, can also record browser to be measured information while moving back occurs to dodge.Can also be by occur dodging while moving back browser being detected, browser to be measured can be there is to dodge the detection signal generating while moving back and send to opertaing device, so that according to detection signal, making to set in advance in the script for browser adjusting in terminal, opertaing device restarts browser to be measured.Thereby occur when sudden strain of a muscle is moved back also can automatically recover at browser to be measured, further improved testing efficiency, also can facilitate user to check that the sudden strain of a muscle of browser moves back situation, by dodging in the contrast unit interval, move back number of times and can infer and different browsers at the height of the stability aspect page browsing, can also realize and by opertaing device, carry out Long-distance Control browser and occur to dodge the reboot operation while moving back, be more convenient for test operation.
Please refer to Figure 11, it shows the main block architecture diagram of the browser performance test macro that another embodiment of the present invention provides.It is similar to the browser performance test macro shown in Figure 10, and its difference is, described terminal also comprises: module 1111 is set, and described server also comprises: memory module 1122.In addition, described system can also comprise according to actual needs: opertaing device as shown in figure 10, described opertaing device comprises calling module (the not shown opertaing device of Figure 11) as shown in figure 10.
Page acquisition module 1101, page operation module 1103, redirect module 1105, test page sending module 1121, detection module 1107, control module 1109 are corresponding similar with page acquisition module 1001, page operation module 1003, redirect module 1005, test page sending module 1021, detection module 1007, control module 1009 in Figure 10 embodiment respectively, specifically please refer to description corresponding to above-mentioned Figure 10 embodiment.
Module 1111 is set, for all test pages of download test station point in advance; Revise the test page of downloading, in the test page of each download, insert redirect script and script working time is set, if working time, script comprised that being greater than Preset Time the working time of each test page carries out redirect script, the content temporal summation used that comprises demonstration test page from browser to be measured starts to load test page and completes to loading working time, redirect script is used to specify next step information that jumps to next test page; Amended test page is sent to server and store, and be provided for having adjusted the script of browser;
Memory module 1122, for the test page after memory modify, the address that the memory location of test page on server is test page.
In sum, the browser performance test macro that the present embodiment provides, also pass through all test pages of download test station point in advance, and revise the test page download, in the test page of each download, insert redirect script and script working time is set, and amended test page sends to server and store, and be provided for having adjusted the script of browser, the address that the memory location of test page on server is test page.Owing to having adopted the as above various establishing methods before test, so guaranteed that the terminal of testing browser performance is provided with the same network bandwidth, and it is all consistent that the web page contents of testing also can be set to, therefore can compare more accurately the quality of different browsers performance.
In addition, the embodiment of the present invention also provides a kind of computer-readable recording medium, is stored with computer executable instructions, and above-mentioned computer-readable recording medium is for example for example CD, hard disk or flash memory of nonvolatile memory.Above-mentioned computer executable instructions is for allowing computing machine or similar arithmetic unit complete above-mentioned browser performance method of testing.
The above, it is only preferred embodiment of the present invention, not the present invention is done to any pro forma restriction, although the present invention discloses as above with preferred embodiment, yet not in order to limit the present invention, any those skilled in the art, do not departing within the scope of technical solution of the present invention, when can utilizing the technology contents of above-mentioned announcement to make a little change or being modified to the equivalent embodiment of equivalent variations, in every case be not depart from technical solution of the present invention content, any simple modification of above embodiment being done according to technical spirit of the present invention, equivalent variations and modification, all still belong in the scope of technical solution of the present invention.

Claims (16)

1. a browser performance method of testing, is characterized in that, described method comprises:
Receive the test page address of input, and to server, send the request of obtaining test page according to described test page address, so that described server sends to terminal according to described request by the corresponding test page in described test page address;
Receive described test page, and make test page described in browser execution to be measured, move the content that described test page comprises the described test page of demonstration from described browser to be measured starts to load described test page and completes to loading;
When the time of described browser execution test page to be measured is greater than Preset Time, carry out the redirect script inserting in advance in described test page, according to the information of the next test page of appointment in described redirect script, to described server, send the request of obtaining test page, so that server sends to described terminal according to described request by described next test page, and make next test page described in described browser execution to be measured.
2. browser performance method of testing according to claim 1, is characterized in that, described in make described in described browser execution to be measured, after next test page, also to comprise:
Detect described browser to be measured and whether occur to dodge and move back, and generate detection signal;
If occur, dodge and move back, according to described browser to be measured, there is the detection signal generating when sudden strain of a muscle is moved back, make to set in advance in the script for browser adjusting in terminal and restart described browser to be measured, described browser to be measured moves back the test page of front operation address according to sudden strain of a muscle again sends and obtains the request of test page to described server, and records described browser generation to be measured and dodge the information while moving back.
3. browser performance method of testing according to claim 1, is characterized in that, described in make described in described browser execution to be measured, after next test page, also to comprise:
Detect described browser to be measured and whether occur to dodge and move back, and generate detection signal;
If occurring to dodge, described browser to be measured moves back, described browser to be measured be there is to dodge the detection signal generating while moving back and send to opertaing device, so that described opertaing device is according to described detection signal, make to set in advance in the script for browser adjusting in terminal and restart described browser to be measured, described browser to be measured moves back the test page of front operation address according to sudden strain of a muscle again sends and obtains the request of test page to described server, and records described browser generation to be measured and dodge the information while moving back.
4. according to the browser performance method of testing described in any one in claim 2 or 3, it is characterized in that, the information that described browser to be measured occurs to dodge while moving back comprises the test page information of opening when memory usage, the sudden strain of a muscle of terminal when sudden strain of a muscle is moved back are moved back and dodges at least one in the logic error information that while moving back, browser to be measured occurs.
5. browser performance method of testing according to claim 1, is characterized in that, the described test page of described reception, and make described in browser execution to be measured, after test page, also to comprise:
When the time of described browser execution test page to be measured is not more than described Preset Time, if described browser to be measured completes and loads described test page, and show the content of the test page having been loaded, make described browser to be measured continue to show the content of the test page having been loaded; If described test page has not loaded, make described browser to be measured proceed to load described test page.
6. browser performance method of testing according to claim 1, is characterized in that, before the test page address of described reception input, also comprises:
All test pages of download test station point in advance;
Revise the test page of downloading, in the test page of each download, insert redirect script and script working time is set, if described working time, script comprised that being greater than Preset Time the working time of each test page carries out described redirect script, the content temporal summation used that comprises demonstration test page from browser to be measured starts to load test page and completes to loading described working time, described redirect script is used to specify the information that next step jumps to next test page;
Amended test page is sent to described server and store, and be provided for having adjusted the script of described browser, the address that the memory location of described test page on described server is described test page.
7. a terminal, is characterized in that, described terminal, comprising:
Page acquisition module, for receiving the test page address of input, and according to described test page address, to server, send the request of obtaining test page, so that described server sends to terminal according to described request by the corresponding test page in described test page address;
Page operation module, for receiving described test page, and makes test page described in browser execution to be measured, moves the content that described test page comprises the described test page of demonstration from described browser to be measured starts to load described test page and completes to loading;
Redirect module, for when the time of described browser execution test page to be measured is greater than Preset Time, carry out the redirect script inserting in advance in described test page, according to the information of the next test page of appointment in described redirect script, to described server, send the request of obtaining test page, so that server sends to described terminal according to described request by described next test page, and make next test page described in described browser execution to be measured.
8. terminal according to claim 7, is characterized in that, described terminal, also comprises:
Whether detection module, occur to dodge for detection of described browser to be measured and move back, and generate detection signal;
Control module, if move back for occurring to dodge, according to described browser to be measured, there is the detection signal generating when sudden strain of a muscle is moved back, make to set in advance in the script for browser adjusting in terminal and restart described browser to be measured, described browser to be measured moves back the test page of front operation address according to sudden strain of a muscle again sends and obtains the request of test page to described server, and records described browser generation to be measured and dodge the information while moving back.
9. terminal according to claim 7, is characterized in that, described terminal, also comprises:
Whether detection module, occur to dodge for detection of described browser to be measured and move back, and generate detection signal;
Control module, if occur to dodge for described browser to be measured, move back, described browser to be measured be there is to dodge the detection signal generating while moving back and send to opertaing device, so that described opertaing device is according to described detection signal, make to set in advance in the script for browser adjusting in terminal and restart described browser to be measured, described browser to be measured moves back the test page of front operation address according to sudden strain of a muscle again sends and obtains the request of described test page to described server, and records described browser generation to be measured and dodge the information while moving back.
10. the terminal described in any one according to Claim 8 or 9, it is characterized in that, the information that described browser to be measured occurs to dodge while moving back comprises the test page information of opening when memory usage, the sudden strain of a muscle of terminal when sudden strain of a muscle is moved back are moved back and dodges at least one in the logic error information that while moving back, browser to be measured occurs.
11. terminals according to claim 7, it is characterized in that, described redirect module, while being also not more than described Preset Time for the time at described browser execution test page to be measured, if described browser to be measured completes and loads described test page, and show the content of the test page having been loaded, make described browser to be measured continue to show the content of the test page having been loaded; If described test page has not loaded, make described browser to be measured proceed to load described test page.
12. terminals according to claim 7, is characterized in that, described terminal, also comprises:
Module is set, for all test pages of download test station point in advance; Revise the test page of downloading, in the test page of each download, insert redirect script and script working time is set, if described working time, script comprised that being greater than Preset Time the working time of each test page carries out described redirect script, the content temporal summation used that comprises demonstration test page from browser to be measured starts to load test page and completes to loading described working time, described redirect script is used to specify the information that next step jumps to next test page; Amended test page is sent to described server and store, and be provided for having adjusted the script of described browser, the address that the memory location of described test page on described server is described test page.
13. 1 kinds of browser performance test macros, is characterized in that, described system comprises: at least one terminal and server;
Described terminal comprises page acquisition module, page operation module and redirect module;
Described server comprises test page sending module;
Described page acquisition module, for receiving the test page address of input, and sends the request of obtaining test page to server according to described test page address;
Described test page sending module, for sending to terminal according to described request by the corresponding test page in described test page address;
Described page operation module, be used for receiving described test page, and make test page described in described browser execution to be measured, move the content that described test page comprises the described test page of demonstration from described browser to be measured starts to load described test page and completes to loading;
Described redirect module, for when the time of described browser execution test page to be measured is greater than Preset Time, carry out the redirect script inserting in advance in described test page, according to the information of the next test page of appointment in described redirect script, to described server, send the request of obtaining test page, so that the described test page sending module of described server sends to described terminal according to described request by described next test page, and make next test page described in described browser execution to be measured.
14. browser performance test macros according to claim 13, is characterized in that, described terminal, also comprises:
Whether detection module, occur to dodge for detection of described browser to be measured and move back, and generate detection signal;
Control module, if move back for occurring to dodge, according to described browser to be measured, there is the detection signal generating when sudden strain of a muscle is moved back, make to set in advance in the script for browser adjusting in terminal and restart described browser to be measured, described browser to be measured moves back the test page of front operation address according to sudden strain of a muscle again sends and obtains the request of test page to described server, and records described browser generation to be measured and dodge the information while moving back.
15. browser performance test macros according to claim 13, is characterized in that, described browser performance test macro also comprises: opertaing device, described opertaing device comprises: calling module, described terminal also comprises: detection module and control module, wherein
Whether described detection module, occur to dodge for detection of described browser to be measured and move back, and generate detection signal;
Described control module, moves back if occur to dodge for described browser to be measured, the detection signal generating described browser to be measured is occurred to dodge and send to described opertaing device, and record described browser generation to be measured and dodge the information while moving back while moving back;
The calling module of described opertaing device, be used for according to described detection signal, make to set in advance in the script for browser adjusting in terminal and restart described browser to be measured, described browser to be measured moves back the test page of front operation address according to sudden strain of a muscle sends the request of obtaining described test page to described server again.
16. browser performance test macros according to claim 13, is characterized in that, described terminal also comprises module is set, and described server also comprises memory module, wherein,
The described module that arranges, for all test pages of download test station point in advance; Revise the test page of downloading, in the test page of each download, insert redirect script and script working time is set, if described working time, script comprised that being greater than Preset Time the working time of each test page carries out described redirect script, the content temporal summation used that comprises demonstration test page from browser to be measured starts to load test page and completes to loading described working time, described redirect script is used to specify the information that next step jumps to next test page; Amended test page is sent to described server and store, and be provided for having adjusted the script of described browser;
Described memory module, for the test page after memory modify, the address that the memory location of described test page on described server is described test page.
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 true CN104182331A (en) 2014-12-03
CN104182331B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107861875A (en) * 2017-11-15 2018-03-30 北京中电普华信息技术有限公司 A kind of analogy method and system for mixing Mobile solution
CN108399129A (en) * 2018-02-28 2018-08-14 车智互联(北京)科技有限公司 H5 page method for testing performance
CN109478128A (en) * 2017-02-03 2019-03-15 乐天株式会社 Information processing unit, information processing method, program, storage medium
CN110134609A (en) * 2019-05-20 2019-08-16 广东电网有限责任公司 Enterprise-level web application system page method for testing performance, device and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080102436A1 (en) * 2006-09-11 2008-05-01 Rogers Timothy A Online test polling
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080102436A1 (en) * 2006-09-11 2008-05-01 Rogers Timothy A Online test polling
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

Cited By (5)

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

Also Published As

Publication number Publication date
CN104182331B (en) 2018-04-27

Similar Documents

Publication Publication Date Title
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
CN105472694B (en) Method, device, terminal and storage medium for accessing WiFi through scanning two-dimensional code
US20110191764A1 (en) Systems, methods, and apparatuses for facilitating distribution of firmware updates
CN106326091B (en) Method and system for detecting browser webpage compatibility
CN104092723B (en) Document down loading method, Apparatus and system
CN104461474A (en) Mobile terminal and screen-shooting method and device therefor
CN105094861A (en) Webpage application program loading method, device and system
US20140122567A1 (en) Preemptive framework for accessing short urls
CN104333643B (en) Add the method for contact person, system and terminal
CN105487966A (en) Program testing method, device and system
CN107871015B (en) Log data processing method and device, terminal and readable storage medium
US20140258891A1 (en) Electronic device, storage medium and method for processing information
WO2019184658A1 (en) Profile switching method and apparatus, and mobile terminal
CN107832142B (en) Resource allocation method and equipment for application program
CN104580019A (en) Network service supplying method and device
CN104239317A (en) Method and device for compiling pictures in browser
CN105022687A (en) Implementation method and device of sliding operation in automated testing scheme
CN105320616A (en) External device control method and device
CN106598821B (en) Method and device for testing webpage loading speed
CN106254791A (en) The startup method of photographic head and mobile terminal
CN104182331A (en) Browser performance test method, browser performance test system and terminal
CN104811485A (en) Resource sharing method
CN111125595A (en) Multi-page control method and device, electronic equipment and storage medium
CN104980793B (en) A kind of method and terminal of video detection

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: 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.