CN117202247A - Method, system and storage medium for batch automatic test of baseband processing units - Google Patents

Method, system and storage medium for batch automatic test of baseband processing units Download PDF

Info

Publication number
CN117202247A
CN117202247A CN202311174582.0A CN202311174582A CN117202247A CN 117202247 A CN117202247 A CN 117202247A CN 202311174582 A CN202311174582 A CN 202311174582A CN 117202247 A CN117202247 A CN 117202247A
Authority
CN
China
Prior art keywords
baseband processing
test
virtual
processing unit
tested
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.)
Pending
Application number
CN202311174582.0A
Other languages
Chinese (zh)
Inventor
王弢
杨磊
杨勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sino Tel Technologies Co ltd
Original Assignee
Beijing Sino Tel Technologies Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sino Tel Technologies Co ltd filed Critical Beijing Sino Tel Technologies Co ltd
Priority to CN202311174582.0A priority Critical patent/CN117202247A/en
Publication of CN117202247A publication Critical patent/CN117202247A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to a method, a system and a storage medium for batch automatic testing of baseband processing units, wherein the method comprises the steps of creating a first virtual testing platform and a second virtual testing platform on a target server; communication connection is established between the first virtual test platform and the first baseband processing unit to be tested and between the second virtual test platform and the second baseband processing unit to be tested; and running a preset automatic test RPA script on the first virtual test platform and the second virtual test platform, and automatically uploading the LTE test software and the base station test script to the first baseband processing unit to be tested and the second baseband processing unit to be tested through the preset automatic test RPA script for testing. The method ensures that the upper limit of the batch test depends on the number of virtual machines and the number of network ports of the server, and greatly increases the upper limit of the batch test, thereby shortening the whole test time and improving the test efficiency.

Description

