Testing method, device, system and storage medium for streaming media scene

Through the testing system and method of streaming media scenarios, using configuration files and automated transmission of test information, the problem of low streaming media testing efficiency in the existing technology is solved, and an efficient and intuitive testing process is realized.

CN113965551BActive Publication Date: 2024-09-13BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010637364.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-03
Publication Date
2024-09-13
Estimated Expiration
2040-07-03

AI Technical Summary

Technical Problem

In the existing technology, the efficiency of streaming media testing is low, and the log printing method is not intuitive, which results in high maintenance efficiency and cost of the test solution. Moreover, log collection is complicated and it is difficult to automatically extract business information.

Method used

Provide a testing system and method for streaming media scenarios. Through the collaborative work of the client, content distribution terminal and server, configuration files are used to configure test information, automatically transmit and test media content, obtain test data to determine test results, and reduce manual writing. Testing scenarios and information gathering.

Benefits of technology

It improves the efficiency of streaming media testing, reduces the maintenance cost and time of test solutions, realizes automated testing processes, and improves the intuitiveness and accuracy of testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113965551B
    Figure CN113965551B
Patent Text Reader

Abstract

The present application discloses a testing method, device, system, and storage medium for a streaming media scenario. The system includes: a client, a content distribution end, and a server end. The client is used to configure a configuration file to obtain configuration information for testing a target service, and determine a test result based on the test data of the target service, wherein the target service is used when transmitting target media content between the client and the server end; the content distribution end is respectively connected to the client and the server end in communication, and the content distribution end is used to transmit the target media content between the client and the server end according to the configuration information; the server end is used to obtain test data obtained by testing the target service when transmitting the target media content. The present application solves the technical problem of low efficiency in streaming media testing in the related art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of the Internet, and more specifically, to a testing method, device, system, and storage medium for a streaming media scenario. Background Art

[0002] In order to ensure the normal operation of streaming media services, streaming media tests are often carried out before the streaming media services are launched. The testing methods in related technologies are: based on the service logs of each manufacturer, the test is implemented by log printing, or based on some open source tools, such as using the multimedia processing tool FFmpeg (FFmpeg is a set of open source computer programs that can be used to record and convert digital audio and video, and can convert them into streams. It uses LGPL or GPL licenses and provides a complete solution for recording, converting and streaming audio and video) to test a certain business scenario.

[0003] The above-mentioned log printing refers to the business log output generated by the live CDN service. Based on these logs, we can judge whether the service is normal to a certain extent. If an error is reported, we can judge the cause of the error based on these logs. The characteristic of the log is that the data volume is large, and it is difficult to automatically extract intuitive business information from it. Because the live CDN is distributed and distributed in multiple regional computer rooms, it is unlikely to count the business log information of each computer room service during testing.

[0004] The solutions in related technologies are not intuitive. For example, the test method based on log parsing may cause the test plan to fail if the log is printed incorrectly, but in fact there is no problem with the function. If the R&D department changes the log printing method, the test will need to rewrite the corresponding test plan, and the maintenance efficiency and cost are very high. In addition, the log collection work is also very complicated, which will lead to low test efficiency.

[0005] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0006] The embodiments of the present application provide a testing method, device, system, and storage medium for a streaming media scenario, so as to at least solve the technical problem of low efficiency in streaming media testing in related technologies.

[0007] According to one aspect of an embodiment of the present application, a testing system for a streaming media scenario is provided, including: the testing system includes a client, a content distribution end and a server end, wherein the client is used to configure a configuration file to obtain configuration information for testing a target service, and determine a test result based on test data of the target service, wherein the target service is used when transmitting target media content between the client and the server end; the content distribution end is respectively communicated with the client and the server end, and the content distribution end is used to transmit the target media content between the client and the server end according to the configuration information; the server end is used to obtain test data obtained by testing the target service when transmitting the target media content.

[0008] According to another aspect of an embodiment of the present application, a testing method for a streaming media scenario is also provided, including: applied to a client, the method comprising: configuring a configuration file to obtain configuration information for testing a target service, wherein the target service is used when transmitting target media content between the client and the test end; transmitting the target media content between the client and the test end according to the configuration information; determining a test result based on test data of the target service, wherein the test data is data obtained by testing the target service when transmitting the target media content.

[0009] According to another aspect of an embodiment of the present application, a testing method for a streaming media scenario is also provided, including: applied to a content distribution end, the method includes: obtaining configuration information, wherein the configuration information is information for testing a target service obtained by a client configuring a configuration file, the target service is used when transmitting target media content between the client and the test end, and the client is used to determine a test result based on test data obtained by testing the target service; and transmitting the target media content between the client and the test end according to the configuration information.

[0010] According to another aspect of an embodiment of the present application, a testing method for a streaming media scenario is also provided, including: applied to a test end, the method includes: transmitting target media content between a client and a test end according to configuration information, wherein the configuration information is information obtained by the client configuring a configuration file for testing a target service, and the target service is used when transmitting the target media content between the client and the test end; sending test data obtained by testing the target service when transmitting the target media content to the client, wherein the client is used to determine a test result based on the test data.

