CN107870856B - Video playing starting time testing method and device and electronic terminal - Google Patents

Video playing starting time testing method and device and electronic terminal Download PDF

Info

Publication number
CN107870856B
CN107870856B CN201610860102.XA CN201610860102A CN107870856B CN 107870856 B CN107870856 B CN 107870856B CN 201610860102 A CN201610860102 A CN 201610860102A CN 107870856 B CN107870856 B CN 107870856B
Authority
CN
China
Prior art keywords
frame
video
picture frames
application software
picture
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610860102.XA
Other languages
Chinese (zh)
Other versions
CN107870856A (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.)
Alibaba China Co Ltd
Original Assignee
Alibaba China 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 Alibaba China Co Ltd filed Critical Alibaba China Co Ltd
Priority to CN201610860102.XA priority Critical patent/CN107870856B/en
Publication of CN107870856A publication Critical patent/CN107870856A/en
Application granted granted Critical
Publication of CN107870856B publication Critical patent/CN107870856B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a method and a device for testing video playing starting duration and an electronic terminal, which are applied to the electronic terminal with a screen video recording function, and the method comprises the following steps: acquiring a screen video including the application software to be tested within a preset video duration after receiving a play trigger request; splitting the screen video into a plurality of picture frames, and obtaining the split frame rates of the plurality of picture frames; identifying a first mark frame of a moment when the application software to be tested receives the playing triggering request and a second mark frame of a moment when the video content appears for the first time in the plurality of picture frames; and calculating to obtain the video playing starting time of the application software to be tested according to the first mark frame, the second mark frame and the split frame rate, wherein the video playing starting time is the time between the first mark frame and the second mark frame. The method can accurately and effectively measure the video playing starting time required by the application software to be tested when playing the video through a simple means, and can provide data support for the research and development optimization work of application software research personnel.

Description

