[go: up one dir, main page]

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 PDF

Info

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
start time
released
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
Application number
CN202110768832.8A
Other languages
Chinese (zh)
Other versions
CN113495843A (en
Inventor
赵家祝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202110768832.8A priority Critical patent/CN113495843B/en
Publication of CN113495843A publication Critical patent/CN113495843A/en
Application granted granted Critical
Publication of CN113495843B publication Critical patent/CN113495843B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording 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/3409Recording 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/3419Recording 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

用于测试视频播放器的起播性能的方法和装置Method and device for testing the start-up performance of a video player

技术领域Technical Field

本公开涉及计算机技术领域,尤其涉及视频播放器技术领域,具体涉及一种用于测试视频播放器的起播性能的方法和装置、电子设备、计算机可读存储介质和计算机程序产品。The present disclosure relates to the field of computer technology, in particular to the field of video player technology, and specifically to a method and device for testing the start-up performance of a video player, an electronic device, a computer-readable storage medium, and a computer program product.

背景技术Background technique

视频播放器的开发迭代过程,往往涉及新旧版本的更替,以使新版的视频播放器上线发布,从而代替在先版本的已发布的视频播放器,以为用户提供更多的、更优质的业务功能。The iterative development process of a video player often involves replacing old versions with new ones, so that a new version of the video player can be released online to replace the previously released version of the video player, thereby providing users with more and better business functions.

在此部分中描述的方法不一定是之前已经设想到或采用的方法。除非另有指明,否则不应假定此部分中描述的任何方法仅因其包括在此部分中就被认为是现有技术。类似地,除非另有指明,否则此部分中提及的问题不应认为在任何现有技术中已被公认。The methods described in this section are not necessarily methods that have been previously conceived or employed. Unless otherwise indicated, it should not be assumed that any method described in this section is considered to be prior art simply because it is included in this section. Similarly, unless otherwise indicated, the issues mentioned in this section should not be considered to have been recognized in any prior art.

发明内容Summary of the 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 start-up performance of a video player.

根据本公开的一方面,提供了一种用于测试视频播放器的起播性能的方法,包括:获取待发布的视频播放器的测试起播时间;获取所述待发布的视频播放器的在先版本视频播放器的历史起播时间;以及基于所述测试起播时间和所述历史起播时间,获取与所述待发布的视频播放器的起播性能相关的测试结果。According to one aspect of the present disclosure, a method for testing the start performance of a video player is provided, comprising: obtaining a test start time of a video player to be released; obtaining a historical start time of a previous version of a video player of the video player to be released; and obtaining a test result related to the start performance of the video player to be released based on the test start time and the historical start time.

根据本公开的另一方面,提供了一种用于测试视频播放器的起播性能的装置,包括:第一获取单元,被配置用于获取待发布的视频播放器的测试起播时间;第二获取单元,被配置用于获取所述待发布的视频播放器的在先版本视频播放器的历史起播时间;以及第三获取单元,被配置用于基于所述测试起播时间和所述历史起播时间,获取与所述待发布的视频播放器的起播性能相关的测试结果。According to another aspect of the present disclosure, there is provided an apparatus for testing the start performance of a video player, comprising: a first acquisition unit, configured to acquire a test start time of a video player to be released; a second acquisition unit, configured to acquire a historical start time of a previous version of a video player of the video player to be released; and a third acquisition unit, configured to acquire a test result related to the start performance of the video player to be released based on the test start time and the historical start time.

根据本公开的另一方面,提供了一种电子设备,包括:至少一个处理器;以及与所述至少一个处理器通信连接的存储器;其中所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器实现根据上述的方法。According to another aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor implements the above-mentioned method.

根据本公开的另一方面,提供了一种存储有计算机指令的非瞬时计算机可读存储介质,其中,所述计算机指令用于使所述计算机实现根据上述的方法。According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to implement the above method.

根据本公开的一个或多个实施例,通过在视频播放器发布(上线)之前,基于待发布(新版本)的视频播放器的测试起播时间,以及在先版本的视频播放器的历史起播时间,获得与该待发布的视频播放器的起播性能相关的测试结果,避免该视频播放器上线后,其起播性能劣化导致起播时间延长,影响用户体验,造成线上事故。同时,如果测试结果显示该待发布的视频播放器的起播性能下降,可以判断该起播性能劣化的测试结果是由该待发布的视频起播器的代码问题引起,而与其他合作方的代码改动上线、实验上线等无关,减少对导致视频播放器的起播性能劣化的原因的排查范围和难度。According to one or more embodiments of the present disclosure, before the video player is released (released), based on the test start time of the video player to be released (new version) and the historical start time of the previous version of the video player, a test result related to the start performance of the video player to be released is obtained, so as to avoid the degradation of the start performance of the video player after it is released, which will lead to a longer start time, affect the user experience, and cause online accidents. At the same time, if the test results show that the start performance of the video player to be released is reduced, it can be determined that the test result of the degradation of the start performance is caused by the code problem of the video player to be released, and has nothing to do with the code modification and experimental launch of other partners, thereby reducing the scope and difficulty of troubleshooting the causes of the degradation of the start performance of the video player.

应当理解,本部分所描述的内容并非旨在标识本公开的实施例的关键或重要特征,也不用于限制本公开的范围。本公开的其它特征将通过以下的说明书而变得容易理解。It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

附图示例性地示出了实施例并且构成说明书的一部分,与说明书的文字描述一起用于讲解实施例的示例性实施方式。所示出的实施例仅出于例示的目的,并不限制权利要求的范围。在所有附图中,相同的附图标记指代类似但不一定相同的要素。The accompanying drawings exemplarily illustrate the embodiments and constitute a part of the specification, and together with the text description of the specification, are used to explain the exemplary implementation of the embodiments. The embodiments shown are for illustrative purposes only and do not limit the scope of the claims. In all drawings, the same reference numerals refer to similar but not necessarily identical elements.

图1示出了根据本公开的实施例的可以在其中实施本文描述的各种方法的示例性系统的示意图;FIG1 shows a schematic diagram of an exemplary system in which various methods described herein may be implemented according to an embodiment of the present disclosure;

图2示出了根据本公开的一些实施例的用于测试视频播放器的起播性能的方法的流程图;FIG2 shows a flow chart of a method for testing the start-up performance of a video player according to some embodiments of the present disclosure;

图3示出了根据本公开的一些实施例的用于测试视频播放器的起播性能的方法中,获取待发布的视频播放器在测试设备上的测试起播时间的过程的流程图;3 shows a flowchart of a process of obtaining a test start time of a video player to be released on a test device in a method for testing the start performance of a video player according to some embodiments of the present disclosure;

图4示出了根据本公开的一些实施例的用于测试视频播放器的起播性能的方法中,获取测试设备对应的平均起播时间的过程的流程图;FIG4 shows a flowchart of a process of obtaining an average start time corresponding to a test device in a method for testing the start performance of a video player according to some embodiments of the present disclosure;

图5示出了根据图2的用于测试视频播放器的起播性能的方法中,确定测试结果的过程的流程图;FIG5 shows a flow chart of a process of determining a test result in the method for testing the start-up performance of a video player according to FIG2 ;

图6示出了根据图2的用于测试视频播放器的起播性能的方法中获取代码问题的过程的流程图;FIG. 6 shows a flow chart of a process of obtaining code problems in the method for testing the start-up performance of a video player according to FIG. 2 ;

图7示出了根据图2用于测试视频播放器的起播性能的方法中,基于测试起播信息数据获取待发布的视频播放器的代码问题的过程的流程图;FIG. 7 is a flowchart showing a process of obtaining code problems of a video player to be released based on test start-up information data in the method for testing the start-up performance of a video player according to FIG. 2 ;

图8示出根据本公开的用于测试视频播放器的起播性能的装置的结构框图;以及FIG8 shows a structural block diagram of an apparatus for testing the start-up performance of a video player according to the present disclosure; and

图9示出了能够用于实现本公开的实施例的示例性电子设备的结构框图。FIG. 9 shows a block diagram of an exemplary electronic device that can be used to implement an embodiment of the present disclosure.

具体实施方式Detailed ways

以下结合附图对本公开的示范性实施例做出说明,其中包括本公开实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本公开的范围。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

在本公开中,除非另有说明,否则使用术语“第一”、“第二”等来描述各种要素不意图限定这些要素的位置关系、时序关系或重要性关系,这种术语只是用于将一个元件与另一元件区分开。在一些示例中,第一要素和第二要素可以指向该要素的同一实例,而在某些情况下,基于上下文的描述,它们也可以指代不同实例。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, timing relationship, or importance relationship of these elements, and such terms are only used to distinguish one element from another element. In some examples, the first element and the second element may refer to the same instance of the element, and in some cases, based on the description of the context, they may also refer to different instances.

在本公开中对各种所述示例的描述中所使用的术语只是为了描述特定示例的目的,而并非旨在进行限制。除非上下文另外明确地表明,如果不特意限定要素的数量,则该要素可以是一个也可以是多个。此外,本公开中所使用的术语“和/或”涵盖所列出的项目中的任何一个以及全部可能的组合方式。The terms used in the description of various examples in this disclosure are only for the purpose of describing specific examples and are not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, the element can be one or more. In addition, the term "and/or" used in this disclosure covers any one of the listed items and all possible combinations.

下面将结合附图详细描述本公开的实施例。The embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.

图1示出了根据本公开的实施例可以将本文描述的各种方法和装置在其中实施的示例性系统100的示意图。参考图1,该系统100包括一个或多个客户端设备101、102、103、104、105和106、服务器120以及将一个或多个客户端设备耦接到服务器120的一个或多个通信网络110。客户端设备101、102、103、104、105和106可以被配置为执行一个或多个应用程序。FIG1 shows a schematic diagram of an exemplary system 100 in which various methods and apparatuses described herein may be implemented according to an embodiment of the present disclosure. Referring to FIG1 , 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. The client devices 101, 102, 103, 104, 105, and 106 may be configured to execute one or more applications.

在本公开的实施例中,服务器120可以运行使得能够执行向客户端设备用于测试视频播放器的起播性能的方法的一个或多个服务或软件应用。In an embodiment of the present disclosure, the server 120 may run one or more services or software applications that enable execution of a method for testing the start-up performance of a video player to a client device.

在某些实施例中,服务器120还可以提供可以包括非虚拟环境和虚拟环境的其他服务或软件应用。在某些实施例中,这些服务可以作为基于web的服务或云服务提供,例如在软件即服务(SaaS)模型下提供给客户端设备101、102、103、104、105和/或106的用户。In some embodiments, server 120 may also provide other services or software applications that may include non-virtualized environments and virtualized environments. In some embodiments, these services may be provided as web-based services or cloud services, such as provided to users of client devices 101, 102, 103, 104, 105, and/or 106 under a software as a service (SaaS) model.

在图1所示的配置中,服务器120可以包括实现由服务器120执行的功能的一个或多个组件。这些组件可以包括可由一个或多个处理器执行的软件组件、硬件组件或其组合。操作客户端设备101、102、103、104、105和/或106的用户可以依次利用一个或多个客户端应用程序来与服务器120进行交互以利用这些组件提供的服务。应当理解,各种不同的系统配置是可能的,其可以与系统100不同。因此,图1是用于实施本文所描述的各种方法的系统的一个示例,并且不旨在进行限制。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 can be executed by one or more processors. Users 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 understood that a variety of different system configurations are possible, which may be different from system 100. Therefore, FIG. 1 is an example of a system for implementing the various methods described herein and is not intended to be limiting.

用户可以使用客户端设备101、102、103、104、105和/或106来基于服务器120测试了起播性能的视频播放器,进行视频播放。客户端设备可以提供使客户端设备的用户能够与客户端设备进行交互的接口。客户端设备还可以经由该接口向用户输出信息。尽管图1仅描绘了六种客户端设备,但是本领域技术人员将能够理解,本公开可以支持任何数量的客户端设备。The user can use client devices 101, 102, 103, 104, 105 and/or 106 to play the video based on the video player whose start-up performance is tested by server 120. The client device can provide an interface that enables the user of the client device to interact with the client device. The client device can also output information to the user via the interface. Although Figure 1 only depicts six client devices, those skilled in the art will appreciate that the present disclosure can support any number of client devices.

客户端设备101、102、103、104、105和/或106可以包括各种类型的计算机设备,例如便携式手持设备、通用计算机(诸如个人计算机和膝上型计算机)、工作站计算机、可穿戴设备、游戏系统、瘦客户端、各种消息收发设备、传感器或其他感测设备等。这些计算机设备可以运行各种类型和版本的软件应用程序和操作系统,例如Microsoft Windows、AppleiOS、类UNIX操作系统、Linux或类Linux操作系统(例如Google Chrome OS);或包括各种移动操作系统,例如Microsoft Windows Mobile OS、iOS、Windows Phone、Android。便携式手持设备可以包括蜂窝电话、智能电话、平板电脑、个人数字助理(PDA)等。可穿戴设备可以包括头戴式显示器和其他设备。游戏系统可以包括各种手持式游戏设备、支持互联网的游戏设备等。客户端设备能够执行各种不同的应用程序,例如各种与Internet相关的应用程序、通信应用程序(例如电子邮件应用程序)、短消息服务(SMS)应用程序,并且可以使用各种通信协议。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 laptops), workstation computers, wearable devices, game systems, thin clients, various messaging devices, sensors or other sensing devices, etc. 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 (such as 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 phones, smart phones, tablet computers, personal digital assistants (PDAs), etc. Wearable devices may include head-mounted displays and other devices. Game systems may include various handheld game devices, Internet-enabled game devices, etc. Client devices are capable of executing a variety of different applications, such as various Internet-related applications, communication applications (such as email applications), short message service (SMS) applications, and may use various communication protocols.

网络110可以是本领域技术人员熟知的任何类型的网络,其可以使用多种可用协议中的任何一种(包括但不限于TCP/IP、SNA、IPX等)来支持数据通信。仅作为示例,一个或多个网络110可以是局域网(LAN)、基于以太网的网络、令牌环、广域网(WAN)、因特网、虚拟网络、虚拟专用网络(VPN)、内部网、外部网、公共交换电话网(PSTN)、红外网络、无线网络(例如蓝牙、WIFI)和/或这些和/或其他网络的任意组合。The 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, 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.

服务器120可以包括一个或多个通用计算机、专用服务器计算机(例如PC(个人计算机)服务器、UNIX服务器、中端服务器)、刀片式服务器、大型计算机、服务器群集或任何其他适当的布置和/或组合。服务器120可以包括运行虚拟操作系统的一个或多个虚拟机,或者涉及虚拟化的其他计算架构(例如可以被虚拟化以维护服务器的虚拟存储设备的逻辑存储设备的一个或多个灵活池)。在各种实施例中,服务器120可以运行提供下文所描述的功能的一个或多个服务或软件应用。Server 120 may include one or more general purpose computers, dedicated server computers (e.g., PC (personal computer) servers, UNIX servers, mid-range servers), blade servers, mainframe computers, server clusters, or any other suitable arrangement and/or combination. Server 120 may include one or more virtual machines running virtual operating systems, or other computing architectures involving virtualization (e.g., one or more flexible pools of logical storage devices that may be virtualized to maintain a server's virtual storage device). In various embodiments, server 120 may run one or more services or software applications that provide the functionality described below.

服务器120中的计算单元可以运行包括上述任何操作系统以及任何商业上可用的服务器操作系统的一个或多个操作系统。服务器120还可以运行各种附加服务器应用程序和/或中间层应用程序中的任何一个,包括HTTP服务器、FTP服务器、CGI服务器、JAVA服务器、数据库服务器等。The computing units in the server 120 may run one or more operating systems including any of the above operating systems and 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, etc.

在一些实施方式中,服务器120可以包括一个或多个应用程序,以分析和合并从客户端设备101、102、103、104、105和106的用户接收的数据馈送和/或事件更新。服务器120还可以包括一个或多个应用程序,以经由客户端设备101、102、103、104、105和106的一个或多个显示设备来显示数据馈送和/或实时事件。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.

在一些实施方式中,服务器120可以为分布式系统的服务器,或者是结合了区块链的服务器。服务器120也可以是云服务器,或者是带人工智能技术的智能云计算服务器或智能云主机。云服务器是云计算服务体系中的一项主机产品,以解决传统物理主机与虚拟专用服务器(VPS,Virtual Private Server)服务中存在的管理难度大、业务扩展性弱的缺陷。In some embodiments, the server 120 may be a server of a distributed system, or a server combined with 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. A cloud server is a host product in a cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and virtual private servers (VPS) services.

系统100还可以包括一个或多个数据库130。在某些实施例中,这些数据库可以用于存储数据和其他信息。例如,数据库130中的一个或多个可用于存储诸如音频文件和视频文件的信息。数据存储库130可以驻留在各种位置。例如,由服务器120使用的数据存储库可以在服务器120本地,或者可以远离服务器120且可以经由基于网络或专用的连接与服务器120通信。数据存储库130可以是不同的类型。在某些实施例中,由服务器120使用的数据存储库可以是数据库,例如关系数据库。这些数据库中的一个或多个可以响应于命令而存储、更新和检索到数据库以及来自数据库的数据。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 repository 130 may reside in various locations. For example, the data repository 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 repository 130 may be of different types. In some embodiments, the data repository 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 a command.

在某些实施例中,数据库130中的一个或多个还可以由应用程序使用来存储应用程序数据。由应用程序使用的数据库可以是不同类型的数据库,例如键值存储库,对象存储库或由文件系统支持的常规存储库。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 applications may be different types of databases, such as a key-value store, an object store, or a conventional store backed by a file system.

图1的系统100可以以各种方式配置和操作,以使得能够应用根据本公开所描述的各种方法和装置。The system 100 of FIG. 1 may be configured and operated in various ways to enable application of various methods and apparatuses described according to the present disclosure.

在视频播放器的开发迭代过程中,如果出现由于代码问题,将导致视频播放器的起播性能下降,使视频起播器的起播时间的延长。其中,视频播放器的起播时间是指从获取到用户指令开始到为用户播放视频时为止,视频播放器所花费的时间。当视频播放器的起播性能下降时,往往导致视频播放器的起播时间延长几十至几百毫秒。由于视频播放器的起播性能下降在质量保证(QA)测试中很难发现,其往往在上线之前不容易被察觉。待视频播放器上线发布之后,其起播性能的下降将影响用户体验,成为线上事故。During the iterative development of a video player, if there is a code problem, the start-up performance of the video player will be reduced, which will extend the start-up time of the video player. The start-up time of a video player refers to the time it takes for the video player to play the video for the user from the time it receives the user's instruction. When the start-up performance of a video player is reduced, it often causes the start-up time of the video player to be extended by tens to hundreds of milliseconds. Since the degradation of the start-up performance of a video player is difficult to detect during quality assurance (QA) testing, it is often not easy to detect before going online. After the video player is released online, the degradation of its start-up performance will affect the user experience and become an online accident.

本公开的一方面提供了一种用于测试视频播放器的起播性能的方法。One aspect of the present disclosure provides a method for testing the start-up performance of a video player.

参看图2,根据本公开的一些实施例的一种用于测试视频播放器的起播性能的方法200包括:2 , a method 200 for testing the start-up performance of a video player according to some embodiments of the present disclosure includes:

步骤S210:获取待发布的视频播放器的测试起播时间;Step S210: Obtain the test start time of the video player to be released;

步骤S220:获取所述待发布的视频播放器的在先版本视频播放器的历史起播时间;以及Step S220: Obtain the historical start time of the previous version of the video player of the video player to be released; and

步骤S230:基于所述测试起播时间和所述历史起播时间,获取与所述待发布的视频播放器的起播性能相关的测试结果。Step S230: Based on the test start time and the historical start time, a test result related to the start performance of the video player to be released is obtained.

根据本公开的一个或多个实施例,通过在视频播放器发布(上线)之前,基于待发布(新版本)的视频播放器的测试起播时间,以及在先版本的视频播放器的历史起播时间,获得与该待发布的视频播放器的起播性能相关的测试结果,避免该视频播放器上线后,发现其起播性能劣化,而造成线上事故。同时,如果测试结果显示该待发布的视频播放器的起播性能下降,可以判断该起播性能劣化的测试结果是由该待发布的视频起播器的代码问题引起,而与其他合作方的代码改动上线、实验上线等无关,减少对导致视频播放器的起播性能劣化的原因的排查范围和难度。According to one or more embodiments of the present disclosure, before the video player is released (released), based on the test start time of the video player to be released (new version) and the historical start time of the previous version of the video player, a test result related to the start performance of the video player to be released is obtained, so as to avoid online accidents caused by the degradation of the start performance of the video player after the video player is released. At the same time, if the test results show that the start performance of the video player to be released has declined, it can be judged that the test result of the degradation of the start performance is caused by the code problem of the video player to be released, and has nothing to do with the code modification and experiment launch of other partners, thereby reducing the scope and difficulty of troubleshooting the causes of the degradation of the start performance of the video player.

根据一些实施例,视频播放器包括基于原地播放场景的视频播放器和基于视频落地页场景的视频播放器。原地播放场景例如可以是,基于获取到用户通过点击视频播放器的播放按钮而发送的指令,进行视频播放。视频落地页场景例如可以是,在基于feed流的视频播放过程中,基于获取到用户通过点击视频模而发送的指令,进入视频落地页进行视频播放。According to some embodiments, the video player includes a video player based on an original playback scenario and a video player based on a video landing page scenario. The original playback scenario may be, for example, based on obtaining an instruction sent by a user by clicking a play button of the video player, to play the video. The video landing page scenario may be, for example, during the video playback process based on a feed stream, based on obtaining an instruction sent by a user by clicking a video module, entering a video landing page to play the video.

在一些实施例中,在步骤S210中获取该待发布的视频播放器在多个测试设备中的各个测试设备上的测试起播时间,并根据该多个测试设备中的各个测试设备的测试起播时间,获取起播时间平均值,将该起播时间平均值作为待发布的视频播放器的测试起播时间。根据一些实施例,在步骤S220中,获取在线版本视频播放器在多个播放设备中的各个播放设备上历史播放时间,并且基于该多个播放设备中的各个播放设备上的历史播放时间,获得历史播放时间平均值,将该历史播放时间平均值作为在先版本视频播放器的起始起播时间。In some embodiments, in step S210, the test start time of the video player to be released on each of the multiple test devices is obtained, and based on the test start time of each of the multiple test devices, an average start time is obtained, and the average start time is used as the test start time of the video player to be released. According to some embodiments, in step S220, the historical play time of the online version of the video player on each of the multiple playback devices is obtained, and based on the historical play time of each of the multiple playback devices, the average historical play time is obtained, and the average historical play time is used as the starting start time of the previous version of the video player.

需要说明的是,本公开中的术语“测试设备”和术语“播放设备”均是指可以用于安装视频播放器并使所安装的视频播放器在其上运行以实现视频播放功能的硬件设备,例如,包括但不限于手机、计算机或平板电脑等。It should be noted that the terms "test device" and "playback device" in this disclosure refer to hardware devices that can be used to install a video player and enable the installed video player to run thereon to achieve video playback functions, for example, including but not limited to mobile phones, computers or tablets.

在一些实施例中,步骤S210、获取待发布的视频播放器的测试起播时间包括:获取所述待发布的视频播放器在测试设备上的所述测试起播时间,并且其中步骤S220、获取所述待发布的视频播放器的在先版本视频播放器的历史起播时间包括:获取所述测试设备对应的所述历史起播时间。In some embodiments, step S210, obtaining the test start time of the video player to be released includes: obtaining the test start time of the video player to be released on the test device, and wherein step S220, obtaining the historical start time of the previous version of the video player of the video player to be released includes: obtaining the historical start time corresponding to the test device.

基于待发布的视频播放器所在的测试设备对应的历史起播时间,获取测试结果。由于测试结果考虑了该待发布的视频播放器所在的测试设备的硬件条件,从而排除了用以采集视频播放器的测试起播时间的设备的硬件影响,使获得的测试结果准确。同时,由于获取了测试设备对应的历史起播时间,在步骤S210中,仅仅只需要在一个测试设备上获取该待发布的视频播放器的测试起播时间,就能将其作为用于获取测试结果的测试起播时间,使测试的过程简单,数据处理量少。The test result is obtained based on the historical start time corresponding to the test device where the video player to be released is located. Since the test result takes into account the hardware conditions of the test device where the video player to be released is located, the hardware influence of the device used to collect the test start time of the video player is eliminated, so that the obtained test result is accurate. At the same time, since the historical start time corresponding to the test device is obtained, in step S210, it is only necessary to obtain the test start time of the video player to be released on one test device, and it can be used as the test start time for obtaining the test result, which simplifies the test process and reduces the amount of data processing.

在一些实施例中,如图3所示,获取所述待发布的视频播放器在所述测试设备上的所述起播时间包括:In some embodiments, as shown in FIG3 , obtaining the start time of the to-be-published video player on the test device includes:

步骤S310:获取所述待发布的视频播放器在所述测试设备上的多个视频起播时间;以及Step S310: obtaining the start time of multiple videos of the to-be-released video player on the test device; and

步骤S320:基于所述多个视频起播时间,获取所述测试起播时间。Step S320: Based on the multiple video start times, the test start time is obtained.

获取待发布的视频播放器在所述测试设备上多个视频起播时间,该多个视频起播时间中的每一个视频起播时间为该待发布的视频播放器播放相对应的视频的起播时间。基于该多个视频起播时间获取所述测试起播时间,例如,通过获取该多个视频起播时间的平均值作为测试起播时间;使所获取的测试起播时间数据准确The test start time is obtained based on the multiple video start times, for example, by obtaining the average of the multiple video start times as the test start time; the obtained test start time data is accurate.

根据一些实施例,在测试人员手动点击该待发布的视频播放器以发送的获取第一视频的指令,从该待发布版本的视频播放器上获取第一视频的同时,获取对应于该第一视频的视频起播时间;并且重复前述步骤,以获得对应于多个视频的多个视频起播时间。According to some embodiments, when a tester manually clicks on the video player to be released to send an instruction to obtain the first video, the first video is obtained from the video player of the to-be-released version, and the video start time corresponding to the first video is obtained; and the aforementioned steps are repeated to obtain multiple video start times corresponding to multiple videos.

根据另一些实施例,响应于所接收到的用于测试视频播放器的起播性能的测试指令,向该待发布的视频播放器发送视频获取指令,以使该待发布的视频播放器播放一个或多个视频的同时获取对应于该一个或多个视频的视频起播时间。通过向该待发布的视频播放器发送视频获取指令,获取对应于该一个或多个视频的视频起播时间,使获取视频起播时间的过程基于测试指令自动完成,进一步简化测试过程,节省人力。According to other embodiments, in response to a received test instruction for testing the start-up 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 the video start time corresponding to the one or more videos while playing one or more videos. By sending a video acquisition instruction to the video player to be released and acquiring the video start time corresponding to the one or more videos, the process of acquiring the video start time is automatically completed based on the test instruction, further simplifying the test process and saving manpower.

在一些实施例中,如图4所示,所述获取所述测试设备对应的所述平均起播时间包括:In some embodiments, as shown in FIG4 , obtaining the average start time corresponding to the test device includes:

步骤S410:获取所述在先版本的视频播放器在多个播放设备中的每一个播放设备上的视频起播时间,并且所述每一个播放设备具有相应的播放设备型号,并且所述播放设备型号进一步对应于相应的硬件性能评分,并且其中,所述测试设备与多个播放设备型号中的一个播放设备型号相对应;Step S410: obtaining a video start time of the video player of the prior version on each of a plurality of playback devices, wherein each of the playback devices has a corresponding playback device model, and the playback device model further corresponds to a corresponding hardware performance score, and wherein the test device corresponds to a playback device model among the plurality of playback device models;

步骤S420:基于所述多个播放设备中的每一个播放设备的所述硬件性能评分和对应的所述视频起播时间,获取播放设备型号-历史起播时间对应关系;以及Step S420: acquiring a corresponding relationship between a playback device model and a historical playback start time based on the hardware performance score of each of the multiple playback devices and the corresponding video playback start time; and

步骤S430:基于所述播放设备型号-历史起播时间对应关系和与所述测试设备相对应的播放设备型号,获取所述测试设备对应的所述历史起播时间。Step S430: Based on the corresponding relationship between the playback device model and the historical playback start time and the playback device model corresponding to the test device, the historical playback start time corresponding to the test device is obtained.

在一些实施例中,在步骤S410中,多个播放设备为多个测试设备,通过获取在先版本的视频播放器在多个测试设备中的每一个测试设备上的视频起播时间作为对应于该多个播放设备中的每一个播放设备的视频起播时间。In some embodiments, in step S410, the multiple playback devices are multiple test devices, and the video start time of the previous version of the video player on each of the multiple test devices is obtained as the video start time corresponding to each of the multiple playback devices.

在一些实施例中,步骤S410、在先版本视频播放器为已发布的视频播放器,并且其中,所述获取所述在先版本视频播放器在多个设备中的每一个播放设备的视频起播时间包括:在线获取所述在先版本视频播放器的所述视频起播时间。In some embodiments, in step S410, the prior version video player is a released video player, and wherein obtaining the video start time of the prior version video player on each playback device among multiple devices includes: obtaining the video start time of the prior version video player online.

由于在先版本视频播放器为已发布的视频播放器,可以在线对该已发布的视频播放器进行线上数据数据采集,从而获得该在先版本视频播放器在多个播放设备中的每一个播放设备上的视频起播时间,使获取在线版本的视频播放器的历史起播时间的方法和过程简单。例如,通过获取该在先版本视频播放器的关于播放性能的数据报表,获得该先版本视频播放器的所述视频起播时间。Since the previous version video player is a published video player, online data collection can be performed on the published video player online, thereby obtaining the video start time of the previous version video player on each of the multiple playback devices, making the method and process of obtaining the historical start time of the online version video player simple. For example, by obtaining a data report on the playback performance of the previous version video player, the video start time of the previous version video player is obtained.

需要说明的是,本公开中涉及的术语“在线”、“线上”或者“上线”均是指已发布的视频播放器处于网络中,通过网络获取其功能或者使其通过网络实现功能。It should be noted that the terms "online", "online" or "online" involved in this disclosure all mean that the released video player is in the network, obtains its functions through the network or enables it to realize its functions through the network.

同时需要理解的是,本公开中涉及的术语“视频起播时间”、“历史起播时间”或“测试起播时间”均对应于播放器从接收到用户指令开始到开始播放视频位置的起播时间。“起播时间”之前的术语,仅仅是用于区别,并非用于限定,并且“起播时间”之前的术语还可用于采用其他术语,例如“第一”、“第二”等。It should also be understood that the terms "video start time", "historical start time" or "test start time" involved in the present disclosure all correspond to the start time from when the player receives the user instruction to when the video starts to play. The terms before the "start time" are only used for distinction, not for limitation, and the terms before the "start time" can also be used to adopt other terms, such as "first", "second", etc.

根据一些实施例,在步骤S410中,播放设备型号是用以使播放器在其上实现视频播放功能的硬件型号,其包括但不限于,播放设备的生产商,播放设备的硬件供应商等等。According to some embodiments, in step S410, the playback device model is a hardware model used for the player to implement the video playback function thereon, which includes but is not limited to the manufacturer of the playback device, the hardware supplier of the playback device, and the like.

根据一些实施例,在步骤S410中,基于预设的硬件评分标准,对播放设备的硬件进行硬件性能评分。例如,通过预设有硬件评分标准的硬件打分装置对该播放设备进行硬件评分,或者通过将播放设备的硬件对应分级以获得播放设备的硬件性能评分。According to some embodiments, in step S410, the hardware performance of the hardware of the playback device is scored based on a preset hardware scoring standard. For example, the hardware of the playback device is scored by a hardware scoring device with a preset hardware scoring standard, or the hardware of the playback device is graded to obtain the hardware performance score of the playback device.

在一些实施例中,在步骤S420中,通过获取视频起播时间随着播放设备型号的变化曲线,获取播放设备型号-历史起播时间对应关系。根据一些实施例,通过在线对该已发布的视频播放器进行线上数据数据采集,以获取该设备型号-历史起播时间对应关系。例如,通过获取该已发布的视频播放器的关于播放性能的数据报表,获得该设备型号-历史起播时间对应关系。In some embodiments, in step S420, the corresponding relationship between the playback device model and the historical playback time is obtained by obtaining a curve of the video playback start time changing with the playback device model. According to some embodiments, the corresponding relationship between the device model and the historical playback time is obtained by performing online data collection on the published video player. For example, the corresponding relationship between the device model and the historical playback time is obtained by obtaining a data report on the playback performance of the published video player.

在一些实施例中,在步骤S430中,基于测试设备对应的设备型号,从播放设备型号-历史起播时间对应关系中获取该设备对应的历史起播时间。In some embodiments, in step S430, based on the device model corresponding to the test device, the historical start time corresponding to the device is obtained from the corresponding relationship between the playback device model and the historical start time.

基于步骤S110和步骤S120的结果,在步骤S130中,获取与该待发布的视频播放器的起播性能相关的测试结果。在一些实施例中,测试结果包括对该待发布的视频播放器的起播性能的评价指标,例如,优秀、良好和差。在一些实施例中,测试结果包括对该待发布的视频播放器的起播性能较其在先版本视频播放器的起播性能是否下降的定性评价,例如起播性能劣化或起播性能未劣化。Based on the results of step S110 and step S120, in step S130, a test result related to the start-up performance of the video player to be released is obtained. In some embodiments, the test result includes an evaluation index of the start-up performance of the video player to be released, such as excellent, good, and poor. In some embodiments, the test result includes a qualitative evaluation of whether the start-up performance of the video player to be released is lower than the start-up performance of the previous version of the video player, such as whether the start-up performance is degraded or the start-up performance is not degraded.

在一些实施例中,方法100还包括确定测试结果。In some embodiments, method 100 also includes determining test results.

如图5所示,方法100中,确定测试结果包括:As shown in FIG. 5 , in method 100 , determining the test result includes:

步骤S510:响应于确定所述测试起播时间超出所述平均起播时间以一预设值,确定所述测试结果为起播性能劣化;以及Step S510: In response to determining that the test start time exceeds the average start time by a preset value, determining that the test result is a degradation of the start performance; and

步骤S520:输出所述测试结果。Step S520: output the test result.

当获取到测试结果为该待发布的视频播放器的起播性能劣化时,输出该测试结果,可以使该测试结果以可视的方式出现,以提醒开发人员该待发布的视频播放器具有代码问题而不能上线,进一步使测试过程智能化。同时,在测试起播时间超出平均起播时间以一预设值时,确定该测试结果为起播性能劣化,使确定起播性能劣化的测试起播时间预留一空间。避免由于测试设备的硬件等其他原因带来测试起播时间超出平均起播时间,而造成测试结果被错误确定为起播性能劣化。When the test result obtained is that the start-up 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 manner to remind the developer that the video player to be released has a code problem and cannot be put online, further making the test process intelligent. At the same time, when the test start time exceeds the average start time by a preset value, the test result is determined to be a degradation of the start performance, and a space is reserved for determining the test start time of the degradation of the start performance. Avoid the test start time exceeding the average start time due to other reasons such as the hardware of the test equipment, which causes the test result to be incorrectly determined as degradation of the start performance.

根据一些实施例,预设值为50ms。在一个示例中,在步骤S210中,获取的测试起播时间为1200ms,在步骤S220中,获取的历史起播时间为1000ms,在步骤S510中确定该测试起播时间1200ms超出历史起播时间1000ms以200ms,大于预设值20ms,因而确定测试结果为起播性能劣化。According to some embodiments, the preset value is 50ms. In one example, in step S210, the test start time obtained is 1200ms, in step S220, the historical start time obtained is 1000ms, and in step S510, it is determined that the test start time 1200ms exceeds the historical start time 1000ms by 200ms, which is greater than the preset value 20ms, and thus the test result is determined to be a degradation of the start performance.

在一些实施例中,在步骤S520中,通过日志文件的形式输出报警信息,以输出该起播性能劣化的测试结果。在另一些实施例中,通过对话框的形式展示报警信息,以输出该起播性能劣化的测试结果。In some embodiments, in step S520, the alarm information is output in the form of a log file to output the test result of the degradation of the start-up performance. In other embodiments, the alarm information is displayed in the form of a dialog box to output the test result of the degradation of the start-up performance.

在一些实施例中,方法100还包括获取代码问题。In some embodiments, method 100 further includes obtaining a code question.

如图6所示,方法100中,获取代码问题包括:As shown in FIG. 6 , in method 100 , obtaining code problems includes:

步骤S610:获取所述待发布的视频播放器的测试起播信息数据;以及Step S610: obtaining the test start information data of the video player to be released; and

步骤S620:响应于确定所述测试结果为起播性能劣化,基于所述测试起播信息数据,获取所述待发布的视频播放器的代码问题。Step S620: In response to determining that the test result is that the start-up performance is degraded, based on the test start-up information data, a code problem of the video player to be released is obtained.

当测试结果为起播性能劣化时,通过获取该待发布的视频播放器的测试起播信息数据,以进一步获得当前版本的视频播放器的代码问题,由于在线下(视频播放器发布之前)对视频播放器的起播性能劣化的原因进行排查,排查过程受到的干扰因素(其他合作方的代码改动上线、实验上线等)少,可以准确排查导致视频播放器的起播性能劣化的原因。同时,根据一些实施例,通过用于测试视频播放器的起播性能的测试装置响应于确定测试结果为起播性能劣化,获取该待发布的视频播放器的代码问题,使测试过程进一步自动化,减少人力。When the test result is that the start-up performance is degraded, the test start-up information data of the video player to be released is obtained to further obtain the code problems of the current version of the video player. Since the cause of the degradation of the start-up performance of the video player is checked offline (before the video player is released), the troubleshooting process is less affected by interference factors (code changes from other partners, experiments online, etc.), and the cause of the degradation of the start-up performance of the video player can be accurately checked. At the same time, according to some embodiments, the test device for testing the start-up performance of the video player responds to determining that the test result is degradation of the start-up performance, and obtains the code problems of the video player to be released, so that the test process is further automated and manpower is reduced.

在一些实施例中,所述测试起播信息数据包括下列各项中的至少一种:预取信息数据、解码信息数据、渲染信息数据、起播数据、服用信息数据、服务信息数据以及环境信息数据。In some embodiments, the test start-up information data includes at least one of the following: pre-fetch information data, decoding information data, rendering information data, start-up data, serving information data, service information data, and environment information data.

根据一些实施例,预取信息数据包括:该待发布的视频播放器所设置的预取url;该待发布的视频播放器起播过程中是否已预取;如果已经预取,该待发布的视频播放器是否使用了预取文件、所预取的视频头大小等。According to some embodiments, the prefetch information data includes: the prefetch URL set by the video player to be released; whether the video player to be released has been prefetched during the start-up process; if it has been prefetched, whether the video player to be released uses the prefetch file, the size of the prefetched video header, etc.

根据一些实施例,解码信息数据包括:该待发布的视频播放器在播放视频过程中使用的解码方式(如硬解码或者软解码);该待发布的视频播放器在解码的各阶段的耗时信息等。According to some embodiments, the decoding information data includes: the decoding method (such as hard decoding or soft decoding) used by the video player to be released during video playback; the time consumption information of the video player to be released at each stage of decoding, etc.

根据一些实施例,渲染信息数据包括:该待发布的视频播放器使用哪种渲染方式;渲染过程中渲染层是否创建完成,以及渲染层是否可见等。According to some embodiments, the rendering information data includes: which rendering method is used by the video player to be released; whether the rendering layer is created during the rendering process; and whether the rendering layer is visible.

根据一些实施例,起播数据包括:该待发布的视频播放器的起播url;该待发布的视频播放器起播过程中设置给内核的配置信息;该待发布的视频播放器起播过程中播放状态变化数据;以及该待发布的视频播放器在起播过程中的首帧回调信息等。According to some embodiments, the start-up data includes: the start-up URL of the video player to be released; the configuration information set to the kernel during the start-up process of the video player to be released; the playback state change data during the start-up process of the video player to be released; and the first frame callback information of the video player to be released during the start-up process, etc.

根据一些实施例,复用信息包括:该待发布的视频播放器是否开启了地址(或链接)复用;该待发布的视频播放器的复用内核标识;或者该待发布的视频播放器的复用内核的状态数据等。According to some embodiments, the multiplexing information includes: whether the video player to be released has enabled address (or link) multiplexing; the multiplexing kernel identifier of the video player to be released; or the status data of the multiplexing kernel of the video player to be released, etc.

根据一些实施例,服务信息数据包括:该待发布的视频播放器是使用的CDN服务还是使用的PCDN服务;According to some embodiments, the service information data includes: whether the video player to be released uses a CDN service or a PCDN service;

根据一些实施例,环境信息数据包括:该待发布的视频播放器当前所在的网络环境以及网速大小等。According to some embodiments, the environmental information data includes: the current network environment and network speed of the video player to be released.

根据一些实施例,如图7所示,步骤S620、基于所述测试起播信息数据,获取所述视频播放器的代码问题包括:According to some embodiments, as shown in FIG. 7 , step S620, based on the test start information data, obtaining the code problem of the video player includes:

步骤S710:获取测试起播信息数据和代码问题对应关系;以及Step S710: Obtaining the correspondence between the test start information data and the code problem; and

步骤S720:基于所述对应关系,获取对应于所述测试起播信息数据的所述代码问题。Step S720: Based on the corresponding relationship, the code problem corresponding to the test start information data is obtained.

基于测试起播信息数据和代码问题对应关系获取导致起播性能劣化的代码问题,使排查代码问题的方式简单,提升效率。同时根据本公开的一些实施例,通过用于测试视频播放器的起播性能的测试装置基于测试起播信息数据和代码问题的对应关系,获取代码问题,使获取代码问题的过程自动化,进一步提升测试过程的自动化,减少人力。Based on the correspondence between the test start-up information data and the code problem, the code problem that causes the start-up performance to deteriorate is obtained, which simplifies the method of troubleshooting the code problem and improves efficiency. At the same time, according to some embodiments of the present disclosure, a test device for testing the start-up performance of a video player obtains the code problem based on the correspondence between the test start-up information data and the code problem, automates the process of obtaining the code problem, further improves the automation of the test process, and reduces manpower.

在一些实施例中,步骤S710中,根据开发人员在开发视频播放器过程中所总结的测试起播信息数据和代码问题之间的对应关系获取该测试起播信息数据和代码问题对应关系。In some embodiments, in step S710, the correspondence between the test start information data and the code problem is obtained according to the correspondence between the test start information data and the code problem summarized by the developer in the process of developing the video player.

在一些实施例中,在步骤S720中,通过用于测试视频播放器的起播性能的测试装置基于步骤S710获取的对应关系,获取对应于测试起播信息数据的代码问题。根据一些实施例,当测试起播信息数据中的预取信息数据包括预取url并且当前预取url没有被预取时,确定代码问题为预取url失效。根据一些实施例,当测试起播信息数据的复用信息数据包括复用的播放器内核标识以及该复用的播放器内核的状态数据为未复用成功时,确定代码问题为该复用的内核设置错误。In some embodiments, in step S720, a test device for testing the start-up performance of a video player obtains a code problem corresponding to the test start-up information data based on the corresponding relationship obtained in step S710. According to some embodiments, when the prefetch information data in the test start-up information data includes a prefetch url and the current prefetch url has not been prefetched, it is determined that the code problem is that the prefetch url is invalid. According to some embodiments, when the multiplexing information data of the test start-up information data includes a multiplexed player kernel identifier and the status data of the multiplexed player kernel is not successfully multiplexed, it is determined that the code problem is an error in the multiplexed kernel setting.

在一些实施例中,在完成步骤S720之后,还包括输出所述代码问题。通过将代码问题输出,给开发人员以直观的代码问题,使对视频播放器的起播性能的测试直观、可视,简化测试过程。In some embodiments, after completing step S720, the code problem is further outputted. By outputting the code problem, the developer is provided with an intuitive code problem, so that the test of the start-up performance of the video player is intuitive and visual, and the test process is simplified.

根据一些实施例,将代码问题和测试结果以报告的形成输出。根据另一些实施例,将代码问题和测试结果以日志的形式输出。According to some embodiments, the code problems and test results are output in the form of a report. According to other embodiments, the code problems and test results are output in the form of a log.

根据本公开的另一方面,还提供一种用于测试视频播放器的起播性能的装置,参看图8,该装置800包括:第一获取单元810,被配置用于获取待发布的视频播放器的测试起播时间;第二获取单元820,被配置用于获取所述待发布的视频播放器的在先版本视频播放器的历史起播时间;以及第三获取单元830,被配置用于基于所述测试起播时间和所述历史起播时间,获取与所述待发布的视频播放器的起播性能相关的测试结果。According to another aspect of the present disclosure, a device for testing the start performance of a video player is also provided. Referring to FIG. 8 , the device 800 includes: a first acquisition unit 810, configured to acquire a test start time of a video player to be released; a second acquisition unit 820, configured to acquire a historical start time of a previous version of the video player to be released; and a third acquisition unit 830, configured to acquire a test result related to the start performance of the video player to be released based on the test start time and the historical start time.

根据一些实施例,所述第一获取单元还被配置成用于获取所述待发布的视频播放器在测试设备上的所述测试起播时间;并且其中,所述第一获取单元还被配置成用于获取所述测试设备对应的所述历史起播时间。According to some embodiments, the first acquisition unit is further configured to acquire the test start time of the video player to be released on the test device; and wherein the first acquisition unit is further configured to acquire the historical start time corresponding to the test device.

根据一些实施例,所述第一获取单元810包括:第一获取子单元,被配置用于获取所述待发布的视频播放器在所述测试设备上的多个视频起播时间;以及第二获取子单元,被配置用于基于所述多个视频起播时间,获取所述测试起播时间。According to some embodiments, the first acquisition unit 810 includes: a first acquisition subunit, configured to acquire multiple video start 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 multiple video start times.

根据一些实施例,所述第二获取单元820包括:第三获取子单元,获取所述在先版本的视频播放器在多个播放设备中的每一个播放设备上的视频起播时间,并且所述每一个播放设备具有相应的播放设备型号,并且所述播放设备型号进一步对应于相应的硬件性能评分,并且其中,所述测试设备与多个播放设备型号中的一个播放设备型号相对应;关联单元,被配置用于基于所述多个播放设备中的每一个播放设备的所述硬件性能评分和对应的所述视频起播时间,获取播放设备型号-历史起播时间对应关系;以及第四获取子单元,被配置用于基于所述播放设备型号-历史起播时间对应关系和与所述测试设备相对应的播放设备型号,获取所述测试设备对应的所述历史起播时间。According to some embodiments, the second acquisition unit 820 includes: a third acquisition sub-unit, which acquires the video start time of the previous version of the video player on each of a plurality of playback devices, and each of the playback devices has a corresponding playback device model, and the playback device model further corresponds to a corresponding hardware performance score, and wherein the test device corresponds to one of the plurality of playback device models; an association unit, which is configured to acquire a playback device model-historical start time correspondence relationship based on the hardware performance score and the corresponding video start time of each of the plurality of playback devices; and a fourth acquisition sub-unit, which is configured to acquire the historical start time corresponding to the test device based on the playback device model-historical start time correspondence relationship and the playback device model corresponding to the test device.

根据一些实施例,所述在先版本视频播放器为已发布的视频播放器,并且其中,所述第三获取子单元进一步被配置成用于在线获取所述在先版本视频播放器的所述视频起播时间。According to some embodiments, the prior version video player is a released video player, and wherein the third acquisition subunit is further configured to acquire the video start time of the prior version video player online.

根据一些实施例,装置800还包括:确定单元,被配置用于响应于确定所述测试起播时间超出所述平均起播时间以一预设值,确定所述测试结果为起播性能劣化;以及输出单元,被配置用于输出所述测试结果。According to some embodiments, the device 800 further includes: a determination unit configured to determine that the test result is a degradation in start performance in response to determining that the test start time exceeds the average start time by a preset value; and an output unit configured to output the test result.

根据一些实施例,装置800还包括:第四获取单元,被配置用于获取所述待发布的视频播放器的测试起播信息数据;以及第五获取单元,被配置用于响应于确定所述测试结果为起播性能劣化,基于所述测试起播信息数据,获取所述待发布的视频播放器的代码问题。According to some embodiments, the device 800 also includes: a fourth acquisition unit, configured to obtain test start information data of the video player to be released; and a fifth acquisition unit, configured to obtain code problems of the video player to be released based on the test start information data in response to determining that the test result is a degradation of the start performance.

根据一些实施例,所述输出单元还被配置用于输出所述代码问题。According to some embodiments, the output unit is further configured to output the code problem.

根据本公开的另一方面,还提供一种电子设备,包括:至少一个处理器;以及与所述至少一个处理器通信连接的存储器;其中所述存储器存储有计算机程序,所述计算机程序在被所述至少一个处理器执行时实现根据上述的方法。According to another aspect of the present disclosure, an electronic device is also provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program, and the computer program implements the above method when executed by the at least one processor.

根据本公开的另一方面,还提供一种存储有计算机程序的非瞬时计算机可读存储介质,其中,所述计算机程序在被处理器执行时实现根据上述的方法。According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing a computer program is also provided, wherein the computer program implements the above method when executed by a processor.

根据本公开的另一方面,还提供了一种电子设备、一种可读存储介质和一种计算机程序产品。According to another aspect of the present disclosure, an electronic device, a readable storage medium and a computer program product are also provided.

参考图9,现将描述可以作为本公开的服务器或客户端的电子设备900的结构框图,其是可以应用于本公开的各方面的硬件设备的示例。电子设备旨在表示各种形式的数字电子的计算机设备,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本公开的实现。With reference to Figure 9, the structural block diagram of an electronic device 900 that can be used as a server or client of the present disclosure will now be described, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device is intended to represent various forms of digital electronic computer equipment, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can 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 merely examples, and are not intended to limit the implementation of the present disclosure described and/or required herein.

如图9所示,设备900包括计算单元901,其可以根据存储在只读存储器(ROM)902中的计算机程序或者从存储单元908加载到随机访问存储器(RAM)903中的计算机程序,来执行各种适当的动作和处理。在RAM 903中,还可存储设备900操作所需的各种程序和数据。计算单元901、ROM902以及RAM 903通过总线904彼此相连。输入/输出(I/O)接口905也连接至总线904。As shown in Figure 9, the device 900 includes a computing unit 901, which 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 ROM 902, and the RAM 903 are connected to each other via a bus 904. An input/output (I/O) interface 905 is also connected to the bus 904.

设备900中的多个部件连接至I/O接口905,包括:输入单元906、输出单元907、存储单元908以及通信单元909。输入单元906可以是能向设备900输入信息的任何类型的设备,输入单元906可以接收输入的数字或字符信息,以及产生与电子设备的用户设置和/或功能控制有关的键信号输入,并且可以包括但不限于鼠标、键盘、触摸屏、轨迹板、轨迹球、操作杆、麦克风和/或遥控器。输出单元907可以是能呈现信息的任何类型的设备,并且可以包括但不限于显示器、扬声器、视频/音频输出终端、振动器和/或打印机。存储单元908可以包括但不限于磁盘、光盘。通信单元909允许设备900通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据,并且可以包括但不限于调制解调器、网卡、红外通信设备、无线通信收发机和/或芯片组,例如蓝牙TM设备、1302.11设备、WiFi设备、WiMax设备、蜂窝通信设备和/或类似物。Multiple 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 can be any type of device that can input information to the device 900. The input unit 906 can receive input digital or character information and generate key signal input related to user settings and/or function control of the electronic device, and can 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 controller. The output unit 907 can be any type of device that can present information, and can include but is not limited to a display, a speaker, a video/audio output terminal, a vibrator, and/or a printer. The storage unit 908 can include but is not limited to a disk, an optical disk. The communication unit 909 allows the device 900 to exchange information/data with other devices through a computer network such as the Internet and/or various telecommunication networks, and can include but is not limited to a modem, a network card, an infrared communication device, a wireless communication transceiver, and/or a chipset, such as a Bluetooth™ device, a 1302.11 device, a WiFi device, a WiMax device, a cellular communication device, and/or the like.

计算单元901可以是各种具有处理和计算能力的通用和/或专用处理组件。计算单元901的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(AI)计算芯片、各种运行机器学习模型算法的计算单元、数字信号处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。计算单元901执行上文所描述的各个方法和处理,例如方法900。例如,在一些实施例中,方法200可被实现为计算机软件程序,其被有形地包含于机器可读介质,例如存储单元908。在一些实施例中,计算机程序的部分或者全部可以经由ROM 902和/或通信单元909而被载入和/或安装到设备900上。当计算机程序加载到RAM903并由计算单元901执行时,可以执行上文描述的方法200的一个或多个步骤。备选地,在其他实施例中,计算单元901可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行方法200。The computing unit 901 may be a variety of general and/or special processing components with 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, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, 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, which is tangibly contained in a machine-readable medium, such as a storage unit 908. In some embodiments, part or all of the computer program may be loaded and/or installed on the device 900 via the ROM 902 and/or the communication unit 909. When the computer program is loaded into the RAM 903 and executed by the computing unit 901, one or more steps of the method 200 described above may be performed. Alternatively, in other embodiments, the computing unit 901 may be configured to perform the method 200 in any other appropriate manner (e.g., by means of firmware).

本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、芯片上系统的系统(SOC)、负载可编程逻辑设备(CPLD)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and/or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

用于实施本公开的方法的程序代码可以采用一个或多个编程语言的任何组合来编写。这些程序代码可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器或控制器,使得程序代码当由处理器或控制器执行时使流程图和/或框图中所规定的功能/操作被实施。程序代码可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。The program code for implementing the method 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, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, implements the functions/operations specified in the flow chart and/or block diagram. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A 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, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

为了提供与用户的交互,可以在计算机上实施此处描述的系统和技术,该计算机具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给计算机。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide interaction with a user, the systems and techniques described herein 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 the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the 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 can be received in any form (including acoustic input, voice input, or tactile input).

可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)和互联网。The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communications network). Examples of communications networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

