CN106371992B - Browser error detection method and error detector element - Google Patents

Browser error detection method and error detector element Download PDF

Info

Publication number
CN106371992B
CN106371992B CN201610796451.XA CN201610796451A CN106371992B CN 106371992 B CN106371992 B CN 106371992B CN 201610796451 A CN201610796451 A CN 201610796451A CN 106371992 B CN106371992 B CN 106371992B
Authority
CN
China
Prior art keywords
detection
video
browser
anomalous
monitoring information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610796451.XA
Other languages
Chinese (zh)
Other versions
CN106371992A (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 CN201610796451.XA priority Critical patent/CN106371992B/en
Publication of CN106371992A publication Critical patent/CN106371992A/en
Application granted granted Critical
Publication of CN106371992B publication Critical patent/CN106371992B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention provides a kind of browser error detection method comprising:Detection instruction is received, and is instructed according to detection, the network address of anomalous video is obtained;Network address based on anomalous video loads anomalous video using third party's browser;Load the first detection script, and use the broadcast state of the first detection script detection anomalous video;It if the broadcast state of anomalous video is normal play, then obtains detection and instructs corresponding monitoring information, to carry out error detection to browser.The present invention also provides a kind of browser error detection device, browser error detection method of the invention and error detector element detect anomalous video progress using detection script again automatically, therefore detection efficiency is higher and testing cost is relatively low.

Description

Browser error detection method and error detector element
Technical field
The present invention relates to internet arenas, more particularly to a kind of browser error detection method and error detector element.
Background technology
With the development of Internet technology, user can carry out net operation using various browsers, such as watch net Page, viewing microblogging or viewing Internet video etc..
The broadcasting form of Internet video is varied, as Streaming Media Internet video or can downloads of media Internet video Deng.The type of browser is also varied simultaneously, and the type of the Internet video of the browser support of different kernels may be different, because If this some browser can not play some Internet video, it may be possible to browser is incompatible to the Internet video of this type, It could also be possible that Internet video itself goes wrong, such as Internet video is deleted on network.
If existing browser developers will be detected the Internet video playback error of browser, need first to make Particular network video is played out with browser, if browser can not play the particular network video, then reuses third party Browser plays out the particular network video, if third party's browser can not also play the particular network video, then judges The Internet video itself has problem;As third party's browser can play the particular network video.Then judge the browser not The compatible Internet video, the i.e. browser have corresponding browser error.
Therefore by manually carrying out, detection efficiency is low for existing browser error detection method and error detector element And testing cost is higher.
Invention content
The embodiment of the present invention a kind of higher detection efficiency is provided and the lower browser error detection method of testing cost and Error detector element;Detection efficiency to solve existing browser error detection method and error detector element is relatively low and detects The higher technical problem of cost.
The embodiment of the present invention provides a kind of browser error detection method comprising:
Detection instruction is received, and is instructed according to the detection, the network address of anomalous video is obtained;
Based on the network address of the anomalous video, the anomalous video is loaded using third party's browser;
Load the first detection script, and detect the broadcast state that script detects the anomalous video using described first;With And
If the broadcast state of the anomalous video is normal play, then obtains the detection and instructs corresponding monitoring information, To carry out error detection to browser.
The embodiment of the present invention also provides a kind of browser error detection device comprising:
Video address acquisition module instructs for receiving detection instruction, and according to the detection, obtains the net of anomalous video Network address;
Third party's browser video load-on module is used for the network address based on the anomalous video, clear using third party Device of looking at loads the anomalous video;
Video broadcasting condition detection module for loading the first detection script, and detects script using described first and detects The broadcast state of the anomalous video;And
First error detection module is normal play for the broadcast state such as the anomalous video, then obtains the inspection It surveys and instructs corresponding monitoring information, to carry out error detection to browser.
Compared to the prior art, browser error detection method of the invention and error detector element use detection script pair Anomalous video progress detects again automatically, therefore detection efficiency is higher and testing cost is relatively low;It is wrong to solve existing browser The detection efficiency of error detection method and error detector element is relatively low and the higher technical problem of testing cost.
Description of the drawings
Fig. 1 is the flow chart of the first embodiment of the browser error detection method of the present invention;
Fig. 2 is the flow chart of the second embodiment of the browser error detection method of the present invention;
Fig. 3 is the flow chart of the step S202 of the second embodiment of the browser error detection method of the present invention;
Fig. 4 is the flow chart of the step S206 of the second embodiment of the browser error detection method of the present invention;
Fig. 5 is the structural schematic diagram of the first embodiment of the browser error detection device of the present invention;
Fig. 6 is the structural schematic diagram of the second embodiment of the browser error detection device of the present invention;
Fig. 7 is the knot of the video broadcasting condition detection module of the second embodiment of the browser error detection device of the present invention Structure schematic diagram;
Fig. 8 is the knot of the video monitoring information acquisition module of the second embodiment of the browser error detection device of the present invention Structure schematic diagram;
Fig. 9 is the sequential signal of the browser error detection method of the present invention and the specific embodiment of error detector element Figure;
Figure 10 is the working environment structural schematic diagram of the electronic equipment where the browser error detection device of the present invention.
Specific implementation mode
Schema is please referred to, wherein identical component symbol represents identical component, the principle of the present invention is to implement one It is illustrated in computing environment appropriate.The following description be based on illustrated by the specific embodiment of the invention, should not be by It is considered as the limitation present invention other specific embodiments not detailed herein.
In the following description, specific embodiments of the present invention will be referred to by the operation performed by one or multi-section computer The step of and symbol illustrate, unless otherwise stating clearly.Therefore, these steps and operation be will appreciate that, carried for several times wherein having Include by representing with the computer disposal list of the electronic signal of the data in a structuring pattern to be executed by computer Member is manipulated.At this manipulation transforms data or the position being maintained in the memory system of the computer, it can match again It sets or in addition changes the running of the computer in a manner familiar to those skilled in the art.The data knot that the data are maintained Structure is the provider location of the memory, has the specific feature defined in the data format.But the principle of the invention is with above-mentioned Word illustrates, is not represented as a kind of limitation, those skilled in the art will appreciate that plurality of step as described below and Operation also may be implemented in hardware.
The browser error detection method and error detector element of the present invention can be used for the movement of various browsable device mistakes Electronic equipment, stationary electronic devices, wearable device, helmet or medical treatment & health platform.User is set using the mobile electron Standby, stationary electronic devices, wearable device, helmet or medical treatment & health platform can effectively examine the mistake of browser It surveys, and improves the efficiency of browser error detection and reduce the testing cost of browser error.In the present embodiment, the browsing Device can be local browser.
Fig. 1 is please referred to, Fig. 1 is the flow chart of the first embodiment of the browser error detection method of the present invention.This implementation Above-mentioned mobile electronic device or stationary electronic devices can be used to be implemented for the browser error detection method of example, the present embodiment Browser error detection method include:
Step S101 receives detection instruction, and is instructed according to detection, obtains the network address of anomalous video;
Step S102, the network address based on anomalous video load anomalous video using third party's browser;
Step S103, load the first detection script, and use the broadcast state of the first detection script detection anomalous video;
Step S104 then obtains detection and instructs corresponding monitoring information if the broadcast state of anomalous video is normal play, To carry out error detection to browser.
The following detailed description of the detailed process of each step of the browser error detection method of the present embodiment.
In step S101, the detection instruction outside the reception of browser error detection device, detection instruction is using clear Device of looking at detects anomalous video, and the anomalous video sent out confirms instruction.Here browser detects that anomalous video may be net The problem of network video, it is also possible to the problem of the compatibility of browser, it is therefore desirable to the producing cause of the anomalous video itself Confirmed.
Subsequent browser error detection device is instructed according to the detection, the network address of anomalous video is obtained, so as to follow-up Carry out error detection.Then pass to step S102.
In step s 102, network address of the browser error detection device based on the step S101 anomalous videos obtained, Load the anomalous video using third party's browser, third party's browser here can be different from browser kernel other are clear Look at device.Then pass to step S103.
In step s 103, the first detection of browser error detection device load script, the first detection script can be used for Imitate the automatic user's touch event for playing anomalous video.Subsequent browser error detection device is detected using the first detection script The broadcast state of the anomalous video loaded in third party's browser.Here broadcast state can be normal playing status or improper Broadcast state.Normal playing status be third party's browser can the normal play anomalous video, abnormal playing status is third It is anomalous video that square browser, which also detects the video,.Then pass to step S104.
In step S104, as browser error detection device detects the anomalous video loaded in third party's browser Broadcast state is normal playing status, then illustrates that browser has the problem of compatibility with the anomalous video;Subsequent browser is wrong Detection instructs corresponding monitoring information in error detection device obtaining step S101, and the mistake of browser is carried out by the monitoring information Error detection.
The browser error detection process of the browser error detection method of the present embodiment is completed in this way.
The browser error detection method of the present embodiment detects anomalous video progress using detection script again automatically, because This detection efficiency is higher and testing cost is relatively low.
Fig. 2 is please referred to, Fig. 2 is the flow chart of the second embodiment of the browser error detection method of the present invention.This implementation Above-mentioned mobile electronic device or stationary electronic devices can be used to be implemented for the browser error detection method of example, the present embodiment Browser error detection method include:
Step S201 loads detection video based on the network address of detection video using browser;
Step S202, load the second detection script, and use the monitoring information of the second detection script acquisition detection video;
Step S203, the broadcast state if monitoring information is detection video is trick play, then generates detection instruction, and The monitoring information for detecting video is set as the detection and instructs corresponding monitoring information, detection video, which is set as abnormal, to be regarded Frequently;
Step S204 receives detection instruction, and is instructed according to detection, obtains the network address of anomalous video;
Step S205, the network address based on anomalous video load anomalous video using third party's browser;
Step S206, load the first detection script, and use the broadcast state of the first detection script detection anomalous video;
Step S207 then obtains detection and instructs corresponding monitoring information if the broadcast state of anomalous video is normal play, To carry out error detection to browser;If the broadcast state of anomalous video is trick play, then anomalous video is judged to ask Inscribe video.
The following detailed description of the detailed process of each step of the browser error detection method of the present embodiment.
In step s 201, network address of the browser error detection device based on detection video, is loaded using browser Video is detected, i.e., operation is played out to detection video using browser.Then pass to step S202.
In step S202, browser error detection device load the second detection script, the second detection script can be used for Imitate the automatic user's touch event for playing detection video.Subsequent browser error detection device is obtained using the second detection script The monitoring information of the detection video loaded in browser.Here monitoring information includes detecting the broadcast state of video normally to broadcast Put state or abnormal playing status.Normal playing status be browser can the normal play detection video, trick play shape State is that browser determines that the detection video is anomalous video.Specifically, please referring to Fig. 3, Fig. 3 is the browser error inspection of the present invention The flow chart of the step S202 of the second embodiment of survey method obtains the monitoring information of detection video using the second detection script Step includes:
Step S301, browser error detection device load and run the second detection script for imitating user's touch event, Such as javascript scripts, such second detection script can play the detection video automatically in a browser;
Step S302, browser error detection device use monitoring programme, such as the automatically-monitored programs of robertium, The monitoring information for obtaining detection video can pass through prison since browser is generally the browser for detecting user oneself and developing Control program monitors the operating status of entire browser, to obtain corresponding monitoring information.Then pass to step S203.
In step S203, the broadcast state if monitoring information is detection video is abnormal playing status, then browser Error detector element generates detection instruction, and detection instruction is detects anomalous video using browser, and the exception sent out regards Frequency confirms instruction.The monitoring information for detecting video is set as the corresponding monitoring of detection instruction by browser error detection device simultaneously Information, and detection video is set as anomalous video, subsequently to be detected again to the anomalous video.It here can will be more The network address of a anomalous video is stored on corresponding external server, subsequently to carry out batch detection.Then pass to step Rapid S204.
In step S204, the detection instruction outside the reception of browser error detection device, browser detects different here The problem of normal video may be Internet video itself, it is also possible to the problem of the compatibility of browser, it is therefore desirable to the exception The producing cause of video is confirmed.
Subsequent browser error detection device is instructed according to the detection, and the network of anomalous video is obtained from external server Address, subsequently to carry out error detection, the network address number of the anomalous video as obtained the json formats on external server According to.Then pass to step S205.
In step S205, network address of the browser error detection device based on the step S204 anomalous videos obtained, Load the anomalous video using third party's browser, third party's browser here can be different from browser kernel other are clear Look at device.Then pass to step S206.
In step S206, browser error detection device load the first detection script, the first detection script can be used for Imitate the automatic user's touch event for playing anomalous video.Subsequent browser error detection device is detected using the first detection script The broadcast state of the anomalous video loaded in third party's browser.Here broadcast state can be normal playing status or improper Broadcast state.Normal playing status be third party's browser can the normal play anomalous video, abnormal playing status is third It is anomalous video that square browser, which also detects the video,.Specifically, please referring to Fig. 4, Fig. 4 is the browser error detection side of the present invention The flow chart of the step S206 of the second embodiment of method detects the step of script detects the broadcast state of anomalous video using first Including:
Step S401, browser error detection device are loaded by websocket protocol etc. and are run for imitating user First detection script of touch event, such as javascript scripts, such first detection script can be in third party's browser Automatically the anomalous video is played.
Step S402, browser error detection device use Interface detection frame, such as UIAutomator test frames, Detect the broadcast state of the anomalous video.Since third party's browser is generally the browser of other kernels, here can only The interface state of browser is detected using Interface detection frame, to obtain the broadcast state of anomalous video.It then passes to Step S207.
In step S207, as browser error detection device detects the anomalous video loaded in third party's browser Broadcast state is normal playing status, then illustrates that browser has the problem of compatibility with the anomalous video;Subsequent browser is wrong Detection instructs corresponding monitoring information in error detection device obtaining step S204, and the mistake of browser is carried out by the monitoring information Error detection.Monitoring information can be also sent to the error detection that browser is carried out on external server here.
As browser error detection device detects that the broadcast state of the anomalous video loaded in third party's browser is non- Normal playing status, then illustrate the anomalous video on any other browser can not normal play, therefore judge the exception Video is problem video.
The browser error detection process of the browser error detection method of the present embodiment is completed in this way.
On the basis of first embodiment, the browser error detection method of the present embodiment obtains detection instruction and corresponds in advance Monitoring information, more efficiently to carry out the error detection of browser;It is adopted simultaneously for browser and third party's browser With different anomalous video criterion, the detection efficiency of anomalous video is further improved.
The present invention also provides a kind of browser error detection devices, please refer to Fig. 5, and Fig. 5 is the browser error of the present invention The structural schematic diagram of the first embodiment of detection device.Above-mentioned browsing can be used in the browser error detection device of the present embodiment The first embodiment of device error-detecting method is implemented, and the browser error detection device 50 of the present embodiment includes video address Acquisition module 51, third party's browser video load-on module 52, video broadcasting condition detection module 53 and the first error detection Module 54.
Video address acquisition module 51 is instructed for receiving detection instruction, and according to detection, obtains the network of anomalous video Address;Third party's browser video load-on module 52 is used for the network address based on anomalous video, is added using third party's browser Carry anomalous video;Video broadcasting condition detection module 53 is detected for loading the first detection script, and using the first detection script The broadcast state of anomalous video;It is normal play that first error detection module 54, which is used for the broadcast state of anomalous video such as, then obtains Detection is taken to instruct corresponding monitoring information, to carry out error detection to browser.
The browser error detection device 50 of the present embodiment is in use, video address acquisition module 51 receives outside first Detection instruction, detection instruction is detects anomalous video using browser, and the anomalous video sent out confirms instruction.Here clear Device of looking at detects the problem of anomalous video may be Internet video itself, it is also possible to the problem of the compatibility of browser, therefore It needs to confirm the producing cause of the anomalous video.
Subsequent video address acquisition module 51 is instructed according to the detection, the network address of anomalous video is obtained, so as to follow-up Carry out error detection.
Then the net for the anomalous video that third party's browser video load-on module 52 is obtained based on video address acquisition module Network address loads the anomalous video using third party's browser, and third party's browser here can be different from browser kernel Other browsers.
Then video broadcasting condition detection module 53 loads the first detection script, which can be used for imitating certainly The dynamic user's touch event for playing anomalous video.Subsequent video broadcasting condition detection module 53 uses the first detection script detection the The broadcast state of the anomalous video loaded in tripartite's browser.Here broadcast state can be normal playing status or improper broadcast Put state.Normal playing status be third party's browser can the normal play anomalous video, abnormal playing status is third party It is anomalous video that browser, which also detects the video,.
The last broadcasting that the anomalous video loaded in third party's browser is detected such as video broadcasting condition detection module 53 State is normal playing status, then illustrates that browser has the problem of compatibility with the anomalous video;Subsequent first error detection Module 54 obtains detection in video address acquisition module 51 and instructs corresponding monitoring information, and is browsed by the monitoring information The error detection of device.
The browser error detection process of the browser error detection device 50 of the present embodiment is completed in this way.
The browser error detection device of the present embodiment detects anomalous video progress using detection script again automatically, because This detection efficiency is higher and testing cost is relatively low.
Fig. 6 is please referred to, Fig. 6 is the structural schematic diagram of the second embodiment of the browser error detection device of the present invention.This The second embodiment of above-mentioned browser error detection method can be used to be implemented for the browser error detection device of embodiment, this The browser error detection device 60 of embodiment include browser video load-on module 61, video monitoring information acquisition module 62, Detect directive generation module 63, video address acquisition module 64, third party's browser video load-on module 65, video broadcasting condition Detection module 66, the first error detection module 67 and the second error detection module 68.
Browser video load-on module 61 is used for the network address based on detection video, is regarded using browser load detection Frequently.Video monitoring information acquisition module 62 obtains detection video for loading the second detection script, and using the second detection script Monitoring information.The broadcast state that detection directive generation module 63 is used for if monitoring information is detection video is trick play, Detection instruction is then generated, and the monitoring information for detecting video is set as detection and instructs corresponding monitoring information, video will be detected It is set as anomalous video.Video address acquisition module 64 is instructed for receiving detection instruction, and according to detection, obtains anomalous video Network address.Third party's browser video load-on module 65 is used for the network address based on anomalous video, clear using third party Device of looking at loads anomalous video.Video broadcasting condition detection module 66 uses the first detection foot for loading the first detection script The broadcast state of this detection anomalous video.It is normally to broadcast that first error detection module 67, which is used for the broadcast state of anomalous video such as, It puts, then obtains detection and instruct corresponding monitoring information, to carry out error detection to browser.Second error detection module 68 is used It is trick play in the broadcast state of such as anomalous video, then judges anomalous video for problem video.
Fig. 7 is please referred to, Fig. 7 is the video broadcasting condition inspection of the second embodiment of the browser error detection device of the present invention Survey the structural schematic diagram of module.The video broadcasting condition detection module 66 includes the first detection script loading unit 71 and video Broadcast state detection unit 72.
First detection script loading unit 71 is for loading and running the first detection foot for imitating user's touch event This, to play the anomalous video automatically;Video broadcasting condition detection unit 72 is used to detect using Interface detection frame abnormal The broadcast state of video.
Fig. 8 is please referred to, Fig. 8 is that the video monitoring information of the second embodiment of the browser error detection device of the present invention obtains The structural schematic diagram of modulus block.The video monitoring information acquisition module 62 includes the second detection script loading unit 81 and video Monitoring information acquiring unit 82.
Second detection script loading unit 81 is for loading and running the second detection foot for imitating user's touch event This, to play the detection video automatically;Video monitoring information acquiring unit 82 is used to obtain detection video using monitoring programme Monitoring information.
The browser error detection device of the present embodiment is in use, browser video load-on module is based on detection video first Network address, using browser load detection video, i.e., using browser to detection video play out operation.
Subsequent video monitoring information acquisition module load the second detection script, the second detection script can be used for imitating automatic Play user's touch event of detection video.Subsequent video monitoring information acquisition module obtains browser using the second detection script The monitoring information of the detection video of middle load.Here monitoring information includes detecting the broadcast state of video as normal playing status Or abnormal playing status.Normal playing status be browser can the normal play detection video, abnormal playing status is clear Device of looking at determines that the detection video is anomalous video.
Specifically:
Second detection script loading unit of video monitoring information acquisition module, which is loaded and run, imitates user's touch event The second detection script, such as javascript scripts, such second detection script can play the detection automatically in a browser Video;
The video monitoring information acquiring unit of video monitoring information acquisition module uses monitoring programme, such as robertium Automatically-monitored program obtains the monitoring information of detection video, since browser is generally the browsing for detecting user oneself and developing Device, therefore the operating status of entire browser can be monitored by monitoring programme, to obtain corresponding monitoring information.
Then the broadcast state if monitoring information is detection video is abnormal playing status, then detects directive generation module Detection instruction is generated, detection instruction is detects anomalous video using browser, and the anomalous video sent out confirms instruction.Together When detection directive generation module the monitoring information for detecting video be set as detection instruct corresponding monitoring information, and detection is regarded Frequency is set as anomalous video, subsequently to be detected again to the anomalous video.It here can be by the net of multiple anomalous videos Network address is stored on corresponding external server, subsequently to carry out batch detection.
Detection instruction outside subsequent video address acquisition module reception, browser detects that anomalous video may be here The problem of Internet video itself, it is also possible to the problem of the compatibility of browser, it is therefore desirable to former to the generation of the anomalous video Because being confirmed.
Subsequent video address acquisition module is instructed according to the detection, the network of anomalous video is obtained from external server Location, subsequently to carry out error detection, the network address data of the anomalous video as obtained the json formats on external server.
Then the network for the anomalous video that third party's browser video load-on module is obtained based on video address acquisition module Address loads the anomalous video using third party's browser, third party's browser here be different from browser kernel its His browser.
Subsequent video broadcasting condition detection module load the first detection script, the first detection script can be used for imitating automatic Play user's touch event of anomalous video.Subsequent video broadcasting condition detection module detects third party using the first detection script The broadcast state of the anomalous video loaded in browser.Here broadcast state can be normal playing status or trick play shape State.Normal playing status be third party's browser can the normal play anomalous video, abnormal playing status is third party's browsing It is anomalous video that device, which also detects the video,.
Specifically:
First detection script loading unit of video broadcasting condition detection module is loaded and is transported by websocket protocol etc. First detection script of the row for imitating user's touch event, such as javascript scripts, such first detection script can be Automatically the anomalous video is played in third party's browser.
The video broadcasting condition detection unit of video broadcasting condition detection module uses Interface detection frame, such as UIAutomator test frames etc. detect the broadcast state of the anomalous video.Since third party's browser is generally other kernels Browser, therefore the interface state of browser can only be detected using Interface detection frame here, to obtain abnormal regard The broadcast state of frequency.
The last broadcasting shape that the anomalous video loaded in third party's browser is detected such as video broadcasting condition detection module State is normal playing status, then illustrates that browser has the problem of compatibility with the anomalous video;First error detection module obtains It takes detection in video address acquisition module to instruct corresponding monitoring information, and carries out the mistake inspection of browser by the monitoring information It surveys.Monitoring information can be also sent to the error detection that browser is carried out on external server here.
As the anomalous video loaded in video broadcasting condition detection module to third party's browser broadcast state be it is non-just Normal broadcast state, then illustrate the anomalous video on any other browser can not normal play, therefore the second error detection Module judges the anomalous video for problem video.
The browser error detection process of the browser error detection device of the present embodiment is completed in this way.
On the basis of first embodiment, the browser error detection device of the present embodiment obtains detection instruction and corresponds in advance Monitoring information, more efficiently to carry out the error detection of browser;It is adopted simultaneously for browser and third party's browser With different anomalous video criterion, the detection efficiency of anomalous video is further improved.
Illustrate the browser error detection method of the present invention and the tool of error detector element below by a specific embodiment Body running principle.Fig. 9 is please referred to, Fig. 9 is the browser error detection method of the present invention and the specific implementation of error detector element The time diagram of example.The browser error detection device of this specific embodiment is arranged in the mobile terminal of an Android system, In this embodiment, browser is QQ browsers, and third party's browser is Google's browser and UC browsers.This is specific The browser error detection device of embodiment carries out the step of error detection of QQ browsers and includes:
Step S901, mobile terminal use QQ browsers load detection video;
Step S902, mobile terminal click event using javascript script analog subscriber touch-controls, in this way can be clear in QQ It lookes at and plays detection video in device automatically;
Step S903, mobile terminal use the automatically-monitored programs of robertium, obtain detection video in QQ browsers Monitoring information, to obtain the corresponding broadcast state of detection video.
Step S904, the broadcast state for such as detecting video is normal play, then illustrates that QQ browsers can perfect compatible inspection Survey video;The broadcast state for such as detecting video is trick play, then illustrates that QQ browsers may there are simultaneous with the detection video Capacitive problem, mobile terminal generates detection instruction, and carries out storage operation to monitoring information, and detection video is set as different Normal video.
Step S905, subsequent movement terminal can be instructed according to detection, and obtain the network address of corresponding anomalous video.
Step S906, mobile terminal load above-mentioned anomalous video using Google's browser and UC browsers.
Step S907, mobile terminal are clicked by websocket protocol using javascript script analog subscriber touch-controls Event can play anomalous video automatically in Google's browser and UC browsers in this way.
Step S908, mobile terminal use Interface detection frame UIAutomator, obtain anomalous video in Google's browser And the broadcast state in UC browsers.
Step S909, if the broadcast state of anomalous video is normal play, then QQ browsers are deposited with the anomalous video really In compatibility issue, the corresponding monitoring information of the acquisition for mobile terminal anomalous video, to carry out the error detection of QQ browsers.
If the broadcast state of anomalous video is trick play, then illustrate that Google's browser and UC browsers are regarded with abnormal There is also compatibility issues for frequency, i.e., the anomalous video may be problem video, i.e., there are problems for anomalous video itself, such as in network Storage end is deleted etc..
Mobile terminal can obtain the monitoring information after being detected again by third party's browser in this way, to QQ browsers Mistake is accurately detected, and the accuracy of error detection is improved.
The clear of the specific embodiment of browser error detection method of the invention and error detector element is completed in this way Look at device error detection procedure.
The browser error detection method and error detector element of the present invention carries out certainly anomalous video using detection script It is dynamic to detect again, therefore detection efficiency is higher and testing cost is relatively low;Solve existing browser error detection method and mistake The detection efficiency of error detection device is relatively low and the higher technical problem of testing cost.
" component ", " module ", " system ", " interface ", " process " etc. are usually intended to as used herein the term Refer to computer related entity:Hardware, the combination of hardware and software, software or software in execution.For example, component can be but not It is limited to run process on a processor, processor, object, executable application, thread, program and/or the computer executed. By diagram, both the application and the controller run on the controller can be component.One or more components can have It is in the process executed and/or thread, and component can be located on a computer and/or be distributed in two or more meters Between calculation machine.
Figure 10 and the discussion below are provided to the electronics where realization browser error detection device of the present invention Brief, summary the description of the working environment of equipment.The working environment of Figure 10 is only an example of working environment appropriate And suggestion is not intended to about the purposes of working environment or any restrictions of the range of function.Example electronic equipment 1012 include but It is not limited to wearable device, helmet, medical treatment & health platform, personal computer, server computer, hand-held or on knee Equipment, multicomputer system, disappears at mobile device (such as mobile phone, personal digital assistant (PDA), media player etc.) Take the distributed computing environment that type electronic equipment, minicomputer, mainframe computer include above-mentioned arbitrary system or equipment, etc. Deng.
Although not requiring, in the common background that " computer-readable instruction " is executed by one or more electronic equipments Lower description embodiment.Computer-readable instruction can be distributed and (be discussed below) via computer-readable medium.It is computer-readable Instruction can be implemented as program module, such as the function of execution particular task or realization particular abstract data type, object, application Programming interface (API), data structure etc..Typically, the function of the computer-readable instruction can be in various environment arbitrarily Combination or distribution.
Figure 10 illustrates the electronic equipment of one or more embodiments of the browser error detection device including the present invention 1012 example.In one configuration, electronic equipment 1012 includes at least one processing unit 1016 and memory 1018.According to The exact configuration and type of electronic equipment, memory 1018 can be volatibility (such as RAM), it is non-volatile (such as ROM, flash memory etc.) or the two certain combination.The configuration is illustrated by dotted line 1014 in Fig. 10.
In other embodiments, electronic equipment 1012 may include supplementary features and/or function.For example, equipment 1012 is also May include additional storage device (such as removable and/or non-removable) comprising but it is not limited to magnetic memory apparatus, light Storage device etc..This additional memory devices are illustrated by storage device 1020 in Fig. 10.In one embodiment, it is used for real The computer-readable instruction of existing one or more embodiments provided in this article can be in storage device 1020.Storage device 1020 can also store other computer-readable instructions for realizing operating system, application program etc..Computer-readable instruction It can be loaded into memory 1018 and be executed by such as processing unit 1016.
Term as used herein " computer-readable medium " includes computer storage media.Computer storage media includes The volatibility that any method or technique of the information of such as computer-readable instruction or other data etc is realized for storage With non-volatile, removable and nonremovable medium.Memory 1018 and storage device 1020 are the realities of computer storage media Example.Computer storage media includes but not limited to RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, number Universal disc (DVD) or other light storage devices, cassette tape, tape, disk storage device or other magnetic storage apparatus can be with For storing any other medium it is expected information and can accessed by electronic equipment 1012.Arbitrary such computer storage is situated between Matter can be a part for electronic equipment 1012.
Electronic equipment 1012 can also include the communication connection 1026 for allowing electronic equipment 1012 to be communicated with other equipment.It is logical Letter connection 1026 can include but is not limited to modem, network interface card (NIC), integrated network interface, radiofrequency launcher/ Receiver, infrared port, USB connections or other interfaces for electronic equipment 1012 to be connected to other electronic equipments.Communication Connection 1026 may include wired connection or wireless connection.Communication connection 1026 can emit and/or receive communication medium.
Term " computer-readable medium " may include communication media.Communication media typically comprises computer-readable instruction Or other data in " the own modulated data signal " of such as carrier wave or other transmission mechanisms etc, and include that any information is passed Send medium.Term " own modulated data signal " may include such signal:One or more of the characteristics of signals is according to general Mode in information coding to signal is set or changed.
Electronic equipment 1012 may include input equipment 1024, for example, keyboard, mouse, pen, voice-input device, touch it is defeated Enter equipment, infrared camera, video input apparatus and/or any other input equipment.Can also include that output is set in equipment 1012 Standby 1022, such as one or more displays, loud speaker, printer and/or other arbitrary output equipments.1024 He of input equipment Output equipment 1022 can be connected to electronic equipment 1012 via wired connection, wireless connection or its arbitrary combination.In a reality It applies in example, input equipment or output equipment from another electronic equipment are used as the input equipment of electronic equipment 1012 1024 or output equipment 1022.
The component of electronic equipment 1012 can be connected by various interconnection (such as bus).Such interconnection may include outer Enclose component interconnection (PCI) (such as quick PCI), universal serial bus (USB), firewire (IEEE1394), optical bus structure etc. Deng.In another embodiment, the component of electronic equipment 1012 can pass through network interconnection.For example, memory 1018 can be by Multiple physical memory cells arcs composition in different physical locations, by network interconnection.
It would be recognized by those skilled in the art that the storage device for storing computer-readable instruction can be across network point Cloth.For example, can be stored for realizing one provided by the present invention via the electronic equipment 1030 that network 1028 accesses or The computer-readable instruction of multiple embodiments.Electronic equipment 1012 can access electronic equipment 1030 and downloading computer is readable What is instructed is part or all of for execution.Alternatively, electronic equipment 1012 can be downloaded a plurality of computer-readable on demand It instructs or some instruction can be executed at electronic equipment 1012 and some instructions can be held at electronic equipment 1030 Row.
There is provided herein the various operations of embodiment.In one embodiment, one or more operations can be with structure At the computer-readable instruction stored on one or more computer-readable mediums, will make to succeed in one's scheme when being executed by electronic equipment It calculates equipment and executes the operation.Describing the sequences of some or all of operations, to should not be construed as to imply that these operations necessarily suitable Sequence is relevant.It will be appreciated by those skilled in the art that the alternative sequence of the benefit with this specification.Furthermore, it is to be understood that Not all operation must exist in each embodiment provided in this article.
Moreover, although the disclosure, this field skill has shown and described relative to one or more realization methods Art personnel will be appreciated that equivalent variations and modification based on the reading and understanding to the specification and drawings.The disclosure include it is all this The modifications and variations of sample, and be limited only by the scope of the following claims.In particular, to by said modules (such as element, Resource etc.) various functions that execute, the term for describing such component is intended to correspond to the specified work(for executing the component The random component (unless otherwise instructed) of energy (such as it is functionally of equal value), even if illustrated herein with execution in structure The disclosure exemplary implementations in function open structure it is not equivalent.In addition, although the special characteristic of the disclosure Through being disclosed relative to the only one in several realization methods, but this feature can with such as can be to given or specific application For be it is expected and one or more other features combinations of other advantageous realization methods.Moreover, with regard to term " comprising ", " tool Have ", " containing " or its deformation be used in specific implementation mode or claim for, such term be intended to with term The similar mode of "comprising" includes.
Each functional unit in the embodiment of the present invention can be integrated in a processing module, can also be each unit list Solely be physically present, can also two or more units be integrated in a module.Above-mentioned integrated module both may be used The form of hardware is realized, can also be realized in the form of software function module.If the integrated module is with software function The form of module is realized and when sold or used as an independent product, can also be stored in a computer-readable storage and be situated between In matter.Storage medium mentioned above can be read-only memory, disk or CD etc..Above-mentioned each device or system, can be with Execute the method in correlation method embodiment.
In conclusion although the present invention is disclosed above with embodiment, the serial number before embodiment, such as " first ", " second " Deng only using for convenience of description, the sequence of various embodiments of the present invention is not caused to limit.Also, above-described embodiment not to Limitation the present invention, those skilled in the art, without departing from the spirit and scope of the present invention, can make it is various change with Retouching, therefore protection scope of the present invention is subject to the range that claim defines.

Claims (8)

1. a kind of browser error detection method, which is characterized in that including:
Detection instruction is received, and is instructed according to the detection, the network address of anomalous video is obtained;
Based on the network address of the anomalous video, the anomalous video is loaded using third party's browser;
Load the first detection script, and detected in script detection third party's browser using described first and load the anomalous video Broadcast state;And
If the broadcast state of the anomalous video is normal play, then obtains the detection and instruct corresponding monitoring information, so as to Error detection is carried out to browser to be detected;
Further include before the step of reception detection instruction:
Based on the network address of detection video, the detection video is loaded using the browser to be detected;
Load the second detection script, and load the detection in browser to be detected using the second detection script acquisition and regard The monitoring information of frequency;And
It is trick play that the broadcast state of video is detected as described in the monitoring information is, then generates the detection instruction, and The monitoring information of the detection video is set as the detection and instructs corresponding monitoring information, the detection video is set as The anomalous video.
2. browser error detection method according to claim 1, which is characterized in that such as the broadcasting shape of the anomalous video State is trick play, then judges the anomalous video for problem video.
3. browser error detection method according to claim 1, which is characterized in that described to detect foot using described first The step of loading the broadcast state of the anomalous video in this detection third party's browser include:
It loads and runs the first detection script for imitating user's touch event, to play the anomalous video automatically; And
The broadcast state that the anomalous video is loaded in third party's browser is detected using Interface detection frame.
4. browser error detection method according to claim 1, which is characterized in that described to detect foot using described second This obtain it is described detection video monitoring information the step of include:
It loads and runs the second detection script for imitating user's touch event, to play the detection video automatically; And
The monitoring information that the detection video is loaded in browser to be detected is obtained using monitoring programme.
5. a kind of browser error detection device, which is characterized in that including:
Video address acquisition module instructs, with obtaining the network of anomalous video for receiving detection instruction, and according to the detection Location;
Third party's browser video load-on module is used for the network address based on the anomalous video, uses third party's browser Load the anomalous video;
Video broadcasting condition detection module for loading the first detection script, and detects script using described first and detects third The broadcast state of the anomalous video is loaded in square browser;And
First error detection module is normal play for the broadcast state such as the anomalous video, then obtains the detection and refer to Corresponding monitoring information is enabled, to carry out error detection to browser to be detected;
The browser error detection device further includes:
Browser video load-on module loads institute for the network address based on detection video using the browser to be detected State detection video;
Video monitoring information acquisition module for loading the second detection script, and detects script acquisition using described second and is waiting for The monitoring information of the detection video is loaded in detection browser;And
Directive generation module is detected, the broadcast state for detecting video as described in being such as the monitoring information is trick play, The detection instruction is then generated, and the monitoring information of the detection video is set as the detection, corresponding monitoring is instructed to believe Breath, is set as the anomalous video by the detection video.
6. browser error detection device according to claim 5, which is characterized in that the browser error detection device Further include:
Second error detection module is trick play for the broadcast state such as the anomalous video, then judges the exception Video is problem video.
7. browser error detection device according to claim 5, which is characterized in that the video broadcasting condition detects mould Block includes:
First detection script loading unit, for loading and running the first detection foot for imitating user's touch event This, to play the anomalous video automatically;And
Video broadcasting condition detection unit loads the exception and regards for using Interface detection frame to detect in third party's browser The broadcast state of frequency.
8. browser error detection device according to claim 5, which is characterized in that the video monitoring information obtains mould Block includes:
Second detection script loading unit, for loading and running the second detection foot for imitating user's touch event This, to play the detection video automatically;And
Video monitoring information acquiring unit, for using monitoring programme acquisition to load the detection video in browser to be detected Monitoring information.
CN201610796451.XA 2016-08-31 2016-08-31 Browser error detection method and error detector element Active CN106371992B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610796451.XA CN106371992B (en) 2016-08-31 2016-08-31 Browser error detection method and error detector element

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610796451.XA CN106371992B (en) 2016-08-31 2016-08-31 Browser error detection method and error detector element

Publications (2)

Publication Number Publication Date
CN106371992A CN106371992A (en) 2017-02-01
CN106371992B true CN106371992B (en) 2018-09-04

Family

ID=57899124

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610796451.XA Active CN106371992B (en) 2016-08-31 2016-08-31 Browser error detection method and error detector element

Country Status (1)

Country Link
CN (1) CN106371992B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101883269A (en) * 2010-04-15 2010-11-10 西安酷派软件科技有限公司 Method, device and mobile terminal for playing stream media
CN103186465A (en) * 2011-12-31 2013-07-03 北京新媒传信科技有限公司 Browser compatibility testing method and system for webpage user interface
CN103699483A (en) * 2013-12-20 2014-04-02 合一网络技术(北京)有限公司 Method and device for testing compatibility of playing state of flash player and browser
CN103731729A (en) * 2013-11-26 2014-04-16 乐视致新电子科技(天津)有限公司 Media player of smart television, exception handling method of media player of smart television and smart television
CN103997643A (en) * 2014-06-06 2014-08-20 北京安兔兔科技有限公司 Method and device for testing video playing performance
CN104735473A (en) * 2015-03-05 2015-06-24 天脉聚源(北京)科技有限公司 Video stream playing detection method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101883269A (en) * 2010-04-15 2010-11-10 西安酷派软件科技有限公司 Method, device and mobile terminal for playing stream media
CN103186465A (en) * 2011-12-31 2013-07-03 北京新媒传信科技有限公司 Browser compatibility testing method and system for webpage user interface
CN103731729A (en) * 2013-11-26 2014-04-16 乐视致新电子科技(天津)有限公司 Media player of smart television, exception handling method of media player of smart television and smart television
CN103699483A (en) * 2013-12-20 2014-04-02 合一网络技术(北京)有限公司 Method and device for testing compatibility of playing state of flash player and browser
CN103997643A (en) * 2014-06-06 2014-08-20 北京安兔兔科技有限公司 Method and device for testing video playing performance
CN104735473A (en) * 2015-03-05 2015-06-24 天脉聚源(北京)科技有限公司 Video stream playing detection method and device

Also Published As

Publication number Publication date
CN106371992A (en) 2017-02-01

Similar Documents

Publication Publication Date Title
US9747191B1 (en) Tool to replicate actions across devices in real time for improved efficiency during manual application testing
CN105204969B (en) Abnormal log processing method and abnormal log processing unit
CN108495185B (en) Video title generation method and device
TWI608416B (en) Page return method and apparatus, page generation method and apparatus
US8863087B2 (en) Comprehensively testing functionality of a computer program based on program code changes
CN109656806A (en) A kind of the playback test method and device of interface data
CN107329750A (en) The recognition methods of advertisement page, jump method and mobile terminal in application program
CN109815119B (en) APP link channel testing method and device
CN105975393B (en) Page display detection method and system
CN110716853A (en) Test script recording method, application program testing method and related device
CN111694757B (en) Application program testing method and device, electronic equipment and computer readable storage medium
CN110320378B (en) Method, apparatus, device and computer readable storage medium for applying for a quality control test
CA2881145C (en) Fulfillment of applications to devices
CN109558331B (en) Application program defect detection method, device, equipment and storage medium
CN104918119A (en) Video processing method based on iOS browser, and video processing apparatus based on iOS browser
CN109828920A (en) A kind of log analysis method, device and computer readable storage medium
CN111522749A (en) Page testing method and device, readable storage medium and electronic equipment
CN110674023B (en) Interface testing method and device
CN106371992B (en) Browser error detection method and error detector element
CN110324345B (en) Server login method and device, storage medium and terminal
CN110413800B (en) Method and equipment for providing novel information
US10530835B2 (en) Application recording
CN105262829B (en) Geographical position monitoring method and system
CN114443453A (en) Test data recording method, device, equipment and computer storage medium
CN112199270B (en) Program testing method, device, equipment and medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant