Live broadcast test method and device and storage medium

The live broadcast testing method efficiently generates statistical data by simulating user behaviors, improving test efficiency and scale beyond manual testing limitations.

CN119182961APending Publication Date: 2024-12-24CHINA MERCHANTS BANK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411257995.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-09
Publication Date
2024-12-24

AI Technical Summary

Technical Problem

Traditional live broadcast data statistics methods rely on manual testing, which is inefficient, has limited coverage, and struggles to simulate large-scale concurrent scenarios effectively.

Method used

A live broadcast testing method that involves obtaining live broadcast room and virtual user information, simulating user behaviors based on these data to generate statistical data, and determining test results, using a device with modules for acquisition, determination, and simulation.

Benefits of technology

This method enhances testing efficiency and scale by accurately simulating user behaviors to obtain comprehensive live broadcast statistics, overcoming limitations of manual testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119182961A_ABST
    Figure CN119182961A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data processing, and discloses a live broadcast test method and device and a storage medium, and the method comprises the steps: obtaining live broadcast room information and virtual user information; in response to a request instruction of a user, determining a user behavior type according to the request instruction; performing user behavior simulation based on the live broadcast room information, the virtual user information and the user behavior type to obtain live broadcast statistical data; and determining a live broadcast test result according to the live broadcast statistical data. The test efficiency and the test scale of live broadcast can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a live broadcast test method, device and storage medium. Background Art

[0002] In the development and maintenance of live broadcast platforms, a series of tests are usually required to ensure the stability of live broadcast services and optimize user experience. Among them, live broadcast data statistics is an important link, which involves the collection, analysis and feedback of various data generated during the live broadcast. These data include but are not limited to the number of viewers, audience behavior (such as entering the live broadcast room, exiting the live broadcast room, sending barrage comments, etc.), live broadcast room performance indicators (such as delay, freeze rate, etc.) and audience interaction (such as likes, sharing, gift giving, etc.).

[0003] Traditional live broadcast data statistics methods often rely on testers to manually execute test cases, which includes using different user accounts to frequently enter the live broadcast room from a variety of device terminals (such as smartphones, tablets, personal computers, etc.) to simulate real user behaviors such as posting comments, participating in voting, sending gifts, etc. In this way, the performance of the live broadcast system in different scenarios can be comprehensively evaluated, and data samples close to actual applications can be collected. However, this testing method is inefficient, has limited coverage, and is difficult to simulate large-scale concurrent scenarios.

[0004] Therefore, how to effectively improve the testing efficiency and scale of live broadcast is a problem that needs to be solved urgently.

[0005] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0006] The main purpose of this application is to provide a live broadcast test method, device and storage medium, aiming to solve the technical problem of how to effectively improve the test efficiency and test scale of live broadcast.

[0007] To achieve the above purpose, the present application proposes a live broadcast testing method, the method comprising:

[0008] Obtain live broadcast room information and virtual user information;

[0009] In response to a request instruction from a user, determining a user behavior type according to the request instruction;

[0010] Perform user behavior simulation based on the live broadcast room information, the virtual user information and the user behavior type to obtain live broadcast statistical data;

[0011] The live broadcast test result is determined according to the live broadcast statistical data.

[0012] In one embodiment, obtaining live broadcast room information includes:

[0013] Obtain basic information, interactive function information and technical configuration information of the live broadcast room;

[0014] The live broadcast room information is obtained according to the basic information, the interactive function information and the technical configuration information.

[0015] In one embodiment, obtaining virtual user information includes:

[0016] Generate user identification information of virtual users through a random data generation tool;

[0017] Obtain user attribute information, historical behavior data, and device information of actual users;

[0018] The user attribute information, the historical behavior data and the device information are randomly associated with the user identification information to obtain virtual user information.

[0019] In one embodiment, the user behavior simulation is performed based on the live broadcast room information, the virtual user information and the user behavior type to obtain live broadcast statistical data, including:

[0020] Perform user behavior simulation based on the live broadcast room information, the virtual user information and the user behavior type to obtain user behavior data;

[0021] Data statistical analysis is performed based on the user behavior data to obtain live broadcast statistical data.

[0022] In one embodiment, the step of performing user behavior simulation and data statistical analysis based on the live broadcast room information, the virtual user information and the user behavior type to obtain user behavior data includes:

[0023] When the user behavior type is entering or leaving the live broadcast room, simulating the user's behavior of entering or leaving the live broadcast room according to the virtual user information and the live broadcast room information, and generating an entry timestamp and an exit timestamp;

[0024] Determine the frequency of users entering and exiting the live broadcast room within a preset time period according to the entry timestamp and the exit timestamp;

[0025] The user behavior data is determined based on the frequency of users entering and exiting the live broadcast room within a preset time period.

[0026] In one embodiment, the step of performing user behavior simulation and data statistical analysis based on the live broadcast room information, the virtual user information and the user behavior type to obtain user behavior data further includes:

[0027] When the user behavior type is online live broadcast, obtain the number of people who watch the live broadcast online;

[0028] Determine the number of virtual users according to the number of people watching the live broadcast online;

[0029] Simulate the viewing behavior of the user in the live broadcast room according to the number of virtual users, the virtual user information and the live broadcast room information to obtain online viewing time data;

[0030] The user behavior data is determined according to the online viewing time data.

[0031] In one embodiment, the step of performing user behavior simulation and data statistical analysis based on the live broadcast room information, the virtual user information and the user behavior type to obtain user behavior data further includes:

[0032] When the user behavior type is sending a message, obtain the message content;

[0033] Simulate the user's behavior of sending a message in the live broadcast room according to the message content, the virtual user information and the live broadcast room information to obtain a sending timestamp;

[0034] Determine the interaction frequency in the live broadcast room according to the sending timestamp;

[0035] User behavior data is determined based on the interaction frequency.

[0036] In one embodiment, performing data statistical analysis based on the user behavior data to obtain live broadcast statistical data includes:

[0037] Determine the popularity index of the live broadcast room according to the user entry and exit frequency in the user behavior data;

[0038] The online viewing time data in the user behavior data determines the average viewing time of the live broadcast room within a preset time period;

[0039] Determine the interactive activity according to the interaction frequency in the live broadcast room in the user behavior data;

[0040] Live broadcast statistics are determined based on the popularity index, the average viewing time, and the interactive activity.

[0041] In addition, to achieve the above purpose, the present application also proposes a live broadcast test device, which includes:

[0042] The acquisition module is used to obtain the live broadcast room information and virtual user information;

[0043] A determination module, configured to respond to a user's request instruction and determine a user behavior type according to the request instruction;

[0044] A simulation module, used to simulate user behavior based on the live broadcast room information, the virtual user information and the user behavior type to obtain live broadcast statistical data;

[0045] The determination module is further used to determine the live broadcast test result according to the live broadcast statistical data.

[0046] In addition, to achieve the above-mentioned purpose, the present application also proposes a live broadcast test device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the live broadcast test method as described above.

[0047] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the live broadcast test method described above are implemented.

[0048] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the steps of the live broadcast test method described above.

[0049] The present application provides a live broadcast testing method, which first obtains live broadcast room information and virtual user information; responds to a user's request instruction and determines the user behavior type according to the request instruction; simulates user behavior based on the live broadcast room information, the virtual user information and the user behavior type to obtain live broadcast statistical data; and determines the live broadcast test result according to the live broadcast statistical data, thereby effectively improving the test efficiency and test scale of the live broadcast.

[0050] In summary, the present application can quickly and accurately obtain live broadcast statistical data by simulating the user behavior type requested by the user according to the live broadcast room information and virtual user information, and the data scale is not limited. Then, the test results of the live broadcast can be quickly and accurately determined based on the live broadcast statistical data, overcoming the technical defects of traditional testing methods with low efficiency, limited coverage and difficulty in simulating large-scale concurrent scenarios, and can effectively improve the test efficiency and test scale of live broadcast. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0052] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0053] Figure 1 A flowchart of the first embodiment of the live broadcast test method of the present application is provided;

[0054] Figure 2 A flowchart of the second embodiment of the live broadcast test method of the present application is provided;

[0055] Figure 3 A flowchart of the interaction between a user and a database provided in Example 2 of the live broadcast test method of this application;

[0056] Figure 4 This is a schematic diagram of the module structure of the live broadcast test device according to an embodiment of the present application;

[0057] Figure 5 This is a schematic diagram of the device structure of the hardware operating environment involved in the live broadcast test method of the embodiment of the present application.

[0058] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0059] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0060] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0061] The main solution of the embodiment of the present application is: obtaining live broadcast room information and virtual user information; responding to the user's request instruction, determining the user behavior type according to the request instruction; simulating user behavior based on the live broadcast room information, the virtual user information and the user behavior type to obtain live broadcast statistical data; determining the live broadcast test result according to the live broadcast statistical data.

[0062] In the development and maintenance of live broadcast platforms, a series of tests are usually required to ensure the stability of live broadcast services and optimize user experience. Among them, live broadcast data statistics is an important link, which involves the collection, analysis and feedback of various data generated during the live broadcast. These data include but are not limited to the number of viewers, audience behavior (such as entering the live broadcast room, exiting the live broadcast room, sending barrage comments, etc.), performance indicators of the live broadcast room (such as delay, freeze rate, etc.) and audience interaction (such as likes, sharing, gift giving, etc.). Traditional live broadcast data statistics methods often rely on testers to manually execute test cases, which includes frequently entering the live broadcast room from a variety of device terminals (such as smartphones, tablets, personal computers, etc.) using different user accounts to simulate real user behaviors such as posting comments, participating in voting, sending gifts, etc. In this way, the performance of the live broadcast system in different scenarios can be comprehensively evaluated, and data samples close to actual applications can be collected. However, this test method is inefficient, has limited coverage, and is difficult to simulate large-scale concurrent scenarios. Therefore, how to effectively improve the test efficiency and test scale of live broadcast is a problem that needs to be solved urgently.

[0063] The present application simulates the user behavior type requested by the user according to the live broadcast room information and the virtual user information, so as to quickly and accurately obtain the live broadcast statistical data without limitation on the data scale, and then quickly and accurately determine the test results of the live broadcast according to the live broadcast statistical data, thus overcoming the technical defects of the traditional testing methods such as low efficiency, limited coverage and difficulty in simulating large-scale concurrent scenarios, and can effectively improve the test efficiency and test scale of the live broadcast.

[0064] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a live broadcast test device, etc. The following takes the live broadcast test device as an example to illustrate this embodiment and the following embodiments.

[0065] Based on this, the embodiment of the present application provides a live broadcast test method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the live broadcast test method of the present application.

[0066] In this embodiment, the live broadcast test method includes steps S10 to S40:

[0067] Step S10, obtaining live broadcast room information and virtual user information.

[0068] It should be noted that the live broadcast room information refers to data related to the live broadcast room, including but not limited to the live broadcast room ID, anchor information, live broadcast content classification, live broadcast time, etc. The virtual user information includes the virtual user's identity, behavioral characteristics, device type, network environment, etc., which are not specifically limited in this embodiment. This information can be obtained from the background management system of the live broadcast platform through the API interface, or configured through a pre-set configuration file.

[0069] In a feasible implementation, "obtaining live broadcast room information" in step S10 may include: obtaining basic information, interactive function information and technical configuration information of the live broadcast room; and obtaining the live broadcast room information based on the basic information, the interactive function information and the technical configuration information.

[0070] It should be noted that the basic information mainly includes the basic attributes of the live broadcast room, such as the live broadcast room ID, live broadcast room channel, live broadcast room name, creator, live broadcast room status, live broadcast room introduction, live broadcast room classification ID, live broadcast type, etc., among which the live broadcast room ID is a unique identifier used to distinguish different live broadcast rooms; the live broadcast room name refers to the name or title of the live broadcast room; the live broadcast room channel refers to the platform or channel where the live broadcast room is located, such as Douyin, Kuaishou, etc.; the creator refers to the user or administrator account who created the live broadcast room; the live broadcast room status refers to the current status of the live broadcast room (such as not started, live broadcast, ended); the live broadcast room introduction refers to a brief introduction to the theme or content of the live broadcast room; the live broadcast room classification ID refers to the category ID to which the live broadcast room belongs, which is used to classify the live broadcast room; the live broadcast type refers to the type of the live broadcast room (such as education, entertainment, games, etc.).

[0071] It is understandable that the interactive function information involves the interactive functions provided by the live broadcast room, such as whether to open the chat room, whether to support recording, whether to upload materials, and whether to open the subtitle function. The technical configuration information includes the live streaming type, the creation time of the live broadcast, and the update time of the live broadcast. Among them, the live streaming type refers to the live streaming protocol used by the live broadcast room (such as RTMP, HLS, etc.); the live broadcast creation time refers to the timestamp when the live broadcast room was created; the live broadcast update time refers to the timestamp when the live broadcast room was last updated. The live broadcast room information can also include other visual elements, such as background color and the number of likes.

[0072] It is worth mentioning that the new live broadcast function can be realized based on the live broadcast room information such as the live broadcast room channel, name, creator, category, etc., and then a live broadcast room environment can be quickly built to provide basic data support for subsequent testing and simulation.

[0073] In a feasible implementation, "obtaining virtual user information" in step S10 may include: generating user identification information of a virtual user through a random data generation tool; obtaining user attribute information, historical behavior data and device information of an actual user; and randomly associating the user attribute information, the historical behavior data and the device information with the user identification information to obtain virtual user information.

[0074] It should be noted that the random data generation tool can be a specially designed software program for simulating the user ID of a real user and then performing information distribution, and can generate a large number of virtual users with different characteristics to meet the needs of large-scale concurrent testing.

[0075] It is understandable that the user attribute information, historical behavior data and device information of the actual user can be obtained through the user database or log file. The user attribute information includes the user's age, gender, region, hobbies, etc.; the historical behavior data includes the user's interaction records, viewing time, likes, comments and other behaviors on the live broadcast platform; the device information includes the type of device used by the user, operating system, network connection speed, etc. By associating these actual user data with the virtual user identification information, realistic virtual user information can be generated, so that the simulation data is closer to the actual usage.

[0076] Step S20, in response to a request instruction from the user, determining the user behavior type according to the request instruction.

[0077] It should be noted that the user's simulation needs can be determined based on the user's request instructions, for example, the situation where a large number of users' transaction records are required, the situation where a large number of users need to watch the live broadcast online at the same time, and the situation where a large number of users send messages, so as to achieve high concurrency testing of the live broadcast platform. According to the simulation needs, the user behavior type can be determined, including but not limited to entering and exiting the live broadcast room, watching the live broadcast online, sending comments and messages, etc. Each behavior type corresponds to different operations and data records to ensure the interactivity and user participation of the live broadcast room.

[0078] Step S30, performing user behavior simulation based on the live broadcast room information, the virtual user information and the user behavior type to obtain live broadcast statistical data.

[0079] It should be noted that a complex simulation environment can be constructed based on the live broadcast room information, virtual user information, and user behavior types. In this environment, virtual users will perform various operations according to preset scripts and rules, such as entering the live broadcast room, watching live broadcasts, sending comments, and liking. These operations will generate a large amount of simulation data, which can be used to analyze the performance of the live broadcast room and the user experience.

[0080] In the specific implementation, the required number of data, user information, and device information are imported into the configuration file, and the required operations such as addition, deletion, modification, and query are encapsulated into various methods through Python scripts. The scripts are run to call the methods to simulate real functional operations, breaking through the limitations on the number of devices and users and effectively increasing the scale of testing.

[0081] Step S40: determining a live broadcast test result according to the live broadcast statistical data.

[0082] It should be noted that after obtaining the live broadcast statistics, the performance and user experience of the live broadcast platform can be evaluated based on the live broadcast statistics. For example, key indicators such as the average viewing time in the live broadcast room, user interaction rate, and the number of concurrent users during peak hours can be calculated. Through these statistical data, potential problems of the live broadcast platform can be discovered, such as excessive server load and insufficient user interaction, and optimization and adjustments can be made accordingly.

[0083] In the specific implementation, live broadcast statistics include popularity index, average viewing time and interactive activity. A comprehensive scoring system can be set up to assign different weights to the popularity index, average viewing time and interactive activity, so as to calculate a comprehensive score. The comprehensive score can be used as an important indicator to measure the performance of the live broadcast room, thereby evaluating the live broadcast test results.

[0084] The present embodiment provides a live broadcast test method, which first obtains live broadcast room information and virtual user information; responds to a user's request instruction and determines the user behavior type according to the request instruction; performs user behavior simulation based on the live broadcast room information, the virtual user information and the user behavior type to obtain live broadcast statistical data; and determines the live broadcast test result according to the live broadcast statistical data, thereby effectively improving the test efficiency and test scale of the live broadcast.

[0085] In summary, this embodiment simulates the user behavior type requested by the user according to the live broadcast room information and the virtual user information, so as to quickly and accurately obtain the live broadcast statistical data without limitation on the data scale, and then quickly and accurately determine the test results of the live broadcast according to the live broadcast statistical data, thus overcoming the technical defects of the traditional testing methods with low efficiency, limited coverage and difficulty in simulating large-scale concurrent scenarios, and can effectively improve the test efficiency and test scale of the live broadcast.

[0086] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can refer to the above introduction, and will not be repeated later. Figure 3 , the step S30 further includes steps S301-S303:

[0087] Step S301, performing user behavior simulation based on the live broadcast room information, the virtual user information and the user behavior type to obtain user behavior data.

[0088] It should be noted that based on the live broadcast room information and virtual user information, the user's behavior of entering and exiting the live broadcast room, watching online, and sending comment messages can be simulated, and then the data collected during the behavior simulation process can be collected to determine the user behavior data. The user behavior data is not limited to the frequency of users entering and exiting the live broadcast room within a preset time period, the online viewing time data, and the frequency of interaction within the live broadcast room.

[0089] It is understandable that the simulation of user behavior during live broadcast can be achieved through the python framework, which is a programming framework widely used in the field of automated testing. It has rich libraries and modules, making it more efficient and concise to write test scripts. By using the python framework, it is easy to manage various devices and user information, as well as real-time monitoring and data collection of the live broadcast platform. The python framework includes database information, table connection and function encapsulation such as addition, deletion, modification and query, data temporary storage files, and scripts for communicating and interacting with users.

[0090] It is worth mentioning that the database includes connection information (host, port, user, password, db, charset) required for multiple databases. Among them, host refers to a device in the network, which can be a server, computer or other network device. It provides services or resources to other devices in the network. In database management, host usually refers to the address of the database server, and the client connects to the database through this address; port is a logical interface used to distinguish different services in a computer network. Each port has a port number, which is a 16-bit number ranging from 0 to 65535. In network communications, port numbers are used to identify applications that send and receive data to ensure that data can be correctly sent to the target application; user refers to a person or program that uses a computer system, network service or database system. Users need to pass identity authentication to access specific resources or perform specific operations; password is a security measure used to verify user identity. When creating an account, the user will set a password, and each time they log in, they will need to enter the correct password to prove their identity; db (database) is a system for storing, managing, and manipulating data. Databases can store large amounts of structured information for easy retrieval, updating, and management. In computer networks, db often refers to databases on remote servers, and clients connect to and operate these databases through the network; charset (character set) is a collection of character encodings used to represent the encoding rules for characters in text files. Different character sets support different ranges of characters, such as ASCII, UTF-8, GBK, etc. In database management, charset is used to specify the character encoding method used when the database stores and transmits data, ensuring the correct display and processing of characters when data is transmitted between different systems.