[0011] According to another aspect of an embodiment of the present application, a testing device for a streaming media scenario is also provided, including: applied to a client, the device includes: a configuration unit, used to configure a configuration file to obtain configuration information for testing a target service, wherein the target service is used when transmitting target media content between the client and the test end; a first transmission unit, used to transmit the target media content between the client and the test end according to the configuration information; a testing unit, used to determine a test result based on test data of the target service, wherein the test data is data obtained by testing the target service when transmitting the target media content.

[0012] According to another aspect of an embodiment of the present application, a testing device for a streaming media scenario is also provided, including: applied to a content distribution end, the device includes: an acquisition unit, used to obtain configuration information, wherein the configuration information is information for testing a target service obtained by a client configuring a configuration file, the target service is used when transmitting target media content between the client and the test end, and the client is used to determine a test result based on test data obtained by testing the target service; a second transmission unit, used to transmit the target media content between the client and the test end according to the configuration information.

[0013] According to another aspect of an embodiment of the present application, a testing device for a streaming media scenario is also provided, including: applied to a test end, the device includes: a third transmission unit, used to transmit target media content between a client and the test end according to configuration information, wherein the configuration information is information obtained by the client configuring a configuration file for testing a target service, and the target service is used when transmitting the target media content between the client and the test end; a sending unit, used to send test data obtained by testing the target service when transmitting the target media content to the client, wherein the client is used to determine the test result based on the test data.

[0014] According to another aspect of an embodiment of the present application, a storage medium is further provided, which includes a stored program, and the above method is executed when the program is run.

[0015] According to another aspect of an embodiment of the present application, an electronic device is further provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the above method through the computer program.

[0016] In an embodiment of the present application, a testing system for streaming media scenarios is provided. During testing, a configuration file is configured in the client to obtain configuration information for testing a target service, and a test result is determined based on the test data of the target service. There is no need to write a complete test plan every time a test is performed, and there is no need to manually collect relevant information. This can solve the technical problem of low efficiency in streaming media testing in related technologies, thereby achieving the technical effect of improving test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0018] Figure 1 is a flow chart of a test system for an optional streaming media scenario according to an embodiment of the present application;

[0019] Figure 2 is a flow chart of an optional testing method for a streaming media scenario according to an embodiment of the present application;

[0020] Figure 3 is a flow chart of an optional testing method for a streaming media scenario according to an embodiment of the present application;

[0021] Figure 4 is a flow chart of an optional testing method for a streaming media scenario according to an embodiment of the present application;

[0022] Figure 5 is a schematic diagram of a test device for an optional streaming media scenario according to an embodiment of the present application;

[0023] Figure 6 is a schematic diagram of a test device for an optional streaming media scenario according to an embodiment of the present application;

[0024] Figure 7 is a schematic diagram of a test device for an optional streaming media scenario according to an embodiment of the present application; and,

[0025] Figure 8 It is a structural block diagram of a terminal according to an embodiment of the present application. DETAILED DESCRIPTION

[0026] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0028] First, some nouns or terms that appear in the description of the embodiments of the present application are subject to the following interpretation:

[0029] TCP: Transmission Control Protocol (TCP) is a connection-oriented, reliable, byte stream-based transport layer communication protocol defined by IETF's RFC 793.

[0030] UDP: The Internet protocol suite supports a connectionless transport protocol called the User Datagram Protocol (UDP). UDP provides a way for applications to send encapsulated IP packets without establishing a connection.

[0031] FLV: It is an audio and video format commonly used in live broadcast scenes, an audio and video code stream encapsulation format. FLV is the abbreviation of FLASH VIDEO. FLV streaming media format is a video format developed with the launch of Flash MX. Because the files it forms are extremely small and the loading speed is extremely fast, it makes it possible to watch video files on the Internet. Its appearance effectively solves the problem that after the video files are imported into Flash, the exported SWF files become huge and cannot be used well on the Internet.

[0032] Software testing requires a mature testing framework, and there is no open source framework for streaming media testing. According to one aspect of the present application, an embodiment of a testing system for a streaming media scenario is provided.

[0033] Optionally, in this embodiment, the testing method of the streaming media scenario of the present application can be applied to Figure 1 The test system for the streaming media scenario shown in Figure 2 is shown in Figure 2. Figure 1 As shown, the streaming media framework client C (hereinafter referred to as client 11) is communicated with the live content distribution terminal CDN (hereinafter referred to as content distribution terminal 13), the live content distribution terminal CDN is communicated with the streaming media framework server S (hereinafter referred to as server 15), the streaming media framework server S is communicated with the streaming media framework data terminal D (hereinafter referred to as data terminal 17), and the streaming media framework data terminal D is communicated with the streaming media framework client C, wherein the streaming media framework server S and the streaming media framework data terminal D are distinguished from each other in terms of functions, and the two can also exist as one entity, namely, the test terminal.