计算机系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.

应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本公开中记载的各步骤可以并行地执行、也可以顺序地或以不同的次序执行,只要能够实现本公开公开的技术方案所期望的结果,本文在此不进行限制。It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be performed in parallel, sequentially or in a different order, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document is not limited here.

虽然已经参照附图描述了本公开的实施例或示例,但应理解,上述的方法、系统和设备仅仅是示例性的实施例或示例,本发明的范围并不由这些实施例或示例限制,而是仅由授权后的权利要求书及其等同范围来限定。实施例或示例中的各种要素可以被省略或者可由其等同要素替代。此外,可以通过不同于本公开中描述的次序来执行各步骤。进一步地,可以以各种方式组合实施例或示例中的各种要素。重要的是随着技术的演进,在此描述的很多要素可以由本公开之后出现的等同要素进行替换。Although the embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it should be understood that the above-mentioned methods, systems and devices are merely exemplary embodiments or examples, and the scope of the present invention is not limited by these embodiments or examples, but is only limited by the claims after authorization and their equivalent scope. Various elements in the embodiments or examples can be omitted or replaced by their equivalent elements. In addition, each step can be performed in an order different from that described in the present disclosure. Further, the various elements in the embodiments or examples can be combined in various ways. It is important that with the evolution of technology, many of the elements described herein can be replaced by equivalent elements that appear after the present disclosure.

Claims (16)

1.一种用于测试视频播放器的起播性能的方法,包括:1. A method for testing the start-up performance of a video player, comprising: 获取待发布的视频播放器的测试起播时间;Get the test start time of the video player to be released; 获取所述待发布的视频播放器的在先版本视频播放器的历史起播时间;以及Obtaining the historical start time of a previous version of the video player to be released; and 基于所述测试起播时间和所述历史起播时间,获取与所述待发布的视频播放器的起播性能相关的测试结果,Based on the test start time and the historical start time, obtaining a test result related to the start performance of the video player to be released, 其中,所述获取待发布的视频播放器的测试起播时间包括:The step of obtaining the test start time of the video player to be released includes: 获取所述待发布的视频播放器在测试设备上的所述测试起播时间,Obtain the test start time of the video player to be released on the test device, 并且其中,所述获取所述待发布的视频播放器的在先版本视频播放器的历史起播时间包括:And wherein, the obtaining of the historical start time of the previous version of the video player to be released comprises: 获取所述测试设备对应的所述历史起播时间,Obtain the historical start time corresponding to the test device, 所述获取所述待发布的视频播放器在所述测试设备上的所述测试起播时间包括:The step of obtaining the test start time of the to-be-released video player on the test device comprises: 获取所述待发布的视频播放器在所述测试设备上的多个视频起播时间;以及Obtaining multiple video start times of the to-be-released video player on the test device; and 基于所述多个视频起播时间,获取所述测试起播时间。Based on the multiple video start times, the test start time is obtained. 2.根据权利要求1所述的方法,其中,所述获取所述测试设备对应的所述历史起播时间包括:2. The method according to claim 1, wherein the step of obtaining the historical start time corresponding to the test device comprises: 获取所述在先版本的视频播放器对应于多个播放设备中的每一个播放设备上的视频起播时间,并且所述每一个播放设备具有相应的播放设备型号,并且所述播放设备型号进一步对应于相应的硬件性能评分,并且其中,所述测试设备与多个播放设备型号中的一个播放设备型号相对应;Obtaining a video start time corresponding to each of a plurality of playback devices of the video player of the prior version, wherein each of the playback devices has a corresponding playback device model, and the playback device model further corresponds to a corresponding hardware performance score, and wherein the test device corresponds to a playback device model of the plurality of playback device models; 基于所述多个播放设备中的每一个播放设备的所述硬件性能评分和对应的所述视频起播时间,获取播放设备型号-历史起播时间对应关系;以及Based on the hardware performance score of each of the multiple playback devices and the corresponding video start time, obtaining a playback device model-historical start time correspondence relationship; and 基于所述播放设备型号-历史起播时间对应关系和与所述测试设备相对应的播放设备型号,获取所述测试设备对应的所述历史起播时间。Based on the corresponding relationship between the playback device model and the historical playback start time and the playback device model corresponding to the test device, the historical playback start time corresponding to the test device is obtained. 3.根据权利要求2所述的方法,其中,所述在先版本视频播放器为已发布的视频播放器,并且其中,所述获取所述在先版本视频播放器在多个设备中的每一个设备上的视频起播时间包括:3. The method according to claim 2, wherein the prior version video player is a released video player, and wherein obtaining the video start time of the prior version video player on each of the multiple devices comprises: 在线获取所述在先版本视频播放器的所述视频起播时间。The video start time of the previous version of the video player is obtained online. 4.根据权利要求1所述的方法,其中,还包括:4. The method according to claim 1, further comprising: 响应于确定所述测试起播时间超出所述历史起播时间的差值大于预设值,确定所述测试结果为起播性能劣化;以及In response to determining that the difference between the test start time and the historical start time is greater than a preset value, determining that the test result is a degradation in start performance; and 输出所述测试结果。The test result is output. 5.根据权利要求4所述的方法,还包括:5. The method according to claim 4, further comprising: 获取所述待发布的视频播放器的测试起播信息数据;以及Obtaining the test start information data of the video player to be released; and 响应于确定所述测试结果为起播性能劣化,基于所述测试起播信息数据,获取所述待发布的视频播放器的代码问题。In response to determining that the test result is that the start-up performance is degraded, a code problem of the video player to be released is obtained based on the test start-up information data. 6.根据权利要求5所述的方法,其中,所述测试起播信息数据包括下列各项中的至少一种:6. The method according to claim 5, wherein the test start information data comprises at least one of the following: 预取信息数据、解码信息数据、渲染信息数据、起播数据、服用信息数据、服务信息数据以及环境信息数据。Pre-fetch information data, decoding information data, rendering information data, start-up data, consumption information data, service information data and environment information data. 7.根据权利要求5所述的方法,其中,所述基于所述测试起播信息数据,获取所述视频播放器的代码问题包括:7. The method according to claim 5, wherein the step of obtaining the code problem of the video player based on the test start information data comprises: 获取测试起播信息数据和代码问题对应关系;以及Obtaining the correspondence between the test start information data and the code problem; and 基于所述对应关系,获取对应于所述测试起播信息数据的所述代码问题。Based on the corresponding relationship, the code problem corresponding to the test start information data is obtained. 8.根据权利要求5所述的方法,其中,还包括:8. The method according to claim 5, further comprising: 输出所述代码问题。Outputs the code problem. 9.一种用于测试视频播放器的起播性能的装置,包括:9. A device for testing the start-up performance of a video player, comprising: 第一获取单元,被配置用于获取待发布的视频播放器的测试起播时间;A first acquisition unit is configured to acquire a test start time of a video player to be released; 第二获取单元,被配置用于获取所述待发布的视频播放器的在先版本视频播放器的历史起播时间;以及A second acquisition unit is configured to acquire a historical start time of a previous version of the video player to be released; and 第三获取单元,被配置用于基于所述测试起播时间和所述历史起播时间,获取与所述待发布的视频播放器的起播性能相关的测试结果,A third acquisition unit is configured to acquire a test result related to the start performance of the video player to be released based on the test start time and the historical start time, 其中,所述第一获取单元还被配置成用于获取所述待发布的视频播放器在测试设备上的所述测试起播时间,The first acquisition unit is further configured to acquire the test start time of the video player to be released on the test device. 并且其中,所述第二获取单元还被配置成用于获取所述测试设备对应的所述历史起播时间,And wherein the second acquisition unit is further configured to acquire the historical start time corresponding to the test device, 所述第一获取单元包括:The first acquisition unit includes: 第一获取子单元,被配置用于获取所述待发布的视频播放器在所述测试设备上的多个视频起播时间;以及A first acquisition subunit is configured to acquire a plurality of video start times of the to-be-released video player on the test device; and 第二获取子单元,被配置用于基于所述多个视频起播时间,获取所述测试起播时间。The second acquisition subunit is configured to acquire the test start time based on the multiple video start times. 10.根据权利要求9所述的装置,其中,所述第二获取单元包括:10. The device according to claim 9, wherein the second acquisition unit comprises: 第三获取子单元,被配置用于获取所述在先版本的视频播放器在多个播放设备中的每一个播放设备上的视频起播时间,并且所述每一个播放设备具有相应的播放设备型号,并且所述播放设备型号进一步对应于相应的硬件性能评分,并且其中,所述测试设备与多个播放设备型号中的一个播放设备型号相对应;A third acquisition subunit is configured to acquire a video start time of the video player of the prior version on each of a plurality of playback devices, wherein each of the playback devices has a corresponding playback device model, and the playback device model further corresponds to a corresponding hardware performance score, and wherein the test device corresponds to a playback device model among the plurality of playback device models; 关联单元,被配置用于基于所述多个播放设备中的每一个播放设备的所述硬件性能评分和对应的所述视频起播时间,获取播放设备型号-历史起播时间对应关系;以及an associating unit configured to obtain a corresponding relationship between a playback device model and a historical start time based on the hardware performance score of each of the plurality of playback devices and the corresponding video start time; and 第四获取子单元,被配置用于基于所述播放设备型号-历史起播时间对应关系和与所述测试设备相对应的播放设备型号,获取所述测试设备对应的所述历史起播时间。The fourth acquisition subunit is configured to acquire the historical start time corresponding to the test device based on the corresponding relationship between the playback device model and the historical start time and the playback device model corresponding to the test device. 11.根据权利要求10所述的装置,所述在先版本视频播放器为已发布的视频播放器,并且其中,所述第三获取子单元进一步被配置成用于在线获取所述在先版本视频播放器的所述视频起播时间。11. The apparatus according to claim 10, wherein the prior version video player is a released 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.根据权利要求9所述的装置,还包括:12. The apparatus according to claim 9, further comprising: 确定单元,被配置用于响应于确定所述测试起播时间超出所述历史起播时间的差值大于预设值,确定所述测试结果为起播性能劣化;以及a determining unit configured to determine that the test result is a degradation of the start performance in response to determining that the difference between the test start time and the historical start time is greater than a preset value; and 输出单元,被配置用于输出所述测试结果。The output unit is configured to output the test result. 13.根据权利要求12所述的装置,还包括:13. The apparatus according to claim 12, further comprising: 第四获取单元,被配置用于获取所述待发布的视频播放器的测试起播信息数据;以及A fourth acquisition unit is configured to acquire the test start information data of the video player to be released; and 第五获取单元,被配置用于响应于确定所述测试结果为起播性能劣化,基于所述测试起播信息数据,获取所述待发布的视频播放器的代码问题。A fifth acquisition unit is configured to, in response to determining that the test result is that the start-up performance is degraded, acquire a code problem of the to-be-released video player based on the test start-up information data. 14.根据权利要求13所述的装置,所述输出单元还被配置用于输出所述代码问题。The apparatus according to claim 13 , wherein the output unit is further configured to output the code problem. 15.一种电子设备,包括:15. An electronic device comprising: 至少一个处理器;以及at least one processor; and 与所述至少一个处理器通信连接的存储器;其中a memory communicatively coupled to the at least one processor; wherein 所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1-8中任意一项所述的方法。The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 8. 16.一种存储有计算机指令的非瞬时计算机可读存储介质,其中,所述计算机指令用于使所述计算机执行根据权利要求1-8中任一项所述的方法。16. A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 8.
CN202110768832.8A 2021-07-07 2021-07-07 Method and apparatus for testing play-up performance of video player Active CN113495843B (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Title
基于数字电视中间件的媒体播放器研究与实现;蔡倩;谷建华;倪红波;王刚;;计算机应用;20070310(第03期);全文 *

Also Published As

Publication number Publication date
CN113495843A (en) 2021-10-12

Similar Documents

Publication Publication Date Title
CN111506508A (en) Edge computing test method, apparatus, device and readable storage medium
WO2019196274A1 (en) Web page testing method and apparatus, electronic device, and medium
CN113194350B (en) Method and device for pushing data to be broadcasted and method and device for broadcasting data
CN116127035B (en) Dialogue methods, dialogue model training methods and devices
CN113495843B (en) Method and apparatus for testing play-up performance of video player
CN114443989A (en) Sorting method, training method of sorting model, device, electronic device and medium
CN114666258A (en) Interface test method, device, electronic equipment and medium
CN114510308B (en) Method, device, equipment and medium for storing application page by mobile terminal
CN115130041A (en) Webpage quality evaluation method, neural network training method, device and equipment
CN114880580A (en) Information recommendation method and device, electronic equipment and medium
US20160188361A1 (en) Systems and methods for determining desktop readiness using interactive measures
CN119415360A (en) Application behavior detection method, device, electronic device, and medium
CN113079046A (en) Data access method and device, electronic equipment and medium
CN116320390B (en) Video quality assessment method, device and electronic equipment
CN112906387A (en) Risk content identification method, apparatus, device, medium, and computer program product
CN113568797B (en) Test method and device, electronic equipment and medium of intelligent interactive system
CN115050396A (en) Test method and device, electronic device and medium
CN113436604B (en) Method and device for broadcasting content, electronic device and storage medium
CN113378001B (en) Video playing progress adjusting method and device, electronic equipment and medium
CN112667196B (en) Information display method and device, electronic equipment and medium
CN115858364A (en) Method and system for testing application starting time of cloud terminal
CN114691499A (en) Wearable device test method, device, wearable device and medium
CN116150517A (en) Page processing method and device, electronic device and medium
CN113902313A (en) Object information processing method and device
CN116842156B (en) Data generation method, device, 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