[0091] In the specific implementation, during the live simulation test, the target parameters of the test can be modified at any time according to the needs of the user, such as the number of records in and out, the number of comments, etc. Connect to the database and define functions such as add, delete, modify and query, that is, encapsulate the input parameters into the information input or selected by the user, and the return value is the prompt of the success or failure of the function execution; ask the user the type of operation they want (add, delete, modify and query, that is, add data, delete data, modify data, query data), ask for detailed operations respectively, and obtain the input information the user wants to specify, encapsulate the correct input parameters to call the correct target function and return the data results of the operation to print and display them to the user for viewing. For example, if the number of records the user wants to add is obtained, the increase operation can be executed cyclically for that number of times. When the number is called, the data in the data temporary file is added, deleted, modified and checked synchronously, so that the user can directly and conveniently view the data without opening the database software to view the data changes.

[0092] like Figure 3 As shown, Figure 3 It is an interactive flow chart between users and databases. After connecting to the database, it interacts with the user to inquire about the operation type. When the operation type is to add data, the user enters the target number, account number, client and other information, and adds data in the database and the data temporary storage file (for direct viewing of the operation results). When the operation type is to delete data, the user chooses to delete a single or multiple records, and deletes the data in the database and the data temporary storage file. When the operation type is to modify data, the user chooses to modify a single or multiple records and selects the specific modification items, and modifies the data in the database and the data temporary storage file. When the operation type is to query data, the newly added content or all the original content is queried, and the query results are printed out.

[0093] In a feasible implementation, step S301 may include: when the user behavior type is entering and exiting the live broadcast room, simulating the user's behavior of entering and leaving the live broadcast room according to the virtual user information and the live broadcast room information, and generating an entry timestamp and an exit timestamp; determining the user's entry and exit frequency of the live broadcast room within a preset time period according to the entry timestamp and the exit timestamp; determining the user behavior data according to the user's entry and exit frequency of the live broadcast room within the preset time period.

[0094] It should be noted that when the user behavior type is entering and exiting the live broadcast room, the behavior of users entering and exiting the live broadcast room is simulated through a python script based on the virtual user information and the live broadcast room information, that is, the situation in which a large number of user flow records are required in the live broadcast can be simulated, and a series of timestamp data can be generated. These timestamps record the specific time when each virtual user enters and leaves the live broadcast room. By analyzing these timestamps, the frequency of users entering and exiting the live broadcast room within the preset time period can be calculated. For example, the number of users entering and leaving the live broadcast room per minute, hour, or day can be counted to obtain statistical data on the frequency of users entering and exiting the live broadcast room.

[0095] It is worth noting that, based on the virtual user information and live broadcast room information, different users can be simulated to enter and exit a live broadcast room using different devices and operating systems. For example, users can be simulated to enter the live broadcast room on a PC, mobile phone or tablet, and perform corresponding operations based on different device characteristics. In this way, the compatibility and user experience of the live broadcast platform can be tested more comprehensively. For example, users can be simulated to enter and exit the live broadcast room under different network environments (such as 4G, 5G, Wi-Fi) to evaluate the performance of the live broadcast platform under different network conditions. In addition, users can be simulated to enter the live broadcast room at different time periods to test the performance and stability of the live broadcast platform during peak and off-peak hours.

[0096] In a feasible implementation, step S301 may also include: when the user behavior type is online viewing of the live broadcast, obtaining the number of people who are watching the live broadcast online; determining the number of virtual users based on the number of people who are watching the live broadcast online; simulating the user's viewing behavior in the live broadcast room based on the number of virtual users, the virtual user information and the live broadcast room information to obtain online viewing time data; and determining user behavior data based on the online viewing time data.

[0097] It should be noted that the number of people who can watch the live broadcast online can be set based on historical data, event arrangements or market research. For example, if a live broadcast is expected to have a large number of viewers, the operation team can set a higher number of people who can watch the live broadcast online to ensure that the test can cover the performance under high concurrency. After determining the number of virtual users, the viewing behavior of users in the live broadcast room is simulated based on the virtual user information and the live broadcast room information. This includes simulating the user's stay time in the live broadcast room and the viewing path (such as watching different content sections in the live broadcast room). In this way, a series of online viewing time data can be generated, which reflects the user's activity level and viewing habits in the live broadcast room.