[0034] The client is used to configure the configuration file to obtain the configuration information for testing the target service, and determine the test results based on the test data of the target service. The target service is used when transmitting the target media content between the client and the server. According to different test plans, the client pushes and pulls the stream to the live CDN node, the live CDN node organizes the data, and then obtains the basic information of the push stream from the data end.

[0035] The above-mentioned target media content is streaming media content. The client supports streaming media content in formats such as rtmp-flv and http-flv, and supports real-time parsing of various streaming media code streams such as flv (such as using TCP or UDP to receive binary data sent by the other end, and the bottom layer of the framework parses these binary data according to the flv standard). According to different scenario verifications, the client framework includes an assertion API design (the assertion API is the top-level encapsulation of the test framework. Its function is to continue executing if the program is normal until the execution is completed. If an error occurs in the middle of the execution, the execution is terminated immediately).

[0036] The content distribution end is connected to the client and the server for communication respectively, and is used to transmit the target media content between the client and the server according to the configuration information.

[0037] The main function of the content distribution end is to push and pull streams according to the configuration information. Pushing streams refers to the process of transmitting the packaged content in the client acquisition stage to the server, which is actually the process of transmitting the live video signal to the network. "Pushing streams" has relatively high requirements on the network. If the network is unstable, the live broadcast effect will be very poor, and the audience will experience freezes when watching the live broadcast, and the viewing experience is very bad. Pulling streams refers to the process of establishing a connection with the server and receiving data based on the protocol type (such as RTMP, RTP, RTSP, HTTP, etc.) when the server already has live content. The core processing of the pulling stream end is decoding and rendering on the player end. In interactive live broadcasts, functions such as chat rooms, likes and gift systems must also be integrated.

[0038] The server is used to obtain test data obtained by testing the target service when transmitting the target media content.

[0039] The server of the above streaming media test can support streaming media protocols such as rtmp-flv, http-flv, websocket-flv, and support protocol extension. It can encapsulate various protocols in the upper layer of the framework. As long as the bottom layer implements the upper layer call interface, most transmission protocols can be integrated, such as kcp, quic and other protocols.

[0040] Through the above technical solution, a testing system for streaming media scenarios is provided. During the test, the configuration file is configured in the client to obtain the configuration information for testing the target service, and the test result is determined according to the test data of the target service. There is no need to write a complete test plan every time a test is performed, and there is no need to manually collect relevant information. This can solve the technical problem of low efficiency in streaming media testing in related technologies, thereby achieving the technical effect of improving test efficiency.

[0041] Optionally, the system further includes: a data end, which is respectively connected to the server and the client for communication, and is used to store the test data reported by the server and return the test data according to the request of the client.

[0042] The above data end (i.e., streaming media framework data end) is used to provide streaming media data collection and integration services, collect the server's connection (TCP, UDP connection between server and client, or between clients), bitstream and other test data, and integrate them locally so that the client can obtain the results here according to different test plans and verify the test results. The above data end is only a functional description, which can exist as an independent hardware, or it can be integrated with the server (i.e., the test end).

[0043] During the test, the data end receives data reports from the server and data requests from the client. In terms of internal implementation logic, different customers have unique identifiers (unique_name), and each stream of each customer is identified by "identifier unique_name + application app name + stream name streamname". If client C wants to get the test results from the data end, it only needs to bring unique_name, app, and streamname parameters to get the corresponding case results.

[0044] Optionally, to facilitate configuration according to different testing schemes, the client includes: a first configuration module, the first configuration module is used to configure a first target address in a first address field of a configuration file or to configure a second target address in a second address field of the configuration file, the first target address is an address for receiving first media content sent by the client, the second target address is an address for the client to obtain second media content, and the target media content includes first media content and second media content.

[0045] Accordingly, the content distribution end may include: a streaming module, which is used to stream the first media content according to the first target address parsed from the configuration information; and a streaming module, which is used to stream the second media content to the client according to the second target address parsed from the configuration information.

[0046] The above solution is equivalent to providing templated push and pull stream codes. For example, if you want to conduct a live broadcast scenario test, anchor A pushes the stream, and audience B pulls the stream. During the test, you don't need to write test code to implement the function of "anchor A pushes the stream, and audience B pulls the stream". You only need to create a configuration file and complete this solution through a few simple commands. The code in the solution is automatically generated. For example, if you use the configuration item "publish": {"url":"rtmp: / / domain / app / name"} for configuration, the stream will be pushed with this configuration. "publish" means pushing the stream, and the "rtmp: / / domain / app / name" after "url" is the target address to which the content distribution end pushes the stream"; similarly, in the configuration item "pull": {"url":"http: / / domain / app / name? args=param", "pull" means pulling the stream, and the "http: / / domain / app / name? args=param" after "url" is the pull stream address of the content distribution end.