Video playing starting time testing method and device and electronic terminal
Technical Field
The invention relates to the field of application software testing, in particular to a method and a device for testing video playing starting duration aiming at application software and an electronic terminal.
Background
The online video playing is one of the functions of great application software usage, and all the large application software provides video playing function. After receiving the play trigger request, the application software often needs to wait for a period of video loading time to display a valid video frame. Different application software has different performance and different video playing starting time length, and testing the video playing starting time length is one of the important methods for measuring the performance of the application software.
At present, in the field of application software testing, a method for accurately testing the video playing starting time does not exist, and application software research personnel cannot obtain accurate and effective video playing starting time data to serve as data support of optimization and improvement software.
Disclosure of Invention
In order to overcome the above defects in the prior art, the invention provides a method and device for testing video playing start duration, and an electronic terminal.
The invention provides a video playing starting time length testing method which is applied to an electronic terminal, and the method comprises the following steps:
acquiring a screen video including the application software to be tested within a preset video duration after receiving a play trigger request;
splitting the screen video into a plurality of picture frames, and obtaining split frame rates of the plurality of picture frames;
identifying a first mark frame of the multiple picture frames when the application software to be tested receives a play trigger request moment and a second mark frame of a video content first appearance moment; and
and calculating and obtaining the video playing starting time of the application software to be tested according to the first mark frame, the second mark frame and the split frame rate, wherein the video playing starting time is the time between the first mark frame and the second mark frame.
The invention provides a video playing starting time length testing device, which is applied to an electronic terminal, and comprises:
the screen video acquisition module is used for acquiring a screen video which contains the preset video duration after the application software to be tested receives the playing triggering request;
the screen video splitting module is used for splitting the screen video into a plurality of picture frames and obtaining the splitting frame rates of the picture frames;
the identification module is used for identifying a first mark frame of the multiple picture frames when the application software to be tested receives the play trigger request and a second mark frame of the video content at the first appearance moment; and
and the starting time calculation module is used for calculating and obtaining the video playing starting time of the application software to be tested according to the first mark frame, the second mark frame and the split frame rate, wherein the video playing starting time is the time between the first mark frame and the second mark frame.
The electronic terminal provided by the invention comprises:
a memory;
a processor; and
a video playback start-up duration testing apparatus, said apparatus being mounted in said memory and comprising one or more software functional modules for execution by said processor, said apparatus comprising:
the screen video acquisition module is used for acquiring a screen video which contains the preset video duration after the application software to be tested receives the playing triggering request;
the screen video splitting module is used for splitting the screen video into a plurality of picture frames and obtaining the splitting frame rates of the picture frames;
the identification module is used for identifying a first mark frame of the multiple picture frames when the application software to be tested receives the play trigger request and a second mark frame of the video content at the first appearance moment; and
and the starting time calculation module is used for calculating and obtaining the video playing starting time of the application software to be tested according to the first mark frame, the second mark frame and the split frame rate, wherein the video playing starting time is the time between the first mark frame and the second mark frame.
Compared with the prior art, the invention has the following beneficial effects:
according to the method, the device and the electronic terminal for testing the video playing starting duration, provided by the invention, the screen video which comprises the preset video duration after the application software to be tested receives the playing triggering request is split into the plurality of picture frames, the first mark frame of the moment when the application software to be tested receives the playing triggering request and the second mark frame of the moment when the video content firstly appears are identified, and the video playing starting duration is obtained through calculation of the first mark frame and the second mark frame. Therefore, the dynamic video is converted into the static picture for identification through a simple means, the video playing starting time required by the application software to be tested when playing the video can be accurately and effectively measured, and powerful data support can be provided for the research and development optimization work of application software research personnel.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a block diagram of an electronic terminal according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a method for testing video playing start duration according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a video playing area according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating the sub-steps of step S140 shown in FIG. 2;
fig. 5 is a block diagram illustrating a video play start duration testing apparatus according to an embodiment of the present invention.
The attached drawings are as follows: 10-an electronic terminal; 110-video playing starting time length testing device; 111-screen video acquisition module; 112-screen video splitting module; 113-an identification module; 114-start-up duration calculation module; 120-a memory; 130-a processor; 140-a display unit; 141-video playing area.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Referring to fig. 1, fig. 1 is a block diagram of an electronic terminal 10 according to a preferred embodiment of the invention. The electronic terminal 10 may be, but is not limited to, a smart phone, a Personal Computer (PC), a tablet PC, a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), and the like. The electronic terminal 10 includes a video playing start time duration testing device 110, a memory 120, a processor 130 and a display unit 140.
The memory 120, the processor 130 and the display unit 140 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The video playing start time period testing device 110 includes at least one software functional module which can be stored in the memory 120 in the form of software or firmware (firmware) or is solidified in an Operating System (OS) of the electronic terminal 10. The processor 130 is used for executing executable modules stored in the memory 120, such as software functional modules and computer programs included in the video playing start time testing apparatus 110.
The Memory 120 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory 120 is used for storing a program, and the processor 130 executes the program after receiving the execution instruction.
The processor 130 may be an integrated circuit chip having signal processing capabilities. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP)), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The display unit 140 provides an interactive interface (e.g., a video playing interface) or is used for displaying image data between the electronic terminal 10 and a user. In this embodiment, the display unit 140 may be a liquid crystal display or a touch display. In the case of a touch display, the display can be a capacitive touch screen or a resistive touch screen, which supports single-point and multi-point touch operations. The support of single-point and multi-point touch operations means that the touch display can sense touch operations generated at one or more positions on the touch display and send the sensed touch operations to the processor for calculation and processing.
Referring to fig. 2, fig. 2 is a flowchart illustrating a video playing start duration testing method applied to the electronic terminal 10 shown in fig. 1 according to this embodiment, where the method includes the following steps.
Step S110, acquiring a screen video including the application software to be tested within a preset video duration after receiving the playing triggering request.
In this embodiment, the video recording function of the electronic terminal 10 itself may be started, and the recorded video recording includes the screen video within the preset video recording time length after the application software to be tested receives the play trigger request, so as to analyze the video play start time length of the software to be tested.
Specifically, in one implementation of this embodiment, the screenshot is obtained as follows.
When receiving the play trigger request, the electronic terminal 10 loads the video corresponding to the play trigger request on the application software to be tested, and simultaneously automatically starts the screen recording function to perform screen recording.
And then stopping the screen recording function after the preset recording time length, and storing the recorded screen recording.
Specifically, in another embodiment of the present embodiment, the manner in which the electronic terminal 10 obtains the screen recording is as follows.
The electronic terminal 10 responds to the user operation and starts the screen recording function in advance to perform screen recording.
After the video screen recording function is started, when the electronic terminal 10 receives a play trigger request of a user, a video corresponding to the play trigger request is loaded on the application software to be tested.
And then stopping the screen recording function after the preset recording time length, and storing the recorded screen recording.
Step S120, splitting the screen video into a plurality of picture frames, and obtaining the split frame rates of the plurality of picture frames. Specifically, in this embodiment, the split frame rates of the plurality of picture frames are obtained by calculating according to the video recording duration of the screenshot and the total number of the plurality of picture frames. Recording the video recording duration of the screen video as T, recording the total frame number of the plurality of picture frames as M, recording the split frame rate as fps, and then, recording the number of the picture frames as T
fps=M÷T
Step S130, identifying a first flag frame of the multiple picture frames at the moment when the application software to be tested receives the play trigger request, and a second flag frame of the video content at the moment when the video content first appears.
In one embodiment of this embodiment, the first flag frame and the second flag frame are identified as follows.
The electronic terminal 10 displays the split picture frames for the user to view.
The electronic terminal 10 receives the picture frame of the moment when the application software to be tested selected by the user from the plurality of picture frames obtains the play trigger request according to the selection operation of the user, and identifies the picture frame as the first mark frame.
The electronic terminal 10 receives the picture frame at the first appearance moment of the video content selected by the user from the plurality of picture frames according to the selection operation of the user, and identifies the picture frame as the second mark frame.
In another implementation manner of this embodiment, the first flag frame and the second flag frame are obtained as follows.
When receiving the play trigger request, the electronic terminal 10 records a time point of the play trigger request, and takes a picture frame corresponding to the time point as the first flag frame.
Referring to fig. 3, the electronic terminal 10 analyzes the change of the RGB color data of the video playing area 141 in the plurality of picture frames. Usually, the video playing area 141 is displayed as a black background color when the video is loaded, and when the electronic terminal 10 detects that the proportion of the pixels with changed RGB colors in the video playing area 141 in a certain frame exceeds a preset threshold, it is determined that the video content appears in the frame for the first time, and the frame is taken as the second mark frame. In this implementation, the threshold may be set at 50%.
Step S140, calculating a video playing start time of the application software to be tested according to the first flag frame, the second flag frame and the split frame rate, where the video playing start time is a time between the first flag frame and the second flag frame.
Specifically, referring to fig. 4, in the present embodiment, the step S140 may include sub-steps S141 and S142.
And a substep S141, obtaining a starting frame number of video playing start between the first mark frame and the second mark frame.
In this embodiment, the plurality of picture frames are numbered one by one, and the frame number of the first flag frame is denoted as PsNoting the frame number of the second mark frame as PeIf the starting frame number of the video playing start between the first mark frame and the second mark frame is Pe-Ps
And a substep S142, calculating the product of the starting frame number and the splitting frame rate to obtain the video playing starting duration.
In this embodiment, if the video playing start time is t, there is a video playing start time
t=(Pe-Ps)×fps
In practical applications, the video recording frame rate of the screen recording function of the electronic terminal 10 can reach 40fps, that is, the time precision after the screen recording is split into the plurality of image frames can reach 30 ms. Therefore, the starting and stopping time points of the video playing starting time length can be obtained with high precision by identifying the first mark frame and the second mark frame.
Referring to fig. 5, the present embodiment further provides a video playing start duration testing device 110, which is applied to an electronic terminal 10 with a screen recording function, and the device includes:
the screen recording obtaining module 111 is configured to obtain a screen recording that includes the application software to be tested within a preset recording duration after receiving the play trigger request.
The screenshot splitting module 112 is configured to split the screenshot into a plurality of picture frames and obtain split frame rates of the picture frames.
The identifying module 113 is configured to identify a first flag frame of the multiple picture frames at the time when the application software to be tested receives the play trigger request, and a second flag frame of the video content at the first occurrence time.
A starting duration calculation module 114, configured to calculate, according to the first flag frame, the second flag frame, and the split frame rate, a video playing starting duration of the application software to be tested, where the video playing starting duration is a duration between the first flag frame and the second flag frame.
Further, the screenshot obtaining module 111 obtains the screenshot through the following method:
and when the play trigger request is received, loading the video corresponding to the play trigger request on the application software to be tested, and simultaneously carrying out screen recording by using the screen recording function of the electronic terminal 10.
And then stopping the screen recording function after the preset recording time length, and storing the screen recording.
Further, the screenshot splitting module 112 obtains the split frame rates of the plurality of picture frames by:
and acquiring the preset video recording duration and the total frame number of the plurality of picture frames.
And then, calculating the quotient of the total frame number of the plurality of picture frames and the preset video recording duration to obtain the split frame rate.
Further, the starting time period calculation module 114 includes:
and the starting frame number obtaining submodule is used for obtaining the starting frame number of video playing starting between the first mark frame and the second mark frame.
And the calculating submodule is used for calculating the product of the starting frame number and the splitting frame rate to obtain the video playing starting duration.
Further, the identification module 113 identifies the first and second flag frames by:
and displaying the plurality of picture frames for a user to view.
And receiving the picture frame of the moment when the application software to be tested selected by the user from the plurality of picture frames obtains the playing triggering request, and identifying the picture frame as the first mark frame.
And receiving the picture frame of the video content first appearing moment selected by the user from the plurality of picture frames, and identifying the picture frame as the second mark frame.
Further, the identification module 113 identifies the first and second flag frames by:
and acquiring a time point when the application software to be tested receives the playing trigger request, and taking the picture frame corresponding to the time point as the first mark frame.
Analyzing the change of the RGB color data of the video playing area 141 in the plurality of picture frames, and setting the picture frame when the RGB color in the video playing area 141 changes as the second mark frame.
In summary, according to the method, the device, and the electronic terminal 10 for testing the video playing start duration provided by the present invention, the screen recording that includes the preset recording duration after the application software to be tested receives the playing trigger request is split into the plurality of picture frames, the first flag frame at the moment when the application software to be tested receives the playing trigger request and the second flag frame at the moment when the video content first appears are identified, and the video playing start duration is obtained through calculation of the first flag frame and the second flag frame. Therefore, the dynamic video is converted into the static picture for identification through a simple means, the video playing starting time required by the application software to be tested when playing the video can be accurately and effectively measured, and powerful data support can be provided for the research and development optimization work of application software research personnel.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (18)

1. A video playing starting time length testing method is applied to an electronic terminal with a screen recording function, and is characterized by comprising the following steps:
acquiring a screen video including the application software to be tested within a preset video duration after receiving a play trigger request;
splitting the screen video into a plurality of picture frames, and obtaining split frame rates of the plurality of picture frames;
identifying a first mark frame of the multiple picture frames when the application software to be tested receives a play trigger request moment and a second mark frame of a video content first appearance moment; and
calculating and obtaining the video playing starting time of the application software to be tested according to the first mark frame, the second mark frame and the split frame rate, wherein the video playing starting time is the time between the first mark frame and the second mark frame;
the step of identifying the second marker frame includes:
analyzing the change of the RGB color data of the video playing area in the plurality of picture frames, and taking the picture frame when the RGB color in the video playing area changes as the second mark frame.
2. The method of claim 1, wherein the step of obtaining the screenshot record containing the application software to be tested within a preset recording duration after receiving the play trigger request comprises:
receiving the playing triggering request, loading a video corresponding to the playing triggering request on the application software to be tested, and simultaneously carrying out screen recording by using a screen recording function of the electronic terminal; and
and stopping the screen video recording function after the preset video recording time length, and storing the screen video.
3. The method of claim 1, wherein the step of obtaining the split frame rate of the plurality of picture frames comprises:
acquiring the preset video recording duration and the total frame number of the plurality of picture frames; and
and calculating the quotient of the total frame number of the plurality of picture frames and the preset video recording duration to obtain the split frame rate.
4. The method according to claim 1, wherein the step of calculating and obtaining the video playing start duration of the application software to be tested according to the first flag frame, the second flag frame and the split frame rate comprises:
obtaining a starting frame number of video playing starting between the first mark frame and the second mark frame; and
and calculating the quotient of the starting frame number and the splitting frame rate to obtain the video playing starting duration.
5. The method of claim 1, wherein the step of identifying a first flag frame of the plurality of picture frames at which the application software under test receives the play trigger request and a second flag frame of the plurality of picture frames at which the video content first appears comprises:
displaying the plurality of picture frames;
receiving a picture frame of a moment when the application software to be tested selected by a user from the plurality of picture frames obtains a play trigger request, and identifying the picture frame as the first mark frame; and
and receiving the picture frame of the video content first appearing moment selected by the user from the plurality of picture frames, and identifying the picture frame as the second mark frame.
6. The method of claim 1, wherein the step of identifying a first flag frame of the plurality of picture frames at which the application software under test receives a play trigger request comprises:
and acquiring a time point when the application software to be tested receives the playing trigger request, and taking the picture frame corresponding to the time point as the first mark frame.
7. The utility model provides a long testing arrangement of video broadcast start-up, is applied to the electronic terminal who has the screen video recording function, its characterized in that, the device includes:
the screen video acquisition module is used for acquiring a screen video which contains the preset video duration after the application software to be tested receives the playing triggering request;
the screen video splitting module is used for splitting the screen video into a plurality of picture frames and obtaining the splitting frame rates of the picture frames;
the identification module is used for identifying a first mark frame of the multiple picture frames when the application software to be tested receives the play trigger request and a second mark frame of the video content at the first appearance moment; and
a starting time calculation module, configured to calculate and obtain a video playing starting time of the application software to be tested according to the first flag frame, the second flag frame, and the split frame rate, where the video playing starting time is a time between the first flag frame and the second flag frame;
the identification module identifies the second marker frame by:
analyzing the change of the RGB color data of the video playing area in the plurality of picture frames, and taking the picture frame when the RGB color in the video playing area changes as the second mark frame.
8. The apparatus of claim 7, wherein the screenshot capture module captures a screenshot by:
receiving the playing triggering request, loading a video corresponding to the playing triggering request on the application software to be tested, and simultaneously carrying out screen recording by using a screen recording function of the electronic terminal; and
and stopping the screen video recording function after the preset video recording time length, and storing the screen video.
9. The apparatus of claim 7, wherein the video screen splitting module obtains the split frame rates of the plurality of picture frames by:
acquiring the preset video recording duration and the total frame number of the plurality of picture frames; and
and calculating the quotient of the total frame number of the plurality of picture frames and the preset video recording duration to obtain the split frame rate.
10. The apparatus of claim 7, wherein the start-up duration calculation module comprises:
a starting frame number obtaining submodule for obtaining a starting frame number of video playing start between the first mark frame and the second mark frame; and
and the calculating submodule is used for calculating the quotient of the starting frame number and the splitting frame number to obtain the video playing starting duration.
11. The apparatus of claim 7, wherein the identification module identifies the first marker frame and the second marker frame by:
displaying the plurality of picture frames;
receiving a picture frame of a moment when the application software to be tested selected by a user from the plurality of picture frames obtains a play trigger request, and identifying the picture frame as the first mark frame; and
and receiving the picture frame of the video content first appearing moment selected by the user from the plurality of picture frames, and identifying the picture frame as the second mark frame.
12. The apparatus of claim 7, wherein the identification module identifies the first flag frame by:
and acquiring a time point when the application software to be tested receives the playing trigger request, and taking the picture frame corresponding to the time point as the first mark frame.
13. An electronic terminal, characterized in that the electronic terminal comprises:
a memory;
a processor; and
a video playback start-up duration testing apparatus, said apparatus being mounted in said memory and comprising one or more software functional modules for execution by said processor, said apparatus comprising:
the screen video acquisition module is used for acquiring a screen video which contains the preset video duration after the application software to be tested receives the playing triggering request;
the screen video splitting module is used for splitting the screen video into a plurality of picture frames and obtaining the splitting frame rates of the picture frames;
the identification module is used for identifying a first mark frame of the multiple picture frames when the application software to be tested receives the play trigger request and a second mark frame of the video content at the first appearance moment; and
a starting time calculation module, configured to calculate and obtain a video playing starting time of the application software to be tested according to the first flag frame, the second flag frame, and the split frame rate, where the video playing starting time is a time between the first flag frame and the second flag frame;
the identification module identifies the second marker frame by:
analyzing the change of the RGB color data of the video playing area in the plurality of picture frames, and taking the picture frame when the RGB color in the video playing area changes as the second mark frame.
14. The electronic terminal of claim 13, wherein the screenshot obtaining module obtains the screenshot by:
receiving the playing triggering request, loading a video corresponding to the playing triggering request on the application software to be tested, and simultaneously carrying out screen recording by using a screen recording function of the electronic terminal; and
and stopping the screen video recording function after the preset video recording time length, and storing the screen video.
15. The electronic terminal of claim 13, wherein the video screen splitting module obtains the split frame rates of the plurality of picture frames by:
acquiring the preset video recording duration and the total frame number of the plurality of picture frames; and
and calculating the quotient of the total frame number of the plurality of picture frames and the preset video recording duration to obtain the split frame rate.
16. The electronic terminal of claim 13, wherein the start-up duration calculating module comprises:
a starting frame number obtaining submodule for obtaining a starting frame number of video playing start between the first mark frame and the second mark frame;
and the calculating submodule is used for calculating the quotient of the starting frame number and the splitting frame number to obtain the video playing starting duration.
17. The electronic terminal of claim 13, wherein the identification module identifies the first flag frame and the second flag frame by:
displaying the plurality of picture frames;
receiving a picture frame of a moment when the application software to be tested selected by a user from the plurality of picture frames obtains a play trigger request, and identifying the picture frame as the first mark frame; and
and receiving the picture frame of the video content first appearing moment selected by the user from the plurality of picture frames, and identifying the picture frame as the second mark frame.
18. The electronic terminal of claim 13, wherein the identification module identifies the first flag frame by:
and acquiring a time point when the application software to be tested receives the playing trigger request, and taking the picture frame corresponding to the time point as the first mark frame.
CN201610860102.XA 2016-09-28 2016-09-28 Video playing starting time testing method and device and electronic terminal Active CN107870856B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610860102.XA CN107870856B (en) 2016-09-28 2016-09-28 Video playing starting time testing method and device and electronic terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610860102.XA CN107870856B (en) 2016-09-28 2016-09-28 Video playing starting time testing method and device and electronic terminal

