CN113495843A - Method and device for testing play-starting performance of video player - Google Patents
Method and device for testing play-starting performance of video player Download PDFInfo
- Publication number
- CN113495843A CN113495843A CN202110768832.8A CN202110768832A CN113495843A CN 113495843 A CN113495843 A CN 113495843A CN 202110768832 A CN202110768832 A CN 202110768832A CN 113495843 A CN113495843 A CN 113495843A
- Authority
- CN
- China
- Prior art keywords
- video player
- play
- test
- time
- video
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 201
- 238000000034 method Methods 0.000 title claims abstract description 78
- 230000015556 catabolic process Effects 0.000 claims description 18
- 238000006731 degradation reaction Methods 0.000 claims description 18
- 230000004044 response Effects 0.000 claims description 8
- 230000008569 process Effects 0.000 description 24
- 238000004891 communication Methods 0.000 description 13
- 238000004590 computer program Methods 0.000 description 11
- 230000006870 function Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 7
- 238000009877 rendering Methods 0.000 description 5
- 230000008859 change Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 238000013459 approach Methods 0.000 description 3
- 230000006866 deterioration Effects 0.000 description 3
- 238000002474 experimental method Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000013473 artificial intelligence Methods 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000011156 evaluation Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000011835 investigation Methods 0.000 description 2
- 230000002035 prolonged effect Effects 0.000 description 2
- 238000000275 quality assurance Methods 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000010267 cellular communication Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3692—Test management for test results analysis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3409—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
- G06F11/3419—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment by assessing time
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
Abstract
A method and a device for testing the play-starting performance of a video player are provided, which relate to the technical field of computers, in particular to the technical field of video players. The implementation scheme is as follows: acquiring the test play starting time of a video player to be released; acquiring the historical playing starting time of a previous version video player of the video player to be released; and acquiring a test result related to the play-starting performance of the video player to be released based on the test play-starting time and the historical play-starting time.
Description
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to the field of video player technologies, and in particular, to a method and an apparatus for testing play-out performance of a video player, an electronic device, a computer-readable storage medium, and a computer program product.
Background
The development iteration process of the video player often involves the replacement of the new version and the old version, so that the new version of the video player is released online, and the released video player of the previous version is replaced, thereby providing more and better service functions for users.
The approaches described in this section are not necessarily approaches that have been previously conceived or pursued. Unless otherwise indicated, it should not be assumed that any of the approaches described in this section qualify as prior art merely by virtue of their inclusion in this section. Similarly, unless otherwise indicated, the problems mentioned in this section should not be considered as having been acknowledged in any prior art.
Disclosure of Invention
The present disclosure provides a method, an apparatus, an electronic device, a computer-readable storage medium, and a computer program product for testing the play-out performance of a video player.
According to an aspect of the present disclosure, there is provided a method for testing play-up performance of a video player, comprising: acquiring the test play starting time of a video player to be released; acquiring the historical playing starting time of a previous version video player of the video player to be released; and acquiring a test result related to the play-starting performance of the video player to be released based on the test play-starting time and the historical play-starting time.
According to another aspect of the present disclosure, there is provided an apparatus for testing play-up performance of a video player, including: the device comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is configured to acquire the test play starting time of a video player to be released; the second acquisition unit is configured to acquire the historical playing start time of a previous version video player of the video player to be released; and a third obtaining unit, configured to obtain a test result related to the play-starting performance of the video player to be released based on the test play-starting time and the historical play-starting time.
According to another aspect of the present disclosure, there is provided an electronic device including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to implement a method according to the above.
According to another aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to implement the method according to the above.
According to one or more embodiments of the present disclosure, before a video player is released (online), a test result related to the play-starting performance of the video player to be released is obtained based on the test play-starting time of the video player to be released (new version) and the historical play-starting time of the video player of the previous version, so as to avoid that the play-starting time is prolonged due to the play-starting performance degradation of the video player after the video player is online, which affects user experience and causes an online accident. Meanwhile, if the test result shows that the play-starting performance of the video player to be released is reduced, the test result with the degraded play-starting performance can be judged to be caused by the code problem of the video player to be released, and the test result is irrelevant to the code change online, the experiment online and the like of other partners, so that the investigation range and the difficulty of the reasons causing the degradation of the play-starting performance of the video player are reduced.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate exemplary embodiments of the embodiments and, together with the description, serve to explain the exemplary implementations of the embodiments. The illustrated embodiments are for purposes of illustration only and do not limit the scope of the claims. Throughout the drawings, identical reference numbers designate similar, but not necessarily identical, elements.
FIG. 1 illustrates a schematic diagram of an exemplary system in which various methods described herein may be implemented, according to an embodiment of the present disclosure;
FIG. 2 illustrates a flow diagram of a method for testing the launch performance of a video player according to some embodiments of the present disclosure;
fig. 3 shows a flow chart of a process of obtaining a test start-up time of a video player to be released on a test device in a method for testing the start-up performance of a video player according to some embodiments of the present disclosure;
FIG. 4 illustrates a flow chart of a process for obtaining an average start-up time for a test device in a method for testing start-up performance of a video player according to some embodiments of the present disclosure;
FIG. 5 shows a flow chart of a procedure for determining a test result in the method for testing the play-out performance of a video player according to FIG. 2;
FIG. 6 shows a flow chart of a process for obtaining a code problem in the method for testing the play-out performance of a video player according to FIG. 2;
fig. 7 shows a flow chart of a procedure for obtaining a code problem of a video player to be released based on test start-up information data in the method for testing start-up performance of a video player according to fig. 2;
FIG. 8 shows a block diagram of an apparatus for testing the play-out performance of a video player according to the present disclosure; and
FIG. 9 illustrates a block diagram of an exemplary electronic device that can be used to implement embodiments of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In the present disclosure, unless otherwise specified, the use of the terms "first", "second", etc. to describe various elements is not intended to limit the positional relationship, the timing relationship, or the importance relationship of the elements, and such terms are used only to distinguish one element from another. In some examples, a first element and a second element may refer to the same instance of the element, and in some cases, based on the context, they may also refer to different instances.
The terminology used in the description of the various described examples in this disclosure is for the purpose of describing particular examples only and is not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, the elements may be one or more. Furthermore, the term "and/or" as used in this disclosure is intended to encompass any and all possible combinations of the listed items.
Embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.
Fig. 1 illustrates a schematic diagram of an exemplary system 100 in which various methods and apparatus described herein may be implemented in accordance with embodiments of the present disclosure. Referring to fig. 1, the system 100 includes one or more client devices 101, 102, 103, 104, 105, and 106, a server 120, and one or more communication networks 110 coupling the one or more client devices to the server 120. Client devices 101, 102, 103, 104, 105, and 106 may be configured to execute one or more applications.
In embodiments of the present disclosure, the server 120 may run one or more services or software applications that enable the execution of methods for testing the launch performance of a video player to a client device.
In some embodiments, the server 120 may also provide other services or software applications that may include non-virtual environments and virtual environments. In certain embodiments, these services may be provided as web-based services or cloud services, for example, provided to users of client devices 101, 102, 103, 104, 105, and/or 106 under a software as a service (SaaS) model.
In the configuration shown in fig. 1, server 120 may include one or more components that implement the functions performed by server 120. These components may include software components, hardware components, or a combination thereof, which may be executed by one or more processors. A user operating a client device 101, 102, 103, 104, 105, and/or 106 may, in turn, utilize one or more client applications to interact with the server 120 to take advantage of the services provided by these components. It should be understood that a variety of different system configurations are possible, which may differ from system 100. Accordingly, fig. 1 is one example of a system for implementing the various methods described herein and is not intended to be limiting.
The user may use the client device 101, 102, 103, 104, 105, and/or 106 to play video based on the video player for which the server 120 tested the play-out capability. The client device may provide an interface that enables a user of the client device to interact with the client device. The client device may also output information to the user via the interface. Although fig. 1 depicts only six client devices, those skilled in the art will appreciate that any number of client devices may be supported by the present disclosure.
Network 110 may be any type of network known to those skilled in the art that may support data communications using any of a variety of available protocols, including but not limited to TCP/IP, SNA, IPX, etc. By way of example only, one or more networks 110 may be a Local Area Network (LAN), an ethernet-based network, a token ring, a Wide Area Network (WAN), the internet, a virtual network, a Virtual Private Network (VPN), an intranet, an extranet, a Public Switched Telephone Network (PSTN), an infrared network, a wireless network (e.g., bluetooth, WIFI), and/or any combination of these and/or other networks.
The server 120 may include one or more general purpose computers, special purpose server computers (e.g., PC (personal computer) servers, UNIX servers, mid-end servers), blade servers, mainframe computers, server clusters, or any other suitable arrangement and/or combination. The server 120 may include one or more virtual machines running a virtual operating system, or other computing architecture involving virtualization (e.g., one or more flexible pools of logical storage that may be virtualized to maintain virtual storage for the server). In various embodiments, the server 120 may run one or more services or software applications that provide the functionality described below.
The computing units in server 120 may run one or more operating systems including any of the operating systems described above, as well as any commercially available server operating systems. The server 120 may also run any of a variety of additional server applications and/or middle tier applications, including HTTP servers, FTP servers, CGI servers, JAVA servers, database servers, and the like.
In some implementations, the server 120 may include one or more applications to analyze and consolidate data feeds and/or event updates received from users of the client devices 101, 102, 103, 104, 105, and 106. Server 120 may also include one or more applications to display data feeds and/or real-time events via one or more display devices of client devices 101, 102, 103, 104, 105, and 106.
In some embodiments, the server 120 may be a server of a distributed system, or a server incorporating a blockchain. The server 120 may also be a cloud server, or a smart cloud computing server or a smart cloud host with artificial intelligence technology. The cloud Server is a host product in a cloud computing service system, and is used for solving the defects of high management difficulty and weak service expansibility in the traditional physical host and Virtual Private Server (VPS) service.
The system 100 may also include one or more databases 130. In some embodiments, these databases may be used to store data and other information. For example, one or more of the databases 130 may be used to store information such as audio files and video files. The data store 130 may reside in various locations. For example, the data store used by the server 120 may be local to the server 120, or may be remote from the server 120 and may communicate with the server 120 via a network-based or dedicated connection. The data store 130 may be of different types. In certain embodiments, the data store used by the server 120 may be a database, such as a relational database. One or more of these databases may store, update, and retrieve data to and from the database in response to the command.
In some embodiments, one or more of the databases 130 may also be used by applications to store application data. The databases used by the application may be different types of databases, such as key-value stores, object stores, or regular stores supported by a file system.
The system 100 of fig. 1 may be configured and operated in various ways to enable application of the various methods and apparatus described in accordance with the present disclosure.
In the development iteration process of the video player, if a code problem occurs, the play-starting performance of the video player is reduced, and the play-starting time of the video player is prolonged. The playing start time of the video player is the time spent by the video player from the time when the user instruction is acquired to the time when the video is played for the user. When the play-up performance of a video player decreases, it often results in an extension of the play-up time of the video player by several tens to several hundreds milliseconds. The degradation in the play-out performance of a video player is difficult to detect in Quality Assurance (QA) tests, and is often not easily noticeable before it comes online. After the video player is released online, the drop of the playing performance will affect the user experience and become an online accident.
An aspect of the present disclosure provides a method for testing the play-out performance of a video player.
Referring to fig. 2, a method 200 for testing the launch performance of a video player according to some embodiments of the present disclosure includes:
step S210: acquiring the test play starting time of a video player to be released;
step S220: acquiring the historical playing starting time of a previous version video player of the video player to be released; and
step S230: and acquiring a test result related to the play-starting performance of the video player to be released based on the test play-starting time and the historical play-starting time.
According to one or more embodiments of the present disclosure, before a video player is released (online), a test result related to the play-starting performance of the video player to be released is obtained based on the test play-starting time of the video player to be released (new version) and the historical play-starting time of the video player of the previous version, so that an online accident caused by the fact that the play-starting performance of the video player is degraded after the video player is online is avoided. Meanwhile, if the test result shows that the play-starting performance of the video player to be released is reduced, the test result with the degraded play-starting performance can be judged to be caused by the code problem of the video player to be released, and the test result is irrelevant to the code change online, the experiment online and the like of other partners, so that the investigation range and the difficulty of the reasons causing the degradation of the play-starting performance of the video player are reduced.
According to some embodiments, the video players include video players based on in-place play scenes and video players based on video floor page scenes. The in-place playing scene may be, for example, based on obtaining an instruction sent by the user by clicking a play button of the video player, performing video playing. The video landing page scene may be, for example, in the video playing process based on the feed stream, based on obtaining an instruction sent by the user by clicking the video module, entering the video landing page to play the video.
In some embodiments, in step S210, the test start playing time of the video player to be distributed on each of the plurality of test devices is obtained, and the average start playing time is obtained according to the test start playing time of each of the plurality of test devices, and the average start playing time is used as the test start playing time of the video player to be distributed. According to some embodiments, in step S220, the historical playing time of the online version video player on each of the plurality of playing devices is obtained, and based on the historical playing time on each of the plurality of playing devices, a historical playing time average value is obtained, and the historical playing time average value is used as the starting playing time of the previous version video player.
It should be noted that, the term "test device" and the term "playing device" in the present disclosure both refer to hardware devices that can be used to install and run a video player installed thereon to implement a video playing function, for example, including but not limited to a mobile phone, a computer, or a tablet computer.
In some embodiments, the step S210 of obtaining the test play-up time of the video player to be released includes: acquiring the test start playing time of the video player to be released on the test equipment, wherein the step S220 of acquiring the historical start playing time of a previous version video player of the video player to be released includes: and acquiring the historical play starting time corresponding to the test equipment.
And acquiring a test result based on the historical playing starting time corresponding to the test equipment where the video player to be released is located. The hardware condition of the testing equipment where the video player to be released is located is considered in the testing result, so that the hardware influence of the equipment for collecting the test start playing time of the video player is eliminated, and the obtained testing result is accurate. Meanwhile, since the historical play start time corresponding to the test equipment is obtained, in step S210, the test play start time of the video player to be released can be used as the test play start time for obtaining the test result only by obtaining the test play start time of the video player to be released on one test equipment, so that the test process is simple, and the data processing amount is small.
In some embodiments, as shown in fig. 3, acquiring the play-up time of the video player to be released on the test device includes:
step S310: acquiring a plurality of video playing starting times of the video player to be issued on the test equipment; and
step S320: and acquiring the test play-starting time based on the plurality of video play-starting times.
And acquiring a plurality of video play-starting times of a video player to be released on the test equipment, wherein each video play-starting time in the plurality of video play-starting times is the play-starting time of the video player to be released for playing the corresponding video. Acquiring the test start playing time based on the plurality of video start playing times, for example, by acquiring an average value of the plurality of video start playing times as the test start playing time; accurate test play-out time data
According to some embodiments, when a tester manually clicks the video player to be released to send an instruction for acquiring a first video, the tester acquires the first video from the video player of the version to be released, and simultaneously acquires the video playing start time corresponding to the first video; and repeating the foregoing steps to obtain a plurality of video attack times corresponding to the plurality of videos.
According to other embodiments, in response to a received test instruction for testing the play-out performance of a video player, a video acquisition instruction is sent to the video player to be distributed, so that the video player to be distributed can acquire video play-out time corresponding to one or more videos while playing the one or more videos. The video playing start time corresponding to the one or more videos is obtained by sending the video obtaining instruction to the video player to be issued, so that the process of obtaining the video playing start time is automatically completed based on the test instruction, the test process is further simplified, and the labor is saved.
In some embodiments, as shown in fig. 4, the obtaining the average playing time corresponding to the test device includes:
step S410: obtaining a video start-up time of the previous version of the video player on each of a plurality of playback devices, each playback device having a corresponding playback device model, and the playback device model further corresponding to a corresponding hardware performance score, and wherein the test device corresponds to one of the plurality of playback device models;
step S420: acquiring a corresponding relation between the model of the playing device and the historical playing start time based on the hardware performance score and the corresponding video playing start time of each playing device in the plurality of playing devices; and
step S430: and acquiring the historical play-starting time corresponding to the test equipment based on the corresponding relation between the play equipment model and the historical play-starting time and the play equipment model corresponding to the test equipment.
In some embodiments, in step S410, the plurality of playback devices are a plurality of test devices, and the video play-up time on each of the plurality of test devices by obtaining the video player of the previous version is taken as the video play-up time corresponding to each of the plurality of playback devices.
In some embodiments, step S410, the previous version video player is a published video player, and the obtaining the video play-up time of the previous version video player at each of the plurality of devices includes: and acquiring the video playing starting time of the prior version video player on line.
Because the prior version video player is a published video player, online data acquisition can be carried out on the published video player online, so that the video playing start time of the prior version video player on each playing device in a plurality of playing devices is obtained, and the method and the process for obtaining the historical playing start time of the online version video player are simple. For example, the playing start time of the video of the previous version video player is obtained by obtaining the data report about the playing performance of the previous version video player.
It should be noted that the terms "on line", "on line" or "on line" referred to in this disclosure all refer to that the distributed video player is in the network, and obtains its function through the network or makes it implement the function through the network.
It should also be understood that the terms "video attack time", "historical attack time", or "test attack time" referred to in this disclosure each correspond to the attack time of the player from the receipt of the user instruction to the start of playing the video position. The terminology before "attack time" is for distinction only and not for limitation, and the terminology before "attack time" may also be used to employ other terminology, such as "first", "second", etc.
According to some embodiments, in step S410, the model of the playing device is a hardware model on which the player implements the video playing function, which includes, but is not limited to, a manufacturer of the playing device, a hardware vendor of the playing device, and so on.
According to some embodiments, in step S410, the hardware performance of the playback device is scored based on preset hardware scoring criteria. For example, the hardware scoring device with preset hardware scoring standard scores the hardware of the playback device, or correspondingly grades the hardware of the playback device to obtain the hardware performance score of the playback device.
In some embodiments, in step S420, by obtaining a variation curve of the video play-up time along with the model of the playing device, a playing device model-historical play-up time correspondence relationship is obtained. According to some embodiments, the distributed video player is subjected to online data acquisition through online to obtain the device model-historical play-up time corresponding relation. For example, by obtaining a data report about playing performance of the published video player, the device model-historical playing time correspondence is obtained.
In some embodiments, in step S430, based on the device model corresponding to the testing device, the historical play start time corresponding to the device is obtained from the play device model-historical play start time correspondence.
Based on the results of step S110 and step S120, in step S130, a test result related to the play-up performance of the video player to be distributed is obtained. In some embodiments, the test result includes an evaluation index of the play-up performance of the video player to be distributed, such as excellent, good, and bad. In some embodiments, the test result includes a qualitative evaluation of whether the play-up performance of the video player to be distributed is reduced from the play-up performance of its previous version, for example, the play-up performance is degraded or the play-up performance is not degraded.
In some embodiments, method 100 further comprises determining a test result.
As shown in fig. 5, in the method 100, determining the test result includes:
step S510: determining the test result as a play-out performance degradation in response to determining that the test play-out time exceeds the average play-out time by a preset value; and
step S520: and outputting the test result.
When the obtained test result is that the play-starting performance of the video player to be released is degraded, the test result is output, so that the test result can appear in a visual mode to remind a developer that the video player to be released has a code problem and cannot be on-line, and the test process is further intelligentized. Meanwhile, when the test start broadcasting time exceeds the average start broadcasting time by a preset value, the test result is determined as the start broadcasting performance deterioration, and a space is reserved for the test start broadcasting time for determining the start broadcasting performance deterioration. The method avoids the test result being wrongly determined as the play-out performance deterioration caused by the fact that the test play-out time exceeds the average play-out time due to other reasons such as hardware of the test equipment.
According to some embodiments, the preset value is 50 ms. In one example, in step S210, the obtained test start-up time is 1200ms, in step S220, the obtained historical start-up time is 1000ms, and in step S510, it is determined that the test start-up time 1200ms exceeds the historical start-up time 1000ms by 200ms, which is greater than the preset value of 20ms, and thus the test result is determined to be the start-up performance degradation.
In some embodiments, in step S520, alarm information is output in the form of a log file to output the test result of the broadcast performance degradation. In other embodiments, the alarm information is presented in the form of a dialog box to output the test result of the broadcast performance degradation.
In some embodiments, method 100 further comprises obtaining a code question.
As shown in fig. 6, in the method 100, acquiring the code problem includes:
step S610: acquiring test play start information data of the video player to be released; and
step S620: and responding to the determination that the test result is the play-starting performance degradation, and acquiring the code problem of the video player to be issued based on the test play-starting information data.
When the starting playing performance is degraded as a test result, the code problem of the video player of the current version is further obtained by obtaining the test starting playing information data of the video player to be released, and because the reason for the degradation of the starting playing performance of the video player is examined under the online condition (before the video player is released), the interference factors (code change of other partners, online experiment and the like) in the examination process are few, and the reason for the degradation of the starting playing performance of the video player can be accurately examined. Meanwhile, according to some embodiments, the test device for testing the play-out performance of the video player is used for responding to the fact that the play-out performance is degraded after the test result is determined, and acquiring the code problem of the video player to be issued, so that the test process is further automated, and the manpower is reduced.
In some embodiments, the test launch information data comprises at least one of: prefetch information data, decode information data, render information data, start-up data, administration information data, service information data, and environment information data.
According to some embodiments, prefetching the information data comprises: the pre-fetching url is set by the video player to be issued; whether the video player to be issued is prefetched in the playing starting process or not; if it has been prefetched, whether the video player to be released uses a prefetch file, the size of the prefetched video header, etc.
According to some embodiments, decoding the information data comprises: a decoding mode (such as hard decoding or soft decoding) used by the video player to be released in the process of playing the video; time-consuming information of the video player to be released at each decoding stage, and the like.
According to some embodiments, the rendering information data comprises: which rendering mode is used by the video player to be released; whether the rendering layer is created completely in the rendering process, whether the rendering layer is visible and the like.
According to some embodiments, the start-up data comprises: starting a broadcast url of the video player to be released; the configuration information set for the kernel in the playing starting process of the video player to be released; playing state change data in the starting playing process of the video player to be released; and the first frame callback information of the video player to be released in the starting playing process, and the like.
According to some embodiments, the multiplexing information comprises: whether the video player to be released starts address (or link) multiplexing or not; the multiplexing inner core identification of the video player to be issued; or the state data of the multiplexing kernel of the video player to be released, and the like.
According to some embodiments, the service information data comprises: whether the video player to be delivered is the CDN service or the PCDN service;
according to some embodiments, the environment information data comprises: the current network environment of the video player to be released, the network speed and the like.
According to some embodiments, as shown in fig. 7, the step S620 of obtaining the code problem of the video player based on the test launch information data includes:
step S710: acquiring a corresponding relation between test broadcast starting information data and a code problem; and
step S720: and acquiring the code problem corresponding to the test broadcast starting information data based on the corresponding relation.
And acquiring a code problem causing the degradation of the play-starting performance based on the corresponding relation between the test play-starting information data and the code problem, so that the mode of checking the code problem is simple, and the efficiency is improved. Meanwhile, according to some embodiments of the present disclosure, the code problem is obtained by the testing device for testing the play-starting performance of the video player based on the corresponding relationship between the test play-starting information data and the code problem, so that the process of obtaining the code problem is automated, the automation of the testing process is further improved, and the manpower is reduced.
In some embodiments, in step S710, the correspondence between the test start-up information data and the code problem is obtained according to the correspondence between the test start-up information data and the code problem summarized by the developer in the process of developing the video player.
In some embodiments, in step S720, a code question corresponding to the test start-up information data is acquired by the testing apparatus for testing the start-up performance of the video player based on the correspondence acquired in step S710. According to some embodiments, when the prefetch information data in the test launch information data includes a prefetch url and the current prefetch url is not prefetched, the code problem is determined to be a prefetch url failure. According to some embodiments, when the multiplexing information data of the test launch information data includes the multiplexed player core identification and the status data of the multiplexed player core is not successfully multiplexed, determining that the code problem sets an error for the multiplexed core.
In some embodiments, after step S720 is completed, outputting the code question is further included. By outputting the code problem, the video player can visually test the play-starting performance of the video player by the intuitive code problem for developers, and the test process is simplified.
According to some embodiments, the code problem and test results are output in the form of a report. According to other embodiments, the code problem and the test result are output in the form of a log.
According to another aspect of the present disclosure, there is also provided an apparatus for testing the play-out performance of a video player, referring to fig. 8, the apparatus 800 comprising: a first obtaining unit 810 configured to obtain a test start time of a video player to be released; a second obtaining unit 820, configured to obtain a historical playing start time of a previous version video player of the video player to be released; and a third obtaining unit 830, configured to obtain a test result related to the play-out performance of the video player to be distributed, based on the test play-out time and the historical play-out time.
According to some embodiments, the first obtaining unit is further configured to obtain the test start playing time of the video player to be released on a test device; and wherein the first obtaining unit is further configured to obtain the historical broadcast start time corresponding to the test device.
According to some embodiments, the first obtaining unit 810 comprises: the first acquisition subunit is configured to acquire a plurality of video start-up times of the video player to be released on the test equipment; and a second obtaining subunit configured to obtain the test start playing time based on the plurality of video start playing times.
According to some embodiments, the second obtaining unit 820 comprises: a third obtaining subunit that obtains a video start-up time of the previous version of the video player on each of a plurality of playback devices, and each playback device has a respective playback device model, and the playback device model further corresponds to a respective hardware performance score, and wherein the test device corresponds to one of a plurality of playback device models; the association unit is configured to obtain a corresponding relation between a playing device model and historical playing start time based on the hardware performance score and the corresponding video playing start time of each of the plurality of playing devices; and a fourth obtaining subunit, configured to obtain, based on the playback device model-historical playback time correspondence and the playback device model corresponding to the test device, the historical playback time corresponding to the test device.
According to some embodiments, the previous version video player is a published video player, and wherein the third obtaining subunit is further configured to obtain the video playout time of the previous version video player online.
According to some embodiments, the apparatus 800 further comprises: a determining unit configured to determine the test result as a play-out performance degradation in response to determining that the test play-out time exceeds the average play-out time by a preset value; and an output unit configured to output the test result.
According to some embodiments, the apparatus 800 further comprises: the fourth acquisition unit is configured to acquire test start-up information data of the video player to be released; and a fifth obtaining unit, configured to, in response to determining that the test result is the start-up performance degradation, obtain a code problem of the video player to be distributed based on the test start-up information data.
According to some embodiments, the output unit is further configured to output the code problem.
According to another aspect of the present disclosure, there is also provided an electronic device including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores a computer program which, when executed by the at least one processor, implements a method according to the above.
According to another aspect of the present disclosure, there is also provided a non-transitory computer readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the method according to the above.
According to another aspect of the present disclosure, an electronic device, a readable storage medium and a computer program product are also provided.
Referring to fig. 9, a block diagram of a structure of an electronic device 900, which may be a server or a client of the present disclosure, which is an example of a hardware device that may be applied to aspects of the present disclosure, will now be described. Electronic device is intended to represent various forms of digital electronic computer devices, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 9, the apparatus 900 includes a computing unit 901, which can perform various appropriate actions and processes in accordance with a computer program stored in a Read Only Memory (ROM)902 or a computer program loaded from a storage unit 908 into a Random Access Memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the device 900 can also be stored. The calculation unit 901, ROM902, and RAM 903 are connected to each other via a bus 904. An input/output (I/O) interface 905 is also connected to bus 904.
A number of components in the device 900 are connected to the I/O interface 905, including: an input unit 906, an output unit 907, a storage unit 908, and a communication unit 909. The input unit 906 may be any type of device capable of inputting information to the device 900, and the input unit 906 may receive input numeric or character information and generate key signal inputs related to user settings and/or function controls of the electronic device, and may include, but is not limited to, a mouse, a keyboard, a touch screen, a track pad, a track ball, a joystick, a microphone, and/or a remote control. Output unit 907 may be any type of device capable of presenting information and may include, but is not limited to, a display, speakers, a video/audio output terminal, a vibrator, and/or a printer. Storage unit 908 may include, but is not limited to, a magnetic disk, an optical disk. The communication unit 909 allows the device 900 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunications networks, and may include, but is not limited to, modems, network cards, infrared communication devices, wireless communication transceivers, and/or chipsets, such as bluetooth (TM) devices, 1302.11 devices, WiFi devices, WiMax devices, cellular communication devices, and/or the like.
The computing unit 901 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of the computing unit 901 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The computing unit 901 performs the various methods and processes described above, such as the method 900. For example, in some embodiments, the method 200 may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as the storage unit 908. In some embodiments, part or all of the computer program may be loaded and/or installed onto device 900 via ROM902 and/or communications unit 909. When loaded into RAM 903 and executed by computing unit 901, may perform one or more of the steps of method 200 described above. Alternatively, in other embodiments, the computing unit 901 may be configured to perform the method 200 by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be performed in parallel, sequentially or in different orders, and are not limited herein as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved.
Although embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it is to be understood that the above-described methods, systems and apparatus are merely exemplary embodiments or examples and that the scope of the present invention is not limited by these embodiments or examples, but only by the claims as issued and their equivalents. Various elements in the embodiments or examples may be omitted or may be replaced with equivalents thereof. Further, the steps may be performed in an order different from that described in the present disclosure. Further, various elements in the embodiments or examples may be combined in various ways. It is important that as technology evolves, many of the elements described herein may be replaced with equivalent elements that appear after the present disclosure.
Claims (20)
1. A method for testing the play-up performance of a video player, comprising:
acquiring the test play starting time of a video player to be released;
acquiring the historical playing starting time of a previous version video player of the video player to be released; and
and acquiring a test result related to the play-starting performance of the video player to be released based on the test play-starting time and the historical play-starting time.
2. The method of claim 1, wherein the obtaining a test play-out time of a video player to be published comprises:
acquiring the test play starting time of the video player to be released on test equipment; and wherein the one or more of the one or more,
acquiring the historical playing start time of the previous version video player of the video player to be released comprises the following steps:
and acquiring the historical play starting time corresponding to the test equipment.
3. The method of claim 2, wherein the obtaining the test play-out time of the video player to be published on the test device comprises:
acquiring a plurality of video playing starting times of the video player to be issued on the test equipment; and
and acquiring the test play-starting time based on the plurality of video play-starting times.
4. The method of claim 2, wherein the obtaining the average play-up time corresponding to the test device comprises:
obtaining a video start-up time of the previous version of the video player corresponding to each of a plurality of playback devices, each playback device having a corresponding playback device model, and the playback device model further corresponding to a corresponding hardware performance score, and wherein the test device corresponds to one of the plurality of playback device models;
acquiring a corresponding relation between the model of the playing device and the historical playing start time based on the hardware performance score and the corresponding video playing start time of each playing device in the plurality of playing devices; and
and acquiring the historical play-starting time corresponding to the test equipment based on the corresponding relation between the play equipment model and the historical play-starting time and the play equipment model corresponding to the test equipment.
5. The method of claim 4, wherein the prior version video player is a published video player, and wherein the obtaining a video playback time of the prior version video player on each of a plurality of devices comprises:
and acquiring the video playing starting time of the prior version video player on line.
6. The method of claim 1, further comprising:
determining the test result as a play-out performance degradation in response to determining that the test play-out time exceeds the average play-out time by a preset value; and
and outputting the test result.
7. The method of claim 6, further comprising:
acquiring test play start information data of the video player to be released; and
and responding to the determination that the test result is the play-starting performance degradation, and acquiring the code problem of the video player to be issued based on the test play-starting information data.
8. The method of claim 6, wherein the test origination information data comprises at least one of:
prefetch information data, decode information data, render information data, start-up data, administration information data, service information data, and environment information data.
9. The method of claim 7, wherein the obtaining a code problem for the video player based on the test launch information data comprises:
acquiring a corresponding relation between test broadcast starting information data and a code problem; and
and acquiring the code problem corresponding to the test broadcast starting information data based on the corresponding relation.
10. The method of claim 7, further comprising:
and outputting the code problem.
11. An apparatus for testing the play-up performance of a video player, comprising:
the device comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is configured to acquire the test play starting time of a video player to be released;
the second acquisition unit is configured to acquire the historical playing start time of a previous version video player of the video player to be released; and
and the third acquisition unit is configured to acquire a test result related to the play-starting performance of the video player to be released based on the test play-starting time and the historical play-starting time.
12. The apparatus according to claim 11, wherein the first obtaining unit is further configured to obtain the test start time of the video player to be released on a test device; and wherein the one or more of the one or more,
the first obtaining unit is further configured to obtain the historical broadcast starting time corresponding to the test equipment.
13. The apparatus of claim 12, wherein the first obtaining unit comprises:
the first acquisition subunit is configured to acquire a plurality of video start-up times of the video player to be released on the test equipment; and
a second obtaining subunit configured to obtain the test playout time based on the plurality of video playout times.
14. The apparatus of claim 13, wherein the second obtaining unit comprises:
a third obtaining subunit, configured to obtain a video start-up time of the previous version of the video player on each of a plurality of playback devices, and each playback device has a respective playback device model, and the playback device model further corresponds to a respective hardware performance score, and wherein the testing device corresponds to one of a plurality of playback device models;
the association unit is configured to obtain a corresponding relation between a playing device model and historical playing start time based on the hardware performance score and the corresponding video playing start time of each of the plurality of playing devices; and
a fourth obtaining subunit, configured to obtain, based on the playback device model-historical playback time correspondence and the playback device model corresponding to the test device, the historical playback time corresponding to the test device.
15. The apparatus of claim 14, the previous version video player being a published video player, and wherein the third obtaining subunit is further configured to obtain the video playout time of the previous version video player online.
16. The apparatus of claim 11, further comprising:
a determining unit configured to determine the test result as a play-out performance degradation in response to determining that the test play-out time exceeds the average play-out time by a preset value; and
an output unit configured to output the test result.
17. The apparatus of claim 16, further comprising:
the fourth acquisition unit is configured to acquire test start-up information data of the video player to be released; and
a fifth obtaining unit, configured to, in response to determining that the test result is a play-start performance degradation, obtain, based on the test play-start information data, a code problem of the video player to be distributed.
18. The apparatus of claim 17, the output unit further configured to output the code problem.
19. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-10.
20. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110768832.8A CN113495843B (en) | 2021-07-07 | 2021-07-07 | Method and apparatus for testing play-up performance of video player |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110768832.8A CN113495843B (en) | 2021-07-07 | 2021-07-07 | Method and apparatus for testing play-up performance of video player |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113495843A true CN113495843A (en) | 2021-10-12 |
CN113495843B CN113495843B (en) | 2024-06-07 |
Family
ID=77996193
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110768832.8A Active CN113495843B (en) | 2021-07-07 | 2021-07-07 | Method and apparatus for testing play-up performance of video player |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113495843B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115243030A (en) * | 2022-06-14 | 2022-10-25 | 天翼数字生活科技有限公司 | Terminal capability test system, method, equipment and storage medium |
CN117556162A (en) * | 2023-11-01 | 2024-02-13 | 书行科技(北京)有限公司 | Picture loading detection method, video rendering detection method and related products |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160357576A1 (en) * | 2015-06-02 | 2016-12-08 | International Business Machines Corporation | Generating customized on-demand videos from automated test scripts |
WO2020211731A1 (en) * | 2019-04-19 | 2020-10-22 | 华为技术有限公司 | Video playing method and related device |
CN112752148A (en) * | 2020-12-28 | 2021-05-04 | 北京百度网讯科技有限公司 | Method, device and equipment for optimizing video playing and storage medium |
CN113055745A (en) * | 2021-03-30 | 2021-06-29 | 脸萌有限公司 | Video playing processing method, device, equipment and storage medium |
-
2021
- 2021-07-07 CN CN202110768832.8A patent/CN113495843B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160357576A1 (en) * | 2015-06-02 | 2016-12-08 | International Business Machines Corporation | Generating customized on-demand videos from automated test scripts |
WO2020211731A1 (en) * | 2019-04-19 | 2020-10-22 | 华为技术有限公司 | Video playing method and related device |
CN112752148A (en) * | 2020-12-28 | 2021-05-04 | 北京百度网讯科技有限公司 | Method, device and equipment for optimizing video playing and storage medium |
CN113055745A (en) * | 2021-03-30 | 2021-06-29 | 脸萌有限公司 | Video playing processing method, device, equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
蔡倩;谷建华;倪红波;王刚;: "基于数字电视中间件的媒体播放器研究与实现", 计算机应用, no. 03, 10 March 2007 (2007-03-10) * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115243030A (en) * | 2022-06-14 | 2022-10-25 | 天翼数字生活科技有限公司 | Terminal capability test system, method, equipment and storage medium |
CN115243030B (en) * | 2022-06-14 | 2024-03-01 | 天翼数字生活科技有限公司 | Terminal capability test system, method, equipment and storage medium |
CN117556162A (en) * | 2023-11-01 | 2024-02-13 | 书行科技(北京)有限公司 | Picture loading detection method, video rendering detection method and related products |
Also Published As
Publication number | Publication date |
---|---|
CN113495843B (en) | 2024-06-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108959068B (en) | Software interface testing method, device and storage medium | |
US10025695B2 (en) | Enhancing GUI automation testing using video | |
US20130326074A1 (en) | Mobile network application test | |
CN113495843B (en) | Method and apparatus for testing play-up performance of video player | |
CN109783345B (en) | Method and system for testing small program performance | |
CN112882734A (en) | Upgrading method and device, computer equipment and medium | |
CN112817869A (en) | Test method, test device, test medium, and electronic apparatus | |
US20160188361A1 (en) | Systems and methods for determining desktop readiness using interactive measures | |
CN112860566A (en) | Applet detection method, device, electronic equipment and readable medium | |
CN109240928A (en) | Test method, device, equipment and storage medium | |
CN114666258B (en) | Interface testing method, device, electronic equipment and medium | |
CN116150517A (en) | Page processing method and device, electronic equipment and medium | |
CN115050396A (en) | Test method and device, electronic device and medium | |
CN115794525A (en) | BMC (baseboard management controller) pressure testing method, device, equipment and storage medium | |
CN115130041A (en) | Webpage quality evaluation method, neural network training method, device and equipment | |
CN115061921A (en) | Automatic test method, device, electronic equipment and readable storage medium | |
CN114398017A (en) | Time delay detection method and device and electronic equipment | |
CN110968519A (en) | Game testing method, device, server and storage medium | |
CN112906387A (en) | Risk content identification method, apparatus, device, medium, and computer program product | |
CN113568797A (en) | Test method and device of intelligent interaction system, electronic equipment and medium | |
CN114566148B (en) | Cluster voice recognition service, detection method and device thereof and electronic equipment | |
CN115858364A (en) | Method and system for testing application starting time of cloud terminal | |
CN113902313A (en) | Object information processing method and device | |
CN116545834A (en) | Method and device for troubleshooting problem of network equipment, electronic equipment and medium | |
CN118567998A (en) | Method and device for acquiring evaluation information of code generation tool |
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 | ||
GR01 | Patent grant |