CN106371992A - Browser error detection method and device - Google Patents

Browser error detection method and device Download PDF

Info

Publication number
CN106371992A
CN106371992A CN201610796451.XA CN201610796451A CN106371992A CN 106371992 A CN106371992 A CN 106371992A CN 201610796451 A CN201610796451 A CN 201610796451A CN 106371992 A CN106371992 A CN 106371992A
Authority
CN
China
Prior art keywords
video
detection
browser
anomalous
error detection
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
CN201610796451.XA
Other languages
Chinese (zh)
Other versions
CN106371992B (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 invention provides a browser error detection method. The browser error detection method comprises: receiving a detection instruction and acquiring a network address of an abnormal video according to the detection instruction; based on the network address of the abnormal video, loading the abnormal video by utilizing a third-party browser; loading a first detection script and detecting a playing state of the abnormal video by utilizing the first detection script; if the playing state of the abnormal video is normal playing, acquiring monitoring information corresponding to the detection instruction, so as to carry out error detection on the browser. The invention further provides a browser error detection device. According to the browser error detection method and device provided by the invention, the abnormal video is automatically detected again by utilizing the detection script, so that the detection efficiency is relatively high and the detection cost is relatively low.

Description

Browser error detection method and error detector element
Technical field
The present invention relates to internet arena, 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 upper net operation using various browsers, such as viewing net Page, viewing microblogging or viewing Internet video etc..
The broadcasting form of Internet video is varied, such as the Internet video of Streaming Media or can downloads of media Internet video Deng.The species of browser is also varied simultaneously, and the species of the Internet video of browser support of different kernels may be different, because If this certain browser cannot play certain 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 goes wrong in itself, such as Internet video has been deleted on network.
If existing browser developers will detect to the Internet video playback error of browser, need first to make With browser, particular network video is played out, such as browser cannot play this particular network video, then reuse third party Browser plays out to this particular network video, and such as third party's browser also cannot play this particular network video, then judge This Internet video has problem in itself;As third party's browser can play this particular network video.Then judge this browser not This Internet video compatible, that is, this browser there is corresponding browser error.
, all by manually carrying out, detection efficiency is low for therefore existing browser error detection method and error detector element And testing cost is higher.
Content of the invention
The embodiment of the present invention provide a kind of detection efficiency is higher and testing cost is relatively low browser error detection method and Error detector element;Relatively low and detect with the detection efficiency that solves existing browser error detection method and error detector element Relatively costly technical problem.
The embodiment of the present invention provides a kind of browser error detection method, comprising:
Receive detection instruction, and according to described detection instruction, obtain the network address of anomalous video;
Based on the network address of described anomalous video, load described anomalous video using third party's browser;
Load the first detection script, and detect the broadcast state of described anomalous video using described first detection script;With And
Broadcast state as described anomalous video is normal play, then obtain described detection and instruct corresponding monitoring information, So that error detection is carried out to browser.
The embodiment of the present invention also provides a kind of browser error detection means, comprising:
Video address acquisition module, for receiving detection instruction, and according to described detection instruction, obtains the net of anomalous video Network address;
Third party's browser video load-on module, for the network address based on described anomalous video, clear using third party Device of looking at loads described anomalous video;
Video broadcasting condition detection module, for loading the first detection script, and using described first detection script detection The broadcast state of described anomalous video;And
First error detection module, the broadcast state for such as described anomalous video is normal play, then obtain described inspection Survey and instruct corresponding monitoring information, so that error detection is carried out to browser.
Compared to prior art, the browser error detection method of the present invention and error detector element use detection script pair Anomalous video carries out automatically again detecting, therefore detection efficiency is higher and testing cost is relatively low;Solve existing browser wrong The technical problem that the detection efficiency of error detection method and error detector element is relatively low and testing cost is higher.
Brief description
Fig. 1 is the flow chart of the first embodiment of browser error detection method of the present invention;
Fig. 2 is the flow chart of the second embodiment of browser error detection method of the present invention;
Fig. 3 is the flow chart of step s202 of the second embodiment of browser error detection method of the present invention;
Fig. 4 is the flow chart of step s206 of the second embodiment of browser error detection method of the present invention;
Fig. 5 is the structural representation of the first embodiment of browser error detection means of the present invention;
Fig. 6 is the structural representation of the second embodiment of browser error detection means of the present invention;
Fig. 7 is the knot of the video broadcasting condition detection module of the second embodiment of browser error detection means of the present invention Structure schematic diagram;
Fig. 8 is the knot of the video monitoring information acquisition module of the second embodiment of browser error detection means of the present invention Structure schematic diagram;
Fig. 9 is that the sequential of the specific embodiment of the browser error detection method of the present invention and error detector element is illustrated Figure;
Figure 10 is the working environment structural representation of the electronic equipment at browser error detection means place of the present invention.
Specific embodiment
Refer to schema, wherein identical element numbers represent identical assembly, and the principle of the present invention is to be implemented in one To illustrate in suitable computing environment.The following description is based on the illustrated specific embodiment of the invention, and it should be by It is considered as limiting the present invention other specific embodiments not detailed herein.
In the following description, the specific embodiment of the present invention will be with reference to the operation performed by or multi-section computer Step and symbol illustrating, unless otherwise stating clearly.Therefore, it will appreciate that these steps and operation, wherein has and carries for several times To for being executed by computer, including by representing with the computer disposal list of the electronic signal of the data in a structuring pattern Unit is manipulated.This data of this manipulation transforms or be maintained at this computer memory system in position at, it can be joined again Put or in addition to change in a manner familiar to those skilled in the art the running of this computer.The data knot that this data is maintained Structure is the provider location of this internal memory, and it has by particular characteristics defined in this data form.But, the principle of the invention is with above-mentioned Illustrating, it is not represented as a kind of restriction to word, those skilled in the art will appreciate that described below plurality of step and Operation also may be implemented in the middle of hardware.
The browser error detection method of the present invention and error detector element 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 this mobile electron Standby, stationary electronic devices, wearable device, helmet or medical treatment & health platform effectively can be examined to the mistake of browser Survey, and improve the efficiency of browser error detection and the testing cost reducing browser error.In the present embodiment, described browse Device can be local browser.
Refer to Fig. 1, Fig. 1 is the flow chart of the first embodiment of browser error detection method of the present invention.This enforcement The browser error detection method of example can be implemented using above-mentioned mobile electronic device or stationary electronic devices, the present embodiment Browser error detection method include:
Step s101, receives detection instruction, and according to detection instruction, obtains the network address of anomalous video;
Step s102, based on the network address of anomalous video, loads anomalous video using third party's browser;
Step s103, is loaded the first detection script, and is detected the broadcast state of anomalous video using the first detection script;
Step s104, the such as broadcast state of anomalous video are normal play, then obtain detection and instruct corresponding monitoring information, So that error detection is carried out to browser.
Idiographic flow the following detailed description of each step of the browser error detection method of the present embodiment.
In step s101, the detection outside the reception of browser error detection means instructs, and it is using clear that this detection instructs Device of looking at detects anomalous video, and the anomalous video sending confirms instruction.Here browser detects anomalous video is probably net The problem of network video itself is it is also possible to the problem of the compatibility of browser is it is therefore desirable to producing cause to this anomalous video Confirmed.
Subsequently browser error detection means instructs according to this detection, obtains the network address of anomalous video, so that subsequently Carry out error detection.Then pass to step s102.
In step s102, the network address of the anomalous video that browser error detection means is obtained based on step s101, Load this 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 s103, browser error detection means loads the first detection script, and this first detection script can be used for Imitate the user's touch event automatically playing anomalous video.Subsequently browser error detection means uses the first detection script detection The broadcast state of the anomalous video loading in third party's browser.Here broadcast state can be normal playing status or improper Broadcast state.Normal playing status for third party's browser can this anomalous video of normal play, abnormal playing status be the 3rd Square browser also detects that this video is anomalous video.Then pass to step s104.
In step s104, such as browser error detection means detects the anomalous video loading in third party's browser Broadcast state is normal playing status, then explanation browser and this anomalous video have the problem of compatibility;Subsequently browser is wrong In error detection device obtaining step s101, detection instructs corresponding monitoring information, and carries out the mistake of browser by this monitoring information Error detection.
So complete the browser error detection process of the browser error detection method of the present embodiment.
The browser error detection method of the present embodiment carries out to anomalous video automatically again detecting using detection script, because This detection efficiency is higher and testing cost is relatively low.
Refer to Fig. 2, Fig. 2 is the flow chart of the second embodiment of browser error detection method of the present invention.This enforcement The browser error detection method of example can be implemented using above-mentioned mobile electronic device or stationary electronic devices, the present embodiment Browser error detection method include:
Step s201, based on the network address of detection video, loads detection video using browser;
Step s202, is loaded the second detection script, and is obtained the monitoring information of detection video using the second detection script;
Step s203, such as monitoring information are the broadcast state of detection video is trick play, then generate detection instruction, and The monitoring information of detection video is set as that described detection instructs corresponding monitoring information, detection video is set as abnormal regarding Frequently;
Step s204, receives detection instruction, and according to detection instruction, obtains the network address of anomalous video;
Step s205, based on the network address of anomalous video, loads anomalous video using third party's browser;
Step s206, is loaded the first detection script, and is detected the broadcast state of anomalous video using the first detection script;
Step s207, the such as broadcast state of anomalous video are normal play, then obtain detection and instruct corresponding monitoring information, So that error detection is carried out to browser;Broadcast state as anomalous video is trick play, then judge anomalous video for asking Topic video.
Idiographic flow the following detailed description of each step of the browser error detection method of the present embodiment.
In step s201, the network address based on detection video for the browser error detection means, loaded using browser Detection video, plays out operation using browser to detection video.Then pass to step s202.
In step s202, browser error detection means loads the second detection script, and this second detection script can be used for Imitate the user's touch event automatically playing detection video.Subsequently browser error detection means uses the second detection script to obtain The monitoring information of the detection video loading in browser.Here monitoring information includes detecting that the broadcast state of video is normally to broadcast Put state or abnormal playing status.Normal playing status for browser can this detection video of normal play, trick play shape For browser, state determines that this detection video is anomalous video.Specifically, refer to Fig. 3, Fig. 3 is the browser error inspection of the present invention The flow chart of 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 means loads and runs the second detection script imitating user's touch event, As javascript script etc., such second detection script can play this detection video in a browser automatically;
Step s302, browser error detection means uses monitoring programme, such as the automatically-monitored program such as robertium, Obtain the monitoring information of detection video, because browser is generally the browser detecting user oneself exploitation, therefore can be by prison The running status of the control whole browser of program monitoring, 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 it is anomalous video is detected using browser that this detection instructs, and the exception sending regards Frequency confirms instruction.The monitoring information detecting video is set as that detection instructs corresponding monitoring by browser error detection means simultaneously Information, and detection video is set as anomalous video, subsequently again to be detected to this anomalous video.Here can will be many The network address of individual anomalous video is stored on corresponding external server, subsequently to carry out batch detection.Then pass to walk Rapid s204.
In step s204, browser error detection means receives outside detection and instructs, here browser detect different Often video is probably the problem of Internet video itself it is also possible to the problem of the compatibility of browser is it is therefore desirable to abnormal to this The producing cause of video is confirmed.
Subsequently browser error detection means instructs according to this detection, obtains the network of anomalous video from external server Address, subsequently to carry out error detection, such as obtains the network address number of the anomalous video of json form on external server According to.Then pass to step s205.
In step s205, the network address of the anomalous video that browser error detection means is obtained based on step s204, Load this 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 means loads the first detection script, and this first detection script can be used for Imitate the user's touch event automatically playing anomalous video.Subsequently browser error detection means uses the first detection script detection The broadcast state of the anomalous video loading in third party's browser.Here broadcast state can be normal playing status or improper Broadcast state.Normal playing status for third party's browser can this anomalous video of normal play, abnormal playing status be the 3rd Square browser also detects that this video is anomalous video.Specifically, refer to Fig. 4, Fig. 4 is the browser error detection side of the present invention The flow chart of step s206 of the second embodiment of method, the step detecting the broadcast state of anomalous video using the first detection script Including:
Step s401, browser error detection means is passed through websocket protocol etc. and is loaded and run for imitating user First detection script of touch event, such as javascript script etc., such first detection script can be in third party's browser Automatically play this anomalous video.
Step s402, browser error detection means uses Interface detection framework, such as uiautomator test frame etc., Detect the broadcast state of this anomalous video.Because third party's browser is generally the browser of other kernels, therefore here can only Using Interface detection framework, the interface state of browser is detected, to obtain the broadcast state of anomalous video.Then pass to Step s207.
In step s207, such as browser error detection means detects the anomalous video loading in third party's browser Broadcast state is normal playing status, then explanation browser and this anomalous video have the problem of compatibility;Subsequently browser is wrong In error detection device obtaining step s204, detection instructs corresponding monitoring information, and carries out the mistake of browser by this monitoring information Error detection.Here also monitoring information can be sent the error detection carrying out browser to external server.
Broadcast state as browser error detection means detects the anomalous video loading in third party's browser is non- Normal playing status, then illustrate that this anomalous video on any other browser nor normal play, therefore judges this exception Video is problem video.
So complete the browser error detection process of the browser error detection method of the present embodiment.
On the basis of first embodiment, the browser error detection method of the present embodiment obtains detection instruction in advance and corresponds to Monitoring information more efficiently to carry out the error detection of browser;It is simultaneous for browser and third party's browser is adopted With different anomalous video criterion, further increase the detection efficiency of anomalous video.
The present invention also provides a kind of browser error detection means, refer to Fig. 5, and Fig. 5 is the browser error of the present invention The structural representation of the first embodiment of detection means.The browser error detection means of the present embodiment can be browsed using above-mentioned The first embodiment of device error-detecting method is implemented, and the browser error detection means 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 used for receiving detection instruction, and according to detection instruction, 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 used for loading the first detection script, and using the first detection script detection The broadcast state of anomalous video;The broadcast state that first error detection module 54 is used for as anomalous video is normal play, then obtain Detection is taken to instruct corresponding monitoring information, to carry out error detection to browser.
When the browser error detection means 50 of the present embodiment uses, video address acquisition module 51 receives outside first Detection instruction, it is anomalous video is detected using browser that this detection instructs, and the anomalous video sending confirms instruction.Here clear Device of looking at detect anomalous video be probably the problem of Internet video itself it is also possible to the problem of the compatibility of browser, therefore Need the producing cause of this anomalous video is confirmed.
Subsequently video address acquisition module 51 instructs according to this detection, obtains the network address of anomalous video, so that subsequently Carry out error detection.
Then the net of the anomalous video that third party's browser video load-on module 52 is obtained based on video address acquisition module Network address, loads this anomalous video using third party's browser, and third party's browser here can be different from browser kernel Other browsers.
Subsequently video broadcasting condition detection module 53 loads the first detection script, and this first detection script can be used for imitating certainly The dynamic user's touch event playing anomalous video.Subsequently video broadcasting condition detection module 53 uses the first detection script detection the The broadcast state of the anomalous video loading in tripartite's browser.Here broadcast state for normal playing status or improper can be broadcast Put state.Normal playing status for third party's browser can this anomalous video of normal play, abnormal playing status be third party Browser also detects that this video is anomalous video.
The last broadcasting anomalous video loading in third party's browser is detected as video broadcasting condition detection module 53 State is normal playing status, then explanation browser and this anomalous video have the problem of compatibility;Subsequent first error detection Module 54 obtains detection in video address acquisition module 51 and instructs corresponding monitoring information, and is browsed by this monitoring information The error detection of device.
So complete the browser error detection process of the browser error detection means 50 of the present embodiment.
The browser error detection means of the present embodiment carries out to anomalous video automatically again detecting using detection script, because This detection efficiency is higher and testing cost is relatively low.
Refer to Fig. 6, Fig. 6 is the structural representation of the second embodiment of browser error detection means of the present invention.This The browser error detection means of embodiment can be implemented using the second embodiment of above-mentioned browser error detection method, this The browser error detection means 60 of embodiment include browser video load-on module 61, video monitoring information acquisition module 62, Detection 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, loads detection using browser and regards Frequently.Video monitoring information acquisition module 62 is used for loading the second detection script, and obtains detection video 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, Then generate detection instruction, and the monitoring information of detection video is set as that detection instructs corresponding monitoring information, video will be detected It is set as anomalous video.Video address acquisition module 64 is used for receiving detection instruction, and according to detection instruction, obtains anomalous video The 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 is used for loading the first detection script, and using the first detection foot The broadcast state of this detection anomalous video.It is normally to broadcast that first error detection module 67 is used for the broadcast state of anomalous video such as Put, then obtain detection and instruct corresponding monitoring information, so that error detection is carried out to browser.Second error detection module 68 is used In such as anomalous video broadcast state be trick play, then judge anomalous video for problem video.
Refer to Fig. 7, Fig. 7 is the video broadcasting condition inspection of the second embodiment of browser error detection means of the present invention Survey the structural representation of module.This video broadcasting condition detection module 66 includes the first detection script loading unit 71 and video Broadcast state detector unit 72.
First detection script loading unit 71 is used for loading and running the first detection foot for imitating user's touch event This, play described anomalous video with automatic;Video broadcasting condition detector unit 72 is used for detecting extremely using Interface detection framework The broadcast state of video.
Refer to Fig. 8, Fig. 8 is that the video monitoring information of the second embodiment of browser error detection means of the present invention obtains The structural representation of delivery block.This 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 used for loading and running the second detection foot for imitating user's touch event This, play described detection video with automatic;Video monitoring information acquiring unit 82 is used for obtaining detection video using monitoring programme Monitoring information.
When the browser error detection means of the present embodiment uses, browser video load-on module is based on detection video first The network address, using browser load detection video, that is, using browser to detection video play out operation.
Subsequently video monitoring information acquisition module loads the second detection script, and this second detection script can be used for imitating automatically Play user's touch event of detection video.Subsequently video monitoring information acquisition module uses the second detection script to obtain browser The monitoring information of the detection video of middle loading.Here monitoring information includes detecting that the broadcast state of video is normal playing status Or abnormal playing status.Normal playing status for browser can this detection video of normal play, abnormal playing status be clear Device of looking at determines that this detection video is anomalous video.
Specific:
Second detection script loading unit of video monitoring information acquisition module loads and runs imitation user's touch event The second detection script, such as javascript script etc., such second detection script can play this detection in a browser automatically Video;
The video monitoring information acquiring unit of video monitoring information acquisition module uses monitoring programme, such as robertium etc. Automatically-monitored program, obtains the monitoring information of detection video, detects browsing of user oneself exploitation because browser is generally Device, therefore can monitor the running status of whole browser, to obtain corresponding monitoring information by monitoring programme.
Then the broadcast state if monitoring information is detection video is abnormal playing status, then detect directive generation module Generate detection instruction, it is anomalous video is detected using browser that this detection instructs, and the anomalous video sending confirms instruction.With When detection directive generation module the monitoring information detecting video is set as that detection instructs corresponding monitoring information, and detection is regarded Frequency is set as anomalous video, subsequently again to be detected to this anomalous video.Here can be by the net of multiple anomalous videos Network address is stored on corresponding external server, subsequently to carry out batch detection.
Subsequently video address acquisition module receives outside detection and instructs, and browser detects anomalous video and is probably here The problem of Internet video itself is it is also possible to the problem of the compatibility of browser is it is therefore desirable to the generation to this anomalous video is former Because being confirmed.
Subsequently video address acquisition module instructs according to this detection, obtains the network ground of anomalous video from external server Location, subsequently to carry out error detection, such as obtains the network address data of the anomalous video of json form on external server.
Then the network of the anomalous video that third party's browser video load-on module is obtained based on video address acquisition module Address, loads this anomalous video using third party's browser, third party's browser here be different from browser kernel its His browser.
Subsequently video broadcasting condition detection module loads the first detection script, and this first detection script can be used for imitating automatically Play user's touch event of anomalous video.Subsequently video broadcasting condition detection module uses the first detection script detection third party The broadcast state of the anomalous video loading in browser.Here broadcast state can be normal playing status or trick play shape State.Normal playing status for third party's browser can this anomalous video of normal play, abnormal playing status browse for third party Device also detects that this video is anomalous video.
Specific:
First detection script loading unit of video broadcasting condition detection module passes through websocket protocol etc. and loads and transport , for imitating the first detection script of user's touch event, such as javascript script etc., such first detection script can be for row Automatically this anomalous video is play in third party's browser.
The video broadcasting condition detector unit of video broadcasting condition detection module uses Interface detection framework, such as Uiautomator test frame etc., detects the broadcast state of this anomalous video.Because third party's browser is generally other kernels Browser, therefore using Interface detection framework, the interface state of browser can only be detected here, to obtain abnormal regarding The broadcast state of frequency.
The last broadcasting shape anomalous video loading in third party's browser is detected as video broadcasting condition detection module State is normal playing status, then explanation browser and this anomalous video have the problem of compatibility;First error detection module obtains Take detection in video address acquisition module to instruct corresponding monitoring information, and carry out the mistake inspection of browser by this monitoring information Survey.Here also monitoring information can be sent the error detection carrying out browser to external server.
The broadcast state of the anomalous video loading in third party's browser as video broadcasting condition detection module is anon-normal Often broadcast state, then illustrate this anomalous video on any other browser nor normal play, the therefore second error detection Module judges this anomalous video for problem video.
So complete the browser error detection process of the browser error detection means of the present embodiment.
On the basis of first embodiment, the browser error detection means of the present embodiment obtains detection instruction in advance and corresponds to Monitoring information more efficiently to carry out the error detection of browser;It is simultaneous for browser and third party's browser is adopted With different anomalous video criterion, further increase the detection efficiency of anomalous video.
Below by a specific embodiment, the browser error detection method of the present invention and the tool of error detector element are described Body running principle.Refer to Fig. 9, Fig. 9 is the browser error detection method of the present invention and being embodied as of error detector element The time diagram of example.The browser error detection means of this specific embodiment is arranged in the mobile terminal of an Android system, In this specific embodiment, browser is qq browser, and third party's browser is Google's browser and uc browser.This is concrete The step that the browser error detection means of embodiment carries out the error detection of qq browser includes:
Step s901, mobile terminal uses qq browser to load detection video;
Step s902, mobile terminal uses javascript script analog subscriber touch-control to click on event, so can be clear in qq Look at and automatically play detection video in device;
Step s903, mobile terminal uses the automatically-monitored program of robertium, obtains detection video in qq browser Monitoring information, with obtain detection the corresponding broadcast state of video.
Step s904, the broadcast state of such as detection video is normal play, then explanation qq browser can this inspection of perfect compatibility Survey video;Broadcast state as detected video is trick play, then explanation qq browser may be simultaneous with the presence of this detection video Capacitive problem, mobile terminal generates detection instruction, and monitoring information is carried out with storage operation, and detection video is set as different Often video.
Step s905, subsequent movement terminal according to detection instruction, and can obtain the network address of corresponding anomalous video.
Step s906, mobile terminal uses Google's browser and uc browser to load above-mentioned anomalous video.
Step s907, mobile terminal passes through websocket protocol, is clicked on using javascript script analog subscriber touch-control Event, so can play anomalous video in Google's browser and uc browser automatically.
Step s908, mobile terminal uses Interface detection framework uiautomator, obtains anomalous video in Google's browser And the broadcast state in uc browser.
Step s909, the such as broadcast state of anomalous video are normal play, then qq browser is deposited with this anomalous video really In compatibility issue, the corresponding monitoring information of this anomalous video of acquisition for mobile terminal, to carry out the error detection of qq browser.
Broadcast state as anomalous video is trick play, then explanation Google's browser and uc browser are regarded with abnormal Frequency there is also compatibility issue, and that is, this anomalous video may be problem video, i.e. anomalous video existing problems itself, such as in network Storage end has been deleted.
So mobile terminal can obtain the monitoring information after again detecting by third party's browser, to qq browser Mistake is accurately detected, improves the accuracy of error detection.
So complete the clear of the browser error detection method of the present invention and the specific embodiment of error detector element Look at device error detection procedure.
The browser error detection method of the present invention and error detector element are carried out to anomalous video certainly using detection script Move and again detect, therefore detection efficiency is higher and testing cost is relatively low;Solve existing browser error detection method and mistake The technical problem that the detection efficiency of error detection device is relatively low and testing cost is higher.
" assembly ", " 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 executory software.For example, assembly can be but not It is limited to run process on a processor, processor, object, executable application, the thread of execution, program and/or computer. By diagram, running both application on the controller and this controller can be assembly.One or more assemblies can have It is in process and/or the thread of execution, and assembly may be located on a computer and/or is distributed in two or more meters Between calculation machine.
Figure 10 and the discussion below provide to the electronics realizing browser error detection means place of the present invention Brief, the description of summary of the working environment of equipment.The working environment of Figure 10 is only an example of suitable working environment And it is not intended to any restriction with regard to the purposes of working environment or the scope of function for the suggestion.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, mobile device (such as mobile phone, personal digital assistant (pda), media player etc.), multicomputer system, disappear Take type electronic equipment, minicomputer, mainframe computer, the distributed computing environment of the above-mentioned any system or equipment of inclusion, etc. Deng.
Although not requiring, the common background that executed by one or more electronic equipments at " computer-readable instruction " Lower description embodiment.Computer-readable instruction can be distributed via computer-readable medium (being discussed below).Computer-readable Instruction can be implemented as program module, such as execution particular task or realize the function of particular abstract data type, object, application DLL (api), data structure etc..Typically, the function of this computer-readable instruction can in various environment arbitrarily Combination or distribution.
Figure 10 illustrates the electronic equipment of one or more embodiments of the browser error detection means including the present invention 1012 example.In one configuration, electronic equipment 1012 includes at least one processing unit 1016 and memorizer 1018.According to The exact configuration of electronic equipment and type, memorizer 1018 can be volatibility (such as ram), non-volatile (such as Rom, flash memory etc.) or certain combination of the two.This configuration is illustrated by dotted line 1014 in Fig. 10.
In other embodiments, electronic equipment 1012 can include supplementary features and/or function.For example, equipment 1012 is gone back Additional storage device (for example removable and/or non-removable) can be included, it includes but 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, for reality 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 Can be loaded in memorizer 1018 and be executed by such as processing unit 1016.
Term as used herein " computer-readable medium " includes computer-readable storage medium.Computer-readable storage medium includes The volatibility realized for any method or technique storing the information of such as computer-readable instruction or other data etc With non-volatile, removable and nonremovable medium.Memorizer 1018 and storage device 1020 are the realities of computer-readable storage medium Example.Computer-readable storage medium includes but is not limited to ram, rom, eeprom, flash memory or other memory technologies, cd-rom, numeral Universal disc (dvd) or other light storage devices, cassette tape, tape, disk storage device or other magnetic storage apparatus or permissible For storing expectation information any other medium that can be accessed by electronic equipment 1012.Arbitrarily 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 allowing electronic equipment 1012 to communicate with other equipment.Logical Letter connect 1026 can include but is not limited to modem, NIC (nic), integrated network interface, radiofrequency launcher/ Receptor, infrared port, usb connect or for electronic equipment 1012 is connected to other interfaces of other electronic equipments.Communication Connect 1026 and can include wired connection or wireless connection.Communication connection 1026 can be launched and/or be received communication medium.
Term " computer-readable medium " can 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 any information and pass Send medium.Term " own modulated data signal " can include such signal: one or more of this characteristics of signals is according to general The mode that information is encoded in signal is being set or changed.
Electronic equipment 1012 can include input equipment 1024, and such as keyboard, mouse, pen, voice-input device, touch are defeated Enter equipment, infrared camera, video input apparatus and/or any other input equipment.Output can also be included in equipment 1012 set Standby 1022, such as one or more display, speaker, printer and/or any other outut devices.Input equipment 1024 He Outut device 1022 can be connected to electronic equipment 1012 via wired connection, wireless connection or its combination in any.In a reality Apply in example, be used as the input equipment of electronic equipment 1012 from the input equipment of another electronic equipment or outut device 1024 or outut device 1022.
The assembly of electronic equipment 1012 can be connected by various interconnection (such as bus).Such interconnection can include outer Enclose assembly interconnection (pci) (such as quick pci), USB (universal serial bus) (usb), live wire (ieee1394), optical bus structure etc. Deng.In another embodiment, the assembly of electronic equipment 1012 can pass through network interconnection.For example, memorizer 1018 can be by Multiple physical memory cells arc being located in different physical locations, passing through network interconnection are constituted.
It would be recognized by those skilled in the art that the storage device for storing computer-readable instruction can be crossed over network and be divided Cloth.For example, can be able to store via the electronic equipment 1030 that network 1028 accesses be used for realizing one provided by the present invention or The computer-readable instruction of multiple embodiments.Electronic equipment 1012 can access electronic equipment 1030 and downloading computer is readable Instruction part or all of for execution.Alternately, electronic equipment 1012 can download a plurality of computer-readable on demand Instruction, or some instructions can execute at electronic equipment 1012 and some instructions can be held at electronic equipment 1030 OK.
There is provided herein the various operations of embodiment.In one embodiment, described one or more operations can be with structure Become the computer-readable instruction of storage on one or more computer-readable mediums, it will make when being executed by electronic equipment to succeed in one's scheme Calculation equipment executes described operation.Describing the order of some or all of operations, to should not be construed as to imply that these operations necessarily suitable Sequence correlation.It will be appreciated by those skilled in the art that having the alternative sequence of the benefit of this specification.Furthermore, it is to be understood that Not all operation must exist in each embodiment provided in this article.
And, although illustrate and describing the disclosure, this area skill with respect to one or more implementations Art personnel will be appreciated that equivalent variations and modification based on to the reading of the specification and drawings and understanding.The disclosure include all this The modification of sample and modification, and be limited only by the scope of the following claims.Particularly with by said modules (such as element, Resource etc.) various functions that execute, the term for describing such assembly is intended to corresponding to the specified work(executing described assembly The random component (unless otherwise instructed) of energy (for example it is functionally of equal value), even if illustrated herein with execution in structure The exemplary implementations of the disclosure in the open structure of function be not equal to.Although additionally, the special characteristic of the disclosure is Through being disclosed with respect to the only one in some implementations, but this feature can be to giving or application-specific with such as For be expectation and favourable other implementations other combinations of features one or more.And, with regard to term " inclusion ", " tool Have ", " containing " or its deformation be used in specific embodiment 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 or unit list Solely it is physically present it is also possible to two or more units are integrated in a module.Above-mentioned integrated module both can adopt The form of hardware is realized, it would however also be possible to employ the form of software function module is realized.If described integrated module is with software function The form of module is realized and is situated between it is also possible to be stored in an embodied on computer readable storage as independent production marketing or when using In matter.Storage medium mentioned above can be read only memory, disk or CD etc..Above-mentioned each device or system are permissible Method in execution correlation method embodiment.
In sum although the present invention is disclosed above with embodiment, sequence number before embodiment, such as " first ", " second " Use for convenience of description Deng only, the order of various embodiments of the present invention is not caused to limit.And, above-described embodiment is simultaneously not used to Limit the present invention, those of ordinary skill in the art, without departing from the spirit and scope of the present invention, all can make various change with Retouching, therefore protection scope of the present invention is defined by the scope that claim defines.

Claims (10)

1. a kind of browser error detection method is it is characterised in that include:
Receive detection instruction, and according to described detection instruction, obtain the network address of anomalous video;
Based on the network address of described anomalous video, load described anomalous video using third party's browser;
Load the first detection script, and detect the broadcast state of described anomalous video using described first detection script;And
Broadcast state as described anomalous video is normal play, then obtain described detection and instruct corresponding monitoring information, so that Error detection is carried out to browser.
2. browser error detection method according to claim 1 is it is characterised in that broadcasting shape as described anomalous video State is trick play, then judge described anomalous video for problem video.
3. browser error detection method according to claim 1 is it is characterised in that described reception detects the step instructing Also include before:
Based on the network address of detection video, load described detection video using described browser;
Load the second detection script, and obtain the monitoring information of described detection video using described second detection script;And
As described in described monitoring information is, the broadcast state of detection video is trick play, then generate described detection instruction, and The monitoring information of described detection video is set as that described detection instructs corresponding monitoring information, described detection video is set as Described anomalous video.
4. browser error detection method according to claim 1 is it is characterised in that described detect foot using described first The step of the broadcast state of the described anomalous video of this detection includes:
Load and run described first detection script for imitating user's touch event, play described anomalous video with automatic; And
Detect the broadcast state of described anomalous video using Interface detection framework.
5. browser error detection method according to claim 3 is it is characterised in that described detect foot using described second The step of the monitoring information of this acquisition described detection video includes:
Load and run described second detection script for imitating user's touch event, play described detection video with automatic; And
Obtain the monitoring information of described detection video using monitoring programme.
6. a kind of browser error detection means is it is characterised in that include:
Video address acquisition module, for receiving detection instruction, and according to described detection instruction, obtains the network ground of anomalous video Location;
Third party's browser video load-on module, for the network address based on described anomalous video, using third party's browser Load described anomalous video;
Video broadcasting condition detection module is for loading the first detection script and described using described first detection script detection The broadcast state of anomalous video;And
First error detection module, the broadcast state for such as described anomalous video is normal play, then obtain described detection and refer to Make corresponding monitoring information, so that error detection is carried out to browser.
7. browser error detection means according to claim 6 is it is characterised in that described browser error detection means Also include:
Second error detection module, the broadcast state for such as described anomalous video is trick play, then judge described exception Video is problem video.
8. browser error detection means according to claim 6 is it is characterised in that described browser error detection means Also include:
Browser video load-on module, for the network address based on detection video, loads described detection using described browser Video;
Video monitoring information acquisition module, for loading the second detection script, and is obtained described using described second detection script The monitoring information of detection video;And
Detection directive generation module, the broadcast state for as described monitoring information being described detection video is trick play, Then generate described detection instruction, and the monitoring information of described detection video is set as the corresponding monitoring letter of described detection instruction Breath, described detection video is set as described anomalous video.
9. browser error detection means according to claim 6 is it is characterised in that described video broadcasting condition detects mould Block includes:
First detection script loading unit, for loading and running the described first detection foot for imitating user's touch event This, play described anomalous video with automatic;And
Video broadcasting condition detector unit, for detecting the broadcast state of described anomalous video using Interface detection framework.
10. browser error detection means according to claim 8 is it is characterised in that described video monitoring information obtains Module includes:
Second detection script loading unit, for loading and running the described second detection foot for imitating user's touch event This, play described detection video with automatic;And
Video monitoring information acquiring unit, for obtaining the monitoring information of described detection video using monitoring programme.
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 true CN106371992A (en) 2017-02-01
CN106371992B 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
CN106371992B (en) 2018-09-04

Similar Documents

Publication Publication Date Title
US10387292B2 (en) Determining application test results using screenshot metadata
CN105204969B (en) Abnormal log processing method and abnormal log processing unit
US8566648B2 (en) Automated testing on devices
US20210081309A1 (en) Mapping interactive elements in an application user interface
CN104427395A (en) Electronic device and method for using captured image in electronic device
CN103853658B (en) The automated testing method and Android device of recording and playback are carried out in Android device
CN107741902A (en) Program application detection method and program application detection means
CN111372115B (en) Application program access method and device and communication system
CN111694757B (en) Application program testing method and device, electronic equipment and computer readable storage medium
US20170091197A1 (en) Multimedia Display Method, Apparatus, and Device
US20170090950A1 (en) Information processing device, information processing method, and computer readable storage medium
CN104918119A (en) Video processing method based on iOS browser, and video processing apparatus based on iOS browser
US9158657B2 (en) Architecture for remote access to content state
CN109828920A (en) A kind of log analysis method, device and computer readable storage medium
US20140026050A1 (en) Method and server for storing, encoding and uploading video or object captured from a webpage using a toolbar
US11902341B2 (en) Presenting links during an online presentation
Wu et al. AppCheck: a crowdsourced testing service for android applications
JP2018506783A (en) Generating element identifiers
CN104536884A (en) Code testing method and device
CN108629182A (en) Leak detection method and Hole Detection device
CN106371992B (en) Browser error detection method and error detector element
CN110413800B (en) Method and equipment for providing novel information
RU2595763C2 (en) Method and apparatus for managing load on basis of android browser
CN107508885B (en) Resource transfer method, related equipment and system
US20180013814A1 (en) Application recording

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