Method, system and storage medium for batch automatic test of baseband processing units
Technical Field
The present invention relates to the field of wireless communications technologies, and in particular, to a method, a system, and a storage medium for batch automatic testing of baseband processing units.
Background
The baseband processing Unit is an abbreviation of "Base band Unit", and in wireless communication, the baseband processing Unit is an important component of a communication Base station and is responsible for processing baseband signals, i.e. processing and modulating digital signals, for data transmission and communication.
In the current wireless base station hardware service, there is often a BaseBand processing unit for repairing, for example, a BaseBand processing unit with a larger model number of BaseBand 5212/5216 is repaired, when the wireless base station hardware service is maintained, a PC end is used for controlling and using FileZilla to upload an LTE test version to the BaseBand processing unit, then a Cygwin platform terminal with a built-in moshell module of the BaseBand processing unit is used for uploading a specific base station test script, and then various test commands are run.
In the above-mentioned baseband processing unit board card test process, usually, a PC end is used to call and test a baseband processing unit, and because of the consistent IP addresses, if a batch of baseband processing units are tested by a PC end at the same time, the switch cannot identify the test target, thus resulting in a larger test bottleneck. In order to improve the testing efficiency, a plurality of sets of PC terminals are generally adopted for testing. During testing, a plurality of sets of baseband processing units to be tested are all placed on a workbench and are tested one by one.
However, in the above-mentioned technique, the scheme of setting up many sets of PC ends can increase equipment cost and manual operation cost for the upper limit of batch test is not high enough, and when baseband processing unit reprocessing quantity is great, the holistic test time overlength still can appear, and the lower condition of test efficiency.
Disclosure of Invention
The invention aims to provide a method, a system and a storage medium for batch automatic testing of a baseband processing unit, which have the effects that the scheme of arranging a plurality of sets of PC ends in the prior art can be improved, the equipment cost and the manual operation cost can be increased, the upper limit of batch testing is not high enough, and when the repairing quantity of the baseband processing unit is large, the conditions of overlong overall testing time and lower testing efficiency still occur.
The first object of the present invention is achieved by the following technical solutions:
a method for batch automatic testing of baseband processing units comprises the following steps:
creating a first virtual test platform and a second virtual test platform on a target server;
communication connection is established between the first virtual test platform and the first baseband processing unit to be tested and between the second virtual test platform and the second baseband processing unit to be tested;
And running a preset automatic test RPA script on the first virtual test platform and the second virtual test platform, and automatically uploading LTE test software and a base station test script to the first baseband processing unit to be tested and the second baseband processing unit to be tested through the preset automatic test RPA script.
By adopting the technical scheme, the physical resources of the target server can be divided into a plurality of virtual environments by dividing the virtual platform, and each environment has independent resource quota, so that resource isolation is realized. The resource isolation ensures that the testing activity of one virtual environment does not affect other environments, thereby realizing that a plurality of baseband processing units to be tested with the same model are accessed into a built-in management IP (Internet protocol) by the same IP address, and each virtual platform tests one baseband processing unit to be tested; on the other hand, the manual uploading action is replaced by the preset automatic test RPA script, so that an operator only needs to run the preset automatic test RPA script on a plurality of virtual test platforms, and the automation degree of batch test is improved. According to the method, the upper limit of batch test depends on the number of virtual machines and the number of network ports of the server, so that the upper limit of batch test is greatly increased, the overall test time is shortened, and the test efficiency is improved.
The present invention may be further configured in a preferred example to: the creating a first virtual test platform and a second virtual test platform on the target server comprises:
creating a first virtual machine and a second virtual machine through an ESXi console, wherein the first virtual machine and the second virtual machine respectively correspond to a first network port and a second network port on the target server, and an ESXi operating system is pre-stored in the target server;
and receiving configuration parameters to the first virtual machine and the second virtual machine to generate the first virtual test platform and the second virtual test platform, wherein the parameters comprise the quantity of CPU, the memory capacity and the network connection bandwidth.
By adopting the technical scheme, ESXi (VMware vSphere Hypervisor) is a common virtualization platform for creating and managing virtual machines, and by respectively corresponding a first virtual machine and a second virtual machine to a first network port and a second network port on a target server, the virtual machine can communicate with an external network, access network resources like a physical server, ensure that network traffic is correctly routed to the virtual machine, and thus complete the test of a baseband processing unit.
The present invention may be further configured in a preferred example to: the establishing communication connection between the first virtual test platform and the first baseband processing unit to be tested and between the second virtual test platform and the second baseband processing unit to be tested includes:
acquiring network configuration information of the first virtual test platform and the second virtual test platform, and determining positions of the first network port and the second network port through the network configuration information;
and connecting the first baseband processing unit to be tested to the first network port, and connecting the second baseband processing unit to be tested to the second network port.
By adopting the technical scheme, the relationship between the virtual machine and the network ports on the server can be known by checking the network configuration of the virtual machine such as IP address allocation, port mapping and the like, and the one-to-one correspondence communication relationship can be established by connecting the network ports through the network lines after the corresponding network ports are found.
The present invention may be further configured in a preferred example to: the running of the preset automatic test RPA script on the first virtual test platform and the second virtual test platform comprises the following steps:
starting the first virtual test platform and the second virtual test platform through the ESXI control console;
And running the preset automatic test RPA script in the first virtual test platform and the second virtual test platform respectively, wherein the preset automatic test RPA script is built in the first virtual test platform and the second virtual test platform.
By adopting the technical scheme, the automatic test RPA script is preset in each virtual test platform, so that each virtual test platform can automatically complete the test process, and the manual workload is reduced.
The present invention may be further configured in a preferred example to: the automatically uploading the LTE test software and the base station test script to the first to-be-tested baseband processing unit and the second to-be-tested baseband processing unit for testing through the preset automatic test RPA script, including:
restoring factory setting of the first baseband processing unit to be tested through the preset RPA automatic test script;
controlling a PyAutoGui module to capture and restore a completion result of factory setting of the first baseband processing unit to be tested through the preset RPA automatic test script, and generating a first ending instruction;
after receiving the first ending instruction, calling Filezilla through the preset RPA automatic test script to upload the LTE test software to the first baseband processing unit to be tested;
Controlling the PyAutoGui module to capture an uploading result of the LTE test software through the preset RPA automatic test script, and generating a second ending instruction;
and after receiving the second ending instruction, starting a Cygwin Terminal through the preset RPA script, and automatically uploading a base station test script to the first baseband processing unit to be tested.
By adopting the technical scheme, after the original version data is formatted and emptied, the PyAutoGui module simulates the operation process of operating the FileZilla and the Cygwin on the screen by the mouse and the keyboard, judges the execution result by combining the feedback information of the screen, selects the corresponding preset operation, and realizes the automation of the preset RPA automatic script test process without manual intervention in the whole process.
The present invention may be further configured in a preferred example to: and carrying out load test on the first baseband processing unit to be tested.
By adopting the technical scheme, the on-load test can help monitor and control the signal quality, ensure that a communication system provides clear and stable communication and data transmission, and is helpful for testers to identify performance bottlenecks and potential improvement points of the baseband processing unit to be tested.
The present invention may be further configured in a preferred example to: the performing the load test on the first baseband processing unit to be tested includes:
Receiving the transmitting power of a remote radio unit through a CPRI interface of the first baseband processing unit to be tested;
and generating a result of the load test according to the information of the transmitting power.
By adopting the technical scheme, the testing system of the baseband processing unit is further improved, and the testing result data is more comprehensive and reliable.
The present invention may be further configured in a preferred example to: the preset automatic test RPA script runs simultaneously and independently in the first virtual test platform and the second virtual test platform.
By adopting the technical scheme, the test processes of each virtual test platform are independent of each other and do not interfere with each other, so that the stability of batch test is ensured.
The second purpose of the present invention is to provide a system for batch automatic testing of baseband processing units, which has the effects of improving the situation that the scheme of setting a plurality of sets of PC ends in the prior art can increase the equipment cost and the labor cost, so that the upper limit of batch testing is not high enough, and when the repairing amount of the baseband processing units is large, the whole testing time is too long and the testing efficiency is low.
The second object of the present invention is achieved by the following technical solutions:
A system for batch automatic testing of baseband processing units, comprising:
the creation module is used for creating a first virtual test platform and a second virtual test platform on the target server;
the communication module is used for establishing communication connection between the first virtual test platform and the first baseband processing unit to be tested and between the second virtual test platform and the second baseband processing unit to be tested;
the self-checking module is used for running a preset automatic test RPA script on the first virtual test platform and the second virtual test platform, and automatically uploading the LTE test software and the base station test script to the first baseband processing unit to be tested and the second baseband processing unit to be tested through the preset automatic test RPA script.
By adopting the technical scheme, after the creation module creates the first virtual test platform and the second virtual test platform on the target server, the creation module sends the information of the first virtual test platform and the second virtual test platform to the communication module; and after the communication module establishes communication connection between the first virtual test platform and the first baseband processing unit to be tested and between the second virtual test platform and the second baseband processing unit to be tested, the self-checking module runs a preset automatic test RPA script on the first virtual test platform and the second virtual test platform, and automatically uploads the LTE test software and the base station test script to the first baseband processing unit to be tested and the second baseband processing unit to be tested for testing through the preset automatic test RPA script.
The present invention may be further configured in a preferred example to: the creation module comprises a new creation unit and a configuration unit, wherein:
the new building unit is used for building a first virtual machine and a second virtual machine through the ESXi console, wherein the first virtual machine and the second virtual machine respectively correspond to a first network port and a second network port on the target server, and an ESXi operating system is pre-stored in the target server;
the configuration unit is used for receiving configuration parameters to the first virtual machine and the second virtual machine to generate a first virtual test platform and a second virtual test platform, wherein the configuration parameters comprise the number of CPUs, the memory capacity and the network connection bandwidth.
The present invention may be further configured in a preferred example to: the communication module comprises an acquisition/determination unit and a connection unit, wherein:
the acquisition/determination unit is used for acquiring network configuration information of the first virtual test platform and the second virtual test platform and determining the positions of the first network port and the second network port through the network configuration information;
the connection unit is used for connecting the first baseband processing unit to be tested to the first network port and connecting the second baseband processing unit to be tested to the second network port.
The present invention may be further configured in a preferred example to: the self-checking module comprises a starting unit and an operating unit, wherein:
the starting unit is used for starting the first virtual test platform and the second virtual test platform through the ESXI control console;
the operation unit is used for respectively operating a preset automatic test RPA script in the first virtual test platform and the second virtual test platform, and the preset automatic test RPA script is built in the first virtual test platform and the second virtual test platform.
The present invention may be further configured in a preferred example to: the self-checking module further comprises a recovery unit, a first capturing unit, a first uploading unit, a second capturing unit and a second uploading unit:
the recovery unit is used for recovering the factory setting of the first baseband processing unit to be tested through a preset RPA automatic test script;
the first capturing unit is used for controlling the PyAutoGui module to capture and restore the completion result of the factory setting of the first baseband processing unit to be tested through a preset RPA automatic test script, and generating a first ending instruction;
the first uploading unit is used for calling Filezilla to upload LTE test software to the first baseband processing unit to be tested through a preset RPA automatic test script after receiving the first ending instruction;
The second capturing unit is used for controlling the PyAutoGui module to capture an uploading result of the LTE test software through a preset RPA automatic test script and generating a second ending instruction;
and the second uploading unit is used for starting the Cygwin Terminal through a preset RPA script after receiving the second ending instruction, and automatically uploading the base station test script to the first baseband processing unit to be tested.
The present invention may be further configured in a preferred example to: the apparatus further comprises:
and the test module is used for carrying out load test on the first baseband processing unit to be tested.
The present invention may be further configured in a preferred example to: the test module comprises a receiving unit and a generating unit, wherein:
the receiving unit is used for receiving the transmitting power of the remote radio unit through the CPRI interface of the first baseband processing unit to be tested;
and the generating unit is used for generating the result of the load test according to the information of the transmitting power.
In summary, the present invention includes at least one of the following beneficial technical effects:
1. the method comprises the steps that physical resources of a target server are divided into a plurality of virtual environments through dividing virtual platforms, each environment has independent resource quota, and resource isolation is achieved, so that a plurality of baseband processing units to be tested with the same model are accessed into a built-in management IP (Internet protocol) through the same IP address, and each virtual platform tests one baseband processing unit to be tested; on the other hand, the manual uploading action is replaced by the preset automatic test RPA script, so that an operator only needs to run the preset automatic test RPA script on a plurality of virtual test platforms, and the automation degree of batch test is improved. According to the method, the upper limit of batch test depends on the number of virtual machines and the number of network ports of the server, so that the upper limit of batch test is greatly increased, the overall test time is shortened, and the test efficiency is improved.
2. To further increase the upper limit of batch test, the method can be performed by adding a server, so that a full-time tester can operate a plurality of batch test systems at the same time, the test time is basically unchanged, and the repeatability is high.
Drawings
Fig. 1 is a flow chart of a method for batch automatic testing of a baseband processing unit according to an embodiment of the invention.
Fig. 2 is another flow chart of a batch automatic testing method for a baseband processing unit according to an embodiment of the invention.
Fig. 3 is a schematic flow chart of a batch automatic testing method for a baseband processing unit according to an embodiment of the invention.
Fig. 4 is a schematic flow chart of a batch automatic testing method for a baseband processing unit according to an embodiment of the invention.
Fig. 5 is a schematic flow chart of a batch automatic testing method for a baseband processing unit according to an embodiment of the invention.
Detailed Description
The invention is described in further detail below with reference to fig. 1-5.
In the current wireless base station hardware service, there is often a BaseBand processing unit for repairing, for example, a BaseBand processing unit with a larger model number of BaseBand 5212/5216 is repaired, when the wireless base station hardware service is maintained, a PC end is used for controlling and using FileZilla to upload an LTE test version to the BaseBand processing unit, then a Cygwin platform terminal with a built-in moshell module of the BaseBand processing unit is used for uploading a specific base station test script, and then various test commands are run.
In the above-mentioned baseband processing unit board card test process, usually, a PC end is used to call and test a baseband processing unit, and because of the consistent IP addresses, if a batch of baseband processing units are tested by a PC end at the same time, the switch cannot identify the test target, thus resulting in a larger test bottleneck. In order to improve the testing efficiency, a plurality of sets of PC terminals are generally adopted for testing. During testing, a plurality of sets of baseband processing units to be tested are all placed on a workbench and are tested one by one.
However, in the above-mentioned technique, the scheme of setting up many sets of PC ends can increase equipment cost and manual operation cost for the upper limit of batch test is not high enough, and when baseband processing unit reprocessing quantity is great, the holistic test time overlength still can appear, and the lower condition of test efficiency.
In order to solve the problems that in the prior art, the upper limit of batch test of a scheme for setting a plurality of sets of PC ends is not high enough, the test cost is high, and when the repairing amount of a baseband processing unit is large, the situation that the whole test time is too long and the test efficiency is low still occurs, the invention provides a method, a system and a storage medium for batch automatic test of the baseband processing unit.
Embodiment one:
the first embodiment of the invention provides a method for batch automatic testing of baseband processing units, referring to fig. 1, comprising steps S1-S4:
s1, a first virtual test platform and a second virtual test platform are established on a target server;
by dividing the virtual platform, the physical resources of the target server can be divided into a plurality of virtual environments, and each environment has independent resource quota, so that resource isolation is realized. The resource isolation ensures that the testing activity of one virtual environment does not affect other environments, thereby realizing that a plurality of baseband processing units to be tested with the same model are accessed into a built-in management IP (Internet protocol) by the same IP address, and each virtual platform tests one baseband processing unit to be tested.
Referring to fig. 2, specific creation steps include S101-S102:
s101, creating a first virtual machine and a second virtual machine through an ESXi console, wherein the first virtual machine and the second virtual machine correspond to a first network port and a second network port on a target server respectively, and an ESXi operating system is pre-stored in the target server;
ESXi (VMware vSphere Hypervisor) is a commonly used virtualization platform for creating and managing virtual machines, which in this embodiment are created using ESXI 6.7. When the method is used for creating, the Web browser is opened first, the IP address or the host name of the ESXi host is input, and login credentials including a user name and a password are provided to log in to a Web management interface of the ESXi host.
After entering the management interface, click on the "new" button to create the virtual machine. After receiving the new instruction, the test system generates a first virtual machine, generates name information for the first virtual machine, receives an instruction specified by a creator to establish a mapping relation with a first network port on the server, determines a storage path and the like. The method for creating the second virtual machine is consistent with the first virtual machine, and will not be described here again.
In this embodiment, the number of virtual machines created may be 2, 8, 32, or any positive integer greater than 1, where the actual number depends on the configuration parameters of the target server itself, and is not limited in this embodiment.
S102, receiving configuration parameters to the first virtual machine and the second virtual machine to generate a first virtual test platform and a second virtual test platform, wherein the configuration parameters comprise the number of CPUs, the memory capacity and the network connection bandwidth.
Resources such as a CPU, a memory, a network adapter, a hard disk and the like are allocated for each virtual machine, for example, 8 virtual machines are newly built, and the 8 virtual machines are tested by taking 4C, 12G, 100G and 1GE configurations as virtual test platforms.
The above configuration is only for illustration, and in actual configuration, the performance and resource allocation of the virtual machine should be adjusted according to the actual requirement, so as to ensure that each virtual machine can operate normally.
S2, communication connection is established between the first virtual test platform and the first baseband processing unit to be tested and between the second virtual test platform and the second baseband processing unit to be tested;
after communication connection is established, data exchange can be carried out between the virtual test platform and the corresponding baseband processing unit to be tested, so that LTE test software and base station test scripts can be transmitted to the baseband processing unit to be tested.
Referring to fig. 3, specific steps for establishing communication include S201-S202:
s201, acquiring network configuration information of a first virtual test platform and a second virtual test platform, and determining positions of a first network port and a second network port through the network configuration information;
in this embodiment, configuration information of the virtual machine is checked by logging into the console of the esai 6.7, where network configuration options of the virtual machine, including information such as a network adapter, an IP address, and a port map, can determine, through the port map information, a first network port and a second network port that respectively establish a port map with the first virtual test platform and the second virtual test platform.
For example, by the method, the first network port is confirmed to be positioned at the upper left of the target server, the second network port is confirmed to be positioned at the lower right of the target server, and after the distributed positions are confirmed, the communication connection with the baseband processing unit to be detected is conveniently established subsequently.
S202, connecting a first baseband processing unit to be tested to a first network port, and connecting a second baseband processing unit to be tested to a second network port.
In this embodiment, the first baseband processing unit to be tested and the first network port, and the second baseband processing unit to be tested and the second network port may be directly connected through a network cable, and after the connection is successful, the subsequent testing process may be started.
S3, running a preset automatic test RPA script on the first virtual test platform and the second virtual test platform, and automatically uploading LTE test software and a base station test script to a first baseband processing unit to be tested and a second baseband processing unit to be tested through the preset automatic test RPA script;
in the actual test, if 16 baseband processing units are tested at a time, a tester needs to operate at least 32 times of software uploading, and during the uploading period, the tester needs to pay attention to the uploading progress to perform the next operation, so that the operation amount is large, and the time utilization rate is not high enough. The step of manual uploading is replaced by creating the preset automatic test RPA script, so that the automation degree of the whole batch test can be improved, and the test efficiency is further improved.
Referring to fig. 4, further, the specific implementation steps of S3 include S301-S307:
S301, starting a first virtual test platform and a second virtual test platform through an ESXI control console;
in this embodiment, the user name and password may be entered using ESXI 6.7 to log into the Web management interface of the ESXI host. After the virtual machine view is accessed, clicking the option of 'virtual machine and template', and then accessing the virtual machine management interface, so that all created virtual test platforms can be displayed in the virtual machine management interface.
And selecting a name or an icon of the first virtual test platform, selecting a power supply option in an operation menu of the virtual machine, and selecting power on or power on so as to finish the starting of the first virtual test platform.
In actual use, all or part of the virtual test platforms can be started as required, if 16 virtual test platforms are created, only 8 baseband processing units to be tested are needed, and then the virtual test platforms connected with the 8 baseband processing units to be tested are correspondingly started.
S302, running a preset automatic test RPA script in the first virtual test platform and the second virtual test platform respectively, wherein the preset automatic test RPA script is built in the first virtual test platform and the second virtual test platform.
The automatic test RPA script is preset in each virtual test platform, so that each virtual test platform can automatically complete the test process, and the manual workload is reduced.
S303, restoring factory setting of the first baseband processing unit to be tested through a preset RPA automatic test script;
prior to testing, it is often necessary to ensure that the baseband processing unit is in a clean state to eliminate the effects that prior configurations and settings may have on the test results to ensure test accuracy and consistency.
In this embodiment, the function of controlling the Selenium module to call the Chrome browser to access the DUT board management page through the preset RPA automatic test script, automatically inputting the login user name and the password by the preset RPA automatic test script, and automatically selecting and recovering the factory default setting of the baseband processing unit may be adopted. The Selenium module is pre-stored in the first virtual test platform.
Selenium is an open source tool and library for automated browser operations, commonly used for functional testing of Web applications, web crawling, automation tasks, and the like. The Selenium supports multiple programming languages and provides different modules and APIs to facilitate automated testing and browser control by the developer.
S304, controlling a PyAutoGui module to capture and restore a finishing result of factory setting of the first baseband processing unit to be tested through a preset RPA automatic test script, and generating a first finishing instruction;
pyautoguil is a Python module for enabling automated user interface interactions, including mouse and keyboard operations. It can be used to automate various tasks such as simulating user operations on a screen, testing graphical user interface applications, automatically filling out forms, etc.
The PyAutoGui module is pre-stored in the first virtual test platform, operates the operation processes of FileZilla and Cygwin on the screen through a simulation mouse and a keyboard, judges an execution result by combining screen feedback information, and selects corresponding preset operation.
In this embodiment, after confirming that the factory setting is completed, the PyAutoGui module generates a first finishing instruction, and through the instruction, the preset RPA automatic test script enters the next preset task.
S305, after receiving a first ending instruction, calling Filezilla to upload LTE test software to a first baseband processing unit to be tested through a preset RPA automatic test script;
after the factory setting is finished, the action of manually uploading the LTE test software in the prior art is replaced by a preset RPA automatic test script.
In this implementation, eight virtual test platforms may be started, and after each virtual test platform runs a preset RPA automatic test script, a tester may execute the action of calling the FileZilla to upload LTE test software at the same time by using the preset RPA automatic test scripts in the eight virtual test platforms.
S306, controlling a PyAutoGui module to capture an uploading result of LTE test software through a preset RPA automatic test script, and generating a second ending instruction;
after the LTE test software is uploaded for about half an hour, capturing uploading completion information through the PyAutoGui, and generating a second finishing instruction so that the next preset step is normally executed.
S307, after receiving the second ending instruction, starting the Cygwin Terminal through a preset RPA script, and automatically uploading a base station test script to the first baseband processing unit to be tested.
And starting the Cygwin Terminal through a preset automatic test RPA script, then controlling the PyAutoGui to capture the Bash window and the command line input position, and automatically inputting a base station login command and a command uploaded by the base station test script through the PyAutoGui, thereby completing the automatic test process.
It is worth mentioning that the automatic test RPA script is preset to run simultaneously and independently in the first virtual test platform and the second virtual test platform, so that the test process of each virtual test platform is independent of each other and is not interfered with each other, and the stability of batch test is ensured.
S4, carrying out load test on the first baseband processing unit to be tested.
The on-load test can help monitor and control signal quality, ensure that the communication system provides clear and stable call and data transmission, and help testers identify performance bottlenecks and potential improvement points of the baseband processing unit to be tested.
Referring to fig. 5, the steps of the load test include, in particular, S401 to S402:
carrying out load test on the first baseband processing unit to be tested, including:
s401, receiving the transmitting power of a remote radio unit through a CPRI interface of a first baseband processing unit to be tested;
the CPRI interface of the first to-be-tested baseband processing unit is connected with the output port of the remote radio unit through an optical fiber, so that the first to-be-tested baseband processing unit and the remote radio unit normally communicate. In this embodiment, a baseband processing unit to be tested is connected to a remote radio unit.
S402, generating a result of the load test according to the information of the transmitting power.
And combining the result of the on-load test to ensure that the result data of the test of the baseband processing unit to be tested is more comprehensive and reliable.
The implementation principle of the application is as follows: by dividing the virtual platform, the physical resources of the target server can be divided into a plurality of virtual environments, and each environment has independent resource quota, so that resource isolation is realized. The resource isolation ensures that the testing activity of one virtual environment does not affect other environments, thereby realizing that a plurality of baseband processing units to be tested with the same model are accessed into a built-in management IP (Internet protocol) by the same IP address, and each virtual platform tests one baseband processing unit to be tested; on the other hand, the manual uploading action is replaced by the preset automatic test RPA script, so that an operator only needs to run the preset automatic test RPA script on a plurality of virtual test platforms, and the automation degree of batch test is improved.
According to the method, the upper limit of batch test depends on the number of virtual machines and the number of network ports of the server, so that the upper limit of batch test is greatly increased, the overall test time is shortened, and the test efficiency is improved.
Embodiment two:
the second embodiment of the invention provides a system for batch automatic testing of baseband processing units, which comprises a creation module, a communication module and a self-checking module, wherein:
the creation module is used for creating a first virtual test platform and a second virtual test platform on the target server;
the communication module is used for establishing communication connection between the first virtual test platform and the first baseband processing unit to be tested and between the second virtual test platform and the second baseband processing unit to be tested;
the self-checking module is used for running a preset automatic test RPA script on the first virtual test platform and the second virtual test platform, and automatically uploading the LTE test software and the base station test script to the first baseband processing unit to be tested and the second baseband processing unit to be tested through the preset automatic test RPA script.
In this embodiment, after the creation module creates the first virtual test platform and the second virtual test platform on the target server, information of the first virtual test platform and the second virtual test platform may be sent to the communication module; and after the communication module establishes communication connection between the first virtual test platform and the first baseband processing unit to be tested and between the second virtual test platform and the second baseband processing unit to be tested, the self-checking module runs a preset automatic test RPA script on the first virtual test platform and the second virtual test platform, and automatically uploads the LTE test software and the base station test script to the first baseband processing unit to be tested and the second baseband processing unit to be tested for testing through the preset automatic test RPA script.
The present invention may be further configured in a preferred example to: the creation module comprises a new creation unit and a configuration unit, wherein:
the new building unit is used for building a first virtual machine and a second virtual machine through the ESXi console, wherein the first virtual machine and the second virtual machine respectively correspond to a first network port and a second network port on the target server, and an ESXi operating system is pre-stored in the target server;
the configuration unit is used for receiving configuration parameters to the first virtual machine and the second virtual machine to generate a first virtual test platform and a second virtual test platform, wherein the configuration parameters comprise the number of CPUs, the memory capacity and the network connection bandwidth.
In this embodiment, the new creating unit may create the first virtual machine and the second virtual machine through the ESXi console, and send information of the first virtual test platform and the second virtual test platform to the configuration unit; the configuration unit receives configuration parameters to the first virtual machine and the second virtual machine to generate a first virtual test platform and a second virtual test platform, wherein the configuration parameters comprise the number of CPUs, the memory capacity and the network connection bandwidth.
The present invention may be further configured in a preferred example to: the communication module comprises an acquisition/determination unit and a connection unit, wherein:
The acquisition/determination unit is used for acquiring network configuration information of the first virtual test platform and the second virtual test platform and determining the positions of the first network port and the second network port through the network configuration information;
the connection unit is used for connecting the first baseband processing unit to be tested to the first network port and connecting the second baseband processing unit to be tested to the second network port.
In this embodiment, the acquiring/determining unit may acquire network configuration information of the first virtual test platform and the second virtual test platform, determine positions of the first network port and the second network port according to the network configuration information, and send the position information to the connection unit; the connecting unit is connected with the first baseband processing unit to be tested to the first network port and is connected with the second baseband processing unit to be tested to the second network port.
The present invention may be further configured in a preferred example to: the self-checking module comprises a starting unit and an operating unit, wherein:
the starting unit is used for starting the first virtual test platform and the second virtual test platform through the ESXI control console;
the operation unit is used for respectively operating a preset automatic test RPA script in the first virtual test platform and the second virtual test platform, and the preset automatic test RPA script is built in the first virtual test platform and the second virtual test platform.
In this embodiment, after the starting unit starts the first virtual test platform and the second virtual test platform through the esai console, the operation unit may operate the preset automatic test RPA script in the first virtual test platform and the second virtual test platform, respectively.
The present invention may be further configured in a preferred example to: the self-checking module further comprises a recovery unit, a first capturing unit, a first uploading unit, a second capturing unit and a second uploading unit:
the recovery unit is used for recovering the factory setting of the first baseband processing unit to be tested through a preset RPA automatic test script;
the first capturing unit is used for controlling the PyAutoGui module to capture and restore the completion result of the factory setting of the first baseband processing unit to be tested through a preset RPA automatic test script, and generating a first ending instruction;
the first uploading unit is used for calling Filezilla to upload LTE test software to the first baseband processing unit to be tested through a preset RPA automatic test script after receiving the first ending instruction;
the second capturing unit is used for controlling the PyAutoGui module to capture an uploading result of the LTE test software through a preset RPA automatic test script and generating a second ending instruction;
And the second uploading unit is used for starting the Cygwin Terminal through a preset RPA script after receiving the second ending instruction, and automatically uploading the base station test script to the first baseband processing unit to be tested.
In this embodiment, when the restoring unit restores the factory setting of the first to-be-tested baseband processing unit through the preset RPA automatic test script, the first capturing unit may control the pyautoplui module to capture a completion result of restoring the factory setting of the first to-be-tested baseband processing unit through the preset RPA automatic test script, and generate a first ending instruction and send the first ending instruction to the first uploading unit; after the first uploading unit receives the first ending instruction, calling FileZilla to upload LTE test software to the first baseband processing unit to be tested through a preset RPA automatic test script, capturing an uploading result of the LTE test software by the second capturing unit through a PyAutoGui module, generating a second ending instruction and sending the second ending instruction to the second uploading unit; after the second uploading unit receives the second ending instruction, the Cygwin Terminal is started through the preset RPA script, and the base station test script is automatically uploaded to the first baseband processing unit to be tested.
The present invention may be further configured in a preferred example to: the apparatus further comprises:
And the test module is used for carrying out load test on the first baseband processing unit to be tested.
In this embodiment, the communication module may also be configured to perform the load test on the first baseband processing unit to be tested after the communication connection is established between the first virtual test platform and the first baseband processing unit to be tested and between the second virtual test platform and the second baseband processing unit to be tested.
The present invention may be further configured in a preferred example to: the test module comprises a receiving unit and a generating unit, wherein:
the receiving unit is used for receiving the transmitting power of the remote radio unit through the CPRI interface of the first baseband processing unit to be tested;
and the generating unit is used for generating the result of the load test according to the information of the transmitting power.
In this embodiment, the receiving unit may further receive the transmitting power of the remote radio unit through the CPRI interface of the first baseband processing unit to be tested, and send the transmitting power to the generating unit; the generating unit generates a result of the load test according to the information of the transmission power.
It should be noted that: in the device provided in the above embodiment, when implementing the functions thereof, only the division of the above functional modules is used as an example, in practical application, the above functional allocation may be implemented by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to implement all or part of the functions described above. In addition, the embodiments of the apparatus and the method provided in the foregoing embodiments belong to the same concept, and specific implementation processes of the embodiments of the method are detailed in the method embodiments, which are not repeated herein.
The embodiment of the application also provides a device for automatically testing the baseband processing units in batches. The device for batch automatic testing of the baseband processing units can comprise: at least one processor, at least one network interface, a user interface, a memory, at least one communication bus.
The processor is configured to invoke the method of batch automatic testing of baseband processing units stored in the memory, which when executed by the one or more processors causes the apparatus of batch automatic testing of baseband processing units to perform the method as described in one or more of the embodiments described above.
The embodiment of the application also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the method for batch automatic testing of baseband processing units in the above embodiment, and in order to avoid repetition, the description is omitted here.
The present embodiment is only for explanation of the present application and is not to be construed as limiting the present application, and modifications to the present embodiment, which may not creatively contribute to the present application as required by those skilled in the art after reading the present specification, are all protected by patent laws within the scope of claims of the present application.

Claims (10)

1. A method for batch automatic testing of baseband processing units, comprising:
Creating a first virtual test platform and a second virtual test platform on a target server;
communication connection is established between the first virtual test platform and the first baseband processing unit to be tested and between the second virtual test platform and the second baseband processing unit to be tested;
and running a preset automatic test RPA script on the first virtual test platform and the second virtual test platform, and automatically uploading LTE test software and a base station test script to the first baseband processing unit to be tested and the second baseband processing unit to be tested through the preset automatic test RPA script.
2. The method for batch automatic testing of baseband processing units according to claim 1, wherein creating the first virtual test platform and the second virtual test platform on the target server comprises:
newly creating a first virtual machine and a second virtual machine through an ESXi console, wherein the first virtual machine and the second virtual machine respectively correspond to a first network port and a second network port on the target server, and an ESXi operating system is pre-stored in the target server;
and receiving configuration parameters to the first virtual machine and the second virtual machine to generate the first virtual test platform and the second virtual test platform, wherein the parameters comprise the quantity of CPU, the memory capacity and the network connection bandwidth.
3. The method for batch automatic testing of baseband processing units according to claim 2, wherein said establishing a communication connection between said first virtual test platform and a first baseband processing unit under test and between said second virtual test platform and a second baseband processing unit under test comprises:
acquiring network configuration information of the first virtual test platform and the second virtual test platform, and determining positions of the first network port and the second network port through the network configuration information;
and connecting the first baseband processing unit to be tested to the first network port, and connecting the second baseband processing unit to be tested to the second network port.
4. The method for batch automatic testing of baseband processing units according to claim 3, wherein running a preset automatic test RPA script on the first virtual test platform and the second virtual test platform comprises:
starting the first virtual test platform and the second virtual test platform through the ESXI control console;
and running the preset automatic test RPA script in the first virtual test platform and the second virtual test platform respectively, wherein the preset automatic test RPA script is built in the first virtual test platform and the second virtual test platform.
5. The method for automatically testing the baseband processing units in batch according to claim 4, wherein the automatically uploading the LTE test software and the base station test script to the first baseband processing unit to be tested and the second baseband processing unit to be tested by the preset automatic test RPA script includes:
restoring factory setting of the first baseband processing unit to be tested through the preset RPA automatic test script;
controlling a PyAutoGui module to capture and restore a completion result of factory setting of the first baseband processing unit to be tested through the preset RPA automatic test script, and generating a first ending instruction;
after receiving the first ending instruction, calling Filezilla through the preset RPA automatic test script to upload the LTE test software to the first baseband processing unit to be tested;
controlling the PyAutoGui module to capture an uploading result of the LTE test software through the preset RPA automatic test script, and generating a second ending instruction;
and after receiving the second ending instruction, starting a Cygwin Terminal through the preset RPA script, and automatically uploading a base station test script to the first baseband processing unit to be tested.
6. The method for batch automatic testing of baseband processing units according to claim 1, further comprising:
and carrying out load test on the first baseband processing unit to be tested.
7. The method for batch automatic testing of baseband processing units according to claim 6, wherein said performing a load test on said first baseband processing unit to be tested comprises:
receiving the transmitting power of a remote radio unit through a CPRI interface of the first baseband processing unit to be tested;
and generating a result of the load test according to the information of the transmitting power.
8. The method of claim 4, wherein the pre-set automatic test RPA scripts run simultaneously and independently within the first virtual test platform and the second virtual test platform.
9. A system for batch automatic testing of baseband processing units, comprising:
the creation module is used for creating a first virtual test platform and a second virtual test platform on the target server;
the communication module is used for establishing communication connection between the first virtual test platform and the first baseband processing unit to be tested, and establishing communication connection between the second virtual test platform and the second baseband processing unit to be tested;
The self-checking module is used for running a preset automatic test RPA script on the first virtual test platform and the second virtual test platform, and automatically uploading the LTE test software and the base station test script to the first baseband processing unit to be tested and the second baseband processing unit to be tested through the preset automatic test RPA script.
10. A computer readable storage medium, characterized in that a computer program is stored which can be loaded by a processor and which performs the method according to any of claims 1 to 8.
CN202311174582.0A 2023-09-12 2023-09-12 Method, system and storage medium for batch automatic test of baseband processing units Pending CN117202247A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311174582.0A CN117202247A (en) 2023-09-12 2023-09-12 Method, system and storage medium for batch automatic test of baseband processing units

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311174582.0A CN117202247A (en) 2023-09-12 2023-09-12 Method, system and storage medium for batch automatic test of baseband processing units

Publications (1)

Publication Number Publication Date
CN117202247A true CN117202247A (en) 2023-12-08

Family

ID=89004772

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311174582.0A Pending CN117202247A (en) 2023-09-12 2023-09-12 Method, system and storage medium for batch automatic test of baseband processing units

Country Status (1)

Country Link
CN (1) CN117202247A (en)

Similar Documents

Publication Publication Date Title
CN110442524B (en) Method and device for testing web service interface with authentication authorization
CN105426298A (en) ADB (Android debug bridge)-based software test method and system
CN107608901B (en) Jmeter-based testing method and device, storage medium and electronic equipment
CN111651366A (en) SDK test method, device, equipment and storage medium
CN110058920B (en) Virtual machine performance detection method and device, electronic equipment and storage medium
CN104536900A (en) Method and device for controlling mobile terminal
CN112115044A (en) Automatic testing method and system for electric power information communication equipment
KR20140111110A (en) Automated Test Equipment and Method of Controlling thereof
CN112231206A (en) Script editing method for application program test, computer readable storage medium and test platform
CN106815150B (en) Server-side interface test system and method
CN111651232A (en) One-machine multi-control method, device and system and electronic equipment
CN113709243B (en) Equipment remote control method and device, electronic equipment and storage medium
CN108540344B (en) Router upgrading test method and system
CN110764036B (en) Intelligent distribution transformer terminal test method and system
CN117041111A (en) Vehicle cloud function test method and device, electronic equipment and storage medium
CN104079634A (en) Method, device and system for displaying device interface
CN117202247A (en) Method, system and storage medium for batch automatic test of baseband processing units
CN113961504A (en) Mobile terminal group control method, device, system, server and storage medium
Lanui et al. A cloud-based solution for testing applications' compatibility and portability on fragmented android platform
CN114637669A (en) Device management method, device and storage medium
CN114745313A (en) Terminal remote testing method and device, electronic equipment and readable medium
CN114741273A (en) Remote real mobile terminal testing method, device, storage medium and equipment
CN111475398A (en) Server NIC diagnosis method, system, terminal and storage medium
CN214042112U (en) Upgrade test system
CN117251328B (en) USB peripheral remote adaptation method and system

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