CN112835761A - Live broadcast software performance data acquisition method and device, electronic equipment and storage medium - Google Patents

Live broadcast software performance data acquisition method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112835761A
CN112835761A CN202110112725.XA CN202110112725A CN112835761A CN 112835761 A CN112835761 A CN 112835761A CN 202110112725 A CN202110112725 A CN 202110112725A CN 112835761 A CN112835761 A CN 112835761A
Authority
CN
China
Prior art keywords
equipment
live broadcast
main test
performance data
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110112725.XA
Other languages
Chinese (zh)
Other versions
CN112835761B (en
Inventor
魏佳纯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Huya Technology Co Ltd
Original Assignee
Guangzhou Huya Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Huya Technology Co Ltd filed Critical Guangzhou Huya Technology Co Ltd
Priority to CN202110112725.XA priority Critical patent/CN112835761B/en
Publication of CN112835761A publication Critical patent/CN112835761A/en
Application granted granted Critical
Publication of CN112835761B publication Critical patent/CN112835761B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Mathematical Physics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a live broadcast software performance data acquisition method, a live broadcast software performance data acquisition device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring acquisition information; the acquisition information comprises equipment information of the main test equipment, equipment information of the auxiliary equipment and installation information of live broadcast software to be tested; the main test equipment is in communication connection with the auxiliary equipment; controlling the main test equipment and the auxiliary equipment to establish a multi-equipment interaction relationship according to the acquired information; and when the main test equipment and the auxiliary equipment are determined to successfully establish an interaction relation, acquiring the performance data of the live broadcast software to be tested of the main test equipment. According to the method and the system, after the information of the main test equipment and the auxiliary equipment is acquired, the multi-equipment interaction scene is established according to the test information, the interaction relation between the main test equipment and the auxiliary equipment is successfully established, and then the performance data is acquired, so that the automatic acquisition of the performance data of the client under the complex scene of multi-equipment linkage is realized.

Description

Live broadcast software performance data acquisition method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of live broadcast, in particular to a live broadcast software performance data acquisition method and device, electronic equipment and a storage medium.
Background
In recent years, with the continuous development of the internet industry, the program functions are gradually increased, and the stability of the program performance is more and more important. In the technical field of live broadcasting, a live broadcasting client is an important factor influencing the live broadcasting playing performance, and the performance of the client can be optimized and the performance stability of the client can be improved by performing performance test on the live broadcasting client.
However, although the existing performance automation test framework can test the performance of the client, in the process of acquiring the performance data, after a single test scene needs to be constructed manually, the performance data is acquired by operating a performance test tool, and the performance data of the client under complex scenes of multi-device linkage and the like, PK and continuous wheat cannot be acquired automatically.
Disclosure of Invention
In view of this, the present invention provides a method, an apparatus, an electronic device and a storage medium for collecting performance data of live broadcast software, which are used to automatically collect performance data of a client in complex scenarios such as multi-device linkage, PK and link.
In a first aspect, the present invention provides a method for collecting performance data of live broadcast software, where the method includes: acquiring acquisition information; the acquisition information comprises equipment information of the main test equipment, equipment information of the auxiliary equipment and installation information of live broadcast software to be tested; the main test equipment is in communication connection with the plurality of auxiliary equipment; controlling the main test equipment and the auxiliary equipment to establish a multi-equipment interaction relationship according to the acquired information; and when determining that the main test equipment and the auxiliary equipment successfully establish an interaction relationship, acquiring performance data of the live broadcast software to be tested of the main test equipment.
Optionally, obtaining the test information includes: and acquiring the acquisition information through a multi-terminal calling module of the main test equipment.
Optionally, controlling the live broadcast software to be tested of the main testing device to perform an operation of sending an interactive invitation request to the plurality of auxiliary devices, including: the main testing equipment is driven by a first driving module of the main testing equipment to send interaction invitation request information to the auxiliary equipment through the to-be-tested live broadcast software; and the plurality of auxiliary devices are driven by a second driving module of the main test device to receive the interactive invitation request information and then feed back a received invitation response to the main test device.
Optionally, when it is determined that the main test device and the plurality of auxiliary devices successfully establish an interaction relationship, acquiring performance data of live broadcast software to be tested of the main test device, including: when the data acquisition module of the main test equipment obtains a successful response fed back by the first driving module and obtains a successful response fed back by the second driving module, determining that the main test equipment and the auxiliary equipment successfully establish an interaction relationship; and acquiring performance data of the live broadcast software to be tested of the main test equipment through the data acquisition module.
Optionally, obtaining, by the data acquisition module, performance data of the live broadcast software to be tested of the main test device includes: and acquiring performance data of a target running process of the live broadcast software to be tested at preset acquisition time through the data acquisition module, wherein the preset acquisition time and the target running process are maintained by the data acquisition module.
Optionally, after determining that the main testing device and the plurality of auxiliary devices collect performance data of live software to be tested of the main testing device, the method further includes: and converting the performance data into visual graph data.
In a second aspect, the present invention provides a live broadcast software performance data acquisition apparatus, including: the acquisition module is used for acquiring acquisition information; the acquisition information comprises equipment information of the main test equipment, equipment information of the auxiliary equipment and installation information of live broadcast software to be tested; the main test equipment is in communication connection with the plurality of auxiliary equipment; the control module is used for controlling the main test equipment and the auxiliary equipment to establish a multi-equipment interaction relationship according to the acquired information; and the acquisition module is used for acquiring the performance data of the to-be-tested live broadcast software of the main test equipment when the main test equipment and the auxiliary equipment are determined to successfully establish an interaction relationship.
Optionally, the obtaining module is specifically configured to: and acquiring the acquisition information through a multi-terminal calling module of the main test equipment.
In a third aspect, the present invention provides an electronic device, comprising a processor and a memory, where the memory stores a computer program executable by the processor, and the processor can execute the computer program to implement the live software performance data collecting method according to the first aspect.
In a fourth aspect, the present invention provides a storage medium having stored thereon a computer program which, when executed by a processor, implements the live software performance data collection method of the first aspect.
The invention provides a live broadcast software performance data acquisition method, a live broadcast software performance data acquisition device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring acquisition information; the acquisition information comprises equipment information of the main test equipment, equipment information of the auxiliary equipment and installation information of live broadcast software to be tested; the main test equipment is in communication connection with the plurality of auxiliary equipment; controlling the main test equipment and the auxiliary equipment to establish a multi-equipment interaction relationship according to the acquired information; and when determining that the main test equipment and the auxiliary equipment successfully establish an interaction relationship, acquiring performance data of the live broadcast software to be tested of the main test equipment. The difference from the prior art is that in the prior art, after a single test scene needs to be manually constructed, performance data is acquired by operating a performance test tool, and performance data of a client under complex scenes of multi-device linkage and the like, PK and microphone connection cannot be automatically acquired. According to the method and the system, after the information of the main test device and the auxiliary device is collected, the multi-device interaction scene is constructed according to the test information, the performance data is collected after the interaction relation is successfully established, and the automatic collection of the performance data of the client under the complex scenes of multi-device linkage and the like PK and microphone connection is realized.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
FIG. 1 is a testing system according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a live broadcast software performance data acquisition method according to an embodiment of the present invention;
FIG. 3 is a functional block diagram of a main test apparatus 10 according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of an implementation manner of step S12 provided by the embodiment of the present invention;
fig. 5 is a functional block diagram of the first driving module 102 according to an embodiment of the present invention;
fig. 6 is a functional block diagram of the second driving module 102 according to an embodiment of the present invention;
fig. 7 is a schematic flowchart of an implementation manner of step S13 provided by the embodiment of the present invention;
fig. 8 is another live broadcast software performance data acquisition method according to an embodiment of the present invention;
fig. 9 is a functional schematic diagram of a data acquisition module according to an embodiment of the present invention;
fig. 10 is a functional block diagram of a live broadcast software performance data acquisition apparatus according to an embodiment of the present invention;
fig. 11 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present invention, it should be noted that if the terms "upper", "lower", "outside", etc. are used to indicate an orientation or a positional relationship based on the orientation or the positional relationship shown in the drawings or the orientation or the positional relationship which is usually placed when the product of the present invention is used, the description is merely for convenience and simplicity, and the indication or the suggestion that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention.
Furthermore, the appearances of the terms "first," "second," and the like, if any, are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
Before describing the embodiments of the present invention, terms related to the embodiments of the present invention are explained:
AutoIt: one free automation language for microsoft Windows is primarily directed to creating automation scripts for microsoft Windows programs. The PyAutoIt package provides a Python interface of the AutoIt, and the Python can call a function of the AutoIt through the PyAutoIt to realize a desktop automation function.
Appium: an open-source automatic testing tool supports android, ios, mobilepan and mixed mode development. The specific operation of the mobile phone client is added on the basis of the selenium.
Psutil: a cross-platform library in python is a system monitoring tool and can be used for retrieving information operation processes, system utilization rates (CPU, memory, disk, network and sensor) and the like.
Pygal: python's third party library for data visualization, i.e., converting numbers into a chart form such as a bar chart, a line chart, a pie chart, etc. for presentation.
In recent years, with the continuous development of the internet industry, the program functions are gradually increased, and the stability of the program performance is more and more important. In the technical field of live broadcasting, a live broadcasting client is an important factor influencing the live broadcasting playing performance, and the performance of the client can be optimized and the performance stability of the client can be improved by performing performance test on the live broadcasting client.
However, although the existing performance automation test framework can test the performance of the live broadcast client, after a test scene needs to be manually constructed in the process of acquiring performance data, the performance data is acquired by operating a performance test tool, and the manually constructed scene is single and cannot reflect the real performance state of the live broadcast client in a multi-device linkage scene, so that the performance data of the client in complex scenes such as multi-device linkage and pk (playerkilling) and linmai cannot be automatically acquired, and the performance of the live broadcast client cannot be well tested.
Therefore, the embodiment of the invention provides a live broadcast software performance data acquisition method, which can automatically construct a multi-device linkage complex interactive scene in the process of acquiring live broadcast performance data, and then acquire the performance data of live broadcast software in the complex interactive scene.
In a possible embodiment, the live broadcast software performance data acquisition method may be applied to a test system shown in fig. 1, where the test system may include a main test device 10 and a plurality of auxiliary devices 11, and the live broadcast software performance data acquisition method in the embodiment of the present invention may be applied to the main test device 10 shown in fig. 1, where the main test device 10 and the plurality of auxiliary devices 11 are connected and communicate with each other through a network. The main test device 10 and the auxiliary device 11 are each installed with live broadcast software.
In the embodiment of the present invention, in order to implement a function of acquiring live broadcast software performance data in an interactive scene, the main test device 10 in fig. 1 may be used to implement live broadcast software that automatically starts the main test device 10 and the plurality of auxiliary devices 11, and functions of constructing an interactive scene and acquiring performance data, where the auxiliary devices may be used to assist the main test device in constructing various interactive scenes.
It should be noted that the main testing device 10 may be, but is not limited to, various personal computers, laptops, and tablet computers, and the auxiliary device 11 may be a smart mobile phone.
To facilitate understanding of the live broadcast software performance data acquisition method in the embodiment of the present invention, in an embodiment, as shown in fig. 2, a schematic flowchart of a live broadcast software performance data acquisition method is provided. This embodiment is mainly illustrated by applying the method to the main test apparatus 10 in fig. 1. The method may include:
and S11, acquiring the acquisition information.
In some embodiments, the collected information includes device information of the main testing device, device information of the auxiliary device, and installation information of the live broadcast software to be tested; the main test equipment is connected with the plurality of auxiliary equipment in a communication mode.
It can be understood that the live broadcast software to be tested can be understood as a Windows program in the main testing device, that is, a PC-side live broadcast client, and can be understood as a live broadcast app (application) in the auxiliary device. In the following, to simplify the description, the live broadcast software to be tested in the main testing device is referred to as a Windows program, and the live broadcast software to be tested in the auxiliary device is referred to as a live broadcast APP.
In some embodiments, the device information of the main testing device may be an IP address (internet protocol address), the device information of the auxiliary device may be a system version (version), a device name (name), a device serial number, and the like of a device phone, and in order to automatically start the to-be-tested live broadcast software of the auxiliary device, the installation information of the to-be-tested live broadcast software may include: a package name (packagemame), a live page name (ActivityName), an APP ip, a Port, and the like of the live APP. In order to automatically start the live broadcast software to be tested of the main test device, the installation information of the live broadcast software to be tested may include an installation path of the live broadcast software to be tested.
And S12, controlling the main test equipment and the auxiliary equipment to establish a multi-equipment interaction relationship according to the test information.
It can be understood that the purpose of step S12 is to construct a complex interaction scenario of multi-device linkage, for example, multi-device microphone connection, PK, etc., when a multi-device microphone connection scenario needs to be constructed, the main test device may be controlled to send microphone connection invitation request information to all auxiliary devices, and when a PK scenario needs to be constructed, the main test device may send battle invitation request information to one of the auxiliary devices, and then send team invitation request information to the other auxiliary devices.
In some possible embodiments, after the main testing device starts the live broadcast software to be tested, the main testing device can automatically send interaction invitation request information to the plurality of auxiliary devices through an automation program, and in this way, automation operation can be realized, and manpower is reduced.
And S13, when it is determined that the main test equipment and the auxiliary equipment successfully establish the interaction relationship, acquiring the performance data of the live broadcast software to be tested of the main test equipment.
It can be understood that, when the main test device and the multiple auxiliary devices successfully establish an interaction relationship, which indicates that a multi-device linkage scene is established between the main test device and the auxiliary devices, the collected performance data can reflect the performance of the live broadcast software to be tested in the multi-device linkage responsible scene.
The invention provides a live broadcast software performance data acquisition method which is different from the prior art in that performance data can not be automatically acquired by a client under complex scenes of multi-device linkage and the like PK and wheat linkage by operating a performance test tool to acquire the performance data after manually constructing a single test scene. According to the method and the system, after the information of the main test device and the auxiliary device is collected, the multi-device interaction scene is constructed according to the test information, the performance data is collected after the interaction relation is successfully established, and the automatic collection of the performance data of the client under the complex scenes of multi-device linkage and the like PK and microphone connection is realized.
Optionally, in some possible embodiments, in order to implement a function of automatically starting live broadcast software and constructing an interactive scene, an embodiment of the present invention further provides a functional module schematic diagram of the main test device 10, referring to fig. 3, where fig. 3 is a functional module schematic diagram of the main test device 10 according to the embodiment of the present invention. The main test device 10 includes a multi-terminal calling module 101, a first driving module 102, a second driving module 103, and a data collecting module 104.
The multi-terminal calling module 101 may be configured to obtain device information of the main test device, device information of the auxiliary device, installation path information of live broadcast software to be tested in the main test device, encapsulation package information of the auxiliary device, a start port of the auxiliary device, and other information, send the obtained device information of the main test device and a start path of the live broadcast software to be tested in the main test device to the first driving module 102, and send the device information of the auxiliary device, encapsulation package information of the live broadcast software to be tested in the auxiliary device, and start port of the auxiliary device to the first driving module 102.
The first driver module 102 is responsible for encapsulating and starting an operation flow of the Windows program, and after receiving the device information of the main test device and the installation path of the live broadcast software to be tested in the main test device, which are sent by the multi-terminal calling module 101, the first driver module 102 can start the live broadcast software to be tested of the main test device, drive the main test device and establish an interaction relationship with the plurality of auxiliary devices.
The second driver module 103 is responsible for packaging and starting an operation flow of the live app, and after receiving the device information of the auxiliary device and the package information of the live software to be tested in the auxiliary device, which are sent by the multi-terminal calling module 101, the second driver module 103 can start the live software to be tested of the auxiliary device, and drive the auxiliary device to establish an interaction relationship with the main test device.
The data collection module 104 is configured to start collecting performance data of the Windows program after receiving notification information that the primary test device and the secondary test device successfully establish the interaction relationship.
Optionally, in an embodiment, based on the functional block diagram of the main testing device shown in fig. 3, step S11 may be implemented automatically, and an implementation manner of the live software to be tested for automatically starting the main testing device and the multiple auxiliary devices is given below:
s11a, acquiring the collected information through a multi-terminal calling module of the main test equipment.
In a possible implementation manner, device information of a plurality of devices and installation information of live broadcast software to be tested in each device may be written in the multi-terminal calling module in advance, and the multi-terminal calling module determines a main testing device and an auxiliary device in the plurality of devices by presetting parameter information, so as to obtain device information of the main testing device and the auxiliary device and installation information of the live broadcast software to be tested in the main testing device and the auxiliary device, which are used as acquisition information.
Optionally, in an embodiment, based on the functional block diagram of the main test device shown in fig. 3, step S12 may also be automatically implemented, referring to fig. 4, where fig. 4 is a schematic flowchart of an implementation manner of step S12 provided in an embodiment of the present invention, that is:
s12-1, driving the main testing equipment through a first driving module of the main testing equipment, and sending interaction invitation request information to a plurality of auxiliary equipment through the live broadcast software to be tested.
It can be understood that the first driving module is a module for driving a Windows program to execute operations on the main testing device, and the first driving module encapsulates an automatic operation method for the Windows program, and may include starting/closing a client, searching a control, clicking/long-pressing a mouse, operating a window, comparing screenshots, and the like, and drives the client to be operated to realize a corresponding scene.
For convenience of understanding the above flow, an embodiment of the present invention further provides a functional module diagram of the first driver module, referring to fig. 5, fig. 5 is a functional module diagram of the first driver module 102 according to an embodiment of the present invention, where the first driver module 102 may include a main test device driver unit (PCDriver) and a windows program operation method encapsulation unit, the PCDriver may implement a pair through a pyauto interface to implement a call to the windows program operation method encapsulation unit, and drive the windows program to perform operations like clicking, screenshot comparison, and the like. For example, the PCDriver calls a method driver (dotted arrow in fig. 4) of a windows program operation method encapsulation unit through a pyauto interface to execute an interaction invitation operation by the main test device, and sends interaction invitation information to the auxiliary device, thereby implementing an automatic invitation of multiple devices to perform an interaction function, and constructing a multiple-device linkage scene.
And S12-2, driving a plurality of auxiliary devices through a second driving module of the main test device to receive the interactive invitation request information and then feeding back a reception invitation response to the main test device.
It can be understood that, the second drive module is a module for driving the live broadcast APP to execute operations on the auxiliary device, the second drive module encapsulates the automatic operation method of the live broadcast APP, which may include starting/closing the live broadcast APP, finding a control, clicking/long pressing by a mouse, an operation window, comparing screenshot, etc., the live broadcast APP required to be operated is driven to realize corresponding scenes, for example, after the live broadcast software to be tested in the auxiliary device is started, the second drive module may call the encapsulated automatic operation method according to the obtained interaction invitation request information to execute the operation of receiving the interaction invitation on the live broadcast interface, and feed back the response of receiving the invitation to the auxiliary device, thereby realizing the automatic invitation of multiple devices to perform interaction functions, and constructing a multiple-device linkage scene.
In order to implement the above flow, a functional block diagram of a second driver module is further provided in an embodiment of the present invention, referring to fig. 6, and fig. 6 is a functional block diagram of a second driver module 102 provided in an embodiment of the present invention. Wherein second drive module 102 can contain the parameter write in unit 1 to parameter write in unit n, automation utensil unit 1 to automation utensil unit n, live APP drive unit (Driver), an auxiliary assembly corresponds a parameter write in unit and automation utensil unit (appius server), after second drive module obtains the acquisition information that comes from the multi-end calling module and send, can write in the automation utensil unit with this auxiliary assembly's equipment information and live APP's installation information by the parameter write in unit that corresponds in the automation utensil unit that each auxiliary assembly in the second drive module corresponds in, automation utensil unit receives the instruction after will converting into the instruction that the removal end can discern and transmits for APP drive unit, so that live APP drive unit drive (dotted arrow in figure 6) auxiliary assembly carries out corresponding operation.
Optionally, after the multi-device linkage scenario is established, an implementation manner for triggering the data acquisition device to start acquiring the performance data is provided below, referring to fig. 7, where fig. 7 is a schematic flowchart of an implementation manner of step S13 provided in the embodiment of the present invention, and step S13 may include:
and S13-1, when the data acquisition module of the main test equipment obtains the successful response fed back by the first driving module and obtains the successful response fed back by the second driving module, determining that the main test equipment and the auxiliary equipment successfully establish an interaction relationship.
And S13-2, acquiring performance data of the live broadcast software to be tested of the main test equipment through the data acquisition module.
In the embodiment of the invention, when the main test device and the auxiliary device both feed back a successful response, the sexual data acquisition module can acquire performance data through internally packaged psutil (a method for acquiring a CPU, a memory and the like) and write the performance data into a file.
Optionally, in an embodiment, since each windows program runs in different processes, the processes may be distinguished by PIDs or process names, and the data acquisition module may write in advance a PID or a process name for maintaining a preset acquisition time and a target running process. In order to collect performance data of a given process, one possible implementation is given below, i.e., step S13-2 may be implemented as follows:
and acquiring performance data of a target running process of the live broadcast software to be tested in preset acquisition time through a data acquisition module.
Optionally, after acquiring the performance data in the multi-device interaction scenario, in order to facilitate analyzing the performance of the live broadcast software to be tested, a performance data analysis manner is further provided below, referring to fig. 8, where fig. 8 is another live broadcast software performance data acquisition method provided by the embodiment of the present invention, the method may further include:
and S14, converting the performance data into visual graphic data.
In some possible embodiments, the data collection module may collect and store performance data of the live broadcast software to be tested, including a CPU, a physical memory, a virtual memory, a thread number, a handle number, and the like of each process, through psutil. And after the preset acquisition time is finished, the data acquisition module converts the stored data into a chart through Pygal for display. The display module (packaging the python library including methods of acquiring file data and generating charts such as xlrd, pygal and pyechats) converts the performance data into charts, and comparison and analysis are facilitated. Therefore, referring to fig. 9, fig. 9 is a functional schematic diagram of a data acquisition module according to an embodiment of the present invention, so as to complete a performance data display process in a multi-device interaction scenario. The tester can find the problems possibly existing in the test of live broadcast software by comparing the performance results of the clients with different versions, and the performance stability of the program is improved.
In order to implement each step in the embodiment to achieve a corresponding technical effect, an implementation manner of a live broadcast software performance data acquisition apparatus is provided below, referring to fig. 10, where fig. 10 is a functional block diagram of the live broadcast software performance data acquisition apparatus provided in the embodiment of the present invention, where the live broadcast software performance data acquisition apparatus 20 includes: the device comprises an acquisition module 201, a control module 202 and an acquisition module 203.
An obtaining module 201, configured to obtain acquisition information; the acquisition information comprises equipment information of the main test equipment, equipment information of the auxiliary equipment and installation information of live broadcast software to be tested; the main test equipment is in communication connection with the auxiliary equipment;
the control module 202 is used for controlling the main test equipment and the plurality of auxiliary equipment to establish a multi-equipment interaction relationship according to the acquired information;
the acquisition module 203 is configured to acquire performance data of live broadcast software to be tested of the main test device when it is determined that the main test device and the plurality of auxiliary devices successfully establish an interaction relationship.
Optionally, the obtaining module 201 is specifically configured to: and acquiring the acquired information through a multi-terminal calling module of the main test equipment.
Optionally, the control module 202 is specifically configured to drive, through a first driver module of the main test device, the main test device to send interaction invitation request information to the multiple auxiliary devices through the to-be-tested live broadcast software; and the second driving module of the main test equipment drives the auxiliary equipment to feed back a receiving invitation response to the main test equipment after receiving the interaction invitation request information.
Optionally, the acquisition module 203 is specifically configured to determine that the main test device and the multiple auxiliary devices successfully establish an interaction relationship when the data acquisition module of the main test device obtains a successful response fed back by the first driving module and obtains a successful response fed back by the second driving module; and acquiring performance data of live broadcast software to be tested of the main test equipment through a data acquisition module.
Optionally, the acquisition module 203 is specifically configured to acquire, by the data acquisition module, performance data of a target running process of live broadcast software to be tested at preset acquisition time, where the data acquisition module maintains the preset acquisition time and the target running process.
Optionally, a visualization module is further included for converting the performance data into visual graphical data.
An embodiment of the present invention further provides an electronic device, as shown in fig. 11, and fig. 11 is a block diagram of a structure of an electronic device according to an embodiment of the present invention. It should be noted that the electronic device may be a main test device as shown in fig. 1.
The electronic device 80 includes a communication interface 801, a processor 802, and a memory 803. The processor 802, memory 803, and communication interface 801 are electrically connected to one another, directly or indirectly, to enable the transfer or interaction of data. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The memory 803 may be used to store software programs and modules, such as program instructions/modules corresponding to the live broadcast software performance data acquisition method provided in the embodiment of the present invention, and the processor 802 executes various functional applications and data processing by executing the software programs and modules stored in the memory 803. The communication interface 801 may be used for communicating signaling or data with other node devices. The electronic device 80 may have a plurality of communication interfaces 801 in the present invention.
The memory 803 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a programmable read-only memory (PROM), an erasable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), and the like.
The processor 802 may be an integrated circuit chip having signal processing capabilities. The processor may be a general-purpose processor including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, etc.
An embodiment of the present invention provides a storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements any live broadcast software performance data collection method in the foregoing embodiments. The computer readable storage medium may be, but is not limited to, various media that can store program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a PROM, an EPROM, an EEPROM, a magnetic or optical disk, etc.
The above description is only an embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention should be covered by the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. A live broadcast software performance data acquisition method is characterized by comprising the following steps:
acquiring acquisition information; the acquisition information comprises equipment information of the main test equipment, equipment information of the auxiliary equipment and installation information of live broadcast software to be tested; the main test equipment is in communication connection with the plurality of auxiliary equipment;
controlling the main test equipment and the auxiliary equipment to establish a multi-equipment interaction relationship according to the acquired information;
and when determining that the main test equipment and the auxiliary equipment successfully establish an interaction relationship, acquiring performance data of the live broadcast software to be tested of the main test equipment.
2. The live software performance data acquisition method of claim 1, wherein obtaining test information comprises:
and acquiring the acquisition information through a multi-terminal calling module of the main test equipment.
3. The live broadcast software performance data acquisition method of claim 1, wherein the operation of controlling the live broadcast software to be tested of the main test device to send interactive invitation request operations to the plurality of auxiliary devices comprises:
the main testing equipment is driven by a first driving module of the main testing equipment to send interaction invitation request information to the auxiliary equipment through the to-be-tested live broadcast software;
and the plurality of auxiliary devices are driven by a second driving module of the main test device to receive the interactive invitation request information and then feed back a received invitation response to the main test device.
4. The live broadcast software performance data acquisition method of claim 3, wherein when it is determined that the main test device and the plurality of auxiliary devices successfully establish an interaction relationship, acquiring performance data of live broadcast software to be tested of the main test device comprises:
when the data acquisition module of the main test equipment obtains a successful response fed back by the first driving module and obtains a successful response fed back by the second driving module, determining that the main test equipment and the auxiliary equipment successfully establish an interaction relationship;
and acquiring performance data of the live broadcast software to be tested of the main test equipment through the data acquisition module.
5. The live broadcast software performance data acquisition method of claim 4, wherein obtaining the performance data of the live broadcast software to be tested of the main test device through the data acquisition module comprises:
and acquiring performance data of a target running process of the live broadcast software to be tested at preset acquisition time through the data acquisition module, wherein the preset acquisition time and the target running process are maintained by the data acquisition module.
6. The live broadcast software performance data collection method of claim 1, after determining that the main test device and the plurality of auxiliary devices collect performance data of live broadcast software to be tested of the main test device, further comprising:
and converting the performance data into visual graph data.
7. A live broadcast software performance data acquisition device, comprising:
the acquisition module is used for acquiring acquisition information; the acquisition information comprises equipment information of the main test equipment, equipment information of the auxiliary equipment and installation information of live broadcast software to be tested; the main test equipment is in communication connection with the plurality of auxiliary equipment;
the control module is used for controlling the main test equipment and the auxiliary equipment to establish a multi-equipment interaction relationship according to the acquired information;
and the acquisition module is used for acquiring the performance data of the to-be-tested live broadcast software of the main test equipment when the main test equipment and the auxiliary equipment are determined to successfully establish an interaction relationship.
8. The live broadcast software performance data acquisition device of claim 7, wherein the acquisition module is specifically configured to:
and acquiring the acquisition information through a multi-terminal calling module of the main test equipment.
9. An electronic device comprising a processor and a memory, wherein the memory stores a computer program executable by the processor, the computer program being executable by the processor to implement the live software performance data collection method of any one of claims 1-6.
10. A storage medium having stored thereon a computer program, wherein the computer program, when executed by a processor, implements a live software performance data collection method as claimed in any one of claims 1-6.
CN202110112725.XA 2021-01-27 2021-01-27 Live broadcast software performance data acquisition method and device, electronic equipment and storage medium Active CN112835761B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110112725.XA CN112835761B (en) 2021-01-27 2021-01-27 Live broadcast software performance data acquisition method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110112725.XA CN112835761B (en) 2021-01-27 2021-01-27 Live broadcast software performance data acquisition method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112835761A true CN112835761A (en) 2021-05-25
CN112835761B CN112835761B (en) 2023-05-23