[0047] Optionally, the client includes: a second configuration module, the second configuration module is used to configure the first sub-content of the first media content as media content in a first format, and configure the second sub-content in the first media content as media content in a second format, wherein the first media content includes multiple sub-contents, the multiple sub-contents include a first sub-content and a second sub-content, and the first format and the second format are different types of media content formats.

[0048] The flv stream includes continuous audio and video tags. It can be understood that the main component of flv is a collection of continuous tags. The client supports the parsing of flv streams such as rtmp-flv, http-flv, https-flv, websocket-flv, etc., supports the production and generation of flv streams, and customizes tags in flv. Custom tags can be used to simulate flv stream anomalies. For example, a custom continuous video tag with an interval of 15 seconds and audio tag streams in the middle can be used to test the server's compatibility with this stream.

[0049] The server can be used to simulate a streaming media service cluster. In a streaming media service cluster, the cluster is mainly deployed according to three types of nodes: edge nodes, regional nodes, and source station nodes. Generally, there are two or three source station nodes as the primary and backup nodes. Edge nodes are mainly distributed in various places within the target range. Regional nodes are generally used as secondary nodes to relieve the pressure on source station nodes and are mainly deployed in major locations.

[0050] The server can be used as a simulated source station, upper layer, and simulated edge node of the live CDN. This can be achieved through configuration. The client may include: a third configuration module, which is used to configure the first information, the second information, and the third information in the configuration file. The first information is used to instruct the server to generate a simulated source node, the second information is used to instruct the server to generate a simulated edge node, and the third information is used to instruct the generation of a simulated intermediate node located between the simulated source node and the simulated edge node.

[0051] Correspondingly, the server includes: a simulated source node generated according to the first information in the configuration information; a simulated edge node generated according to the second information in the configuration information; and a simulated intermediate node generated according to the third information in the configuration information.

[0052] Simulated source station: It is also a streaming service, simulating the most basic push and pull streaming functions of the source station. Another important function of this source station is to collect and report information. In normal scenarios, the live CDN will interact with the source station for various services. When testing the live CDN, the live CDN will interact with the simulated source station. The simulated source station will collect various data parameters of the live CDN and report them to the server.

[0053] Upper layer: The live CDN strategy includes edge and upper layer. When pushing and pulling streams, the edge returns to the upper layer, and the upper layer returns to the source station. That is, if there is no data at the edge, it will return to the upper layer to pull it. If there is no data at the upper layer, it needs to return to the source.

[0054] Simulate edge nodes: Test the functional behavior of the framework CDN simulation node.

[0055] During the test, all functions implemented by the live CDN (also the functions to be tested) are triggered by the client. The live CDN will interact with the test source station, upper layer, edge and other nodes. While testing the source station, upper layer, edge and other nodes, it will collect interaction information and then report it to the data end. The client can get the processing results of these functions of the live CDN from the data end to determine whether the test has passed.

[0056] The server of streaming media is essentially a streaming media server that supports push and pull streams, and adds the data integration and reporting function of push and pull streams. In order to enable the server to support protocols such as rtmp-flv, http-flv, and support protocol extensions, such as kcp and quic, the server includes: a storage module for storing a protocol set, the protocol set includes multiple protocols, each protocol is used to represent the use of a transmission format to transmit the target media content between the server and the client; a protocol extension module, the protocol extension module is used to add, modify or delete protocols in the protocol set.

[0057] The server supports push and pull streams of conventional streaming media protocols such as rtmp, http / https, quic, and kcp. Push and pull stream requests generally come from live CDN services (the service being tested). After receiving the push and pull stream request, it will process a standard flv code stream, then collect basic information (i.e. test information), and report the information to the data end. The reported information can be customized, and generally includes the client or server's IP address, domain name, application app, stream name (streamname), client unique identifier (unique_name), push and pull stream protocol, carried parameters, etc. It can also include general fields of flv data streams, such as meta, whether the timestamp starts from 0, first frame audio and video information, etc.

[0058] According to different test requirements, the client pushes and pulls the stream to the live CDN node. The live CDN node organizes the data and then obtains the basic information of the push stream from the data end D. In order to enable the client to support rtmp-flv, http-flv, and support real-time parsing of flv code streams, the client includes: a decoding module, which is used to use a decoder that matches the transmission format of the received media content to decode the media content in real time.

[0059] Figure 2is a flow chart of an optional testing method for a streaming media scenario according to an embodiment of the present application, which is applied to a client, such as Figure 2 As shown, the method may include the following steps:

[0060] Step S202: configuring the configuration file to obtain configuration information for testing a target service, where the target service is used when transmitting target media content between the client and the test end.

[0061] Step S204: transmitting the target media content between the client and the test end according to the configuration information.

[0062] Optionally, transmitting the target media content between the client and the test end according to the configuration information includes: transmitting the target media content between the client and the server according to the configuration information, wherein the test end includes the server.

[0063] Step S206, determining a test result according to the test data of the target service, where the test data is data obtained by testing the target service when transmitting the target media content.

[0064] Optionally, before determining the test result based on the test data of the target service, the test data may be obtained from the data end, wherein the data end is used to store the test data reported by the server end and return the test data according to the request of the client end, and the test end includes the data end.

[0065] For example, the client triggers a task, and the live CDN implements the task. The execution information of the task will be aggregated to the data end through the simulated source station, simulated upper layer, and simulated edge. Finally, the client goes to the data segment to get the execution result, and then the client judges whether it is successful based on the result.

[0066] Figure 3 is a flow chart of an optional testing method for a streaming media scenario according to an embodiment of the present application, which is applied to a content distribution terminal, such as Figure 3 As shown, the method may include the following steps:

[0067] Step S302, obtaining configuration information, which is information used to test the target service obtained by the client configuring the configuration file. The target service is used when transmitting target media content between the client and the test end. The client is used to determine the test result based on the test data obtained by testing the target service.

[0068] Step S304: transmitting the target media content between the client and the test end according to the configuration information.

[0069] Figure 4 is a flow chart of an optional streaming media scenario testing method according to an embodiment of the present application, which is applied to a test terminal, such as Figure 4As shown, the method may include the following steps:

[0070] Step S402: transmitting the target media content between the client and the test end according to the configuration information. The configuration information is information obtained by the client configuring the configuration file for testing the target service. The target service is used when transmitting the target media content between the client and the test end.

[0071] Optionally, transmitting the target media content between the client and the test end according to the configuration information includes: transmitting the target media content between the client and the server according to the configuration information, wherein the test end includes the server.

[0072] Step S404: sending test data obtained by testing the target service when transmitting the target media content to the client, and the client is used to determine the test result according to the test data.

[0073] Optionally, sending test data obtained by testing the target service when transmitting the target media content to the client includes: saving the test data reported by the server on the data end, and returning the test data according to the client's request, wherein the test end includes the data end.

[0074] As an optional embodiment, the technical solution of the present application is described in detail below in conjunction with specific implementation methods.

[0075] Scenario 1: When the live CDN is used to pull the stream back to a competitor, it is necessary to test whether the authentication parameters carried in the return source are correct and whether the return source is parallel.

[0076] Client C initiates live CDN streaming, triggering the live CDN parallel back-to-source logic. The live CDN back-to-frame server S streams. Server S records each request from the live CDN (including request URL, request parameters, time to establish TCP connection, etc.). Server S then uploads the recorded data to data terminal D. The client then goes to data terminal D to obtain the data, and determines whether it is a parallel back-to-source and whether the authentication parameters of the request are correct. Server S can simulate various abnormal streaming scenarios, such as the first frame sent by server S is video / audio, a stuck stream is sent, or a stream with discontinuous timestamps is sent.

[0077] Scenario 2: Live CDN pushes the stream to friendly companies.

[0078] Client C initiates a live CDN push request, triggering the live CDN forwarding logic. The live CDN forwards to the framework server S. The server S records the request information for each push (request URL, time to establish TCP connection, check whether the tag information of the push flv is correct, etc.), and then S uploads the recorded data to the data terminal D. The client then goes to the data terminal D to obtain this data, and then determines whether the live CDN forwarding is normal. The server S can simulate various push abnormal scenarios, such as simulating RTMP not responding to the publisher's streamBegin signaling, RTMP handshake failure, etc.

[0079] Scenario 3: The live CDN initiates a streaming authentication request to the external interface.

[0080] The client initiates a streaming request to the live CDN, and the live CDN initiates an authentication request to the framework server S. The server S records the request URL, request times, and time of the live CDN, and then reports to the data D. The data D summarizes the information, and the client C goes to the data D to obtain this information, and judges whether the authentication request of the live CDN is abnormal based on this information. The framework server S can simulate interface response exceptions, failure to establish a connection, authentication failure, error status code (500, 400, 404), etc. These abnormal scenarios are used to test whether the business logic of the live CDN is normal when the interface is abnormal.

[0081] The technical solution of this application provides a complete and universal streaming media testing framework that can cover most of the business scenarios of streaming media server testing, can implement business testing based on the customer's actual usage scenarios, and can be developed completely in accordance with customer needs. Based on this framework, there will be no problem that the test solution is run but the actual business scenario is not tested. In the solution, the data of the streaming media server S is integrated and reported to the data terminal D. The client C can only obtain the results from the data terminal D if it wants to get them.

[0082] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0083] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0084] According to another aspect of an embodiment of the present application, a testing device for a streaming media scenario for implementing the above-mentioned testing method for a streaming media scenario is also provided. Figure 5 is a schematic diagram of a test device for an optional streaming media scenario according to an embodiment of the present application, which is applied to a client, such as Figure 5 As shown, the device may include:

[0085] A configuration unit 501 is used to configure a configuration file to obtain configuration information for testing a target service, wherein the target service is used when transmitting target media content between the client and the test end;

[0086] A first transmission unit 503, configured to transmit the target media content between the client and the test end according to the configuration information;

[0087] The testing unit 505 is configured to determine a test result according to test data of the target service, wherein the test data is data obtained by testing the target service when transmitting the target media content.

[0088] Optionally, the first transmission unit may also be used to: transmit the target media content between the client and the server according to the configuration information, wherein the test end includes the server.

[0089] Optionally, the test unit can also be used to: obtain the test data from the data end before determining the test result based on the test data of the target service, wherein the data end is used to save the test data reported by the server end and return the test data according to the request of the client, and the test end includes the data end.

[0090] According to another aspect of an embodiment of the present application, a testing device for a streaming media scenario for implementing the above-mentioned testing method for a streaming media scenario is also provided. Figure 6 is a schematic diagram of a test device for an optional streaming media scenario according to an embodiment of the present application, which is applied to a content distribution end, such as Figure 6As shown, the device may include:

[0091] The acquisition unit 601 is used to acquire configuration information, wherein the configuration information is information for testing a target service obtained by the client configuring a configuration file, the target service is used when transmitting target media content between the client and the test end, and the client is used to determine a test result based on test data obtained by testing the target service.

[0092] The second transmission unit 603 is configured to transmit the target media content between the client and the test end according to the configuration information.

[0093] According to another aspect of an embodiment of the present application, a testing device for a streaming media scenario for implementing the above-mentioned testing method for a streaming media scenario is also provided. Figure 7 is a schematic diagram of a test device for an optional streaming media scenario according to an embodiment of the present application, which is applied to a test terminal, such as Figure 7 As shown, the device may include:

[0094] The third transmission unit 701 is used to transmit the target media content between the client and the test end according to the configuration information, wherein the configuration information is information for testing the target service obtained by the client configuring the configuration file, and the target service is used when transmitting the target media content between the client and the test end.

[0095] Optionally, the third transmission unit may also be used to: transmit the target media content between the client and the server according to the configuration information, wherein the test end includes the server.

[0096] The sending unit 703 is configured to send test data obtained by testing the target service when transmitting the target media content to the client, wherein the client is configured to determine a test result according to the test data.

[0097] Optionally, the sending unit may also be configured to save the test data reported by the server end on the data end, and return the test data according to the request of the client end, wherein the test end includes the data end.

[0098] It should be noted that the examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the contents disclosed in the above embodiments. It should be noted that the above modules as part of the device can be run in Figure 1 In the hardware environment shown, it can be implemented by software or by hardware, wherein the hardware environment includes a network environment.

[0099] According to another aspect of an embodiment of the present application, a server or terminal for implementing the above-mentioned testing method for the streaming media scenario is also provided.

[0100] Figure 8 is a structural block diagram of a terminal according to an embodiment of the present application, such as Figure 8 As shown, the terminal may include: one or more ( Figure 8 (only one is shown) processor 801, memory 803, and transmission device 805, as shown in Figure 8 As shown, the terminal may also include an input and output device 807.

[0101] Among them, the memory 803 can be used to store software programs and modules, such as the program instructions / modules corresponding to the test method and device of the streaming media scene in the embodiment of the present application, and the processor 801 executes various functional applications and data processing by running the software programs and modules stored in the memory 803, that is, realizing the test method of the streaming media scene mentioned above. The memory 803 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 803 may further include a memory remotely arranged relative to the processor 801, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0102] The above-mentioned transmission device 805 is used to receive or send data via a network, and can also be used for data transmission between a processor and a memory. Specific examples of the above-mentioned network may include a wired network and a wireless network. In one example, the transmission device 805 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 805 is a radio frequency (Radio Frequency, RF) module, which is used to communicate with the Internet wirelessly.

[0103] Specifically, the memory 803 is used to store application programs.

[0104] The processor 801 may call the application stored in the memory 803 through the transmission device 805 to perform the following steps:

[0105] Configuring the configuration file to obtain configuration information for testing a target service, wherein the target service is used when transmitting target media content between the client and the test end;

[0106] Transmitting the target media content between the client and the test end according to the configuration information;

[0107] A test result is determined according to test data of the target service, wherein the test data is data obtained by testing the target service when transmitting the target media content.

[0108] The processor 801 is further configured to execute the following steps:

[0109] Acquire configuration information, wherein the configuration information is information obtained by the client configuring a configuration file for testing a target service, the target service is used when transmitting target media content between the client and the test end, and the client is used to determine a test result based on test data obtained by testing the target service;

[0110] The target media content is transmitted between the client and the test end according to the configuration information.

[0111] The processor 801 is further configured to execute the following steps:

[0112] Transmitting target media content between the client and the test end according to configuration information, wherein the configuration information is information for testing a target service obtained by the client configuring a configuration file, and the target service is used when transmitting the target media content between the client and the test end;

[0113] The test data obtained by testing the target service when transmitting the target media content is sent to the client, wherein the client is used to determine the test result according to the test data.

[0114] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment will not be described in detail here.