[0098] It is understandable that when the user behavior type is online viewing, the user's online viewing behavior can be simulated through a python script based on the virtual user information and the live broadcast room information, that is, the situation in which a large number of users are required to watch the live broadcast online at the same time in the simulated live broadcast, and a series of viewing time data can be generated. These data record the viewing time of each virtual user in the live broadcast room. By analyzing these data, statistical information such as the average viewing time, the longest viewing time, and the shortest viewing time of users watching the live broadcast in the preset time period can be calculated. For example, the average viewing time of users watching the live broadcast in each minute, hour, or day can be counted to obtain statistical data on user viewing time. These data help evaluate the attractiveness and user stickiness of the live broadcast content, and provide a basis for optimizing the live broadcast content and improving the user experience.

[0099] In a feasible implementation, step S301 may also include: when the user behavior type is sending a message, obtaining the message content; simulating the user's message sending behavior in the live broadcast room according to the message content, the virtual user information and the live broadcast room information to obtain a sending timestamp; determining the interaction frequency in the live broadcast room according to the sending timestamp; and determining the user behavior data according to the interaction frequency.

[0100] It should be noted that the message content refers to the message content sent by the user in the live broadcast room, which can be in various forms such as text, pictures, videos, etc. By obtaining the message content, the interactive behavior of the user in the live broadcast room can be simulated. For example, when a user sends a message, the system will record the sending timestamp, so that the frequency of the user sending messages in the preset time period can be calculated. For example, the number of times the user sends messages per minute, hour or day can be counted to obtain statistical data on the frequency of interaction in the live broadcast room.

[0101] It is understandable that when the user behavior type is sending a message, a series of sending timestamp data can be generated by simulating the user's message sending behavior through a python script based on the virtual user information and the live broadcast room information, that is, simulating the situation where a large number of users need to participate in the interaction during the live broadcast. These data record the specific time when each virtual user sends a message in the live broadcast room. By analyzing these data, the frequency of user message sending in the preset time period and the activeness of user interaction can be calculated.

[0102] Step S302: Perform data statistical analysis based on the user behavior data to obtain live broadcast statistical data.

[0103] It should be noted that the purpose of data statistical analysis is to extract valuable information from user behavior data in order to evaluate the performance and user experience of the live broadcast platform. Data statistical analysis can include user activity analysis, user interaction analysis, device and network environment analysis, time period analysis, etc., so as to obtain live broadcast statistics.

[0104] In a feasible implementation, step S302 may include: determining the popularity index of the live broadcast room based on the user entry and exit frequency in the user behavior data; determining the average viewing time of the live broadcast room within a preset time period based on the online viewing time data in the user behavior data; determining the interactive activity based on the interaction frequency in the live broadcast room in the user behavior data; determining the live broadcast statistical data based on the popularity index, the average viewing time and the interactive activity.

[0105] It should be noted that the popularity index of a live broadcast room refers to the frequency of viewers entering and leaving the live broadcast room within a certain period of time. Specifically, the popularity index reflects the popularity of the live broadcast room and the activity of the audience in a specific period of time. The higher the popularity index, the more popular the live broadcast room is and the higher the frequency of viewers entering and leaving.

[0106] It is understandable that the average viewing time of the live broadcast room within the preset time period is determined based on the online viewing time data. The average viewing time can reflect the user's continued attention to the live broadcast content. The longer the average viewing time, the stronger the user's interest in the live broadcast content and the stronger the appeal of the live broadcast room.

[0107] It is worth noting that interactive activity refers to the frequency of interaction between the audience and the anchor in the live broadcast room. High interactive activity means that the audience is more willing to participate in interactive behaviors such as comments during the live broadcast. The interactive activity of the live broadcast room can be evaluated based on the frequency of interaction in the live broadcast room, that is, the number of times the audience sends comments within a certain period of time. Interactive activity can not only reflect the audience's enthusiasm for participation, but also reflect the quality of interaction between the anchor and the audience. High interactive activity means that the anchor can effectively mobilize the enthusiasm of the audience.

[0108] In this embodiment, by simply and efficiently simulating user behavior based on the live broadcast room information, virtual user information and user behavior type, and then performing data statistical analysis based on the user behavior data, live broadcast statistical data can be obtained quickly and accurately, effectively improving the efficiency of live broadcast testing.

[0109] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the live broadcast test method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.

[0110] This application also provides a live broadcast test device, please refer to Figure 4 , the live broadcast test device comprises:

[0111] The acquisition module 10 is used to obtain the live broadcast room information and virtual user information.

[0112] The determination module 20 is used to respond to a user's request instruction and determine the user behavior type according to the request instruction.

[0113] The simulation module 30 is used to simulate user behavior based on the live broadcast room information, the virtual user information and the user behavior type to obtain live broadcast statistical data.

[0114] The determination module 20 is further configured to determine a live broadcast test result according to the live broadcast statistical data.