Family

ID=75931980

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110112725.XA Active CN112835761B (en) 2021-01-27 2021-01-27 Live broadcast software performance data acquisition method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112835761B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105760308A (en) * 2016-03-31 2016-07-13 网易(杭州)网络有限公司 Multi-client coordinated test method and device
CN108040253A (en) * 2017-12-26 2018-05-15 百度在线网络技术(北京)有限公司 Monitor method, apparatus, equipment and the storage medium of net cast performance
CN109981628A (en) * 2019-03-18 2019-07-05 网易(杭州)网络有限公司 The monitoring method and device of network direct broadcasting software performance, electronic equipment
CN110209559A (en) * 2019-04-26 2019-09-06 华为技术有限公司 Non-invasive monitoring method, control equipment and storage medium
CN110674040A (en) * 2019-09-20 2020-01-10 广州虎牙科技有限公司 Application testing method, device, equipment and storage medium
CN111124907A (en) * 2019-12-18 2020-05-08 北京智明星通科技股份有限公司 Mobile phone game testing method and device and server
CN111479118A (en) * 2019-10-09 2020-07-31 王东 Electronic equipment control method and device and electronic equipment
CN111475412A (en) * 2020-04-01 2020-07-31 广州虎牙科技有限公司 Software testing method and device, electronic equipment and computer readable storage medium
CN111475359A (en) * 2020-04-13 2020-07-31 腾讯音乐娱乐科技(深圳)有限公司 System testing method, device and storage medium under multi-message interaction scene

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105760308A (en) * 2016-03-31 2016-07-13 网易(杭州)网络有限公司 Multi-client coordinated test method and device
CN108040253A (en) * 2017-12-26 2018-05-15 百度在线网络技术(北京)有限公司 Monitor method, apparatus, equipment and the storage medium of net cast performance
CN109981628A (en) * 2019-03-18 2019-07-05 网易(杭州)网络有限公司 The monitoring method and device of network direct broadcasting software performance, electronic equipment
CN110209559A (en) * 2019-04-26 2019-09-06 华为技术有限公司 Non-invasive monitoring method, control equipment and storage medium
CN110674040A (en) * 2019-09-20 2020-01-10 广州虎牙科技有限公司 Application testing method, device, equipment and storage medium
CN111479118A (en) * 2019-10-09 2020-07-31 王东 Electronic equipment control method and device and electronic equipment
CN111124907A (en) * 2019-12-18 2020-05-08 北京智明星通科技股份有限公司 Mobile phone game testing method and device and server
CN111475412A (en) * 2020-04-01 2020-07-31 广州虎牙科技有限公司 Software testing method and device, electronic equipment and computer readable storage medium
CN111475359A (en) * 2020-04-13 2020-07-31 腾讯音乐娱乐科技(深圳)有限公司 System testing method, device and storage medium under multi-message interaction scene