[0115] It can be understood by those skilled in the art that Figure 8 The structure shown is for illustration only, and the terminal may be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, MID), a PAD, or other terminal devices. Figure 8 It does not limit the structure of the above electronic device. For example, the terminal may also include Figure 8 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Figure 8 Different configurations shown.

[0116] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0117] The embodiment of the present application further provides a storage medium. Optionally, in this embodiment, the storage medium can be used to execute the program code of the test method for the streaming media scenario.

[0118] Optionally, in this embodiment, the storage medium may be located on at least one network device among a plurality of network devices in the network shown in the above embodiment.

[0119] Optionally, in this embodiment, the storage medium is configured to store program codes for executing the following steps:

[0120] Configuring the configuration file to obtain configuration information for testing a target service, wherein the target service is used when transmitting target media content between the client and the test end;

[0121] Transmitting the target media content between the client and the test end according to the configuration information;

[0122] A test result is determined according to test data of the target service, wherein the test data is data obtained by testing the target service when transmitting the target media content.

[0123] Optionally, the storage medium is further configured to store program codes for executing the following steps:

[0124] Acquire configuration information, wherein the configuration information is information obtained by the client configuring a configuration file for testing a target service, the target service is used when transmitting target media content between the client and the test end, and the client is used to determine a test result based on test data obtained by testing the target service;

[0125] The target media content is transmitted between the client and the test end according to the configuration information.

[0126] Optionally, the storage medium is further configured to store program codes for executing the following steps:

[0127] Transmitting target media content between the client and the test end according to configuration information, wherein the configuration information is information for testing a target service obtained by the client configuring a configuration file, and the target service is used when transmitting the target media content between the client and the test end;

[0128] The test data obtained by testing the target service when transmitting the target media content is sent to the client, wherein the client is used to determine the test result according to the test data.

[0129] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment will not be described in detail here.

[0130] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.

[0131] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0132] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.

[0133] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0134] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0135] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0136] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0137] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A testing system for a streaming media scenario, characterized in that: The test system includes a client, a content distribution end and a server, wherein: The client is used to configure the configuration file to obtain configuration information for testing a target service, and determine a test result according to test data of the target service, wherein the target service is used when transmitting target media content between the client and the server, and the configuration information is information for testing the target service obtained by the client configuring the configuration file, and the configuration information includes a first target address or a second target address, the first target address is an address for receiving first media content sent by the client, the second target address is an address for the client to obtain second media content, and the target media content includes the first media content and the second media content; The content distribution end is respectively connected to the client and the server for communication, and the content distribution end is used to transmit the target media content between the client and the server according to the configuration information; The server is used to obtain the test data obtained by testing the target service when transmitting the target media content.

2. The system according to claim 1, characterized in that The system further comprises: A data end, wherein the data end is respectively connected to the server end and the client end for communication, and the data end is used to store the test data reported by the server end and return the test data according to the request of the client end.

3. The system according to claim 1, characterized in that The client comprises: A first configuration module, the first configuration module is used to configure a first target address in a first address field of the configuration file or to configure a second target address in a second address field of the configuration file, wherein the first target address is an address for receiving first media content sent by the client, the second target address is an address for the client to obtain second media content, and the target media content includes the first media content and the second media content.

4. The system according to claim 3, characterized in that The content distribution end includes: A streaming module, configured to stream the first media content according to the first target address parsed from the configuration information; A stream pulling module, the stream pulling module is used to pull the second media content to the client according to the second target address parsed from the configuration information.

5. The system according to claim 3, characterized in that The client comprises: A second configuration module, the second configuration module is used to configure the first sub-content of the first media content as media content in a first format, and configure the second sub-content in the first media content as media content in a second format, wherein the first media content includes multiple sub-contents, the multiple sub-contents include the first sub-content and the second sub-content, and the first format and the second format are different types of media content formats.

6. The system according to claim 1, characterized in that The client comprises: A third configuration module, the third configuration module is used to configure first information, second information and third information in the configuration file, the first information is used to instruct the server to generate a simulated source node, the second information is used to instruct the server to generate a simulated edge node, and the third information is used to instruct the generation of a simulated intermediate node located between the simulated source node and the simulated edge node.

7. The system according to claim 6, characterized in that The server includes: The simulated source node generated according to the first information in the configuration information; The simulated edge node generated according to the second information in the configuration information; The simulated intermediate node is generated according to the third information in the configuration information.

8. The system according to claim 1, characterized in that The server includes: A storage module for storing a protocol set, wherein the protocol set includes a plurality of protocols, each protocol being used to indicate that a transmission format is used to transmit the target media content between the server and the client; A protocol extension module, wherein the protocol extension module is used to add, modify or delete protocols in the protocol set.

9. The system according to claim 1, characterized in that The client comprises: A decoding module is used to decode the media content in real time using a decoder that matches the transmission format of the received media content.

10. A method for testing a streaming media scenario, characterized in that: Applied to a client, the method comprises: Configuring the configuration file to obtain configuration information for testing a target service, wherein the target service is used when transmitting target media content between the client and the test end, the configuration information is information for testing the target service obtained by the client configuring the configuration file, the configuration information includes a first target address or a second target address, the first target address is an address for receiving first media content sent by the client, the second target address is an address for the client to obtain second media content, and the target media content includes the first media content and the second media content; Transmitting the target media content between the client and the test end according to the configuration information, the test end including the server; A test result is determined according to test data of the target service, wherein the test data is data obtained by the server end when testing the target service while transmitting the target media content.

11. The method according to claim 10, characterized in that Transmitting the target media content between the client and the test end according to the configuration information includes: transmitting the target media content between the client and the server according to the configuration information, wherein the test end includes the server; Before determining the test result based on the test data of the target service, the method also includes: obtaining the test data from a data end, wherein the data end is used to store the test data reported by the server end and return the test data according to the request of the client, and the test end includes the data end.

12. A method for testing a streaming media scenario, characterized in that: Applied to a content distribution terminal, the method comprises: Acquire configuration information, wherein the configuration information is information for testing a target service obtained by configuring a configuration file by a client, the configuration information includes a first target address or a second target address, the first target address is an address for receiving a first media content sent by the client, the second target address is an address for the client to obtain a second media content, the target media content includes the first media content and the second media content, the target service is used when transmitting the target media content between the client and the test end, and the client is used to determine a test result according to test data obtained by testing the target service; The target media content is transmitted between the client and the test end according to the configuration information, and the test end includes a server end, and the server end is used to obtain the test data obtained by testing the target service when transmitting the target media content.

13. A method for testing a streaming media scenario, characterized in that: Applied to the test end, the method includes: The target media content is transmitted between the client and the test end according to the configuration information, wherein the configuration information is information obtained by the client configuring the configuration file for testing the target service, the configuration information includes a first target address or a second target address, the first target address is an address for receiving the first media content sent by the client, the second target address is an address for the client to obtain the second media content, the target media content includes the first media content and the second media content, the target service is used when the target media content is transmitted between the client and the test end, and the test end includes a server; The test data obtained by the server end testing the target service when transmitting the target media content is sent to the client end, wherein the client end is used to determine the test result according to the test data.

14. The method according to claim 13, characterized in that Transmitting the target media content between the client and the test end according to the configuration information includes: transmitting the target media content between the client and the server according to the configuration information, wherein the test end includes the server; Sending the test data obtained by testing the target service when transmitting the target media content to the client includes: saving the test data reported by the service end on the data end, and returning the test data according to the request of the client, wherein the test end includes the data end.

15. A testing device for a streaming media scene, characterized in that: Applied to a client, the device comprises: a configuration unit, configured to configure a configuration file to obtain configuration information for testing a target service, wherein the target service is used when transmitting target media content between the client and the test end, the configuration information is information for testing the target service obtained by the client configuring the configuration file, the configuration information includes a first target address or a second target address, the first target address is an address for receiving first media content sent by the client, the second target address is an address for the client to obtain second media content, and the target media content includes the first media content and the second media content; A first transmission unit, configured to transmit the target media content between the client and the test end according to the configuration information, wherein the test end includes a server; The testing unit is used to determine a test result according to the test data of the target service, wherein the test data is data obtained by the server end testing the target service when transmitting the target media content.

16. A testing device for a streaming media scene, characterized in that: Applied to a content distribution terminal, the device comprises: an acquisition unit, configured to acquire configuration information, wherein the configuration information is information for testing a target service obtained by configuring a configuration file by a client, the configuration information includes a first target address or a second target address, the first target address is an address for receiving a first media content sent by the client, the second target address is an address for the client to obtain a second media content, the target media content includes the first media content and the second media content, the target service is used when transmitting the target media content between the client and the test end, and the client is used to determine a test result according to test data obtained by testing the target service; The second transmission unit is used to transmit the target media content between the client and the test end according to the configuration information, and the test end includes a server end, and the server end is used to obtain the test data obtained by testing the target service when transmitting the target media content.

17. A testing device for a streaming media scene, characterized in that: Applied to the test end, the device comprises: A third transmission unit is configured to transmit target media content between the client and the test end according to configuration information, wherein the configuration information is information obtained by the client configuring the configuration file for testing a target service, the configuration information includes a first target address or a second target address, the first target address is an address for receiving first media content sent by the client, the second target address is an address for the client to obtain second media content, the target media content includes the first media content and the second media content, the target service is used when transmitting the target media content between the client and the test end, and the test end includes a server; The sending unit is used to send test data obtained by the server end testing the target service when transmitting the target media content to the client end, wherein the client end is used to determine a test result according to the test data.

18. A storage medium, characterized in that: The storage medium includes a stored program, wherein the program executes the method described in any one of claims 10 to 14 when executed.

19. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: The processor executes the method described in any one of claims 10 to 14 through the computer program.