Publications (2)

Publication Number Publication Date
CN107870856A CN107870856A (en) 2018-04-03
CN107870856B true CN107870856B (en) 2021-06-11

Family

ID=61762013

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610860102.XA Active CN107870856B (en) 2016-09-28 2016-09-28 Video playing starting time testing method and device and electronic terminal

Country Status (1)

Country Link
CN (1) CN107870856B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109800146B (en) * 2018-12-13 2023-06-20 平安科技(深圳)有限公司 Application program start time testing method and device, computer equipment and storage medium
CN109710520A (en) * 2018-12-14 2019-05-03 中国平安财产保险股份有限公司 Using the time-consuming test method of starting, device, computer equipment and storage medium
CN109803046A (en) * 2018-12-28 2019-05-24 惠州Tcl移动通信有限公司 Method, intelligent terminal and the storage device of intelligent terminal performance test
CN110324707B (en) * 2019-07-12 2021-12-10 北京奇艺世纪科技有限公司 Video playing time consumption testing method and device
CN111131812A (en) * 2019-12-31 2020-05-08 北京奇艺世纪科技有限公司 Broadcast time testing method and device and computer readable storage medium
CN112579420A (en) * 2020-12-30 2021-03-30 杭州视洞科技有限公司 Automatic dialing and testing scheme and flow for mobile client application of intelligent camera

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581987A (en) * 2012-07-31 2014-02-12 腾讯科技(深圳)有限公司 Method and device for testing webpage downloading speed of mobile terminal device
CN104077214A (en) * 2013-03-26 2014-10-01 腾讯科技(深圳)有限公司 Software system loading procedure image identification method and system
CN104394026A (en) * 2014-10-08 2015-03-04 百度在线网络技术(北京)有限公司 Method and device for measuring webpage load time
CN104468916A (en) * 2014-10-24 2015-03-25 天津市康凯特软件科技有限公司 Test method based on cell phone response time
WO2015196540A1 (en) * 2014-06-23 2015-12-30 中兴通讯股份有限公司 Method, apparatus and device for testing response time of user interface of terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581987A (en) * 2012-07-31 2014-02-12 腾讯科技(深圳)有限公司 Method and device for testing webpage downloading speed of mobile terminal device
CN104077214A (en) * 2013-03-26 2014-10-01 腾讯科技(深圳)有限公司 Software system loading procedure image identification method and system
WO2015196540A1 (en) * 2014-06-23 2015-12-30 中兴通讯股份有限公司 Method, apparatus and device for testing response time of user interface of terminal
CN104394026A (en) * 2014-10-08 2015-03-04 百度在线网络技术(北京)有限公司 Method and device for measuring webpage load time
CN104468916A (en) * 2014-10-24 2015-03-25 天津市康凯特软件科技有限公司 Test method based on cell phone response time

Also Published As

Publication number Publication date
CN107870856A (en) 2018-04-03

Similar Documents

Publication Publication Date Title
CN107870856B (en) Video playing starting time testing method and device and electronic terminal
US10222955B2 (en) Automatically capturing user interactions and evaluating user interfaces in software programs using field testing
JP2018525042A5 (en)
CN108091288B (en) Display screen uniformity testing method, terminal and computer readable storage medium
TWI671647B (en) Method, device and electronic device for calculating the duration of the first screen of a page
KR101731293B1 (en) Mobile terminal test system and mobile terminal test method using the system
CN111405218A (en) Touch screen time delay detection method, system, device, equipment and storage medium
KR20140091555A (en) Measuring web page rendering time
JP2016194833A (en) Commodity display position determination processing method, commodity display position determination processing program, and commodity display position determination processing apparatus
TWI521963B (en) Electronic device and video tagging method
JP2009223767A (en) Information presentation system
TW201811266A (en) Electronic apparatus and method for providing skin detection information thereof
JP2008109290A5 (en)
CN112380181A (en) Terminal drop detection method, device and system, electronic terminal and storage medium
CN113238905A (en) Screen jumpiness detection method and device
EP2731015A2 (en) Computer infrastructure performance system
CN110324707B (en) Video playing time consumption testing method and device
CN108111914B (en) Video playing area identification method and device and media playing equipment
CN106792163B (en) Method and device for detecting video playing state
CN112385199B (en) Display control method and related product
CN108282353A (en) Browse information content statistical method, device and electric terminal
CN112612688A (en) Method and device for testing equipment fluency, electronic equipment and storage medium
CN111309613A (en) Application testing method, device, equipment and computer readable storage medium
US8630826B2 (en) Electronic device and method for controlling probe measurements
CN107451047B (en) Browser function testing method and system and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200601

Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Alibaba (China) Co.,Ltd.

Address before: 510627 Guangdong city of Guangzhou province Whampoa Tianhe District Road No. 163 Xiping Yun Lu Yun Ping B radio 14 floor tower square

Applicant before: GUANGZHOU UCWEB COMPUTER TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant