CN105868646A - Method and device for testing playing timing - Google Patents

Method and device for testing playing timing Download PDF

Info

Publication number
CN105868646A
CN105868646A CN201511020095.4A CN201511020095A CN105868646A CN 105868646 A CN105868646 A CN 105868646A CN 201511020095 A CN201511020095 A CN 201511020095A CN 105868646 A CN105868646 A CN 105868646A
Authority
CN
China
Prior art keywords
timing
program
playing
target
duration
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.)
Pending
Application number
CN201511020095.4A
Other languages
Chinese (zh)
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.)
LeTV Information Technology Beijing Co Ltd
Original Assignee
LeTV Information Technology Beijing 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 LeTV Information Technology Beijing Co Ltd filed Critical LeTV Information Technology Beijing Co Ltd
Priority to CN201511020095.4A priority Critical patent/CN105868646A/en
Publication of CN105868646A publication Critical patent/CN105868646A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6281Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database at program execution time, where the protection is within the operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2137Time limited access, e.g. to a computer or data

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)

Abstract

An embodiment of the invention discloses a method and device for testing playing timing. The method includes the steps of: in an execution process of a timing playing program of a target video, identifying a target program segment corresponding to a playing timing function; obtaining a standard timing length included in the target program segment; replacing the standard timing length with a test time length, so as to realize execution of playing control operation corresponding to the standard timing length when the target video is played to the test time length. The method and device for testing playing timing provided by the invention improve the test efficiency of the timing playing program.

Description

Play method of testing and the device of timing
Technical field
The present embodiments relate to video playback duration control technology, particularly relate to a kind of test playing timing Method and device.
Background technology
In life, the head of a family wants to control child by TV or the duration of computer viewing video frequency program, it is to avoid child Son is wallowed in video frequency program, affects child's school grade and healthy.For a problem, in prior art There is such a broadcasting control system: the head of a family can arrange the duration of the viewing video frequency program of child, when regarding Frequently program playing duration is to when setting duration, ejects correspondence and sets the prompting interface of duration.Such as, during setting Length is 30 minutes, etc. video playback time grow to 30 minutes time, the prompting of corresponding 30 minutes of system automatic spring Interface, reminds child to have a rest.Setting duration and can have multiple, the corresponding prompting interface of different set duration is not With, such as, during setting, the corresponding prompting interface of a length of 10 minutes is the first prompting interface, a length of during setting The corresponding prompting interface of 30 minutes is the second prompting interface.
When such broadcasting control system is tested, need tester in video program play to setting During duration, perform test to whether ejecting corresponding prompting interface.In prior art, this class testing needs test After personnel wait that video program play extremely sets duration, perform ejecting the corresponding test pointing out interface, if During setting a length of 30 minutes, then need to wait video playback 30 minutes, then perform test.Set duration Time longer, need the time waited more long, testing efficiency therefore can be caused to decline.
Summary of the invention
The embodiment of the present invention provides a kind of method of testing playing timing and device, to improve, timing is play journey The testing efficiency of sequence.
First aspect, embodiments provides a kind of method of testing playing timing, and the method includes:
During the timing playing program of target video performs, identify the target corresponding with playing timing function Program segment;
Obtain the standard timing duration that described target program section includes;
Described standard timing duration is replaced with length of testing speech, to realize when described target video is play to described During length of testing speech, perform the broadcasting corresponding with described standard timing duration and control operation.
Second aspect, the embodiment of the present invention additionally provides a kind of test device playing timing, and this device includes:
Target recognition module, during performing at the timing playing program of target video, identifies and plays The target program section that timing function is corresponding;
Acquisition module, for obtaining the standard timing duration that described target program section includes;
Replacement module, for replacing with length of testing speech by described standard timing duration, to realize when described target When video playback is to described length of testing speech, performs the broadcasting corresponding with described standard timing duration and control operation.
During the embodiment of the present invention is by performing at the timing playing program of target video, identifies and play and determine The standard timing duration that target program section corresponding for Shi Gongneng includes, and when standard duration is replaced with test Between technological means, it is possible to achieve to timing playing program play to standard timing duration time perform broadcasting When control operation is tested, described target video is only play to a test much smaller than standard timing duration During duration, can perform the broadcasting corresponding with described standard timing duration and control operation, tester can root Freely arranging length of testing speech according to needs, the method for the present embodiment shortens the wait target video of tester Play the time to standard timing duration, thus improve the testing efficiency to timing playing program.
Accompanying drawing explanation
Fig. 1 is the flow chart of a kind of method of testing playing timing that the embodiment of the present invention one provides;
Fig. 2 is a kind of application interface playing timing function that the embodiment of the present invention provides;
Fig. 3 is the flow chart of a kind of method of testing playing timing that the embodiment of the present invention two provides;
Fig. 4 is the structure chart of a kind of test device playing timing that the embodiment of the present invention three provides.
Detailed description of the invention
The present invention is described in further detail with embodiment below in conjunction with the accompanying drawings.It is understood that this Specific embodiment described by place is used only for explaining the present invention, rather than limitation of the invention.The most also need It is noted that for the ease of describing, accompanying drawing illustrate only part related to the present invention and not all knot Structure.
Embodiment one
Fig. 1 is the flow chart of a kind of method of testing playing timing that the embodiment of the present invention one provides, this enforcement Example is applicable to the situation testing timing playing program, and the method can be by the test dress playing timing Putting and perform, this device can be realized by the mode of software and/or hardware, and typically can be integrated in timing broadcasting In the test equipment of program, or the subprogram as timing playing program, the method specifically includes:
S110, during the timing playing program of target video performs, identify with to play timing function corresponding Target program section;
As stated in the Background Art, existing broadcasting control system can arrange determining of currently playing video frequency program Shi Shichang, typical as in figure 2 it is shown, different timing lengths control is set can be with the form of man-machine interaction Being supplied to user, user, by clicking on or choosing different controls, can complete different timing duration Arrange.Accordingly, when currently playing video program play to this timing length, broadcasting control system meeting Perform corresponding timing control operation.
In the present embodiment, described timing playing program specifically refer to for complete video playback management (selected works, F.F., rewind or accelerate broadcasting etc.) and the computer journey of the video playback class function such as video playback timing Sequence.
Accordingly, target video is specially configured with terminal unit (such as, the intelligence of described timing playing program Energy TV, desktop computer or panel computer etc.) the middle video frequency program play;Video playback timing function is concrete Refer to the timing length set according to user, when target video plays the timing length to user's setting, hold The function of the timing control operation that row is corresponding;The target program section corresponding with video playback timing function is specially Complete described screen and play the computer program code segments of timing function.
Concrete, during the timing playing program of target video performs, identify and play timing function pair The target program section answered may include that
Make a look up in described timing playing program according to setting function name, obtain and described function famous prime minister The program code segments joined is as described target program section.Such as, the function of target setting program segment is entitled " PlaytimeSetting (playing duration setting) ", then can look in timing playing program The program code of " PlaytimeSetting (playing duration setting) " function name, and transmit the code as target Program segment.
Certainly, it will be appreciated by persons skilled in the art that fixed for performing to play with timing playing program The function name that the function of Shi Gongneng is corresponding can obtain by analyzing the program code of timing playing program, it is possible to With during the execution of timing playing program, obtain in real time by the way of single step performs or diagnoses debugging, This is not limited by the present embodiment.
S120, obtain the standard timing duration that described target program section includes;
Wherein, the timing length that during standard timing, a length of user sets as required, can be one or more.
Further, the standard timing duration obtained in described target program section may include that
Make a look up in described target program section according to setup parameter title, obtain and described parameter name phase The target component name of coupling;When obtaining the parameter value corresponding with described target component name as described standard timing Long.Such as, the parameter name of established standards timing length is " SetTime ", then find in target program section Parameter name is the parameter name of " SetTime ", and reads the parameter value of this parameter name as standard timing duration.
S130, described standard timing duration is replaced with length of testing speech, to realize when described target video is play During to described length of testing speech, perform the broadcasting corresponding with described standard timing duration and control operation.
Wherein, length of testing speech is the duration that tester sets as required, typically wants than standard timing duration Short, gain of parameter can be set by the testing time that read test personnel input.
Typically, can realize in target by setting up the mode such as dynamic link library and defined function pointer During the timing playing program of video performs, the standard timing duration in target program section is replaced with test Duration, this is not limited by the present embodiment.
Optionally, perform the broadcasting corresponding with described standard timing duration control operation may include that ejection and The play cuing interface that described standard timing duration is corresponding;And/or suspend the described target video of broadcasting.Wherein, Corresponding various criterion timing length can have different play cuing interfaces.
Can also wrap it is, of course, understood that the broadcasting corresponding with described standard timing duration controls operation Include: standby playback equipment, play another selected video frequency program or interval set time period follow-up continued broadcasting put mesh The operations such as mark video, this is not limited by the present embodiment.
The technical scheme of the present embodiment by target video timing playing program perform during, identify with Play the standard timing duration that target program section corresponding to timing function includes, and standard duration is replaced with The technological means of testing time, it is possible to achieve perform when timing playing program is play to standard timing duration Broadcasting control operation when testing, described target video is only play to one much smaller than standard timing duration Length of testing speech time, the broadcasting corresponding with described standard timing duration can be performed and control operation, tester Can freely arrange length of testing speech as required, the method for the present embodiment shortens the wait mesh of tester Mark video playback is to time of standard timing duration, thus improves the testing efficiency to timing playing program.
Tester's test to timing playing program for convenience, it is also possible to including: at described target video Timing playing program in add test execution switch, and by described test execution switch initiation for open shape State;If the timing playing program of described target video is by test, then described test execution switch is arranged For closed mode.Wherein, if described test execution switch is closed mode, then in the timing of target video During playing program performs, no longer identify the target program section corresponding with playing timing function.
The benefit so arranged is: for controlling the execution of test, when the timing playing program of described target video During by test, close test execution switch.Regularly playing program receives the mark that user is arranged as required to Quasi-timing length, is play by standard timing duration, when playing to standard timing duration, ejects corresponding broadcasting Prompting interface.Thus after terminating the test to timing playing program, do not affect the normal of timing playing program Perform.
Embodiment two
Fig. 3 is the flow chart of a kind of method of testing playing timing that the embodiment of the present invention two provides, this enforcement Example is on the basis of implementing one, it is provided that a preferred embodiment, with during standard timing a length of 30 minutes, Being 1 minute with length of testing speech, with the function of target program section, entitled " (playing duration sets PlaytimeSetting Put) ", with the parameter name of established standards timing length for " User_SetTime ", as a example by illustrate, The method specifically includes:
S210, judge described test execution switch whether be opening: if so, perform S220;Otherwise, Terminate flow process;
S220, in described timing playing program, matched and searched function entitled " PlaytimeSetting (play Duration is arranged) " function, and using the program code segments of this function as described target program section;
S230, to search parameter name in described target program section be the parameter name of " User_SetTime ", And read the parameter value 30 minutes of this parameter name as standard timing duration;
S240, the testing time of read test personnel input arrange parameter 1 minute as length of testing speech, then Described standard timing duration is replaced with length of testing speech 1 minute in 30 minutes;
S250, when described target video is play to described length of testing speech 1 minute, it is fixed with described standard to eject 30 minutes corresponding play cuing interfaces of Shi Shichang;
S260, judge that described timing playing program, whether by test, is if so, closed test execution and switched also Terminate flow process;Otherwise, flow process is directly terminated.
The technical scheme of the present embodiment by target video timing playing program perform during, identify with The standard timing duration that the target program section that broadcasting timing function is corresponding includes 30 minutes, and by standard timing Duration replaces with the length of testing speech technological means of 1 minute for 30 minutes, it is possible to achieve broadcasting timing playing program Putting and test to the corresponding play cuing interface ejected during standard timing duration 30 minutes, described target regards When frequency is only play to length of testing speech 1 minute, play cuing circle of a length of 30 minutes during standard timing can be ejected Face, length of testing speech can also be carried out free setting by tester as required, and the method for the present embodiment shortens Tester waiting time of 29 minutes, thus improve the testing efficiency to timing playing program.
Embodiment three
Fig. 4 is the structure chart of a kind of test device playing timing that the embodiment of the present invention three provides, this enforcement Example is on the basis of above-described embodiment, it is provided that a kind of play timing test device, this device can be used In the test to timing playing program, this device specifically includes: target recognition module 10, acquisition module 20 With replacement module 30.
Wherein, target recognition module 10, during performing at the timing playing program of target video, know Not corresponding with playing timing function target program section;Acquisition module 20, is used for obtaining described target program section The standard timing duration included;Replacement module 30, in time replacing with test by described standard timing duration Long, to realize when described target video is play to described length of testing speech, perform and described standard timing duration Corresponding broadcasting controls operation.
During the embodiment of the present invention is by performing at the timing playing program of target video, identifies and play and determine The standard timing duration that target program section corresponding for Shi Gongneng includes, and when standard duration is replaced with test Between technological means, it is possible to achieve to timing playing program play to standard timing duration time perform broadcasting When control operation is tested, described target video is only play to a test much smaller than standard timing duration During duration, can perform the broadcasting corresponding with described standard timing duration and control operation, tester can root Freely arranging length of testing speech according to needs, the method for the present embodiment shortens the wait target video of tester Play the time to standard timing duration, thus improve the testing efficiency to timing playing program.
Further, described target recognition module 10 may include that lookup unit, for according to setting function Name makes a look up in described timing playing program, obtains the program code segments matched with described function name and makees For described target program section.
Certainly, it will be appreciated by persons skilled in the art that fixed for performing to play with timing playing program The function name that the function of Shi Gongneng is corresponding can obtain by analyzing the program code of timing playing program, it is possible to With during the execution of timing playing program, obtain in real time by the way of single step performs or diagnoses debugging, This is not limited by the present embodiment.
Preferably, described acquisition module 20 may include that matching unit, for existing according to setup parameter title Described target program section makes a look up, obtains the target component name matched with described parameter name;Obtain Unit, for obtaining the parameter value corresponding with described target component name as described standard timing duration.
The test of timing playing program for convenience, it is also possible to including: switch module and closedown test module, Wherein switch module is for adding test execution switch in the timing playing program of described target video, and will Described test execution switch initiation is opening;Close test module, if for described target video Timing playing program by test, then by described test execution switch be set to off closed state.Wherein, as The most described test execution switch is closed mode, then during the timing playing program at target video performs, No longer identify the target program section corresponding with playing timing function.
The benefit so arranged is: for controlling the execution of test, when the timing playing program of described target video During by test, close test execution switch.Regularly playing program receives the mark that user is arranged as required to Quasi-timing length, is play by standard timing duration, when playing to standard timing duration, ejects corresponding broadcasting Prompting interface.Thus after terminating the test to timing playing program, do not affect the normal of timing playing program Perform.
Optionally, described replacement module 30 may include that ejection unit, for ejecting and described standard timing The play cuing interface that duration is corresponding;And/or time-out unit, it is used for suspending the described target video of broadcasting.
The said goods can perform the method that any embodiment of the present invention is provided, and possesses the corresponding merit of execution method Can module and beneficial effect.
Note, above are only presently preferred embodiments of the present invention and institute's application technology principle.Those skilled in the art It will be appreciated that the invention is not restricted to specific embodiment described here, can enter for a person skilled in the art Row various obvious changes, readjust and substitute without departing from protection scope of the present invention.Therefore, though So by above example, the present invention is described in further detail, but the present invention be not limited only to Upper embodiment, without departing from the inventive concept, it is also possible to include other Equivalent embodiments more, And the scope of the present invention is determined by scope of the appended claims.

Claims (10)

1. the method for testing playing timing, it is characterised in that including:
During the timing playing program of target video performs, identify the target corresponding with playing timing function Program segment;
Obtain the standard timing duration that described target program section includes;
Described standard timing duration is replaced with length of testing speech, to realize when described target video is play to described During length of testing speech, perform the broadcasting corresponding with described standard timing duration and control operation.
Method the most according to claim 1, it is characterised in that at the timing playing program of target video During execution, identify that the target program section corresponding with playing timing function specifically includes:
Make a look up in described timing playing program according to setting function name, obtain and described function famous prime minister The program code segments joined is as described target program section.
Method the most according to claim 1, it is characterised in that obtain the mark in described target program section Quasi-timing length includes:
Make a look up in described target program section according to setup parameter title, obtain and described parameter name phase The target component name of coupling;
Obtain the parameter value corresponding with described target component name as described standard timing duration.
4. according to the arbitrary described method of claim 1-3, it is characterised in that also include:
Test execution switch is added in the timing playing program of described target video, and by described test execution Switch initiation is opening;
If the timing playing program of described target video is by test, then described test execution switch is arranged For closed mode.
5. according to the arbitrary described method of claim 1-3, it is characterised in that perform and described standard timing The broadcasting that duration is corresponding controls operation and includes:
Eject the play cuing interface corresponding with described standard timing duration;And/or
Suspend and play described target video.
6. the test device playing timing, it is characterised in that including:
Target recognition module, during performing at the timing playing program of target video, identifies and plays The target program section that timing function is corresponding;
Acquisition module, for obtaining the standard timing duration that described target program section includes;
Replacement module, for replacing with length of testing speech by described standard timing duration, to realize when described target When video playback is to described length of testing speech, performs the broadcasting corresponding with described standard timing duration and control operation.
Device the most according to claim 6, it is characterised in that described target recognition module includes:
Search unit, for according to set function name make a look up in described timing playing program, obtain with The program code segments that described function name matches is as described target program section.
Device the most according to claim 6, it is characterised in that described acquisition module includes:
Matching unit, for making a look up in described target program section according to setup parameter title, obtain with The target component name that described parameter name matches;
Acquiring unit, during for obtaining the parameter value corresponding with described target component name as described standard timing Long.
9. according to the arbitrary described device of claim 6-8, it is characterised in that also include:
Switch module, for adding test execution switch in the timing playing program of described target video, and It is opening by described test execution switch initiation;
Close test module, if the timing playing program for described target video passes through test, then by institute State test execution switch and be set to off closed state.
10. according to the arbitrary described device of claim 6-8, it is characterised in that described replacement module includes:
Eject unit, for ejecting the play cuing interface corresponding with described standard timing duration;
And/or
Suspend unit, be used for suspending the described target video of broadcasting.
CN201511020095.4A 2015-12-30 2015-12-30 Method and device for testing playing timing Pending CN105868646A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511020095.4A CN105868646A (en) 2015-12-30 2015-12-30 Method and device for testing playing timing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511020095.4A CN105868646A (en) 2015-12-30 2015-12-30 Method and device for testing playing timing

Publications (1)

Publication Number Publication Date
CN105868646A true CN105868646A (en) 2016-08-17

Family

ID=56624474

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511020095.4A Pending CN105868646A (en) 2015-12-30 2015-12-30 Method and device for testing playing timing

Country Status (1)

Country Link
CN (1) CN105868646A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102957874A (en) * 2011-08-29 2013-03-06 联想(北京)有限公司 Play control method and play control apparatus
CN103686359A (en) * 2013-11-14 2014-03-26 乐视致新电子科技(天津)有限公司 Startup advertisement playing method and device thereof
CN105183632A (en) * 2015-07-21 2015-12-23 四川长虹电器股份有限公司 Automatic testing method for video playback starting

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102957874A (en) * 2011-08-29 2013-03-06 联想(北京)有限公司 Play control method and play control apparatus
CN103686359A (en) * 2013-11-14 2014-03-26 乐视致新电子科技(天津)有限公司 Startup advertisement playing method and device thereof
CN105183632A (en) * 2015-07-21 2015-12-23 四川长虹电器股份有限公司 Automatic testing method for video playback starting

Similar Documents

Publication Publication Date Title
CN104333770B (en) The method and device of a kind of net cast
EP2725493A1 (en) Automatic testing apparatus for embedded software and automatic testing method thereof
CN103793324A (en) Testing apparatus for embedded software, testing method thereof and test scenario composing method
US9594957B2 (en) Apparatus and method for identifying a still image contained in moving image contents
CA2556995A1 (en) Automated system and method for conducting usability testing
CN105912699A (en) Data analysis method and device
CN105045699B (en) Mobile terminal and smart card uniformity test connect the method and system of race automatically
CN108632606A (en) Television aging test method and system
CN111858318A (en) Response time testing method, device, equipment and computer storage medium
WO2018036529A1 (en) Method for generating visual test report
US10816593B2 (en) Arrangement unit, testing system and testing method
CN108965705A (en) A kind of method for processing video frequency, device, terminal device and storage medium
CN110503954A (en) Voice technical ability starts method, apparatus, equipment and storage medium
CN113792341A (en) Privacy compliance automation detection method, device, equipment and medium for application program
CN105657545A (en) Video play method and apparatus
CN113852767B (en) Video editing method, device, equipment and medium
CN106657514B (en) Terminal testing method and testing device
CN105868646A (en) Method and device for testing playing timing
CN107027063B (en) Recording playback method and system for detecting television menu function
EP2972879A1 (en) Method and system for analyzing a trace timeline of computer system activity
CN104867508B (en) A kind of method and apparatus that audio files continuously plays
WO2018036528A1 (en) Automatic testing method
CN105487761B (en) A kind of control method and mobile terminal of application program
CN115755672A (en) Missile batch rapid diagnosis system design method based on remote-communication integration
CN109189667A (en) Fluency evaluating method and evaluating apparatus, evaluating tool, the storage device of terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160817