CN103810086A - Method, device and system for processing website causing browser breakdown - Google Patents

Method, device and system for processing website causing browser breakdown Download PDF

Info

Publication number
CN103810086A
CN103810086A CN201210443887.2A CN201210443887A CN103810086A CN 103810086 A CN103810086 A CN 103810086A CN 201210443887 A CN201210443887 A CN 201210443887A CN 103810086 A CN103810086 A CN 103810086A
Authority
CN
China
Prior art keywords
tested
network address
browser
webpage
collapse
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
CN201210443887.2A
Other languages
Chinese (zh)
Other versions
CN103810086B (en
Inventor
丁如敏
皮凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201210443887.2A priority Critical patent/CN103810086B/en
Publication of CN103810086A publication Critical patent/CN103810086A/en
Application granted granted Critical
Publication of CN103810086B publication Critical patent/CN103810086B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method, a device and a system for processing a website causing browser breakdown, and belongs to the technical field of terminal test. The method comprises the following steps that a website list to be tested is obtained, and the website to be tested comprises at least one website; a browser to be tested is controlled for sequentially loading the webpage of each website in at least one website, and in addition, the website of the webpage causing the breakdown of the browser to be tested is recorded. Through the adoption of the technical scheme, after the browser of a mobile terminal generates the breakdown phenomenon after the browsing of some webpages, the website of the webpage causing the breakdown of the browser to be tested can be automatically and effectively obtained so that the problem of breakdown of the browser of the mobile terminal during the browsing on the webpage of the websites is solved according to the website of the webpage causing the breakdown of the browser to be tested in the subsequent time, so the browser of the mobile terminal can support the browsing of more websites, and the use convenience is provided for the browser of the mobile terminal.

Description

Make disposal route, the Apparatus and system of the network address of browser collapse
Technical field
The present invention relates to terminal test technical field, particularly a kind of disposal route, Apparatus and system of the network address that makes browser collapse.
Background technology
Along with the universal use of intelligent mobile terminal, increasing user adopts mobile terminal to carry out various online activities, and for example user can install browser on mobile terminal, browses each website by browser.
In prior art, along with increasing of various colourful websites, user can browse increasing webpage by the browser of mobile terminal.For example, but in use, the browser of mobile terminal can not be supported all webpage, and the browser of mobile terminal, in browsing some webpage, there will be collapse (Crash) phenomenon, wherein browser Crash can show as and the phenomenon such as move back as sudden strain of a muscle.
Realizing in process of the present invention, inventor finds that prior art at least exists following problem: in prior art, in browsing some webpage, there is the phenomenon of collapse for the browser of mobile terminal, do not do any operational processes, therefore, the present invention needs the processing scheme that a kind of network address that makes browser collapse is provided badly, there is the phenomenon of collapse when the browser of mobile terminal is being browsed some webpage after, make corresponding operational processes, so that the problem of collapse appears in the browser of follow-up solution mobile terminal in browsing some webpage.
Summary of the invention
In order to solve the problem of prior art, the embodiment of the present invention provides a kind of disposal route, Apparatus and system of the network address that makes browser collapse.Described technical scheme is as follows:
On the one hand, provide a kind of disposal route of the network address that makes browser collapse, described method comprises:
Obtain list of websites to be tested, described list of websites to be tested comprises at least one network address;
Control the webpage that browser to be tested loads each network address in described at least one network address successively, and record makes the network address of the webpage of described browser collapse to be tested.
Alternatively, in the disposal route of the network address that makes browser collapse as above, described in obtain list of websites to be tested, comprising:
Obtain described list of websites to be tested from server, described at least one network address in described list of websites to be tested comprises that described server is by disposing reptile, the network address of all-links on the webpage of the forward website of the click rank obtained; Described at least one network address is arranged by clicking rate sequence in described list of websites.
Alternatively, in the disposal route of the network address that makes browser collapse as above, described control browser to be tested loads the webpage of each network address in described at least one network address successively, and records the network address of the webpage that makes described browser collapse to be tested, comprising:
A, sequencing according to described at least one network address in described list of websites, obtain the current network address of described this less important loading of browser to be tested;
B, control described browser to be tested and load the webpage of described current network address;
Whether C, the webpage that detects described current network address make described browser collapse to be tested;
D, in the time detecting that the webpage of described current network address makes described browser to be tested collapse, using described current network address as the network address of webpage that makes described browser collapse to be tested, and record;
Repeat above-mentioned steps A, B, C and D, until control the webpage of last network address in described at least one network address of described browser loading to be tested, whether the webpage that detects described last network address makes described browser collapse to be tested; In the time detecting that the webpage of described last network address makes described browser collapse to be tested, the network address using described last network address as the webpage that described browser to be tested is collapsed.
Alternatively, in the disposal route of the network address that makes browser collapse as above, after controlling the webpage of the described current network address of described browser loading to be tested, described method also comprises:
The supplemental characteristic of committed memory and central processing unit when recording described browser to be tested and loading the webpage of described current network address.
Alternatively, in the disposal route of the network address that makes browser collapse as above, whether the webpage that detects described current network address makes described browser collapse to be tested, comprising:
After detecting the webpage of the described current network address of described browser loading to be tested, whether the process that judges described browser to be tested closes, when the process of described browser to be tested is closed, the webpage of determining described current network address makes described browser collapse to be tested, otherwise do not close when the process of described browser to be tested, determine that the webpage of described current network address does not make described browser collapse to be tested.
Alternatively, in the disposal route of the network address that makes browser collapse as above, described control browser to be tested loads the webpage of each network address in described at least one network address successively, and after recording the network address of the webpage that makes described browser collapse to be tested, also comprises:
Send the network address of the webpage that makes described browser collapse to be tested to the development equipment of described browser to be tested, make the parameter of the webpage of described browser collapse to be tested for the development equipment basis of described browser to be tested, revise the parameter of described browser to be tested, make described browser to be tested can support the webpage of the network address that makes described browser collapse to be tested.
On the other hand, provide a kind for the treatment of apparatus of the network address that makes browser collapse, described device comprises:
Acquisition module, for obtaining list of websites to be tested, described list of websites to be tested comprises at least one network address;
Processing module, loads the webpage of each network address of described at least one network address successively for controlling browser to be tested, and records the network address of the webpage that makes described browser collapse to be tested.
Alternatively, in the treating apparatus of the network address that makes browser collapse as above, described acquisition module, specifically for obtain described list of websites to be tested from server, described at least one network address in described list of websites to be tested comprises that described server is by disposing reptile, the network address of all-links on the webpage of the forward website of the click rank obtained; Described at least one network address is arranged by clicking rate sequence in described list of websites.
Alternatively, in the treating apparatus of the network address that makes browser collapse as above, described processing module, comprising:
Acquiring unit, for the sequencing in described list of websites according to described at least one network address, obtains the current network address of described this less important loading of browser to be tested;
Control module, for controlling the webpage of the described current network address of described browser loading to be tested;
Detecting unit, for load the webpage of the described current network address that described acquiring unit obtains at browser to be tested described in described control module control after, whether the webpage that detects described current network address makes described browser collapse to be tested;
Record cell, for according to the testing result of described detecting unit, in the time detecting that the webpage of described current network address makes described browser collapse to be tested, using described current network address as the network address that makes described browser collapse to be tested, and record;
Performance element, repeat for controlling described acquiring unit, described control module, described detecting unit and described record cell successively, until the webpage of last network address in described at least one network address of browser loading to be tested described in described acquiring unit control, whether the webpage that described detecting unit detects described last network address makes described browser collapse to be tested; In the time that described detecting unit detects that the webpage of described last network address makes described browser collapse to be tested, the network address of described record cell using described last network address as the webpage that described browser to be tested is collapsed.
Alternatively, in the treating apparatus of the network address that makes browser collapse as above, described record cell, also for after browser to be tested described in described control module control loads the webpage of described current network address, the supplemental characteristic of committed memory and central processing unit when recording described browser to be tested and loading the webpage of described current network address.
Alternatively, in the treating apparatus of the network address that makes browser collapse as above, described detecting unit, after detecting the webpage of the described current network address of described browser loading to be tested, whether the process that judges described browser to be tested closes, when the process of described browser to be tested is closed, the webpage of determining described current network address makes described browser collapse to be tested, otherwise do not close when the process of described browser to be tested, determine that the webpage of described current network address does not make described browser collapse to be tested.
Alternatively, in the treating apparatus of the network address that makes browser collapse as above, also comprise:
Sending module, for load successively the webpage of each network address of described at least one network address at described processing module control browser to be tested, and after recording the network address of the webpage that makes described browser collapse to be tested, send the network address of the webpage that makes described browser collapse to be tested to the development equipment of described browser to be tested, make the parameter of the webpage of described browser collapse to be tested for the development equipment basis of described browser to be tested, revise the parameter of described browser to be tested, make described browser to be tested can support the webpage of the network address that makes described browser collapse to be tested.
Again on the one hand, a kind of disposal system of the network address that makes browser collapse is also provided, described system comprises: opertaing device and controlled device, and described opertaing device is used for starting described controlled device, and described opertaing device is used for controlling described browser to be tested and opens at described controlled device; Described controlled device adopts the as above treating apparatus of arbitrary described network address that makes browser collapse.
Disposal route, the Apparatus and system of the network address that makes browser collapse of the embodiment of the present invention, by obtaining list of websites to be tested, described list of websites to be tested comprises at least one network address; Control the webpage that browser to be tested loads each network address in described at least one network address successively, and record makes the network address of the webpage of described browser collapse to be tested.Adopt the technical scheme of the invention described above embodiment, can there is the phenomenon of collapse when the browser of mobile terminal is being browsed some webpage after, can automatically effectively obtain the network address of the webpage that makes browser collapse to be tested, so that follow-up basis makes the network address of the webpage of browser collapse to be tested, in browsing the webpage of these network address, there is the problem of collapse in the browser that solves mobile terminal, thereby the browser that can make mobile terminal can be supported to browse more website, and the ease of use of the browser of mobile terminal is provided.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The process flow diagram of the disposal route of the network address that makes browser collapse that Fig. 1 provides for the embodiment of the present invention one.
The process flow diagram of the disposal route of the network address that makes browser collapse that Fig. 2 provides for the embodiment of the present invention two.
The process flow diagram of the disposal route of the network address that makes browser collapse that Fig. 3 provides for the embodiment of the present invention three.
The structural representation of the treating apparatus of the network address that makes browser collapse that Fig. 4 provides for the embodiment of the present invention four.
The structural representation of the treating apparatus of the network address that makes browser collapse that Fig. 5 provides for the embodiment of the present invention five.
The structural representation of the disposal system of the network address that makes browser collapse that Fig. 6 provides for the embodiment of the present invention six.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment mono-
The process flow diagram of the disposal route of the network address that makes browser collapse that Fig. 1 provides for the embodiment of the present invention one.As shown in Figure 1, the disposal route of the network address that makes browser collapse of the present embodiment, specifically can comprise the steps:
100, obtain list of websites to be tested, list of websites to be tested comprises at least one network address;
101, control browser to be tested and load successively the webpage of each network address at least one network address, and record the network address of the webpage that makes browser collapse to be tested.
The executive agent of the disposal route of the network address that makes browser collapse of the present embodiment is one to make the treating apparatus of the network address of browser collapse.In the present embodiment, list of websites to be tested comprises at least one network address, and the network address in the present embodiment specifically refers to web page address, also can be called URL(uniform resource locator) (the Uniform/Universal Resource Locator of webpage; URL), be the address (Address) of the resource of standard on the Internet.
The technical scheme of the present embodiment is mainly used in the scene that browser to be tested is tested, therefore the executive agent of the present embodiment specifically can be arranged in test terminal the treating apparatus of the network address of browser collapse, for realizing, browser to be tested is tested.
In the embodiment of the present invention, control browser to be tested and load the webpage of a network address, specifically refer to the webpage of controlling browser to be tested and open this network address.Wherein in browser to be tested is opened the process of webpage of this network address to be tested, occur dodging and move back while waiting Crash phenomenon, can think that the webpage of this network address makes browser collapse to be tested, this network address is the network address that makes the webpage that browser to be tested collapses.Because in step 101 being controls browser to be tested to load successively the webpage of each network address at least one network address, therefore in step 101, the network address of the webpage that makes browser collapse to be tested of record is at least one network address of comprising of list of websites to be tested.
The disposal route of the network address that makes browser collapse of the present embodiment, by obtaining list of websites to be tested, described list of websites to be tested comprises at least one network address; Control the webpage that browser to be tested loads each network address in described at least one network address successively, and record makes the network address of the webpage of described browser collapse to be tested.Adopt the technical scheme of above-mentioned the present embodiment, can there is the phenomenon of collapse when the browser of mobile terminal is being browsed some webpage after, can automatically effectively obtain the network address of the webpage that makes browser collapse to be tested, so that follow-up basis makes the network address of the webpage of browser collapse to be tested, in browsing the webpage of these network address, there is the problem of collapse in the browser that solves mobile terminal, thereby the browser that can make mobile terminal can be supported to browse more website, and the ease of use of the browser of mobile terminal is provided.
Alternatively, on the basis of above-mentioned technical scheme embodiment illustrated in fig. 1, wherein step 100 " is obtained list of websites to be tested ", specifically can comprise: obtain list of websites to be tested from server, at least one network address in list of websites to be tested comprises that server is by disposing reptile, the network address of all-links on the webpage of the forward website of the click rank obtained; At least one network address is arranged by clicking rate sequence in list of websites.
For example, can be in the service of server deploy reptile, the effect of this service is to obtain the address of the forward website of listed rank, alexa website, accesses webpage on Bing Dui website, these websites and is DOM Document Object Model (Document Object Model; DOM) parse operation, does deep search according to the rule of configuration to the URL link on Webpage, the page-downloading of climbing to is got off and record URL, generates url list, i.e. list of websites to be tested.
Alternatively, " the obtaining list of websites to be tested " in step 100 can also be obtained this list of websites to be tested from other equipment, or makes pre-storedly in the treating apparatus of network address of browser collapse to have at this, can directly obtain.
Alternatively, on the basis of above-mentioned technical scheme embodiment illustrated in fig. 1, wherein step 101 " is controlled browser to be tested and is loaded successively the webpage of each network address at least one network address, and record the network address of the webpage that makes browser collapse to be tested ", specifically can comprise the steps:
(1) sequencing in list of websites according at least one network address, obtains the current network address of this less important loading of browser to be tested;
(2) control browser to be tested and load the webpage of current network address;
(3) whether the webpage that detects current network address makes browser collapse to be tested;
(4) in the time detecting that the webpage of current network address makes browser collapse to be tested, the network address using current network address as the webpage that browser to be tested is collapsed, and record;
Repeat above-mentioned steps (1)-(4), until control browser to be tested and has loaded the webpage of each network address at least one network address, end.
It should be noted that, the loading described in the present embodiment only refers to and loads this action, and may not load, and does not consider the result loading.For example, in the time that this browser to be tested is supported a certain webpage, just can load this network address, and in the time that browser to be tested is not supported a certain webpage, after browser to be tested loads this webpage, may load failure, cause browser Crash to be tested.
Further alternatively, step (2) in above-described embodiment webpage of current network address " control browser to be tested load " afterwards, can also comprise: committed memory and central processing unit (Central Program Unite when recording browser to be tested and loading the webpage of current network address; CPU) supplemental characteristic, so that while there is Crash in the webpage that loads this current network address when browser to be tested, the state when analyzing browser to be tested and load the webpage of this current network address according to the supplemental characteristic of committed memory and CPU.
Further alternatively, step (3) in above-described embodiment " whether the webpage that detects current network address makes browser collapse to be tested: specifically can comprise: after detecting the webpage that browser to be tested loads current network address; whether the process that judges browser to be tested closes; when the process of browser to be tested is closed; the webpage of determining current network address makes browser collapse to be tested; otherwise do not close when the process of browser to be tested, determine that the webpage of current network address does not make browser collapse to be tested.
Further alternatively, in the step of above-described embodiment, 101 " control browser to be tested and load successively the webpage of each network address at least one network address, and record makes the network address of the webpage of browser collapse to be tested " afterwards, can also comprise: the network address that sends the webpage that makes browser collapse to be tested to the development equipment of browser to be tested, make the parameter of the webpage of browser collapse to be tested for the development equipment basis of browser to be tested, revise the parameter of browser to be tested, make browser to be tested can support the webpage of the network address that makes browser collapse to be tested.
It should be noted that, above-mentioned all optional technical schemes can adopt any combination of combinable mode, form optional embodiment of the present invention, do not repeat them here.
Adopt the technical scheme of above-mentioned the present embodiment, can there is the phenomenon of collapse when the browser of mobile terminal is being browsed some webpage after, can automatically effectively obtain the network address of the webpage that makes browser collapse to be tested, so that follow-up basis makes the network address of the webpage of browser collapse to be tested, in browsing the webpage of these network address, there is the problem of collapse in the browser that solves mobile terminal, thereby the browser that can make mobile terminal can be supported to browse more website, and the ease of use of the browser of mobile terminal is provided.
Embodiment bis-
The process flow diagram of the disposal route of the network address that makes browser collapse that Fig. 2 provides for the embodiment of the present invention two.As shown in Figure 2, the disposal route of the network address that makes browser collapse of the present embodiment, specifically can comprise the steps:
200, server generates list of websites to be tested;
For example server is by disposing reptile service, obtain the network address of the forward website of listed rank, alexa website, and do DOM analytical analysis by the webpage of the forward website of listed rank, alexa website to obtaining, and all website links on the page of these webpages are carried out to deep search, and the page-downloading of climbing to is got off and records network address, generate list of websites to be tested, can, with reference to above-mentioned correlation technique, not repeat them here in detail.In list of websites to be tested, can comprise multiple network address, and multiple network address can arrange in order according to the height of clicking rate.List of websites to be tested in the present embodiment also can be called url list to be tested.
201, test terminal obtains list of websites to be tested from server;
202, test terminal is controlled browser to be tested and is loaded first network address in list of websites to be tested, simultaneously recording this first network address in test document;
For example can be by record first network address in a document in test terminal.
203, test terminal is detected after browser to be tested loads this first network address, and whether the process of browser to be tested closes, when browser to be tested cuts out, and execution step 204; Otherwise when browser to be tested does not cut out, execution step 205;
204, test terminal determines that the webpage of the first network address makes browser collapse to be tested; Execution step 206;
205, test terminal determines that the webpage of the first network address does not make browser collapse to be tested; Execution step 207;
206, first network address is recorded in test terminal in Crash document, execution step 207;
207, test terminal, according to the sequencing of multiple network address in list of websites to be tested, obtains the current network address of this less important loading of browser to be tested; Execution step 208;
208, browser to be tested is controlled and loads the webpage of current network address in test terminal, simultaneously recording this current network address in test document; Execution step 208;
The mode that for example can write by covering in test terminal records current network address in a document, first network address writing before covering by current network address.
209, after the webpage that browser to be tested loads this current network address is detected in test terminal, whether the process of browser to be tested closes, when browser to be tested cuts out, and execution step 210; Otherwise when browser to be tested does not cut out, execution step 211;
210, test terminal determines that the webpage of current network address makes browser collapse to be tested; Execution step 212;
211, test terminal determines that the webpage of current network address does not make browser collapse to be tested; Execution step 213;
212, current network address is recorded in test terminal in Crash document, execution step 213;
213, test terminal judges that whether current network address is last in list of websites to be tested, in the time being, and execution step 214; Otherwise return to step 207;
214, test terminal sends the network address of all webpages that make browser collapse to be tested that record in Crash document to the development equipment of browser to be tested; Execution step 215;
215, the development equipment of browser to be tested, according to the parameter of the webpage that browser to be tested is collapsed, is revised the parameter of browser to be tested, makes browser to be tested can support the webpage of the network address that makes browser collapse to be tested.
Adopt the technical scheme of above-mentioned the present embodiment, can there is the phenomenon of collapse when the browser of mobile terminal is being browsed some webpage after, can automatically effectively obtain the network address of the webpage that makes browser collapse to be tested, and make the network address of the webpage of browser to be tested collapse in follow-up basis, in browsing the webpage of these network address, there is the problem of collapse in the browser that solves mobile terminal, thereby the browser that can make mobile terminal can be supported to browse more website, and the ease of use of the browser of mobile terminal is provided.
It should be noted that, be mainly to describe technical scheme of the present invention in test terminal side in above-described embodiment.In practical application, the technical scheme of the embodiment of the present invention can also be used the testing tool that comprises control end and controlled terminal at, and control end and controlled terminal specifically can be realized by software program particularly.
For example this control end, also can be referred to as TestURL in embodiments of the present invention, is responsible for starting controlled terminal, and monitoring controlled terminal, when controlled terminal crash starts controlled terminal later, records and upload the url list and the logcat daily record that make browser crash.
Controlled terminal, also can be referred to as TestClient, based on the controlled terminal of qqdriver, itself and program to be tested--mobile phone browser as QQ browser be to be in same process,, in the time of mobile phone browser crash, TestClient understands crash equally.Its effect is mainly that startup program to be tested is mobile phone browser, uses qqdriver to control browser and opens certain URL in url list to be tested, and the internal memory of mobile phone browser and the supplemental characteristic of CPU in this URL process opened in record.The url list to be tested of the present embodiment is also to be served by disposing reptile by server, the effect of this service is to obtain the address of the forward website of listed rank, alexa website, access webpage on Bing Dui website, these websites and do DOM parse operation, according to the rule of configuration, the URL link on the page is done to deep search, the page-downloading of climbing to is got off and records URL, generate url list to be tested, can also, with reference to the record of above-mentioned related embodiment, not repeat them here in detail.
Embodiment tri-
The process flow diagram of the disposal route of the network address that makes browser collapse that Fig. 3 provides for the embodiment of the present invention three.The disposal route of the network address that makes browser collapse of the present embodiment is used in the above-mentioned testing tool that comprises control end TestURL and controlled terminal TestClient, as shown in Figure 3, the disposal route of the network address that makes browser collapse of the present embodiment, specifically can comprise the steps:
300, TestURL uses the method in Intrumentation framework to start TestClient;
Wherein Instrumentation is that official of Google (google) tests for Android system the one mechanism providing, and this mechanism is the set of a series of methods that Android system is controlled.Can outside the normal life cycle of android program, independently control each assembly of android application.
301, TestClient pulls url list to be tested from server, and calls qqdriver and start mobile phone browser to be tested;
For example qqdriver is Android (android) the platform interface automated test tool that Tengxun grinds certainly, and its implementation is based on Instrumentation framework.
302, after TestURL uses the method startup TestClient in Intrumentation framework, regularly detect the mobile phone browser process in TestClient, when the mobile phone browser process that can detect in TestClient, determine that test starts;
Step 301 and step 302 can not have sequencing, in step 302, work as the mobile phone browser process that can detect in TestClient, be modulatedly in step 301 to start mobile phone browser to be tested with qqdriver, now TestURL determines that test starts, and TestURL continues the monitoring to mobile phone QQ browser process simultaneously.
Particularly, TestURL can once search mobile phone QQ browser program process by every 30S after using the method in Intrumentation framework to start TestClient.If find mobile phone QQ browser process, be considered as test and start, otherwise continue to detect, after certain number of times, be considered as starting test crash, finish test.
303, TestClient obtains the URL of this test from url list to be tested;
Wherein the URL in url list to be tested arranges according to a definite sequence.For example, in the time obtaining the URL of this test for the first time, the URL of this test is first URL in url list to be tested.When not being that while obtaining for the first time the URL of this test, the URL of this test is the next one of the URL to be tested that in url list to be tested, obtained last time.When specific implementation, from done.txt, obtain the URL of test that the last time causes browser crash, this URL having tested in URL and url list to be tested is contrasted according to the order successively loading in the past, tested with this URL that URL equates until find in url list to be tested, in its url list to be tested, this next URL that has tested URL is the URL of this test.
304, TestClient writes the URL of this test in done.txt in a covered manner; Use qqdriver control mobile phone browser to load the URL of this test; TestURL continues the monitoring to mobile phone QQ browser process simultaneously;
Done.txt in the present embodiment is for storing the URL of this test.Wherein TestClient writes the URL of this test in done.txt in a covered manner, represent only to store in done.txt the URL of this test, the URL of this test is before tested, capital is written in done.txt, and the other guide being written into before covering in this done.txt.
305, whether TestURL to judge that mobile phone browser loads the URL of this test normal, when normal, carries out 306; Otherwise when undesired, execution step 307;
Whether TestURL judges that mobile phone browser loads the URL of this test normal, being specially qqdriver controls after mobile phone browser loads the URL of this test, TestURL judges whether mobile phone browser process occurs Crash, in the time there is Crash, determine that loading is undesired, mobile phone browser loads the URL failure of this test; Otherwise when Crash does not appear in mobile phone browser process, determine and load normally, mobile phone browser loads the URL success of this test.It should be noted that, TestClient and mobile phone browser belong to same process, when the mobile phone browser Crash, and also Crash of TestClient.
306, TestURL control TestClient judges whether the URL of this test is last in url list to be tested, if so, performs step 308; Otherwise not, execution step 303;
307, in TestURL re invocation Instrumentation framework, method starts TestClient; Execution step 309;
Wherein in crash.txt, storing URL is the URL that makes browser Crash.TestClient writes the URL of this test in crash.txt, when specific implementation, the URL in current done.txt can be deposited in crash.txt.
308, TestClient writes test end mark in done.txt, and test finishes, and crash.txt and crash.log are sent to server by TestURL; Carry out 310;
309, TestURL control TestClient writes the URL of this test in crash.txt, and the log recording while calling logcat order by generation crash is in crash.log; Execution step 303;
310, server is revised the parameter of mobile phone browser according to the information in crash.txt and crash.log, makes mobile phone browser can support the webpage of the URL in crash.txt.
The disposal route of the network address that makes browser collapse of the present embodiment, after can there is crash when mobile phone browser is being browsed some webpage, can automatically effectively obtain the network address of the webpage that makes mobile phone browser crash, and make the network address of the webpage of mobile phone browser collapse in follow-up basis, solve the problem that crash appears in mobile phone browser in browsing the webpage of these network address, thereby can make mobile phone browser can support to browse more website, the ease of use of mobile phone browser is provided.
Embodiment tetra-
The structural representation of the treating apparatus of the network address that makes browser collapse that Fig. 4 provides for the embodiment of the present invention four.As shown in Figure 4, the treating apparatus of the network address that makes browser collapse of the present embodiment, specifically can comprise acquisition module 10 and processing module 11.
Wherein acquisition module 10 obtains list of websites to be tested, and this list of websites to be tested comprises at least one network address; Processing module 11 is connected with acquisition module 10, processing module loads the webpage of each network address of at least one network address of the list of websites to be tested that acquisition module 10 obtains successively for controlling browser to be tested, and record makes the network address of the webpage of browser collapse to be tested.
The treating apparatus of the network address that makes browser collapse of the present embodiment, identical with the realization mechanism of above-mentioned correlation technique embodiment by adopting above-mentioned module to realize the processing of the network address that makes browser collapse of the present embodiment, can, with reference to the record of above-mentioned correlation technique embodiment, not repeat them here in detail.
The treating apparatus of the network address that makes browser collapse of the present embodiment, obtains list of websites to be tested by adopting above-mentioned module to realize, and described list of websites to be tested comprises at least one network address; Control the webpage that browser to be tested loads each network address in described at least one network address successively, and record makes the network address of the webpage of described browser collapse to be tested.Adopt the technical scheme of above-mentioned the present embodiment, can there is the phenomenon of collapse when the browser of mobile terminal is being browsed some webpage after, can automatically effectively obtain the network address of the webpage that makes browser collapse to be tested, so that follow-up basis makes the network address of the webpage of browser collapse to be tested, in browsing the webpage of these network address, there is the problem of collapse in the browser that solves mobile terminal, thereby the browser that can make mobile terminal can be supported to browse more website, and the ease of use of the browser of mobile terminal is provided.
Embodiment five
The structural representation of the treating apparatus of the network address that makes browser collapse that Fig. 5 provides for the embodiment of the present invention five.As shown in Figure 5, the treating apparatus of the network address that makes browser collapse of the present embodiment, on above-mentioned basis embodiment illustrated in fig. 4, further can also comprise following technical scheme.
The acquisition module 10 of the present embodiment is specifically for obtaining list of websites to be tested from server, at least one network address in this list of websites to be tested comprises that server is by disposing reptile, the network address of all-links on the webpage of the forward website of the click rank obtained; This at least one network address is arranged by clicking rate sequence in list of websites.
As shown in Figure 5, in the treating apparatus of the network address that makes browser collapse of the present embodiment, processing module 11 specifically can comprise acquiring unit 111, control module 112, detecting unit 113, record cell 114 and performance element 115.
Wherein acquiring unit 111 is connected with acquisition module 10, and acquiring unit 111 is the sequencing in list of websites at least one network address of obtaining according to acquisition module 10, obtains the current network address of this less important loading of browser to be tested; Control module 112 is connected with acquiring unit 111, and control module 112 loads the webpage of the current network address that acquiring unit 111 obtains for controlling browser to be tested; Detecting unit 113 is connected with control module 112, and after detecting unit 113 loads the webpage of the current network address that acquiring unit 111 obtains for control browser to be tested at control module 112, whether the webpage that detects current network address makes browser collapse to be tested; Record cell 114 is connected with detecting unit 113, record cell 114 is for according to the testing result of detecting unit 113, in the time detecting that the webpage of current network address makes browser collapse to be tested, using current network address as the network address that makes browser collapse to be tested, and record; Performance element 115 is connected with acquiring unit 111, control module 112, detecting unit 113 and record cell 114 respectively, performance element 115 repeats for controlling successively acquiring unit 111, control module 112, detecting unit 113 and record cell 114, until control module 112 is controlled browser to be tested and load the webpage of last network address at least one network address, whether the webpage that detecting unit 113 detects described last network address makes browser collapse to be tested; In the time that detecting unit 113 detects that the webpage of described last network address makes described browser collapse to be tested, the network address of record cell 114 using described last network address as the webpage that described browser to be tested is collapsed, finishes.
Further alternatively, record cell 114 is also connected with control module 112, record cell 114 is also for after controlling the webpage that browser to be tested loads current network address at control module 112, the supplemental characteristic of committed memory and central processing unit when recording browser to be tested and loading the webpage of current network address.
Further alternatively, after detecting unit 113 loads the webpage of acquiring unit 1111 current network address specifically for detecting browser to be tested, whether the process that judges browser to be tested closes, when the process of browser to be tested is closed, the webpage of determining current network address makes browser collapse to be tested, otherwise do not close when the process of browser to be tested, determine that the webpage of current network address does not make browser collapse to be tested.
As shown in Figure 5, further alternatively, in the treating apparatus of the network address that makes browser collapse of the present embodiment, can also comprise sending module 12.
Wherein this sending module 12 is connected with processing module 11, sending module 12 loads the webpage of each network address of at least one network address successively for controlling browser to be tested in processing module 11, and after recording the network address of the webpage that makes browser collapse to be tested, send the network address of the webpage that makes browser collapse to be tested to the development equipment of browser to be tested, make the parameter of the webpage of browser collapse to be tested for the development equipment basis of browser to be tested, revise the parameter of browser to be tested, make browser to be tested can support the webpage of the network address that makes browser collapse to be tested.For example this sending module 12 specifically can be connected with performance element 115, after performance element 115 execution finish, send the network address of the webpage that makes browser collapse to be tested to the development equipment of browser to be tested, make the parameter of the webpage of browser collapse to be tested for the development equipment basis of browser to be tested, revise the parameter of browser to be tested, make browser to be tested can support the webpage of the network address that makes browser collapse to be tested.
It should be noted that, above-mentioned all optional technical schemes can adopt any combination of combinable mode, form optional embodiment of the present invention, do not repeat them here.
The treating apparatus of the network address that makes browser collapse of the present embodiment, by adopt above-mentioned module can when the browser of mobile terminal is being browsed some webpage, occur collapse phenomenon after, can automatically effectively obtain the network address of the webpage that makes browser collapse to be tested, so that follow-up basis makes the network address of the webpage of browser collapse to be tested, in browsing the webpage of these network address, there is the problem of collapse in the browser that solves mobile terminal, thereby the browser that can make mobile terminal can support to browse more website, the ease of use of the browser of mobile terminal is provided.
Embodiment six
The structural representation of the disposal system of the network address that makes browser collapse that Fig. 6 provides for the embodiment of the present invention six.As shown in Figure 6, the disposal system of the network address that makes browser collapse of the present embodiment specifically can comprise: opertaing device 20 and controlled device 30.
Wherein opertaing device 20 is for starting controlled device 30, and opertaing device 20 is opened at controlled device 30 for controlling browser to be tested; The controlled device 30 of the present embodiment specifically can adopt the treating apparatus of above-mentioned Fig. 4 or the embodiment illustrated in fig. 5 network address that makes browser collapse.The disposal system of the network address that makes browser collapse of for example the present embodiment is in the time that realization makes the processing of network address of browser collapse, specifically can realize with reference to above-mentioned method embodiment illustrated in fig. 3, can, with reference to the record of above-mentioned related embodiment, not repeat them here in detail.
The disposal system of the network address that makes browser collapse of the present embodiment, by adopting above-mentioned opertaing device and controlled device, after there is the phenomenon of collapse in the browser of testing mobile terminal effectively in browsing some webpage, can automatically effectively obtain the network address of the webpage that makes browser collapse to be tested, so that follow-up basis makes the network address of the webpage of browser collapse to be tested, in browsing the webpage of these network address, there is the problem of collapse in the browser that solves mobile terminal, thereby the browser that can make mobile terminal can support to browse more website, the ease of use of the browser of mobile terminal is provided.
It should be noted that: the treating apparatus of the network address of browser collapse that what above-described embodiment provided make is in the time of the processing to the network address that makes browser collapse, only be illustrated with the division of above-mentioned each functional module, in practical application, can above-mentioned functions be distributed and completed by different functional modules as required, be divided into different functional modules by the inner structure of device, to complete all or part of function described above.In addition, what above-described embodiment provided makes the device of the processing of the network address of browser collapse belong to same design with the embodiment of the method for the processing of the network address that browser is collapsed, and its specific implementation process refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step that realizes above-described embodiment can complete by hardware, also can carry out the hardware that instruction is relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (13)

1. a disposal route that makes the network address of browser collapse, is characterized in that, described method comprises:
Obtain list of websites to be tested, described list of websites to be tested comprises at least one network address;
Control the webpage that browser to be tested loads each network address in described at least one network address successively, and record makes the network address of the webpage of described browser collapse to be tested.
2. method according to claim 1, is characterized in that, described in obtain list of websites to be tested, comprising:
Obtain described list of websites to be tested from server, described at least one network address in described list of websites to be tested comprises that described server is by disposing reptile, the network address of all-links on the webpage of the forward website of the click rank obtained; Described at least one network address is arranged by clicking rate sequence in described list of websites.
3. method according to claim 2, is characterized in that, described control browser to be tested loads the webpage of each network address in described at least one network address successively, and records the network address of the webpage that makes described browser collapse to be tested, comprising:
A, sequencing according to described at least one network address in described list of websites, obtain the current network address of described this less important loading of browser to be tested;
B, control described browser to be tested and load the webpage of described current network address;
Whether C, the webpage that detects described current network address make described browser collapse to be tested;
D, in the time detecting that the webpage of described current network address makes described browser to be tested collapse, using described current network address as the network address of webpage that makes described browser collapse to be tested, and record;
Repeat above-mentioned steps A, B, C and D, until control the webpage of last network address in described at least one network address of described browser loading to be tested, whether the webpage that detects described last network address makes described browser collapse to be tested; In the time detecting that the webpage of described last network address makes described browser collapse to be tested, the network address using described last network address as the webpage that described browser to be tested is collapsed.
4. method according to claim 3, is characterized in that, after controlling the webpage of the described current network address of described browser loading to be tested, described method also comprises:
The supplemental characteristic of committed memory and central processing unit when recording described browser to be tested and loading the webpage of described current network address.
5. according to the method described in claim 3 or 4, it is characterized in that, whether the webpage that detects described current network address makes described browser collapse to be tested, comprising:
After detecting the webpage of the described current network address of described browser loading to be tested, whether the process that judges described browser to be tested closes, when the process of described browser to be tested is closed, the webpage of determining described current network address makes described browser collapse to be tested, otherwise do not close when the process of described browser to be tested, determine that the webpage of described current network address does not make described browser collapse to be tested.
6. according to the arbitrary described method of claim 1-4, it is characterized in that, described control browser to be tested loads the webpage of each network address in described at least one network address successively, and after recording the network address of the webpage that makes described browser collapse to be tested, described method also comprises:
Send the network address of the webpage that makes described browser collapse to be tested to the development equipment of described browser to be tested, make the parameter of the webpage of described browser collapse to be tested for the development equipment basis of described browser to be tested, revise the parameter of described browser to be tested, make described browser to be tested can support the webpage of the network address that makes described browser collapse to be tested.
7. a treating apparatus that makes the network address of browser collapse, is characterized in that, described device comprises:
Acquisition module, for obtaining list of websites to be tested, described list of websites to be tested comprises at least one network address;
Processing module, loads the webpage of each network address of described at least one network address successively for controlling browser to be tested, and records the network address of the webpage that makes described browser collapse to be tested.
8. device according to claim 7, it is characterized in that, described acquisition module, specifically for obtain described list of websites to be tested from server, described at least one network address in described list of websites to be tested comprises that described server is by disposing reptile, the network address of all-links on the webpage of the forward website of the click rank obtained; Described at least one network address is arranged by clicking rate sequence in described list of websites.
9. device according to claim 8, is characterized in that, described processing module, comprising:
Acquiring unit, for the sequencing in described list of websites according to described at least one network address, obtains the current network address of described this less important loading of browser to be tested;
Control module, for controlling the webpage of the described current network address of described browser loading to be tested;
Detecting unit, for load the webpage of the described current network address that described acquiring unit obtains at browser to be tested described in described control module control after, whether the webpage that detects described current network address makes described browser collapse to be tested;
Record cell, for according to the testing result of described detecting unit, in the time detecting that the webpage of described current network address makes described browser collapse to be tested, using described current network address as the network address that makes described browser collapse to be tested, and record;
Performance element, repeat for controlling described acquiring unit, described control module, described detecting unit and described record cell successively, until the webpage of last network address in described at least one network address of browser loading to be tested described in described acquiring unit control, whether the webpage that described detecting unit detects described last network address makes described browser collapse to be tested; In the time that described detecting unit detects that the webpage of described last network address makes described browser collapse to be tested, the network address of described record cell using described last network address as the webpage that described browser to be tested is collapsed.
10. device according to claim 9, it is characterized in that, described record cell, also for after browser to be tested described in described control module control loads the webpage of described current network address, the supplemental characteristic of committed memory and central processing unit when recording described browser to be tested and loading the webpage of described current network address.
11. according to the device described in claim 9 or 10, it is characterized in that, described detecting unit, after detecting the webpage of the described current network address of described browser loading to be tested, whether the process that judges described browser to be tested closes, when the process of described browser to be tested is closed, the webpage of determining described current network address makes described browser collapse to be tested, otherwise do not close when the process of described browser to be tested, determine that the webpage of described current network address does not make described browser collapse to be tested.
12. according to the arbitrary described device of claim 7-10, it is characterized in that, described device also comprises:
Sending module, for load successively the webpage of each network address of described at least one network address at described processing module control browser to be tested, and after recording the network address of the webpage that makes described browser collapse to be tested, send the network address of the webpage that makes described browser collapse to be tested to the development equipment of described browser to be tested, make the parameter of the webpage of described browser collapse to be tested for the development equipment basis of described browser to be tested, revise the parameter of described browser to be tested, make described browser to be tested can support the webpage of the network address that makes described browser collapse to be tested.
13. 1 kinds make the disposal system of the network address of browser collapse, it is characterized in that, described system comprises: opertaing device and controlled device, and described opertaing device is used for starting described controlled device, and described opertaing device is used for controlling described browser to be tested and opens at described controlled device; Described controlled device adopts the as above treating apparatus of the arbitrary described network address that makes browser collapse of claim 7-12.
CN201210443887.2A 2012-11-08 2012-11-08 Make processing method, the apparatus and system of the network address of browser collapse Active CN103810086B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210443887.2A CN103810086B (en) 2012-11-08 2012-11-08 Make processing method, the apparatus and system of the network address of browser collapse

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210443887.2A CN103810086B (en) 2012-11-08 2012-11-08 Make processing method, the apparatus and system of the network address of browser collapse

Publications (2)

Publication Number Publication Date
CN103810086A true CN103810086A (en) 2014-05-21
CN103810086B CN103810086B (en) 2017-12-22

Family

ID=50706886

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210443887.2A Active CN103810086B (en) 2012-11-08 2012-11-08 Make processing method, the apparatus and system of the network address of browser collapse

Country Status (1)

Country Link
CN (1) CN103810086B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105554124A (en) * 2015-12-18 2016-05-04 北京奇虎科技有限公司 PC-based synchronous web page accessing method, network communication equipment and network server
CN105553985A (en) * 2015-12-18 2016-05-04 北京奇虎科技有限公司 Synchronous web access method, network communication equipment and network server
CN106095607A (en) * 2016-06-12 2016-11-09 福建天晴数码有限公司 The method and system of defence asp.net website collapse
CN106126361A (en) * 2016-06-12 2016-11-16 福建天晴数码有限公司 The method and system of defence Spring MVC website collapse
CN107918575A (en) * 2016-10-08 2018-04-17 北京京东尚科信息技术有限公司 The monitoring method and device of a kind of page status
CN108595330A (en) * 2018-04-23 2018-09-28 北京潘达互娱科技有限公司 A kind of application testing method and device
CN109815083A (en) * 2018-12-21 2019-05-28 瑞庭网络技术(上海)有限公司 A kind of monitoring method of application crashes, device, electronic equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159000A (en) * 2007-10-17 2008-04-09 深圳市迅雷网络技术有限公司 Web page safety information detecting system and method
CN102332020A (en) * 2011-09-22 2012-01-25 奇智软件(北京)有限公司 Generation method and device of website navigation page
CN102624576A (en) * 2011-01-27 2012-08-01 腾讯科技(深圳)有限公司 Method for automatically testing webpage downloading time of browser and system thereof
CN102681929A (en) * 2011-03-15 2012-09-19 腾讯科技(深圳)有限公司 Webpage script error monitoring method and system
CN102722559A (en) * 2012-05-31 2012-10-10 奇智软件(北京)有限公司 Method, device and system for controlling processes of abnormal pages
CN102750387A (en) * 2012-06-29 2012-10-24 广东中科天元再生资源工程有限公司 Visualized website picture navigation system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159000A (en) * 2007-10-17 2008-04-09 深圳市迅雷网络技术有限公司 Web page safety information detecting system and method
CN102624576A (en) * 2011-01-27 2012-08-01 腾讯科技(深圳)有限公司 Method for automatically testing webpage downloading time of browser and system thereof
CN102681929A (en) * 2011-03-15 2012-09-19 腾讯科技(深圳)有限公司 Webpage script error monitoring method and system
CN102332020A (en) * 2011-09-22 2012-01-25 奇智软件(北京)有限公司 Generation method and device of website navigation page
CN102722559A (en) * 2012-05-31 2012-10-10 奇智软件(北京)有限公司 Method, device and system for controlling processes of abnormal pages
CN102750387A (en) * 2012-06-29 2012-10-24 广东中科天元再生资源工程有限公司 Visualized website picture navigation system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105554124A (en) * 2015-12-18 2016-05-04 北京奇虎科技有限公司 PC-based synchronous web page accessing method, network communication equipment and network server
CN105553985A (en) * 2015-12-18 2016-05-04 北京奇虎科技有限公司 Synchronous web access method, network communication equipment and network server
CN106095607A (en) * 2016-06-12 2016-11-09 福建天晴数码有限公司 The method and system of defence asp.net website collapse
CN106126361A (en) * 2016-06-12 2016-11-16 福建天晴数码有限公司 The method and system of defence Spring MVC website collapse
CN106095607B (en) * 2016-06-12 2018-11-13 福建天晴数码有限公司 Defend the method and system of the websites asp.net collapse
CN107918575A (en) * 2016-10-08 2018-04-17 北京京东尚科信息技术有限公司 The monitoring method and device of a kind of page status
CN107918575B (en) * 2016-10-08 2021-03-30 北京京东尚科信息技术有限公司 Page state monitoring method and device
CN108595330A (en) * 2018-04-23 2018-09-28 北京潘达互娱科技有限公司 A kind of application testing method and device
CN109815083A (en) * 2018-12-21 2019-05-28 瑞庭网络技术(上海)有限公司 A kind of monitoring method of application crashes, device, electronic equipment and medium

Also Published As

Publication number Publication date
CN103810086B (en) 2017-12-22

Similar Documents

Publication Publication Date Title
CN103810086A (en) Method, device and system for processing website causing browser breakdown
US11704221B2 (en) Systems and methods for collecting, tracking, and storing system performance and event data for computing devices
US10430324B2 (en) System and method for automated intelligent mobile application testing
CN106326104B (en) Terminal control testing method and device
CN102880616B (en) browser page loading method and device
CN110502435A (en) Automated performance testing method and its system based on Jmeter
CN110768872B (en) Inspection method, system, device, computer equipment and storage medium
CN104035863B (en) A kind of browser testing method and device
CN106874207A (en) The automated testing method and device of a kind of web page
CN105243159A (en) Visual script editor-based distributed web crawler system
CN101739433B (en) System and method for correcting webpage download error
CN103914302A (en) Webpage loading progress monitoring method and webpage loading progress monitoring device
CN110297767B (en) Automatic execution method, device, equipment and storage medium for test cases
CN105205144A (en) Method and system used for data diagnosis and optimization
CN103425574A (en) Method and device for testing applications
US20160217058A1 (en) Legacy system
CN105871587A (en) Log uploading method and device
US8806277B1 (en) Systems and methods for fetching troubleshooting data
CN104699604A (en) Method and device for testing Android application on basis of customized rendering engine
CN102870118A (en) Access method, device and system to user behavior
CN105574416A (en) Detection method and device of browser bug
CN105487859A (en) Template based WEB deployment method for big data components
CN105279067B (en) A kind of method and device of information reporting
CN105760307A (en) Testing method, device and system of intelligent terminal
CN112115051A (en) Page traversal detection method, device and equipment for application and readable storage medium

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