Also Published As

Publication number Publication date
CN112835761B (en) 2023-05-23

Similar Documents

Publication Publication Date Title
JP6898968B2 (en) Methods and devices for determining response time
CN109302522B (en) Test method, test device, computer system, and computer medium
EP3575975B1 (en) Method and apparatus for operating smart network interface card
CN108763086B (en) Script recording method, terminal and computer readable storage medium based on remote true machine
CN106484611B (en) Fuzzy test method and device based on automatic protocol adaptation
CN113672441B (en) Method and device for testing intelligent equipment
CN111198797B (en) Operation monitoring method and device and operation analysis method and device
US11740997B2 (en) Method and apparatus for debugging a device
CN111831542A (en) API application debugging method and device and storage medium
CN111651232A (en) One-machine multi-control method, device and system and electronic equipment
CN113495843B (en) Method and apparatus for testing play-up performance of video player
KR20180076020A (en) Apparatus and method for application test automation
CN110442806B (en) Method and apparatus for recognizing image
CN112835761B (en) Live broadcast software performance data acquisition method and device, electronic equipment and storage medium
CN113485855B (en) Memory sharing method and device, electronic equipment and readable storage medium
CN112671615A (en) Method, system and storage medium for collecting operation behavior data of front-end user
CN113961162A (en) Screen projection control method, screen projection sending end, screen projection receiving end and screen projection system
CN112486838A (en) Interface testing method and device, computer equipment and storage medium
CN112948276A (en) Fuzzy test method and device and electronic equipment
CN112416698A (en) Monitoring system expansion method and device, storage medium and electronic equipment
CN115079885B (en) System control method and device for double window display, electronic equipment and storage medium
CN112069034B (en) Fast application exception handling method and device, electronic equipment and storage medium
CN113050956B (en) Method, apparatus, medium and program product for automatically installing an application
CN114448848B (en) Switch testing method and device, electronic equipment and storage medium
CN113269893B (en) VR rendering method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant