Live-streaming test method and apparatus, and device and storage medium
Live testing is realized through the remote call interface. The test end sends requests to the live broadcast end and verifies data, solving the problems of insufficient stability and frequent updates in the existing technology, improving the stability of the test and reducing costs.
Patent Information
- Application Number
- PCT/CN2024/140083
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-12-29
- Filing Date
- 2024-12-17
- Publication Date
- 2025-07-03
AI Technical Summary
The existing live broadcast testing scheme is insufficient stability, and with the update of live broadcast applications, the testing logic needs to be updated frequently, which is costly.
The test of the live broadcast scenario is realized through the remote call interface (RPC). The test end sends a live broadcast test request to the live broadcast end, the live broadcast end performs corresponding operations, and returns the test data. The test end verifies the data to obtain the test results.
It improves the stability and reliability of live testing and reduces the cost of frequent updates of test logic.
Smart Images

Figure CN2024140083_03072025_PF_FP_ABST
Abstract
Description
Live broadcast test method, device, equipment and storage medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to the Chinese patent application filed on December 29, 2023, with application number 202311865122.2 and invention name “Live broadcast testing method, device, equipment and storage medium”. The entire contents of that application are incorporated by reference into this application. Technical Field
[0003] The embodiments of the present disclosure relate to the field of live broadcast technology, and in particular to a live broadcast testing method, apparatus, device, and storage medium. Background Art
[0004] When testing live broadcast scenarios, since it is necessary to test the host's broadcasting process and the audience's viewing process, multiple machines need to collaborate to complete the testing of the entire live broadcast scenario. Summary of the Invention
[0005] The embodiments of the present disclosure provide a live broadcast test method, apparatus, device, and storage medium, which implement testing of live broadcast scenarios by sending test requests through a remote calling interface, thereby improving the stability and reliability of the live broadcast test.
[0006] In a first aspect, an embodiment of the present disclosure provides a live broadcast testing method, which is performed by a testing terminal and includes:
[0007] Sending a live broadcast test request to the live broadcast end, so that the live broadcast end performs a corresponding live broadcast test operation based on the live broadcast test request;
[0008] Receive the live broadcast test data returned by the live broadcast end, verify the live broadcast test data, and obtain the live broadcast test result.
[0009] In a second aspect, an embodiment of the present disclosure further provides a live broadcast testing method, which is executed by a live broadcast terminal and includes:
[0010] Receive a live test request sent by the test end, and perform corresponding live test operations according to the live test request;
[0011] Acquiring live broadcast test data during the execution of the live broadcast test operation;
[0012] The live broadcast test data is sent to the test end, so that the test end verifies the live broadcast test data and obtains a test result.
[0013] In a third aspect, an embodiment of the present disclosure further provides a live broadcast test device, which is provided in a test terminal and includes:
[0014] A live broadcast test request sending module, configured to send a live broadcast test request to a live broadcast terminal, so that the live broadcast terminal performs a corresponding live broadcast test operation based on the live broadcast test request;
[0015] The live broadcast test result acquisition module is used to receive the live broadcast test data returned by the live broadcast end, and verify the live broadcast test data to obtain the live broadcast test result.
[0016] In a fourth aspect, an embodiment of the present disclosure further provides a live broadcast test device, which is provided in a live broadcast terminal and includes:
[0017] A live test request receiving module is used to receive a live test request sent by the test end and perform corresponding live test operations according to the live test request;
[0018] A live test data acquisition module, used to acquire live test data during the execution of the live test operation;
[0019] The live test data sending module is used to send the live test data to the test end, so that the test end verifies the live test data and obtains a test result.
[0020] In a fifth aspect, an embodiment of the present disclosure provides an electronic device, the electronic device comprising:
[0021] one or more processors;
[0022] a storage device for storing one or more programs,
[0023] When the one or more programs are executed by the one or more processors, the one or more processors implement the live broadcast testing method as described in the embodiment of the present disclosure.
[0024] In a sixth aspect, an embodiment of the present disclosure provides a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to execute the live broadcast test method as described in the embodiment of the present disclosure.
[0025] The embodiments of the present disclosure disclose a live broadcast test method, apparatus, device and storage medium. The method includes: sending a live broadcast test request to a live broadcast end, so that the live broadcast end performs a corresponding live broadcast test operation based on the live broadcast test request; receiving live broadcast test data returned by the live broadcast end, and verifying the live broadcast test data to obtain a live broadcast test result. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The above and other features, advantages, and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that the originals and elements are not necessarily drawn to scale.
[0027] FIG1 is a schematic structural diagram of a live broadcast test system provided by an embodiment of the present disclosure;
[0028] FIG2 is a flow chart of a live broadcast testing method provided by an embodiment of the present disclosure;
[0029] FIG3 is a signaling diagram of a live broadcast test process provided by an embodiment of the present disclosure;
[0030] FIG4 is a signaling diagram of a live broadcast test process provided by an embodiment of the present disclosure;
[0031] FIG5 is a flow chart of a live broadcast testing method provided by an embodiment of the present disclosure;
[0032] FIG6 is a structural diagram of a live broadcast test device provided by an embodiment of the present disclosure;
[0033] FIG7 is a structural diagram of a live broadcast test device provided by an embodiment of the present disclosure;
[0034] FIG8 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0035] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.
[0036] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0037] As used herein, the term "including" and its variations are open-ended, i.e., "including but not limited to." The term "based on" means "based, at least in part, on." The term "one embodiment" means "at least one embodiment," the term "another embodiment" means "at least one additional embodiment," and the term "some embodiments" means "at least some embodiments." Other terms are defined in the following description.
[0038] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0039] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".
[0040] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0041] It is understandable that before using the technical solutions disclosed in the various embodiments of this disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved in this disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0042] For example, in response to a user's active request, a prompt message is sent to the user to clearly inform the user that the operation requested will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the electronic device, application, server, storage medium, or other software or hardware that performs the operations of the disclosed technical solution based on the prompt message.
[0043] As an optional but non-limiting implementation, in response to receiving a user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. Furthermore, the pop-up window may also contain a selection control for the user to select "agree" or "disagree" to provide personal information to the electronic device.
[0044] It is understandable that the above notification and user authorization process are merely illustrative and do not limit the implementation of the present disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0045] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) must comply with the requirements of relevant laws, regulations and relevant provisions.
[0046] The existing testing solution is not stable enough, and as the live broadcast application is updated, the test logic also needs to be updated frequently, which is costly.
[0047] FIG1 is a schematic diagram of the structure of a live broadcast test system in an embodiment of the present disclosure. As shown in FIG1 , the system includes a test terminal, at least one live broadcast terminal, and a service terminal. The test terminal and the live broadcast terminal exchange data through a remote procedure call interface (RPC).
[0048] Among them, the test end is used to write test scripts. It is the requester of the RPC interface. It sends a live test request to the live broadcast end by scheduling the RPC interface of the live broadcast end, so that the live broadcast end performs live test operations, such as: creating a live broadcast room, entering a live broadcast room, etc. The live broadcast end can be understood as a terminal that installs and runs a live broadcast application. As the responder of the live broadcast test request, it provides live broadcast testing capabilities. In this embodiment, the live broadcast end includes a test library, which is used in the test scenario. An RPC interface can be implemented in the test library. When the live broadcast APP is started, the RPC interface is automatically started. In addition, a live broadcast test code corresponding to the live broadcast test request is registered in the test library. By calling the live broadcast test code, the corresponding test operation can be executed, such as: starting the broadcast operation, entering the live broadcast room, etc. The server is used to receive the live broadcast test request sent by the test end and the data request sent by the live broadcast end, and the live broadcast scene is tested by sending live broadcast data to the live broadcast end.
[0049] Figure 2 is a flow chart of a live broadcast test method provided by an embodiment of the present disclosure. The embodiment of the present disclosure is applicable to situations where a live broadcast scene is tested. The method can be executed by a live broadcast test device, which can be implemented in the form of software and / or hardware. Optionally, it can be implemented by an electronic device, which can be a mobile terminal, a PC or a server, etc. The electronic device can be understood as a test terminal.
[0050] As shown in FIG1 , the method includes:
[0051] S110, sending a live broadcast test request to the live broadcast end, so that the live broadcast end performs a corresponding live broadcast test operation based on the live broadcast test request.
[0052] The live broadcast end may include the host end and / or the audience end. Live broadcast test requests may include: a broadcast start test request, a live broadcast room entry request, a view component operation request, and other test requests related to the live broadcast operation process. In this embodiment, the process of the test end sending a live broadcast test request to the live broadcast end may be: first calling a pre-configured RPC interface in the live broadcast end, and then sending the live broadcast test request to the live broadcast end through the RPC interface. After receiving the live broadcast test request, the live broadcast end calls the live broadcast test code corresponding to the live broadcast test request from the pre-created test library, and then runs the live broadcast test code to perform the corresponding live broadcast test operation.
[0053] Optionally, the process of sending a live broadcast test request to the live broadcast end so that the live broadcast end performs a corresponding live broadcast test operation based on the live broadcast test request can be: sending a start-up test request to the anchor end so that the anchor end performs a start-up operation according to the start-up test request; receiving the start-up success information and the live broadcast room identifier returned by the anchor end, and generating a request to enter the live broadcast room according to the live broadcast room identifier; sending a request to enter the live broadcast room to the audience end so that the audience end enters the live broadcast room according to the request to enter the live broadcast room.
[0054] Among them, the broadcast operation may include operations such as creating a live broadcast room and starting a live broadcast. In this embodiment, the test end first sends a broadcast test request to the anchor end through the RPC interface. The anchor end calls the broadcast test code according to the broadcast test request, executes the broadcast operation by running the broadcast test code, and sends the broadcast success information and the live broadcast room identifier to the test end. After receiving the broadcast success information and the live broadcast room identifier, the test end generates a request to enter the live broadcast room according to the live broadcast room identifier, and sends the request to enter the live broadcast room to at least one audience end. The at least one audience end runs the corresponding test code to enter the live broadcast room according to the received request to enter the live broadcast room, executes the operation to enter the live broadcast room, and returns the information of successful entry into the live broadcast room to the test end. For example, Figure 3 is a signaling diagram of a live broadcast test process in this embodiment. As shown in Figure 3, the process is as follows: 1. The test end sends a broadcast test request to the host end; 2. The host end returns a broadcast success message and the live broadcast room identifier to the test end; 3. The test end sends a live broadcast room entry request with the live broadcast room identifier to viewer end 1 and viewer end 2; 4. Viewer end 1 returns a live broadcast room entry success message to the test end; 5. Viewer end 2 returns a live broadcast room entry success message to the test end. In this embodiment, the live broadcast test method sends a live broadcast room entry request to the viewer end after the host end successfully starts broadcasting, ensuring the timing of the multi-machine collaborative test.
[0055] Optionally, after receiving the broadcast success information and live broadcast room identifier returned by the anchor end, the following steps are also included: sending view component operation requests to the live broadcast end in sequence according to the set order, so that the live broadcast end operates the corresponding view components in sequence according to the view component operation requests; or, sending a view component operation request to the live broadcast end, so that the live broadcast end calls the view component automatic operation logic according to the view component operation request, and operates the corresponding view components in sequence according to the view component automatic operation logic.
[0056] In this embodiment, a corresponding view component test script can be created on the test end according to the triggering operation of the view component during the live broadcast process, and then the view component test script can be run in sequence according to the operation sequence of each view component (also called the operation link), thereby generating a view component operation request, and these view component operation requests are sent to the live broadcast end in sequence according to the operation sequence, so that the live broadcast end operates the corresponding view component in sequence according to the view component operation request, thereby realizing the test of the view component operation.
[0057] In this embodiment, the view component automatic operation logic can also be generated in the live broadcast end according to the view component position on the operation link during the live broadcast process. After receiving the view component operation request sent by the test end, the live broadcast end calls the view component automatic operation logic to operate the corresponding view components in sequence.
[0058] Optionally, after receiving the broadcast success information and live broadcast room identifier returned by the anchor end, the following steps are also included: sending a message test request to the server end, so that the server end sends a live broadcast message to the live broadcast end according to the message test request to test the message volume.
[0059] Among them, the message test request carries the live broadcast room identifier. After receiving the message test request, the server sends a large number of live broadcast messages to the live broadcast room corresponding to the live broadcast room identifier according to the message test request to test the live broadcast room's ability to withstand the message volume.
[0060] Optionally, after sending a request to enter the live broadcast room to the audience end, so that the audience end enters the live broadcast room according to the request to enter the live broadcast room, the following steps are also included: sending a request to close the live broadcast to the anchor end, so that the anchor end closes the live broadcast according to the request to close the live broadcast; sending a request to exit the live broadcast room to the audience end, so that the audience end exits the live broadcast room according to the request to exit the live broadcast.
[0061] In this embodiment, a live broadcast closing request is sent to the anchor end to test the live broadcast closing function, and a live broadcast exit request is sent to the viewer end to test the live broadcast exit function.
[0062] S120, receiving the live broadcast test data returned by the live broadcast end, and verifying the live broadcast test data to obtain the live broadcast test result.
[0063] The live broadcast test data may include live broadcast service data and / or live broadcast performance data generated by the live broadcast terminal during the live broadcast test operation. The live broadcast service data may include service data generated during the live broadcast test, such as interactive data in the live broadcast room, specifically the number of likes in the live broadcast room; and live broadcast performance data may be data reflecting live broadcast performance, such as memory utilization. In this embodiment, the live broadcast terminal may determine the live broadcast service data and live broadcast performance data during the live broadcast test and store the determined live broadcast service data and live broadcast performance data.
[0064] Specifically, the process of receiving the live test data returned by the live broadcast end may include: the test end sends a test data request to the live broadcast end; the live broadcast end queries the live test data based on the test data request and sends the retrieved live test data to the test end. After receiving the live test data, the test end verifies the live test data to obtain a live test result. In this embodiment, the verification method for the live test data is not limited.
[0065] For example, Figure 4 is a signaling diagram of a live broadcast test process in an embodiment of the present disclosure. As shown in Figure 4, the process is as follows: 1. The test end sends a broadcast test request to the anchor end; 2. The anchor end returns a broadcast success message and a live broadcast room identifier to the test end; 3. The test end sends a live broadcast room entry request with a live broadcast room identifier to the audience end 1 and the audience end 2; 4. The audience end 1 and the audience end 2 return a live broadcast room entry success message to the test end; 5. The test end sends a view component operation request to the anchor end, the audience end 1 and the audience end 2 respectively; 6. The test end sends a message test request to the server end; 7. The server end responds to the message test request. 1. The host side sends a live broadcast message; 2. The host side, audience side 1 and audience side 2 determine the live broadcast test data during the entire live broadcast test process; 3. The test side sends a live broadcast closing request to the host side; 4. The test side sends a live broadcast exit request to audience side 1 and audience side 2; 5. The test side sends a live broadcast test data request to the host side, audience side 1 and audience side 2 respectively; 6. The host side, audience side 1 and audience side 2 return the live broadcast test data to the test side; 7. The test side verifies the live broadcast test data and obtains the test results.
[0066] The technical solution of the disclosed embodiments sends a live test request to the live broadcast terminal, causing the live broadcast terminal to perform corresponding live test operations based on the live test request; receives live test data returned by the live broadcast terminal, and verifies the live test data to obtain live test results. The live broadcast test method provided by the disclosed embodiments uses the method of sending a live test request from the test terminal to the live broadcast terminal to test the live broadcast scenario, which can improve the stability and reliability of the live broadcast test.
[0067] Figure 5 is a flowchart of a live broadcast test method provided by an embodiment of the present disclosure. The embodiment of the present disclosure is applicable to the situation of testing live broadcast scenarios. The method can be executed by a live broadcast test device, which can be implemented in the form of software and / or hardware. Optionally, it can be implemented by an electronic device, which can be a mobile terminal, PC, or server, etc. The electronic device can be understood as a host terminal or an audience terminal. As shown in Figure 5, the method includes the following steps:
[0068] S210: Receive a live broadcast test request sent by the test end, and perform corresponding live broadcast test operations according to the live broadcast test request.
[0069] The live broadcast terminal can receive live broadcast test requests through the RPC interface. Live broadcast test requests may include: start test requests, live broadcast room entry requests, view component operation requests, and other test requests related to the live broadcast operation process. The process of executing corresponding live broadcast test operations based on live broadcast test requests can be found in the above embodiment and will not be repeated here.
[0070] Specifically, if the live broadcast end is the host end, the method for receiving the live broadcast test request sent by the test end and performing the corresponding live broadcast test operation based on the live broadcast test request may be: receiving the start test request sent by the test end, performing the start operation based on the start test request, and returning a start success message and a live broadcast room identifier to the test end. The specific process is described in the above embodiment and will not be repeated here.
[0071] Specifically, if the live broadcast end is the audience end, the process of receiving the live broadcast test request sent by the test end and performing the corresponding live broadcast test operation according to the live broadcast test request can be: receiving the request to enter the live broadcast room sent by the test end; wherein the request to enter the live broadcast room carries the live broadcast room identifier; entering the live broadcast room according to the request to enter the live broadcast room.
[0072] Specifically, the process of receiving a live test request sent by the test end and performing corresponding live test operations according to the live test request can be: receiving view component operation requests sent by the test end in a set order, and operating the corresponding view components in sequence according to the view component operation requests; or; receiving a view component operation request sent by the test end, calling the view component automatic operation logic according to the view component operation request, and operating the corresponding view components in sequence according to the view component automatic operation logic.
[0073] S220: Acquire live broadcast test data during the live broadcast test operation.
[0074] The live broadcast test data includes live broadcast service data and / or live broadcast performance data.
[0075] S230: Send the live test data to the test end, so that the test end verifies the live test data and obtains a test result.
[0076] The technical solution of this embodiment receives a live test request sent by a test end and performs a corresponding live test operation according to the live test request; obtains live test data during the execution of the live test operation; and sends the live test data to the test end, so that the test end verifies the live test data and obtains a test result. The live test method provided by the disclosed embodiment tests the live scenario by sending a live test request from the test end to the live end, which can improve the stability and reliability of the live test.
[0077] FIG6 is a schematic structural diagram of a live broadcast test device provided by an embodiment of the present disclosure. The device is provided in a test terminal and includes:
[0078] A live test request sending module 310 is configured to send a live test request to a live broadcast terminal, so that the live broadcast terminal performs a corresponding live test operation based on the live test request;
[0079] The live broadcast test result acquisition module 320 is used to receive the live broadcast test data returned by the live broadcast end, verify the live broadcast test data, and obtain the live broadcast test result.
[0080] Optionally, the live test request sending module 310 is further configured to:
[0081] Send a broadcast test request to the anchor terminal, so that the anchor terminal performs the broadcast start operation according to the broadcast test request;
[0082] Receive the broadcast success message and live broadcast room ID returned by the anchor, and generate a request to enter the live broadcast room based on the live broadcast room ID;
[0083] Send a request to enter the live broadcast room to the audience, so that the audience enters the live broadcast room according to the request.
[0084] Optionally, the live test request sending module 310 is further configured to:
[0085] Sending view component operation requests to the live broadcast end in sequence according to the set order, so that the live broadcast end operates the corresponding view components in sequence according to the view component operation requests; or
[0086] A view component operation request is sent to the live broadcast end, so that the live broadcast end calls the view component automatic operation logic according to the view component operation request, and operates the corresponding view components in sequence according to the view component automatic operation logic.
[0087] Optionally, the live test request sending module 310 is further configured to:
[0088] Send a live broadcast closing request to the anchor end, so that the anchor end closes the live broadcast according to the live broadcast closing request;
[0089] Send a request to exit the live broadcast room to the audience, so that the audience can exit the live broadcast room according to the request.
[0090] Optionally, the live test request sending module 310 is further configured to:
[0091] Send a message test request to the server, so that the server sends a live broadcast message to the live broadcast end according to the message test request to test the message volume.
[0092] FIG7 is a schematic structural diagram of a live broadcast test device provided by an embodiment of the present disclosure. The device is provided in a live broadcast terminal and includes:
[0093] The live broadcast test request receiving module 410 is used to receive the live broadcast test request sent by the test end and perform corresponding live broadcast test operations according to the live broadcast test request;
[0094] The live broadcast test data acquisition module 420 is used to acquire live broadcast test data during the execution of the live broadcast test operation;
[0095] The live test data sending module 430 is used to send the live test data to the test end, so that the test end verifies the live test data and obtains a test result.
[0096] Optionally, if the live broadcast end is the anchor end, the live broadcast test request receiving module 410 is further configured to:
[0097] Receive the start-up test request sent by the test terminal and execute the start-up operation according to the start-up test request;
[0098] Return the live broadcast success message and live broadcast room logo to the test end.
[0099] Optionally, if the live broadcast end is a viewer end, the live broadcast test request receiving module 410 is further configured to:
[0100] Receive a request from the test client to enter the live broadcast room; wherein the request carries a live broadcast room identifier;
[0101] Enter the live broadcast room according to the request to enter the live broadcast room.
[0102] Optionally, the live broadcast test request receiving module 410 is further configured to:
[0103] Receive view component operation requests sent by the test end in a set order, and operate corresponding view components in sequence according to the view component operation requests; or;
[0104] Receive the view component operation request sent by the test end, call the view component automatic operation logic according to the view component operation request, and operate the corresponding view components in sequence according to the view component automatic operation logic.
[0105] The live broadcast test device provided in the embodiments of the present disclosure can execute the live broadcast test method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
[0106] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present disclosure.
[0107] FIG8 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Referring to FIG8 , a schematic diagram of the structure of an electronic device (such as a terminal device or server in FIG8 ) 500 suitable for implementing an embodiment of the present disclosure is shown below. The terminal device in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. The electronic device shown in FIG8 is merely an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.
[0108] As shown in FIG8 , the electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. Various programs and data required for the operation of the electronic device 500 are also stored in the RAM 503. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An edit / output (I / O) interface 505 is also connected to the bus 504.
[0109] Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Although FIG8 shows the electronic device 500 with various devices, it should be understood that not all of the devices shown are required to be implemented or present. More or fewer devices may alternatively be implemented or present.
[0110] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 509, or installed from the storage device 508, or installed from the ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.
[0111] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0112] The electronic device provided in the embodiment of the present disclosure and the live broadcast test method provided in the above embodiment belong to the same inventive concept. For technical details not fully described in this embodiment, please refer to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.
[0113] An embodiment of the present disclosure provides a computer storage medium having a computer program stored thereon, which, when executed by a processor, implements the live broadcast test method provided in the above embodiment.
[0114] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, 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 above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.
[0115] In some embodiments, the client and server can communicate using any currently known or later developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or later developed network.
[0116] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0117] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device:
[0118] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: sends a live broadcast test request to the live broadcast end, so that the live broadcast end performs a corresponding live broadcast test operation based on the live broadcast test request; receives the live broadcast test data returned by the live broadcast end, and verifies the live broadcast test data to obtain a live broadcast test result.
[0119] Alternatively, the computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: receives a live broadcast test request sent by the test end, and performs a corresponding live broadcast test operation according to the live broadcast test request; obtains live broadcast test data during the execution of the live broadcast test operation; and sends the live broadcast test data to the test end, so that the test end verifies the live broadcast test data and obtains a test result.
[0120] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0121] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0122] The units involved in the embodiments described in this disclosure may be implemented in software or hardware. In some cases, the name of a unit does not limit the unit itself. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses."
[0123] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.
[0124] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can 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 can 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.
[0125] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.
[0126] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0127] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
Claims
1. A live broadcast testing method, which is executed by a test end and includes: Sending a live broadcast test request to a live broadcast end, so that the live broadcast end performs corresponding live broadcast test operations based on the live broadcast test request; Receiving the live broadcast test data returned by the live broadcast end, and verifying the live broadcast test data to obtain a live broadcast test result.
2. The method according to claim 1, wherein sending a live broadcast test request to a live broadcast end, so that the live broadcast end performs corresponding live broadcast test operations based on the live broadcast test request, includes: Sending a live broadcast start test request to a host end, so that the host end performs a live broadcast start operation according to the live broadcast start test request; Receiving the live broadcast start success information and the live broadcast room identifier returned by the host end, and generating an access live broadcast room request according to the live broadcast room identifier; Sending the access live broadcast room request to an audience end, so that the audience end enters the live broadcast room according to the access live broadcast room request.
3. The method according to claim 2, wherein after receiving the live broadcast start success information and the live broadcast room identifier returned by the host end, it further includes: Sequentially sending view component operation requests to the live broadcast end according to a set order, so that the live broadcast end sequentially operates corresponding view components according to the view component operation requests; Or, Sending a view component operation request to the live broadcast end, so that the live broadcast end calls the view component automatic operation logic according to the view component operation request, and sequentially operates corresponding view components according to the view component automatic operation logic.
4. The method according to claim 2, wherein after sending the access live broadcast room request to an audience end, so that the audience end enters the live broadcast room according to the access live broadcast room request, it further includes: Sending a live broadcast close request to the host end, so that the host end closes the live broadcast according to the live broadcast close request; Sending a live broadcast room exit request to the audience end, so that the audience end exits the live broadcast room according to the live broadcast room exit request.
5. The method according to claim 2, wherein after receiving the live broadcast start success information and the live broadcast room identifier returned by the host end, it further includes: Sending a message test request to a server end, so that the server end sends a live broadcast message to the live broadcast end according to the message test request for message volume testing.
6. A live broadcast testing method, which is executed by a live broadcast end and includes: Receiving a live broadcast test request sent by a test end, and performing corresponding live broadcast test operations according to the live broadcast test request; Obtaining live broadcast test data during the execution of the live broadcast test operations; Sending the live broadcast test data to the test end, so that the test end verifies the live broadcast test data to obtain a test result.
7. The method according to claim 6, wherein if the live broadcast end is a host end, receiving a live broadcast test request sent by a test end, and performing corresponding live broadcast test operations according to the live broadcast test request, includes: Receiving a live broadcast start test request sent by a test end, and performing a live broadcast start operation according to the live broadcast start test request; Returning the live broadcast start success information and the live broadcast room identifier to the test end.
8. The method according to claim 7, wherein if the live broadcast end is the viewer end, a live broadcast test request sent by the test end is received, and corresponding live broadcast test operations are performed according to the live broadcast test request, including: Receiving an access request to the live broadcast room sent by the test end; wherein, the access request to the live broadcast room carries a live broadcast room identifier; Entering the live broadcast room according to the access request to the live broadcast room.
9. The method according to claim 6, wherein receiving a live broadcast test request sent by the test end and performing corresponding live broadcast test operations according to the live broadcast test request includes: Receiving view component operation requests sequentially sent by the test end in a set order, and operating corresponding view components sequentially according to the view component operation requests; Or; Receiving a view component operation request sent by the test end, invoking the automatic operation logic of the view component according to the view component operation request, and operating corresponding view components sequentially according to the automatic operation logic of the view component.
10. A live broadcast test device, which is arranged in the test end and includes: A live broadcast test request sending module, configured to send a live broadcast test request to the live broadcast end, so that the live broadcast end performs corresponding live broadcast test operations based on the live broadcast test request; A live broadcast test result obtaining module, configured to receive the live broadcast test data returned by the live broadcast end, and verify the live broadcast test data to obtain a live broadcast test result.
11. A live broadcast test device, which is arranged in the live broadcast end and includes: A live broadcast test request receiving module, configured to receive a live broadcast test request sent by the test end, and perform corresponding live broadcast test operations according to the live broadcast test request; A live broadcast test data obtaining module, configured to obtain live broadcast test data during the execution of the live broadcast test operations; A live broadcast test data sending module, configured to send the live broadcast test data to the test end, so that the test end verifies the live broadcast test data to obtain a test result.
12. An electronic device, which includes: One or more processors; A storage device, configured to store one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the live broadcast test method according to any one of claims 1-9.
13. A storage medium containing computer-executable instructions, where the computer-executable instructions are used to execute the live broadcast test method according to any one of claims 1-9 when executed by a computer processor.
Citation Information
Patent Citations
Test method and device, electronic equipment and computer readable storage medium
CN111831566A
Data processing method and device based on live broadcast APP
CN112306870A
Live broadcast test method and device
CN114697647A
Method and device for testing video live broadcast function based on JS SDK
CN116501603A
Cache server performance test method and apparatus, device, and medium
WO2022105591A1