Summary of the invention
The object of the invention is to propose a kind of broadcast state and browser-safe method of testing and device thereof of flash player, can test the broadcast state of player under different playing environments and test with respect to the compatibility of browser.
For reaching this object, the present invention by the following technical solutions:
The broadcast state of flash player and a browser-safe method of testing, comprising:
Test environment is set step: set flash testing player environment, described test environment comprises the flash version of flash player, the browser that flash player need to use, and the operating system that is positioned at of flash player;
Step is set in test list: set flash player list and the displaying video id list that will test, described flash player list comprises various types of conventional players, and described displaying video id list comprises special video and conventional video;
Test video is selected step: from described video id list, select not tested video as video to be measured;
Displaying video testing procedure: utilize successively video to be measured described in the flash player plays in player list, in playing process, check the information that reports an error of the various operations of player, abnormal information in player implementation, and the information that reports an error of flash plug-in unit, and will described in report an error information or described abnormal information be recorded in daily record;
Determination step, judges that whether the video of described video id list is all tested, if so, finishes this test, otherwise, enter test video and select step.
Preferably, in described displaying video testing procedure, described broadcasting is by after described video playback to the first progress point, then carries out drag operation, and end is put and played to the second progress that is drawn to described video.
Preferably, after once test finishes, change test environment and set the flash version of setting in step, re-start test, described flash version is 11.7,11.6,11.5,11.2 or 10.3.
Preferably, after once test finishes, change test environment and set the browser of setting in step, re-start test, described browser be IE6 to IE10,360 browsers, chrome, red fox, cheetah or safari.
Preferably, after once test finishes, change test environment and set the operating system of setting in step, re-start test, described operating system is windows7, windowsXP or IOS.
Preferably, described daily record comprises test environment, player types, selected video id, the operation of player, and described operation comprises time-out, pulls, play, the progress of operational correspondence and described in report an error information and described abnormal information.
The broadcast state and the browser-safe proving installation that the invention also discloses a kind of flash player, comprise as lower unit:
Test environment setup unit: set flash testing player environment, described test environment comprises the flash version of flash player, the browser that flash player need to use, and the operating system that is positioned at of flash player;
Test list setup unit: set flash player list and the displaying video id list that will test, described flash player list comprises various types of conventional players, and described displaying video id list comprises special video and conventional video;
Test video selected cell: select not tested video as video to be measured from described video id list;
Displaying video test cell: utilize successively video to be measured described in the flash player plays in player list, in playing process, check the information that reports an error of the various operations of player, abnormal information in player implementation, and the information that reports an error of flash plug-in unit, and will described in report an error information or described abnormal information be recorded in daily record;
Identifying unit, judges that whether the video of described video id list is all tested, if so, finishes this test, otherwise, enter test video selected cell.
Preferably, in described displaying video test cell, described broadcasting is by after described video playback to the first progress point, then carries out drag operation, and end is put and played to the second progress that is drawn to described video.
Preferably, after once test finishes, change test environment and set flash version and/or browser and/or the operating system of setting in step, re-start test,
Described flash version is 11.7,11.6,11.5,11.2 or 10.3,
Described browser be IE6 to IE10,360 browsers, chrome, red fox, cheetah or safari,
Described operating system is windows7, windowsXP or IOS.
Preferably, described daily record comprises test environment, player types, selected video id, the operation of player, and described operation comprises time-out, pulls, play, the progress of operational correspondence and described in report an error information and described abnormal information.
The method and apparatus that the present invention proposes, in conjunction with the demand of concrete test job, solves particular problem, has reliability, simple to operate, effectively, and the features such as easy understanding, specific as follows:
1. reliability: rely on merely manual testing and can in particular cases omit test case at some unavoidably, the test case pre-setting test and can be guaranteed that complete test arrives various situations.
2. operate terseness: the present invention is in conjunction with test data, carry out each test case, and the broadcast state daily record of record player, tester only needs the result of test log to analyze, and therefrom finds the compatibling problem of different browsers under new player version and each operating system.
3. validity: the function point of testing player is various, and test surfaces is very wide, for the time limited can cover the most important test point of player.The product iteration of internet video is very fast, and in order to tackle before the customary upgrading of main website and various emergency upgrade, the play property before compatible player, carries out regression test.
4. Comprehensible: before the customary upgrading of main website and various emergency upgrade, player exploitation, test, needs communication progress between product, and the present invention can be in time clear and definite provides important test result daily record explanation, to facilitate each side to assess feasibility and the risk of reaching the standard grade.
Embodiment
Below in conjunction with drawings and Examples, the present invention is described in further detail.Be understandable that, specific embodiment described herein is only for explaining the present invention, but not limitation of the invention.It also should be noted that, for convenience of description, in accompanying drawing, only show part related to the present invention but not entire infrastructure.
Referring to Fig. 1, broadcast state and the browser-safe method of testing of flash player according to a particular embodiment of the invention disclosed, comprise the steps:
Test environment is set step S110: set flash testing player environment, described test environment comprises the flash version of flash player, the browser that flash player need to use, and the operating system that is positioned at of flash player.
Wherein at test environment, set in step S110, the situation of flash plug-in version usage ratio can obtain by statistical information default in player, by importance ranking, and consider the singularity that different flash versions have, in test, need the flash version of preferably test to comprise: 11.7,11.6,11.5,11.2,10.3 etc.
Wherein, preferably, the browser that described flash player need to use comprises: IE6 is to IE10,360 browsers, chrome, red fox, cheetah, safari etc.
Wherein, preferably, the operating system that flash player is positioned at comprises: windows7, windowsXP, IOS.
Step S120 is set in test list: set flash player list and the displaying video id list that will test.Described flash player list comprises various types of conventional players, and described displaying video id list comprises special video and conventional video.
It should be known that in test list and set in step S120, described special video includes but not limited to: many image quality video, multilingual video, 3D video, band captions video, rtmp video, paying video, the video of slotting advertisement point in having, encrypted video, mute video, the video that good friend is watched, 1080p video, 1 second, clap various types of videos such as objective video.
Test video is selected step S130: from described video id list, select not tested video as video to be measured.
Displaying video testing procedure S140: utilize successively video to be measured described in the flash player plays in player list, in playing process, check the information that reports an error of the various operations of player, abnormal information in player implementation, and the information that reports an error of flash plug-in unit, and by various described information recordings in daily record.Described various operation comprises broadcasting, pulls, and suspends.
Particularly, in displaying video testing procedure S140, described broadcasting is by after described video playback to the first progress point, carries out drag operation, and end is put and played to the second progress that is drawn to video.Preferably, described the first progress point is video 5%, and described the second progress point is 95% of video.Wherein,, finish to belong to a kind of special time-out here.
Meanwhile, it will be appreciated by those skilled in the art that the player in described player list is conventional player.When conventional player plays special video, for example, 3D video, captions video, HD video, if need to will call the characteristic player that auxiliary this special video of conventional player plays institute must use simultaneously.For example, when using player.swf to play HD video, except using player.swf, need to call high definition characteristic player player_yknpsv.swf.When using player.swf to play 3D video, except using player.swf, need to call 3D characteristic player threed.swf.
Determination step S150, judges that whether the video of described video id list is all tested, if so, finishes this test, otherwise, enter test video and select step S130, select not have tested video.
End step S160, finishes test.
Preferably, after once test finishes, can change test environment and set the flash version of setting in step, repeat above-mentioned steps, test, to travel through all flash versions, described flash version comprises 11.7,11.6,11.5,11.2 and 10.3.
Preferably, after once test finishes, can change test environment and set the browser of setting in step, repeat above-mentioned steps, test, to travel through all browsers.Described browser comprises that IE6 is to IE10,360 browsers, chrome, red fox, cheetah and safari.
Preferably, after once test finishes, can change test environment and set the operating system of setting in step, repeat above-mentioned steps, test, to travel through all operating system.Described operating system comprises windows7, windowsXP and IOS.
One skilled in the art will appreciate that described player types can comprise the conventional player of various broadcasting flash.
The conventional player of table 1
Described characteristic player is Automatically invoked in conventional player plays special video.Table 2 has been listed various characteristics player.
。
Especially, described daily record comprises test environment, player types, selected video id, the operation of player, and described operation comprises time-out, pulls, and plays the progress of operational correspondence and corresponding various information.
For example, can show daily record by the form of form:
source |
swf |
videoid |
operation |
timer |
log |
1.source: the set of operating system+browser+flash version
2.swf: player types
3.videoid: video id, that choose is the id of special video
4.operation: operation in player, system comprises three kinds of operations: suspend, pull, play
5.timer: the progress point of operational correspondence, for example, for unified management, system is arranged on after video playback 5%, carries out drag operation, be drawn to video 95% and play to end.
6.log: if abnormal or the information that reports an error appear in the test case of certain a line, can be recorded in log, this classifies sky as in normal.
It should be known that test environment setting can install by entity, or virtual machine is installed and is realized.
Thereby, according to the method, order has completed different flash players for the broadcasting situation of different videos, and in specific operating system, browser, compatible context under flash version, or can travel through the flash player compatible context under various operating system, browser, flash version.Due in test by various information recordings in daily record, make tester by analyzing daily record, to find the problem of test emphasis and existence.
Referring to Fig. 2, disclose according to the broadcast state of the flash player of another specific embodiment of the present invention and browser-safe proving installation, comprise as lower unit:
Test environment setup unit S210: set flash testing player environment, described test environment comprises the flash version of flash player, the browser that flash player need to use, and the operating system that is positioned at of flash player;
Test list setup unit S220: set flash player list and the displaying video id list that will test, described flash player list comprises various types of conventional players, and described displaying video id list comprises special video and conventional video;
Test video selected cell S230: select not tested video as video to be measured from described video id list;
Displaying video test cell S240: utilize successively video to be measured described in the flash player plays in player list, in playing process, check the information that reports an error of the various operations of player, abnormal information in player implementation, and the information that reports an error of flash plug-in unit, and will described in report an error information or described abnormal information be recorded in daily record;
Identifying unit S250, judges that whether the video of described video id list is all tested, if so, finishes this test, otherwise, enter test video selected cell.
Wherein, in described displaying video test cell, described broadcasting is by after described video playback to the first progress point, then carries out drag operation, and end is put and played to the second progress that is drawn to described video.
Preferably, after once test finishes, change flash version and/or browser and/or the operating system in test environment setup unit, set, re-start test,
Described flash version is 11.7,11.6,11.5,11.2 or 10.3,
Described browser be IE6 to IE10,360 browsers, chrome, red fox, cheetah or safari,
Described operating system is windows7, windowsXP or IOS.
Described daily record comprises test environment, player types, selected video id, the operation of player, and described operation comprises time-out, pulls, play, the progress of operational correspondence and described in report an error information and described abnormal information.
Embodiment 1:
The loader.swf and the player.swf that at player list, set latest edition add a paying video XNTU0MzY5OTY0 in video id list, then by loader.swf, load player.swf and complete the broadcasting to video.First video council plays to 5% of total duration naturally, then can be drawn to 95% of the total duration of video, because paying video can only be tried 10 minutes, so be drawn to 95% this operation of the total duration of video, can cause video directly to stop playing, not playing to smoothly video herein finishes to think and occurs mistake, charge in log daily record, when analyzing daily record, the reason that tester can go wrong according to video id judgement, but can conclude, the loader.swf of this version and player.swf can play paying video, and try that duration is correct.
Embodiment 2:
In player list, add loader.swf and the conventional player player.swf of latest edition, in video id list, add a paying video XNTU0MzY5OTY0 and a 3D video, first then by loader.swf, load player.swf and play paying video XNTU0MzY5OTY0, utilizing complete first video of first conventional player plays to be judged after end, because the conventional player in player list has all been play this video that is over.Now, will carry out automatically the broadcasting of next video.When playing 3D video, by loader.swf, loaded that conventional player player.swf and characteristic player threed.swf complete 3D video.Operation in broadcasting is as embodiment 1.
The method and apparatus that the present invention proposes, in conjunction with the demand of concrete test job, solves particular problem, has reliability, simple to operate, effectively, and the features such as easy understanding, specific as follows:
1. reliability: rely on merely manual testing and can in particular cases omit test case at some unavoidably, the test case pre-setting test and can be guaranteed that complete test arrives various situations.
2. operate terseness: the present invention is in conjunction with test data, carry out each test case, and the broadcast state daily record of record player, tester only needs the result of test log to analyze, and therefrom finds the compatibling problem of different browsers under new player version and each operating system.
3. validity: the function point of testing player is various, and test surfaces is very wide, for the time limited can cover the most important test point of player.The product iteration of internet video is very fast, and in order to tackle before the customary upgrading of main website and various emergency upgrade, the play property before compatible player, carries out regression test.
4. Comprehensible: before the customary upgrading of main website and various emergency upgrade, player exploitation, test, needs communication progress between product, and the present invention can be in time clear and definite provides important test result daily record explanation, to facilitate each side to assess feasibility and the risk of reaching the standard grade.
Above content is in conjunction with concrete preferred implementation further description made for the present invention; can not assert that the specific embodiment of the present invention only limits to this; for general technical staff of the technical field of the invention; without departing from the inventive concept of the premise; can also make some simple deduction or replace, all should be considered as belonging to the present invention and determine protection domain by submitted to claims.