[0115] The present embodiment provides a live broadcast testing device, which obtains live broadcast room information and virtual user information; responds to a user's request instruction and determines the user behavior type according to the request instruction; performs user behavior simulation based on the live broadcast room information, the virtual user information and the user behavior type to obtain live broadcast statistical data; determines the live broadcast test result according to the live broadcast statistical data, which can effectively improve the live broadcast test efficiency and test scale.

[0116] In summary, this embodiment simulates the user behavior type requested by the user according to the live broadcast room information and the virtual user information, so as to quickly and accurately obtain the live broadcast statistical data without limitation on the data scale, and then quickly and accurately determine the test results of the live broadcast according to the live broadcast statistical data, thus overcoming the technical defects of the traditional testing methods with low efficiency, limited coverage and difficulty in simulating large-scale concurrent scenarios, and can effectively improve the test efficiency and test scale of the live broadcast.

[0117] Optionally, the acquisition module 10 is also used to acquire basic information, interactive function information and technical configuration information of the live broadcast room; and obtain the live broadcast room information according to the basic information, the interactive function information and the technical configuration information.

[0118] Optionally, the acquisition module 10 is also used to generate user identification information of a virtual user through a random data generation tool; obtain user attribute information, historical behavior data and device information of an actual user; and randomly associate the user attribute information, the historical behavior data and the device information with the user identification information to obtain virtual user information.

[0119] Optionally, the simulation module 30 is further used to perform user behavior simulation based on the live broadcast room information, the virtual user information and the user behavior type to obtain user behavior data; and perform data statistical analysis based on the user behavior data to obtain live broadcast statistical data.

[0120] Optionally, the simulation module 30 is also used to simulate the user's behavior of entering and leaving the live broadcast room according to the virtual user information and the live broadcast room information when the user behavior type is entering and leaving the live broadcast room, and generate an entry timestamp and an exit timestamp; determine the user's entry and exit frequency of the live broadcast room within a preset time period according to the entry timestamp and the exit timestamp; determine the user behavior data according to the user's entry and exit frequency of the live broadcast room within the preset time period.

[0121] Optionally, the simulation module 30 is also used to obtain the number of people watching the live broadcast online when the user behavior type is online viewing of the live broadcast; determine the number of virtual users according to the number of people watching the live broadcast online; simulate the user's viewing behavior in the live broadcast room according to the number of virtual users, the virtual user information and the live broadcast room information to obtain online viewing time data; determine user behavior data based on the online viewing time data.

[0122] Optionally, the simulation module 30 is also used to obtain message content when the user behavior type is sending a message; simulate the user's message sending behavior in the live broadcast room according to the message content, the virtual user information and the live broadcast room information to obtain a sending timestamp; determine the interaction frequency in the live broadcast room according to the sending timestamp; determine the user behavior data according to the interaction frequency.

[0123] Optionally, the determination module 20 is also used to determine the popularity index of the live broadcast room according to the user entry and exit frequency in the user behavior data; determine the average viewing time of the live broadcast room within a preset time period according to the online viewing time data in the user behavior data; determine the interactive activity according to the interaction frequency in the live broadcast room in the user behavior data; determine the live broadcast statistical data according to the popularity index, the average viewing time and the interactive activity.

[0124] The live broadcast test device provided by the present application adopts the live broadcast test method in the above embodiment, which can solve the technical problem of how to effectively improve the test efficiency and test scale of live broadcast. Compared with the prior art, the beneficial effects of the live broadcast test device provided by the present application are the same as the beneficial effects of the live broadcast test method provided by the above embodiment, and other technical features in the live broadcast test device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0125] The present application provides a live broadcast test device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the live broadcast test method in the above-mentioned embodiment one.

[0126] Reference below Figure 5 , which shows a schematic diagram of the structure of a live broadcast test device suitable for implementing the embodiment of the present application. The live broadcast test device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The live broadcast test device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0127] like Figure 5As shown, the live broadcast test equipment may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the live broadcast test equipment are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the live broadcast test device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a live broadcast test device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0128] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a 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 a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0129] The live broadcast test device provided by the present application adopts the live broadcast test method in the above embodiment, which can solve the technical problem of how to effectively improve the test efficiency and test scale of live broadcast. Compared with the prior art, the beneficial effects of the live broadcast test device provided by the present application are the same as the beneficial effects of the live broadcast test method provided by the above embodiment, and the other technical features in the live broadcast test device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0130] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0131] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0132] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the live broadcast test method in the above-mentioned embodiment.

[0133] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, 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 this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0134] The computer-readable storage medium may be included in the live broadcast test device; or may exist independently without being assembled into the live broadcast test device.

[0135] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the live broadcast test device, the live broadcast test device: obtains the live broadcast room information and virtual user information; responds to the user's request instruction, and determines the user behavior type according to the request instruction; performs user behavior simulation based on the live broadcast room information, the virtual user information and the user behavior type to obtain live broadcast statistical data; and determines the live broadcast test result according to the live broadcast statistical data.

[0136] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including 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 separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of 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., via the Internet using an Internet service provider).

[0137] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the 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 square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square 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 square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0138] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0139] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned live broadcast test method, and can solve the technical problem of how to effectively improve the test efficiency and test scale of live broadcast. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the live broadcast test method provided in the above-mentioned embodiment, and will not be repeated here.

[0140] The present application also provides a computer program product, including a computer program, which implements the steps of the live broadcast test method as described above when executed by a processor.

[0141] The computer program product provided by this application can solve the technical problem of how to effectively improve the test efficiency and test scale of live broadcast. Compared with the prior art, the beneficial effects of the computer program product provided by this application are the same as the beneficial effects of the live broadcast test method provided by the above embodiment, which will not be repeated here.

[0142] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A live broadcast test method, characterized in that: The method comprises: Obtain live broadcast room information and virtual user information; In response to a request instruction from a user, determining a user behavior type according to the request instruction; Perform user behavior simulation based on the live broadcast room information, the virtual user information and the user behavior type to obtain live broadcast statistical data; The live broadcast test result is determined according to the live broadcast statistical data.

2. The method according to claim 1, characterized in that The obtaining of live broadcast room information includes: Obtain basic information, interactive function information and technical configuration information of the live broadcast room; The live broadcast room information is obtained according to the basic information, the interactive function information and the technical configuration information.

3. The method according to claim 1, characterized in that The obtaining of virtual user information includes: Generate user identification information of virtual users through a random data generation tool; Obtain user attribute information, historical behavior data, and device information of actual users; The user attribute information, the historical behavior data and the device information are respectively associated with the user identification information to obtain virtual user information.

4. The method according to claim 1, characterized in that The performing of user behavior simulation based on the live broadcast room information, the virtual user information and the user behavior type to obtain live broadcast statistical data includes: Perform user behavior simulation based on the live broadcast room information, the virtual user information and the user behavior type to obtain user behavior data; Data statistical analysis is performed based on the user behavior data to obtain live broadcast statistical data.

5. The method according to claim 4, characterized in that The step of performing user behavior simulation based on the live broadcast room information, the virtual user information and the user behavior type to obtain user behavior data includes: When the user behavior type is entering or leaving the live broadcast room, simulating the user's behavior of entering or leaving the live broadcast room according to the virtual user information and the live broadcast room information, and generating an entry timestamp and an exit timestamp; Determine the frequency of users entering and exiting the live broadcast room within a preset time period according to the entry timestamp and the exit timestamp; The user behavior data is determined based on the frequency of users entering and exiting the live broadcast room within a preset time period.

6. The method according to claim 4, characterized in that The step of performing user behavior simulation based on the live broadcast room information, the virtual user information and the user behavior type to obtain user behavior data also includes: When the user behavior type is online live broadcast, obtain the number of people who watch the live broadcast online; Determine the number of virtual users according to the number of people watching the live broadcast online; Simulate the viewing behavior of the user in the live broadcast room according to the number of virtual users, the virtual user information and the live broadcast room information to obtain online viewing time data; The user behavior data is determined according to the online viewing time data.

7. The method according to claim 4, characterized in that The step of performing user behavior simulation based on the live broadcast room information, the virtual user information and the user behavior type to obtain user behavior data also includes: When the user behavior type is sending a message, obtain the message content; Simulate the user's behavior of sending a message in the live broadcast room according to the message content, the virtual user information and the live broadcast room information to obtain a sending timestamp; Determine the interaction frequency in the live broadcast room according to the sending timestamp; User behavior data is determined based on the interaction frequency.

8. The method according to claim 4, characterized in that The performing of data statistical analysis based on the user behavior data to obtain live broadcast statistical data includes: Determine the popularity index of the live broadcast room according to the user entry and exit frequency in the user behavior data; Determine the average viewing time of the live broadcast room within a preset time period according to the online viewing time data in the user behavior data; Determine the interactive activity according to the interaction frequency in the live broadcast room in the user behavior data; Live broadcast statistics are determined based on the popularity index, the average viewing time, and the interactive activity.

9. A live broadcast test device, characterized in that: The live broadcast test device comprises: The acquisition module is used to obtain the live broadcast room information and virtual user information; A determination module, configured to respond to a user's request instruction and determine a user behavior type according to the request instruction; A simulation module, used to simulate user behavior based on the live broadcast room information, the virtual user information and the user behavior type to obtain live broadcast statistical data; The determination module is further used to determine the live broadcast test result according to the live broadcast statistical data.

10. A storage medium, characterized in that: The storage medium stores a live broadcast test program, and when the live broadcast test program is executed by the processor, the live broadcast test method according to any one of claims 1 to 8 is implemented.