CN113495843B - Method and apparatus for testing play-up performance of video player - Google Patents
Method and apparatus for testing play-up performance of video player Download PDFInfo
- Publication number
- CN113495843B CN113495843B CN202110768832.8A CN202110768832A CN113495843B CN 113495843 B CN113495843 B CN 113495843B CN 202110768832 A CN202110768832 A CN 202110768832A CN 113495843 B CN113495843 B CN 113495843B
- Authority
- CN
- China
- Prior art keywords
- video player
- test
- playing
- 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.)
- Active
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 202
- 238000000034 method Methods 0.000 title claims abstract description 76
- 230000015556 catabolic process Effects 0.000 claims description 25
- 238000006731 degradation reaction Methods 0.000 claims description 25
- 230000004044 response Effects 0.000 claims description 8
- 230000007613 environmental effect Effects 0.000 claims description 3
- 230000000977 initiatory effect Effects 0.000 claims description 3
- 230000008569 process Effects 0.000 description 25
- 238000004891 communication Methods 0.000 description 13
- 238000004590 computer program Methods 0.000 description 13
- 230000006870 function Effects 0.000 description 10
- 238000012545 processing Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 230000008859 change Effects 0.000 description 5
- 238000009877 rendering Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 238000013459 approach Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000002035 prolonged effect Effects 0.000 description 3
- 230000000007 visual 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
- 230000003993 interaction Effects 0.000 description 2
- 238000011835 investigation Methods 0.000 description 2
- 238000000275 quality assurance Methods 0.000 description 2
- 238000003491 array 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
- 230000007547 defect Effects 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 238000012804 iterative process Methods 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
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 playing 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 playing time of a video player to be released; acquiring the historical playing time of a video player of a previous version of the video player to be distributed; and acquiring a test result related to the playing performance of the video player to be distributed based on the test playing time and the historical playing time.
Description
Technical Field
The present disclosure relates to the field of computer technology, and in particular, to the field of video player technology, and more particularly, to a method and apparatus for testing play performance of a video player, an electronic device, a computer readable storage medium, and a computer program product.
Background
The iterative process of video player development often involves replacement of new and old versions to enable the new version of video player to be released online, thereby replacing the prior version of released video player to provide 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, the problems mentioned in this section should not be considered as having been recognized in any prior art unless otherwise indicated.
Disclosure of Invention
The present disclosure provides a method, apparatus, electronic device, computer readable storage medium and computer program product for testing the play-up 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 playing time of a video player to be released; acquiring the historical playing time of a video player of a previous version of the video player to be released; and acquiring a test result related to the playing performance of the video player to be released based on the test playing time and the historical playing time.
According to another aspect of the present disclosure, there is provided an apparatus for testing play-up performance of a video player, comprising: the first acquisition unit is configured to acquire the test playing time of the video player to be released; a second obtaining unit configured to obtain a historical playing time of a previous version of the video player to be distributed; and a third acquisition unit configured to acquire a test result related to the playing performance of the video player to be released based on the test playing time and the historical playing 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 storing computer instructions for causing the computer to implement a method according to the above.
According to one or more embodiments of the present disclosure, a test result related to a play performance of a video player to be released is obtained by based on a test play time of the video player to be released (new version) and a historical play time of a video player of a previous version before the video player is released (online), so that the play time is prolonged due to degradation of the play performance of the video player after the video player is online, user experience is affected, and online accidents are caused. Meanwhile, if the test result shows that the playing performance of the video player to be distributed is reduced, it can be judged that the test result of the degradation of the playing performance is caused by the code problem of the video player to be distributed, and the test result is irrelevant to the code change of other cooperators, the test online and the like, so that the investigation range and the difficulty of the reasons for the degradation of the playing performance of the video player are reduced.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The accompanying drawings illustrate exemplary embodiments and, together with the description, serve to explain exemplary implementations of the embodiments. The illustrated embodiments are for exemplary purposes only and do not limit the scope of the claims. Throughout the drawings, identical reference numerals 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, in accordance with an embodiment of the present disclosure;
FIG. 2 illustrates a flow chart of a method for testing the play-up performance of a video player according to some embodiments of the present disclosure;
FIG. 3 illustrates a flowchart of a process for obtaining a test play time of a video player to be released on a test device in a method for testing play performance of a video player according to some embodiments of the present disclosure;
FIG. 4 illustrates a flowchart of a process for obtaining an average play time corresponding to a test device in a method for testing play performance of a video player according to some embodiments of the present disclosure;
FIG. 5 shows a flow chart of a process for determining a test result in the method for testing the play-up performance of a video player according to FIG. 2;
FIG. 6 shows a flow chart of a process for acquiring code problems in the method for testing the play-up performance of a video player according to FIG. 2;
FIG. 7 is a flow chart illustrating a process for acquiring code problems for a video player to be published based on test play information data in the method for testing play performance of a video player according to FIG. 2;
Fig. 8 shows a block diagram of an apparatus for testing the play-up 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 in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one 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, the use of the terms "first," "second," and the like to describe various elements is not intended to limit the positional relationship, timing relationship, or importance relationship of the elements, unless otherwise indicated, and such terms are merely used 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, they may also refer to different instances based on the description of the context.
The terminology used in the description of the various illustrated 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, the elements may be one or more if the number of the elements is not specifically limited. Furthermore, the term "and/or" as used in this disclosure encompasses 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 an embodiment 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 execution of methods for testing the play-up performance of a video player to a client device.
In some embodiments, server 120 may also provide other services or software applications that may include non-virtual environments and virtual environments. In some 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 that are executable by one or more processors. A user operating client devices 101, 102, 103, 104, 105, and/or 106 may in turn utilize one or more client applications to interact with server 120 to utilize the services provided by these components. It should be appreciated 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 client devices 101, 102, 103, 104, 105, and/or 106 to play video based on the video player that server 120 tested for play-up performance. 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 the present disclosure may support any number of client devices.
Client devices 101, 102, 103, 104, 105, and/or 106 may include various types of computer devices, such as portable handheld devices, general purpose computers (such as personal computers and laptop computers), workstation computers, wearable devices, gaming systems, thin clients, various messaging devices, sensors or other sensing devices, and the like. These computer devices may run various types and versions of software applications and operating systems, such as Microsoft Windows, apple iOS, UNIX-like operating systems, linux, or Linux-like operating systems (e.g., google Chrome OS); or include various mobile operating systems such as Microsoft Windows Mobile OS, iOS, windows Phone, android. Portable handheld devices may include cellular telephones, smart phones, tablet computers, personal Digital Assistants (PDAs), and the like. Wearable devices may include head mounted displays and other devices. The gaming system may include various handheld gaming devices, internet-enabled gaming devices, and the like. The client device is capable of executing a variety of different applications, such as various Internet-related applications, communication applications (e.g., email applications), short Message Service (SMS) applications, and may use a variety of communication protocols.
Network 110 may be any type of network known to those skilled in the art that may support data communications using any of a number of available protocols, including but not limited to TCP/IP, SNA, IPX, etc. For example only, the 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 that involves virtualization (e.g., one or more flexible pools of logical storage devices that may be virtualized to maintain virtual storage devices of the server). In various embodiments, 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. 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, etc.
In some implementations, server 120 may include one or more applications to analyze and consolidate data feeds and/or event updates received from users of 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 implementations, the server 120 may be a server of a distributed system or a server that incorporates a blockchain. The server 120 may also be a cloud server, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology. The cloud server is a host product in a cloud computing service system, so as to solve the defects of large management difficulty and weak service expansibility in the traditional physical host and Virtual special server (VPS PRIVATE SERVER) 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 databases 130 may be used to store information such as audio files and video files. The data store 130 may reside in a variety of 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 some embodiments, the data store used by server 120 may be a database, such as a relational database. One or more of these databases may store, update, and retrieve the databases and data from the databases in response to the commands.
In some embodiments, one or more of 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 conventional stores supported by the 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 playing performance of the video player is reduced, so that the playing time of the video player is prolonged. The play time of the video player refers to the time spent by the video player from the time when the user command is acquired to the time when the video is played for the user. When the playing performance of the video player is degraded, the playing time of the video player is often prolonged by tens to hundreds of milliseconds. Since the degradation of the play-out performance of a video player is difficult to find in Quality Assurance (QA) tests, it is often not easily perceived before being online. After the video player is released online, the degradation of playing performance of the video player affects user experience and becomes an online accident.
An aspect of the present disclosure provides a method for testing play-up performance of a video player.
Referring to fig. 2, a method 200 for testing the play-up performance of a video player according to some embodiments of the present disclosure includes:
Step S210: acquiring the test playing time of a video player to be released;
Step S220: acquiring the historical playing time of a video player of a previous version of the video player to be released; and
Step S230: and acquiring a test result related to the playing performance of the video player to be released based on the test playing time and the historical playing time.
According to one or more embodiments of the present disclosure, by obtaining a test result related to a play performance of a video player to be released based on a test play time of the video player to be released (new version) and a historical play time of a video player of a previous version before the video player is released (online), it is avoided that the play performance of the video player to be released is found to be deteriorated after the video player is online, resulting in an online accident. Meanwhile, if the test result shows that the playing performance of the video player to be distributed is reduced, it can be judged that the test result of the degradation of the playing performance is caused by the code problem of the video player to be distributed, and the test result is irrelevant to the code change of other cooperators, the test online and the like, so that the investigation range and the difficulty of the reasons for the degradation of the playing performance of the video player are reduced.
According to some embodiments, the video player includes a video player based on a play-in-place scene and a video player based on a video landing page scene. The in-place play scene may be, for example, video play based on an instruction sent by the user by clicking a play button of the video player. The video landing page scene may be, for example, in a video playing process based on a feed stream, based on an instruction sent by a user by clicking a video module, entering a video landing page to play a video.
In some embodiments, in step S210, a test play time of the video player to be distributed on each of the plurality of test devices is obtained, and a play time average value is obtained according to the test play time of each of the plurality of test devices, and the play time average value is used as the test play time of the video player to be distributed. According to some embodiments, in step S220, a historical play time of the online version video player on each of the plurality of play devices is obtained, and a historical play time average is obtained based on the historical play time on each of the plurality of play devices, the historical play time average being taken as a start play time of the prior version video player.
It should be noted that, the term "test device" and the term "playing device" in this disclosure each refer to a hardware device that may be used to install a video player and enable the installed video player to operate thereon to implement a video playing function, for example, including, but not limited to, a mobile phone, a computer, a tablet computer, or the like.
In some embodiments, step S210, obtaining a test play start time of a video player to be released includes: the step of obtaining the test playing time of the video player to be released on the test equipment, and the step of obtaining the historical playing time of the video player of the previous version of the video player to be released in step S220 includes: and acquiring the historical playing time corresponding to the test equipment.
And acquiring a test result based on the historical playing time corresponding to the test equipment where the video player to be released is located. The test result considers the hardware condition of the test equipment where the video player to be distributed is located, so that the hardware influence of the equipment for collecting the test playing time of the video player is eliminated, and the obtained test result is accurate. Meanwhile, because the historical playing time corresponding to the test equipment is obtained, in step S210, the testing playing time of the video player to be distributed can be used as the testing playing time for obtaining the test result only by obtaining the testing playing time on one test equipment, so that the testing process is simple, and the data processing amount is small.
In some embodiments, as shown in fig. 3, obtaining the play-up time of the video player to be released on the test device includes:
Step S310: acquiring a plurality of video playing time of the video player to be released on the test equipment; and
Step S320: and acquiring the test playing time based on the video playing times.
And acquiring a plurality of video playing time of the video player to be released on the test equipment, wherein each video playing time of the plurality of video playing time is the playing time of the video player to be released for playing the corresponding video. Acquiring the test start time based on the plurality of video start times, for example, by acquiring an average of the plurality of video start times as the test start time; accurate test playing 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, acquiring the first video from the video player of the version to be released, and simultaneously acquiring the video playing time corresponding to the first video; and repeating the foregoing steps to obtain a plurality of video start 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 released, so that the video player to be released acquires video play-out time corresponding to one or more videos while playing the one or more videos. And sending a video acquisition instruction to the video player to be distributed to acquire video playing time corresponding to the one or more videos, so that the process of acquiring the video playing 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 start time corresponding to the test device includes:
Step S410: acquiring video playing time of the video player of the previous version on each of a plurality of playing devices, wherein each playing device has a corresponding playing device model, and the playing device model further corresponds to a corresponding hardware performance score, and wherein the test device corresponds to one of the plurality of playing device models;
step S420: acquiring a playing device model-historical playing time corresponding relation based on the hardware performance score and the corresponding video playing time of each playing device in the plurality of playing devices; and
Step S430: and acquiring the historical playing time corresponding to the test equipment based on the corresponding relation between the playing equipment model and the historical playing time and the playing equipment model corresponding to the test equipment.
In some embodiments, in step S410, the plurality of playback devices are a plurality of test devices by obtaining a video start time of a video player of a previous version on each of the plurality of test devices as a video start time corresponding to each of the plurality of playback devices.
In some embodiments, step S410, the prior version video player is a published video player, and wherein said obtaining video start time of the prior version video player at each of a plurality of devices comprises: and acquiring the video playing time of the video player of the previous version on line.
Because the prior version video player is a released video player, the released video player can be subjected to online data acquisition, so that the video playing time of the prior version video player on each of a plurality of playing devices is obtained, and the method and the process for obtaining the historical playing time of the online version video player are simple. For example, the video start time of the prior version video player is obtained by obtaining a data report of the prior version video player regarding play performance.
It should be noted that, the terms "online", "online" or "online" in this disclosure refer to that a video player that has been released is located in a 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 start time", "historical start time", or "test start time" referred to in this disclosure all correspond to the start time of the player from the time the user instruction is received to the time the video is played. The term before "start time" is used for distinction only and is not limiting, and the term before "start time" may also be used to employ other terms, such as "first", "second", etc.
According to some embodiments, in step S410, the playback device model is a hardware model that is used to enable the player to implement video playback functions thereon, including, but not limited to, the manufacturer of the playback device, the hardware vendor of the playback device, and so forth.
According to some embodiments, in step S410, hardware performance of the playback device is scored based on preset hardware scoring criteria. For example, the hardware scoring device preset with the hardware scoring standard is used for scoring the hardware of the playing device, or the hardware of the playing device is correspondingly graded to obtain the hardware performance score of the playing device.
In some embodiments, in step S420, the playing device model-historical playing time correspondence is obtained by obtaining a change curve of the video playing time with the playing device model. According to some embodiments, the device model-historical playing time correspondence is obtained by online data acquisition of the published video player. For example, the device model-historical play time correspondence is obtained by obtaining a data report of the published video player regarding play performance.
In some embodiments, in step S430, based on the device model corresponding to the test device, the historical playing time corresponding to the device is obtained from the playing device model-historical playing time correspondence.
Based on the results of step S110 and step S120, in step S130, a test result related to the playing performance of the video player to be distributed is acquired. In some embodiments, the test results include an evaluation index, e.g., excellent, good, and poor, of the play-up performance of the video player to be distributed. In some embodiments, the test results include a qualitative assessment of whether the play-out performance of the video player to be distributed is degraded compared to the play-out performance of its prior version, e.g., the play-out performance is degraded or the play-out performance is not degraded.
In some embodiments, the method 100 further comprises determining a test result.
As shown in fig. 5, in the method 100, determining a test result includes:
step S510: determining that the test result is playing performance degradation in response to determining that the test playing time exceeds the average playing time by a preset value; and
Step S520: and outputting the test result.
When the test result is obtained as the playing performance degradation of the video player to be distributed, 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 distributed has a code problem and cannot be on line, and the test process is further intelligentized. And when the test starting time exceeds the average starting time by a preset value, determining that the test result is the starting performance degradation, and reserving a space for the test starting time for determining the starting performance degradation. The test result is prevented from being erroneously determined as the degradation of the playing performance due to the fact that the test playing time exceeds the average playing time caused by other reasons such as hardware of the test equipment.
According to some embodiments, the preset value is 50ms. In one example, in step S210, the acquired test play-out time is 1200ms, in step S220, the acquired historical play-out time is 1000ms, and in step S510, it is determined that the test play-out time 1200ms exceeds the historical play-out time 1000ms by 200ms and is greater than the preset value 20ms, so that it is determined that the test result is that the play-out performance is degraded.
In some embodiments, in step S520, alarm information is output in the form of a log file to output the test result of the degradation of the play-out performance. In other embodiments, the alarm information is presented in the form of a dialog box to output the test result of the degradation of the playing performance.
In some embodiments, the method 100 further includes retrieving code problems.
As shown in fig. 6, in the method 100, acquiring a code problem includes:
step S610: acquiring test playing information data of the video player to be released; and
Step S620: and responding to the test result, namely playing performance degradation, and acquiring the code problem of the video player to be released based on the test playing information data.
When the test result is that the playing performance is degraded, the code problem of the video player of the current version is further obtained by acquiring the test playing information data of the video player to be distributed, and as the reason of the degradation of the playing performance of the video player is checked in an online manner (before the video player is distributed), the reason of the degradation of the playing performance of the video player can be accurately checked due to less interference factors (the code change of other cooperators, the online experiment, and the like) in the checking process. Meanwhile, according to some embodiments, the testing device for testing the playing performance of the video player is used for responding to the fact that the testing result is determined to be degradation of the playing performance, the code problem of the video player to be distributed is obtained, the testing process is further automated, and labor is reduced.
In some embodiments, the test initiation information data includes at least one of: pre-fetch information data, decode information data, render information data, play data, take information data, service information data, and environmental information data.
According to some embodiments, prefetching information data includes: the pre-fetching url set by the video player to be released; whether the video player to be released is prefetched in the playing process; if prefetched, the video player to be distributed uses a prefetched file, the prefetched video header size, etc.
According to some embodiments, decoding the information data includes: the decoding mode (such as hard decoding or soft decoding) used by the video player to be released in the video playing process; time-consuming information of the video player to be released at each stage of decoding, and the like.
According to some embodiments, rendering information data includes: which rendering mode is used by the video player to be released; whether the rendering layer is created in the rendering process is completed, whether the rendering layer is visible, and the like.
According to some embodiments, the play-up data comprises: playing url of the video player to be released; the configuration information set to the kernel in the playing process of the video player to be released; playing state change data in the playing process of the video player to be released; and the first frame callback information of the video player to be released in the 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; multiplexing kernel identification of the video player to be released; or state data of a multiplexing core of the video player to be released, etc.
According to some embodiments, the service information data comprises: whether the video player to be released is a used CDN service or a used PCDN service;
According to some embodiments, the environmental information data includes: 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, step S620, based on the test play information data, acquiring the code problem of the video player includes:
Step S710: acquiring the corresponding relation between the test playing information data and the code problem; and
Step S720: and acquiring the code problem corresponding to the test playing information data based on the corresponding relation.
And acquiring the code problem which causes the degradation of playing performance based on the corresponding relation between the test playing 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 acquired by the testing device for testing the playing performance of the video player based on the corresponding relation between the testing playing information data and the code problem, so that the process of acquiring 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 play information data and the code problem is obtained according to the correspondence between the test play 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 problem corresponding to the test play information data is acquired by the test apparatus for testing play performance of the video player based on the correspondence acquired in step S710. According to some embodiments, the code problem is determined to be a prefetch url failure when the prefetch information data in the test play information data includes a prefetch url and the current prefetch url is not prefetched. According to some embodiments, when the multiplexed information data of the test initiation information data includes a multiplexed player core identification and the state data of the multiplexed player core is not multiplexed successfully, a code problem is determined to be an error of the multiplexed core setting.
In some embodiments, after completing step S720, outputting the code question is also included. By outputting the code problem, the method and the device can provide visual code problem for developers, so that the playing performance of the video player can be tested visually, and the testing process is simplified.
According to some embodiments, code questions and test results are output in the form of reports. According to other embodiments, code questions and test results are output in the form of a log.
According to another aspect of the present disclosure, there is also provided an apparatus for testing a play-out performance of a video player, referring to fig. 8, the apparatus 800 including: 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 time of a previous version of the video player to be distributed; and a third obtaining unit 830 configured to obtain a test result related to the playing performance of the video player to be released based on the test playing time and the historical playing time.
According to some embodiments, 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 first obtaining unit is further configured to obtain the historical playing time corresponding to the test device.
According to some embodiments, the first obtaining unit 810 includes: a first obtaining subunit, configured to obtain a plurality of video playing times of the video player to be released on the test device; and a second acquisition subunit configured to acquire the test start time based on the plurality of video start times.
According to some embodiments, the second obtaining unit 820 includes: a third acquisition subunit that acquires a video start time of the video player of the previous version on each of a plurality of playback devices, and each of the playback devices 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 the plurality of playback device models; an association unit configured to obtain a playback device model-historical playback time correspondence based on the hardware performance score and the corresponding video playback time for each of the plurality of playback devices; and a fourth obtaining subunit configured to obtain the historical playing time corresponding to the test device based on the playing device model-historical playing time correspondence and the playing device model corresponding to the test device.
According to some embodiments, the prior version video player is a published video player, and wherein the third acquisition subunit is further configured to acquire the video start time of the prior version video player online.
According to some embodiments, the apparatus 800 further comprises: a determining unit configured to determine that the test result is degradation of playing performance in response to determining that the test playing time exceeds the average playing time by a preset value; and an output unit configured to output the test result.
According to some embodiments, the apparatus 800 further comprises: a fourth obtaining unit configured to obtain test play starting information data of the video player to be distributed; and a fifth acquisition unit configured to acquire a code problem of the video player to be released based on the test play information data in response to determining that the test result is play performance degradation.
According to some embodiments, the output unit is further configured to output the code question.
According to another aspect of the present disclosure, there is also provided an electronic apparatus 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 a method according to the above.
According to another aspect of the present disclosure, there is also provided an electronic device, a readable storage medium, and a computer program product.
Referring to fig. 9, a block diagram of an electronic device 900 that 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 devices are 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 telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary 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 that can perform various appropriate actions and processes according to 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 computing unit 901, the ROM902, and the RAM 903 are connected to each other by a bus 904. An input/output (I/O) interface 905 is also connected to the bus 904.
Various components in device 900 are connected to 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, the input unit 906 may receive input numeric or character information and generate key signal inputs related to user settings and/or function control of the electronic device, and may include, but is not limited to, a mouse, a keyboard, a touch screen, a trackpad, a trackball, a joystick, a microphone, and/or a remote control. The output unit 907 may be any type of device capable of presenting information and may include, but is not limited to, a display, speakers, video/audio output terminals, vibrators, and/or printers. Storage unit 908 may include, but is not limited to, magnetic disks, optical disks. Communication unit 909 allows device 900 to exchange information/data with other devices through 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 computing unit 901 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 901 performs the various methods and processes described above, such as method 900. For example, in some embodiments, the method 200 may be implemented as a computer software program tangibly embodied on 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 the device 900 via the ROM 902 and/or the communication unit 909. When the computer program is loaded into RAM 903 and executed by computing unit 901, one or more steps of method 200 described above may be performed. Alternatively, in other embodiments, computing unit 901 may be configured to perform 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 circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On 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, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code 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 code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. 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. The 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 pointing device (e.g., a mouse or 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 may 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 input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background 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 background, 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 a client and a server. The client and server are typically 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 appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel, sequentially or in a different order, provided that the desired results of the disclosed aspects are achieved, and are not limited herein.
Although embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it is to be understood that the foregoing 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 following the grant and their equivalents. Various elements of the embodiments or examples may be omitted or replaced with equivalent elements thereof. Furthermore, the steps may be performed in a different order than described in the present disclosure. Further, various elements of 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 by equivalent elements that appear after the disclosure.
Claims (16)
1. A method for testing the play-up performance of a video player, comprising:
acquiring the test playing time of a video player to be released;
Acquiring the historical playing time of a video player of a previous version of the video player to be released; and
Based on the test playing time and the historical playing time, obtaining a test result related to the playing performance of the video player to be released,
The step of obtaining the test playing time of the video player to be released comprises the following steps:
Obtaining the test play starting time of the video player to be released on test equipment,
And wherein the obtaining the historical playing time of the prior version video player of the video player to be released comprises:
obtaining the historical playing time corresponding to the test equipment,
The step of obtaining the test playing time of the video player to be released on the test equipment comprises the following steps:
acquiring a plurality of video playing time of the video player to be released on the test equipment; and
And acquiring the test playing time based on the video playing times.
2. The method of claim 1, wherein the obtaining the historical play-out time corresponding to the test device comprises:
Obtaining a video start time of the prior version of the video player corresponding to each of a plurality of playback devices, and each of the playback devices having a respective playback device model, and the playback device model further corresponding to a respective hardware performance score, and wherein the test device corresponds to one of the plurality of playback device models;
acquiring a playing device model-historical playing time corresponding relation based on the hardware performance score and the corresponding video playing time of each playing device in the plurality of playing devices; and
And acquiring the historical playing time corresponding to the test equipment based on the corresponding relation between the playing equipment model and the historical playing time and the playing equipment model corresponding to the test equipment.
3. The method of claim 2, wherein the prior version video player is a published video player, and wherein the obtaining video start time of the prior version video player on each of a plurality of devices comprises:
And acquiring the video playing time of the video player of the previous version on line.
4. The method of claim 1, further comprising:
determining that the test result is play performance degradation in response to determining that the difference between the test play time and the historical play time is greater than a preset value; and
And outputting the test result.
5. The method of claim 4, further comprising:
Acquiring test playing information data of the video player to be released; and
And responding to the test result, namely playing performance degradation, and acquiring the code problem of the video player to be released based on the test playing information data.
6. The method of claim 5, wherein the test initiation information data comprises at least one of:
pre-fetch information data, decode information data, render information data, play data, take information data, service information data, and environmental information data.
7. The method of claim 5, wherein the acquiring the code problem of the video player based on the test play information data comprises:
acquiring the corresponding relation between the test playing information data and the code problem; and
And acquiring the code problem corresponding to the test playing information data based on the corresponding relation.
8. The method of claim 5, further comprising:
outputting the code problem.
9. An apparatus for testing play-up performance of a video player, comprising:
The first acquisition unit is configured to acquire the test playing time of the video player to be released;
A second obtaining unit configured to obtain a historical playing time of a previous version of the video player to be distributed; and
A third acquisition unit configured to acquire a test result related to a play-out performance of the video player to be released based on the test play-out time and the historical play-out time,
Wherein the first acquisition unit is further configured to acquire the test start time of the video player to be released on a test device,
And wherein the second acquisition unit is further configured to acquire the historical play-out time corresponding to the test device,
The first acquisition unit includes:
A first obtaining subunit, configured to obtain a plurality of video playing times of the video player to be released on the test device; and
And a second acquisition subunit configured to acquire the test start time based on the plurality of video start times.
10. The apparatus of claim 9, wherein the second acquisition unit comprises:
A third acquisition subunit configured to acquire a video start time of the video player of the previous version on each of a plurality of playback devices, and each of the playback devices 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 the plurality of playback device models;
An association unit configured to obtain a playback device model-historical playback time correspondence based on the hardware performance score and the corresponding video playback time for each of the plurality of playback devices; and
And a fourth obtaining subunit, configured to obtain the historical playing time corresponding to the test device based on the corresponding relationship between the playing device model and the historical playing time and the playing device model corresponding to the test device.
11. The apparatus of claim 10, the prior version video player being a published video player, and wherein the third acquisition subunit is further configured to acquire the video start time of the prior version video player online.
12. The apparatus of claim 9, further comprising:
A determining unit configured to determine that the test result is degradation of playing performance in response to determining that the difference between the test playing time and the historical playing time is greater than a preset value; and
And the output unit is configured to output the test result.
13. The apparatus of claim 12, further comprising:
a fourth obtaining unit configured to obtain test play starting information data of the video player to be distributed; and
And a fifth acquisition unit configured to acquire a code problem of the video player to be released based on the test play information data in response to determining that the test result is play performance degradation.
14. The apparatus of claim 13, the output unit further configured to output the code question.
15. An electronic device, comprising:
At least one processor; and
A memory communicatively coupled to the at least one processor; wherein the method comprises the steps of
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-8.
16. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-8.
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 CN113495843A (en) | 2021-10-12 |
CN113495843B true 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) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115243030B (en) * | 2022-06-14 | 2024-03-01 | 天翼数字生活科技有限公司 | Terminal capability test system, method, equipment and storage medium |
CN117556162B (en) * | 2023-11-01 | 2024-06-25 | 书行科技(北京)有限公司 | Picture loading detection method, video rendering detection method and related products |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9858090B2 (en) * | 2015-06-02 | 2018-01-02 | International Business Machines Corporation | Generating customized on-demand videos from automated test scripts |
-
2021
- 2021-07-07 CN CN202110768832.8A patent/CN113495843B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
---|
基于数字电视中间件的媒体播放器研究与实现;蔡倩;谷建华;倪红波;王刚;;计算机应用;20070310(第03期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN113495843A (en) | 2021-10-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108959068B (en) | Software interface testing method, device and storage medium | |
US20170147480A1 (en) | Test script generation | |
CN113495843B (en) | Method and apparatus for testing play-up performance of video player | |
US9734047B2 (en) | Method and apparatus for an improved automated test of software with a graphical user interface | |
CN111984476A (en) | Test method and device | |
CN111241111B (en) | Data query method and device, data comparison method and device, medium and equipment | |
CN112817869A (en) | Test method, test device, test medium, and electronic apparatus | |
US20240311277A1 (en) | Automated testing of mobile devices using visual analysis | |
US9830184B2 (en) | Systems and methods for determining desktop readiness using interactive measures | |
CN113127312A (en) | Method and device for testing database performance, electronic equipment and storage medium | |
CN112860566A (en) | Applet detection method, device, electronic equipment and readable medium | |
CN114666258B (en) | Interface testing method, device, electronic equipment and medium | |
CN116320390A (en) | Video quality assessment method and device and electronic equipment | |
CN116150517A (en) | Page processing method and device, electronic equipment and medium | |
CN115050396A (en) | Test method and device, electronic device and medium | |
CN115130041A (en) | Webpage quality evaluation method, neural network training method, device and equipment | |
CN114842476A (en) | Watermark detection method and device and model training method and device | |
CN113568797B (en) | Testing method and device of intelligent interaction system, electronic equipment and medium | |
CN110968519A (en) | Game testing method, device, server and storage medium | |
CN116070711B (en) | Data processing method, device, electronic equipment and storage medium | |
CN112667196B (en) | Information display method and device, electronic equipment and medium | |
CN114218516B (en) | Webpage processing method and device, electronic equipment and storage medium | |
CN114979744B (en) | Interface processing method, device, server and storage medium | |
CN116545834A (en) | Method and device for troubleshooting problem of network equipment, electronic equipment and medium | |
CN115146201A (en) | Page time cheating screening method and device, electronic equipment and medium |
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 |