CN114374999A - Test method, test device, electronic equipment and storage medium - Google Patents

Test method, test device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114374999A
CN114374999A CN202011106043.XA CN202011106043A CN114374999A CN 114374999 A CN114374999 A CN 114374999A CN 202011106043 A CN202011106043 A CN 202011106043A CN 114374999 A CN114374999 A CN 114374999A
Authority
CN
China
Prior art keywords
test
equipment
port
data link
task
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
CN202011106043.XA
Other languages
Chinese (zh)
Other versions
CN114374999B (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.)
Datang Mobile Communications Equipment Co Ltd
Original Assignee
Datang Mobile Communications Equipment 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 Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CN202011106043.XA priority Critical patent/CN114374999B/en
Publication of CN114374999A publication Critical patent/CN114374999A/en
Application granted granted Critical
Publication of CN114374999B publication Critical patent/CN114374999B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a test method, a test device, electronic equipment and a storage medium, and relates to the technical field of communication. The method comprises the following steps: receiving a test request, wherein the test request comprises resource information of test equipment required by a test task; inquiring test equipment required by the test task in a preset test network according to the resource information; driving a physical layer switch to establish a data link between a tested device and the testing device; and sending the test request to the test equipment so that the test equipment executes the test task on the tested equipment through the data link. After the test task is received, the physical layer switch is driven to establish the data link between the tested equipment and the test equipment in the preset test network according to the resource information of the test equipment required by the test task, so that the test network is prevented from being repeatedly set up manually, and the test efficiency is improved.

Description

Test method, test device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a test method, an apparatus, an electronic device, and a storage medium.
Background
With the full commercial use of the fifth Generation mobile communication technology (5G, 5th-Generation), more and more 5G networks are put into use, and thus, the service test requirement of 5G is increased.
At present, the following steps are often needed before the 5G service test is carried out:
step one, building a test network: and constructing a test network topological structure according to specific service test requirements, and establishing physical connection between each piece of test equipment required by service test by a tester according to the topological structure.
And step two, verifying an interface: after the test network is built, the switch management console needs to be logged in to verify whether the data of each interface meets the test threshold.
Step three, configuring a base station: and configuring base station parameters according to the terminal information to ensure that the tested equipment can be normally accessed.
If the service scene to be tested changes or the network version protocol is temporarily modified, the three steps are required to be repeated before testing, the diversified service scene requirements cannot be met, especially, the manual construction of the testing network is repeated, the testing process is seriously hindered, and the testing efficiency is low.
Disclosure of Invention
The invention provides a testing method, a testing device, electronic equipment and a storage medium, and aims to solve the problem of low testing efficiency caused by repeated building of a testing network in the prior art.
According to a first aspect of the invention, there is provided a method of testing, the method comprising:
receiving a test request, wherein the test request comprises resource information of test equipment required by a test task;
inquiring test equipment required by the test task in a preset test network according to the resource information;
driving a physical layer switch to establish a data link between a tested device and the testing device;
and sending the test request to the test equipment so that the test equipment executes the test task on the tested equipment through the data link.
According to a second aspect of the present invention, there is provided a test apparatus, the apparatus comprising:
the test request receiving module is used for receiving a test request, wherein the test request comprises resource information of test equipment required by a test task;
the test equipment query module is used for querying test equipment required by the test task in a preset test network according to the resource information;
the data link establishing module is used for driving the physical layer switch to establish a data link between the tested equipment and the testing equipment;
and the test request sending module is used for sending the test request to the test equipment so that the test equipment executes the test task on the tested equipment through the data link.
According to a third aspect of the present invention, there is provided an electronic apparatus comprising:
a processor, a memory and a computer program stored on the memory and executable on the processor, the processor implementing the aforementioned method when executing the program.
According to a fourth aspect of the invention, there is provided a readable storage medium having instructions which, when executed by a processor of an electronic device, enable the electronic device to perform the aforementioned method.
The invention provides a test method, a test device, electronic equipment and a storage medium, wherein the method comprises the following steps: receiving a test request, wherein the test request comprises resource information of test equipment required by a test task; inquiring test equipment required by the test task in a preset test network according to the resource information; driving a physical layer switch to establish a data link between a tested device and the testing device; and sending the test request to the test equipment so that the test equipment executes the test task on the tested equipment through the data link. After the test task is received, the physical layer switch is driven to establish the data link between the tested equipment and the test equipment in the preset test network according to the resource information of the test equipment required by the test task, so that the test network is prevented from being repeatedly set up manually, and the test efficiency is improved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
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 description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a flowchart illustrating specific steps of a testing method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating specific steps of a testing method according to a second embodiment of the present invention;
FIG. 3 is a schematic diagram of an intelligent laboratory management system according to a second embodiment of the present invention;
fig. 4 is a topology structure diagram of a test network according to a second embodiment of the present invention;
FIG. 5 is a diagram illustrating a test network according to a second embodiment of the present invention;
fig. 6 is a structural diagram of a testing apparatus according to a third embodiment of the present invention;
FIG. 7 is a block diagram of a testing apparatus according to a fourth embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
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, not all, embodiments of the present 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.
Example one
Referring to fig. 1, a flowchart illustrating specific steps of a testing method according to an embodiment of the present invention is shown.
Step 101, receiving a test request, where the test request includes resource information of a test device required by a test task.
At present, before a 5G service test is carried out, a test network is often manually set up according to a specific test task, a test scene and a network protocol, so that the test efficiency is low. In order to avoid the need of manually building a test network before each test, the embodiment of the invention provides a test method, wherein a self-research platform is built, and the self-research platform and programmable equipment are combined through a Client/Server (C/S) architecture, so that the combination of tested equipment and test equipment and the verification of a test environment are realized, and a test task can be smoothly executed. The system is used for resource management and laboratory environment construction, and the programmable control equipment comprises a physical layer switch.
Specifically, when a test task to be executed exists, the tested device sends a test request to the server, and the test request carries resource information of the test device required by the test task. The tested device packs the resource information of the testing device required for executing the testing task into a data packet in a JSON format, and sends the testing request carrying the data packet to the server in a POST mode. And after receiving the test request sent by the test equipment, the server obtains the resource information of the test equipment required by the test task by analyzing the data packet carried in the test request.
And 102, inquiring test equipment required by the test task in a preset test network according to the resource information.
For communication services, when performing service testing, the required testing devices can be classified into three categories: the first type is self-research devices, for example: an indoor Base station processing Unit (BBU), an Active Antenna Unit (AAU); the second type of device is a third party device that is external to the mining, such as: an optical matrix, a radio frequency matrix, a programmable attenuator, a User Equipment (UE), etc.; the third category is auxiliary equipment: cables, adapters, shielding boxes, etc. In order to avoid repeated manual test network construction, the test equipment and the tested equipment are connected through the programmable physical layer switch to form a preset test network, and the test network comprises test equipment required by most communication service tests, so that the requirements of most test tasks can be met only by constructing the test network once, and the test network is prevented from being constructed manually before the test task is executed each time.
When the server receives a test request sent by the tested equipment, the server inquires the test equipment needed by the test task in a preset test network according to the resource information of the test equipment needed by the test task in the test request.
Step 103, driving a physical layer switch to establish a data link between the device under test and the test device.
In combination with the foregoing, in the embodiment of the present invention, the device under test and the test device are connected through the programmable physical layer switch, both the device under test and the test involved device are connected to the physical layer switch, and the data link between the device under test and the test device can be opened in the physical layer switch through the driving script, so as to implement the free combination of the test resources.
Therefore, after the test equipment required for executing the test task is inquired in the preset test network, the physical layer switch is driven to establish the data link between the tested equipment and the test equipment, so that the sub-test network of the test task is established through the drive script, and the test network required by the test task is avoided being manually established.
And 104, sending the test request to the test equipment so that the test equipment executes the test task on the tested equipment through the data link.
After a data link between the tested device and the testing device required by the current testing task is established, the server forwards the testing request sent by the tested terminal to the testing device, and after the testing device receives the testing request, the testing device executes the testing task on the tested device through the established data link.
In summary, after receiving the test task, the embodiment of the present invention drives the physical layer switch to establish the data link between the device under test and the test device in the preset test network according to the resource information of the test device required by the test task, thereby avoiding the manual repeated establishment of the test network and improving the test efficiency.
Example two
Referring to fig. 2, a flowchart illustrating specific steps of a testing method according to a second embodiment of the present invention is shown.
Step 201, at least one tested device and at least one testing device required by a testing task are connected to a physical layer switch respectively to construct a testing network.
In order to avoid the need of manually building a test network before each test, the embodiment of the invention builds a self-research platform, connects the self-research platform, the programmable device and the automatic execution platform through a C/S architecture, and builds an intelligent laboratory management system, so that the combination of the tested device and the test device and the verification of the test environment are realized, and the test task can be smoothly executed. The self-research platform is used for resource management and laboratory environment construction, and the programmable control equipment comprises a physical layer switch. The self-research platform is matched with the physical layer switch to realize dynamic construction of a test environment, and the automatic execution platform is used for executing an automatic test task after the intelligent laboratory management system constructs the test environment and completes verification of the test environment.
Referring to fig. 3, a schematic diagram of an intelligent laboratory management system according to an embodiment of the present invention is shown. In the embodiment of the invention, the ports needing to be connected with each other between the tested equipment and the testing equipment (the testing instrument in fig. 3) are all connected to the physical layer switch, and the self-research platform remotely controls the physical layer switch through the management network according to the requirements of specific testing tasks to break through the data link between the tested equipment and the testing equipment, thereby realizing the dynamic transformation of the topological connection between the tested equipment and the testing equipment. Therefore, the tested device and the testing device are managed in a centralized mode to form a uniform shared resource pool capable of being controlled remotely. The user remotely accesses the intelligent laboratory management system through a Local Area Network (LAN) or a Wide Area Network (WAN) based on a Web interface, so that the release of a test task and the establishment and verification of a test environment are realized. In addition, in the embodiment of the present invention, the intelligent laboratory management system may interface with an external system, such as a research and development management system, to obtain related research and development information of the test equipment, or interface with a display system to display a test solution.
For communication services, when performing service testing, the required testing devices can be classified into three categories: the first type is self-research devices, for example: BBU, AAU; the second type of device is a third party device that is external to the mining, such as: optical matrices, radio frequency matrices, programmable attenuators, UEs, etc.; the third category is auxiliary equipment: cables, adapters, shielding boxes, etc. In order to avoid repeated manual construction of a test network for multiple times, the embodiment of the invention connects the test equipment and the tested equipment through the programmable physical layer switch to form a preset test network, and the test network comprises test equipment required by most communication service tests, so that the requirements of most test tasks can be met only by constructing the test network once, and the condition that the test network is required to be constructed manually before the test task is executed every time is avoided.
Specifically, a topological structure among the test devices is constructed according to the incidence relation among the test devices and the data transmission link, and then the tested devices, the test devices and the physical layer switch are physically connected according to the topological structure to form a preset test network. Taking a typical test scenario as an example, referring to fig. 4, a topology structure diagram of a test network provided in an embodiment of the present invention is shown. In fig. 4, two optical fibers are needed between one BBU and one Remote control transmitting Unit (RRU), so that 4 RRUs are connected to one BBU, and 8 optical fibers are needed, and referring to fig. 4, the BBU connects RRUs 1 to RRU4 through optical ports op1 to op8, wherein optical ports op1 and op2 of the BBU are connected to optical ports op1 and op2 of RRU1, optical ports op3 and op4 of the BBU are connected to optical ports op1 and op2 of RRU2, and so on. In fig. 4, radio frequency ports SH1 and SH2 of the RRU1 are connected to radio frequency ports SH1.1.1 and SH1.1.2 of the radio frequency matrix, radio frequency ports SH1 and SH2 of the RRU2 are connected to radio frequency ports SH1.1.3 and SH1.1.4 of the radio frequency matrix, and so on. The radio frequency matrix has a combining function, integrates 8 radio frequency signals from the RRU1 to the RRU4 into 4 radio frequency signals, and inputs the integrated 4 radio frequency signals into the programmable attenuator and the shielding box. The programmable attenuator and the shielding cage are shown as a whole in fig. 4.
In order to implement dynamic transformation of the topology connection between the device to be tested and the test device, the BBU and the RRU1 to RRU4 in fig. 4 are connected to the optical switch in the embodiment of the present application, so that a data link between the BBU and an actually required RRU is established in the optical switch according to the requirement of an actual test task.
Referring to fig. 5, a schematic diagram of a test network according to an embodiment of the present invention is shown. The user carries out remote control to the intelligent laboratory management system in fig. 3 through the test machine, BBU and AAU all connect on optical switch, AAU and UE all connect on radio frequency switch, thereby before carrying out concrete test task, intelligent laboratory management system drive optical switch and radio frequency switch get through the data link between the relevant equipment according to concrete test demand, the realization is to BBU, AAU and UE's free pairing, need not manual plug test wire, avoided all manual the setting up of carrying out test network before carrying out test task at every turn.
Step 202, receiving a test request, where the test request includes resource information of a test device required by a test task.
When a test task to be executed exists, the tested equipment sends a test request to the server, and the test request carries resource information of the test equipment required by the test task. The tested device packs the resource information of the testing device required for executing the testing task into a data packet in a JSON format, and sends the testing request carrying the data packet to the server in a POST mode. And after receiving the test request sent by the test equipment, the server obtains the resource information of the test equipment required by the test task by analyzing the data packet carried in the test request.
Step 203, inquiring the test equipment required by the test task and the port information corresponding to the test equipment in a preset test network according to the resource information.
As can be seen from the foregoing, the preset test network in the embodiment of the present invention includes most test devices required for testing the communication service, and therefore, before a specific test task is executed, the corresponding test device and the port information corresponding to the test device need to be queried in the preset test network according to the resource information of the test device actually required by the test task, so that the self-research platform drives the physical layer switch shown in fig. 3 to establish the data link between the test devices required by the test task.
And 204, judging whether the test equipment meets preset test conditions or not according to the resource information.
Before a data link between test devices is established, a current state of the test devices needs to be judged to determine whether the test devices meet preset test conditions, for example, whether the test devices are online is judged, if the test devices are not online, the test lines between the test devices and a physical layer switch may be disconnected, and the physical layer switch cannot be driven to establish the data link corresponding to the test devices, so that the current state of the test devices needs to be judged to ensure normal establishment of the data link.
Step 205, driving a physical layer switch to establish a data link between the device under test and the test equipment according to the port information when the test equipment meets a preset test condition.
If the test equipment meets the preset test condition, the physical layer switch is driven to establish a data link between the tested equipment and the test equipment according to the port information corresponding to the test equipment inquired in the step 203. If the test equipment does not meet the test conditions, test failure information is returned to the client, and the tester is prompted to be incapable of executing the test task normally. If the test failure information is received, the tester needs to check the test environment according to the prompt, for example, manually detect whether the access of the test line has a virtual connection, whether the access port of the test line is correct, and the like, and initiate the test request again after the detection is correct.
Optionally, the step of driving the physical layer switch to establish the data link between the device under test and the test device according to the port information includes: inquiring a control command required by a port connected with the test equipment in the physical layer switch in a drive information base according to the port information; and sending the control command to a physical layer switch, and driving the physical layer switch to establish a data link between the tested equipment and the testing equipment according to the control command.
Specifically, the port information of the test device includes a port identifier, and a control command of each port, for example, a control command based on a Telnet protocol, is specified in a drive control protocol of the physical layer switch. In the embodiment of the invention, the port identification of each port of the physical layer switch and the control command corresponding to the port are stored in the drive information base, and the control command corresponding to the port can be inquired in the drive information base according to the port information. After the control command of the test equipment required by the test task at the corresponding port on the physical layer switch is inquired, the control command is sent to the physical layer switch, so that the physical layer switch is driven to establish a data link between the tested equipment and the test equipment according to the control command.
Step 206, checking whether the data port of the physical layer switch meets a port threshold condition.
The test request in step 202 further includes a port threshold condition required by the test task and a target configuration parameter of the specific test device.
The configuration parameters of the specific test equipment in the embodiment of the invention can be modified according to the requirements of actual test services. The specific test equipment includes self-research equipment.
After the data link between the test device and the device under test is established, it is necessary to further determine whether the index of each port satisfies the port threshold condition required by the test task. The port threshold condition comprises an optical port power threshold condition and a radio frequency port power threshold condition. For example, the optical port power threshold condition may be that the optical port power is greater than-20 db, and the radio frequency port power threshold condition may be that the radio frequency port power is greater than-110 dbm and less than 0 dbm. The port threshold condition may be set according to a specific test task requirement, and the embodiment of the present invention is not specifically limited.
Step 207, if the data port meets the port threshold condition, configuring the specific test device according to the target configuration parameters of the specific test device.
If the data port corresponding to the test equipment meets the port threshold condition, executing the next step, and performing parameter configuration on the specific test equipment; and if the data port corresponding to the test equipment does not meet the port threshold condition, returning test failure information to the client, and prompting the tester that the test task cannot be continuously executed.
Optionally, the step of configuring the specific testing device according to the target configuration parameters of the specific testing device includes: matching the current configuration parameters of the specific test equipment with the target configuration parameters; if the current configuration parameter of the specific test equipment is not matched with the target configuration parameter, searching a corresponding target configuration command in a preset configuration information base according to the target configuration parameter; and sending the target configuration command to the specific test equipment so that the specific test equipment reconfigures parameters according to the target configuration command.
Specifically, taking the base station as an example, the base station belongs to self-research equipment, and configuration parameters of the base station can be modified according to actual test task requirements. The method comprises the steps of obtaining a target configuration parameter of a BASE station in a test request, matching the target configuration parameter with the current configuration parameter of the BASE station, and if the current configuration parameter of the BASE station is not matched with the target configuration parameter, indicating that the current configuration parameter of the BASE station cannot meet the actual requirement of a test task, so that the configuration parameter of the BASE station needs to be modified, different Simple Network Management Protocol (SNMP) commands are needed to modify different parameters of the BASE station, the SNMP commands of the BASE station are generally stored in a Management Information BASE (MIB), and therefore before the configuration parameter of the BASE station is modified, corresponding SNMP commands need to be searched in the MIB according to the target configuration parameter, and the searched SNMP commands are sent to the BASE station so that the configuration parameter can be modified according to the SNMP commands.
Generally, after the configuration parameters of the specific test equipment are modified, a modification result is fed back to the server, if the modification is successful, the server forwards a message of successful modification to the client to prompt a tester that the target configuration parameters of the specific test equipment are successfully modified, and then the next operation step is performed; if the modification fails, the server forwards a modification failure message to the client to prompt a tester that the target configuration parameters of the specific test equipment fail to be modified, and the tester cannot continue to execute the test task.
Step 208, sending the test request to the configured specific test device, so that the configured specific test device executes the test task on the device under test through the data link.
In the embodiment of the present invention, after the configuration of the specific test device is completed, all the test environments required by the test task are established and verified, and then the test task may be executed through the automated execution platform in fig. 3. Therefore, after the configuration of the specific test equipment is completed, the server forwards the test request to the test equipment, so that the test equipment tests the tested equipment through the data link established in the previous steps, including automatically executing a test script, printing a test process, outputting a test result, uploading the test result and the like. The specific execution process of the test task is different due to different test tasks, and thus, the embodiment of the present invention is not limited specifically.
In summary, after receiving the test task, the embodiment of the present invention drives the physical layer switch to establish the data link between the device under test and the test device in the preset test network according to the resource information of the test device required by the test task, so as to realize free combination of the device under test and the test device, avoid manual plugging of the test line, avoid manual construction of the test network, and improve the test efficiency. In addition, the embodiment of the invention connects the testing equipment and the tested equipment through the programmable physical layer switch to form a preset testing network, and the testing network comprises the testing equipment required by most communication service tests, so that the requirements of most testing tasks can be met only by building the testing network once, and the situation that the testing network needs to be built manually before the testing task is executed every time is avoided.
EXAMPLE III
Referring to fig. 6, a structural diagram of a testing apparatus provided in the third embodiment of the present invention is shown, which specifically includes:
a test request receiving module 301, configured to receive a test request, where the test request includes resource information of a test device required by a test task.
A test device query module 302, configured to query, according to the resource information, a test device required by the test task in a preset test network.
A data link establishing module 303, configured to drive a physical layer switch to establish a data link between the device under test and the testing device.
A test request sending module 304, configured to send the test request to the test device, so that the test device executes the test task on the device under test through the data link.
In summary, after receiving the test task, the embodiment of the present invention drives the physical layer switch to establish the data link between the device under test and the test device in the preset test network according to the resource information of the test device required by the test task, thereby avoiding the manual repeated establishment of the test network and improving the test efficiency.
The third embodiment is a corresponding apparatus embodiment to the second embodiment, and the detailed information may refer to the detailed description of the second embodiment, which is not repeated herein.
Example four
Referring to fig. 7, a structural diagram of a testing apparatus according to a fourth embodiment of the present invention is shown, which specifically includes:
the test network constructing module 401 is configured to connect at least one device under test and at least one test device required by a test task to the physical layer switch, respectively, to construct a test network.
A test request receiving module 402, configured to receive a test request, where the test request includes resource information of a test device required by a test task.
A test device query module 403, configured to query, according to the resource information, a test device required by the test task in a preset test network.
The test device query module 403 includes:
and the test equipment query submodule 4031 is configured to query, in a preset test network, test equipment required by the test task and port information corresponding to the test equipment according to the resource information.
And a test condition determining module 404, configured to determine whether the test device meets a preset test condition according to the resource information.
A data link establishing module 405, configured to drive a physical layer switch to establish a data link between the device under test and the testing device.
The data link establishing module 405 includes:
the data link establishing sub-module 4051 is configured to, when the testing device meets a preset testing condition, drive the physical layer switch to establish a data link between the device under test and the testing device according to the port information.
Optionally, the data link establishing sub-module 4051 includes:
a control command query unit, configured to query, in a drive information base, a control command required by a port, connected to the test device, in the physical layer switch according to the port information;
and the data link establishing unit is used for sending the control command to a physical layer switch and driving the physical layer switch to establish a data link between the tested equipment and the testing equipment according to the control command.
A test request sending module 406, configured to send the test request to the test device, so that the test device executes the test task on the device under test through the data link.
The test request further includes a port threshold condition required by the test task and a target configuration parameter of a specific test device, and the test request sending module 406 includes:
the data port checking sub-module 4061 is configured to check whether the data port of the physical layer switch satisfies the port threshold condition.
Wherein the port threshold condition comprises an optical port power threshold condition and a radio frequency port power threshold condition.
The test device configuring sub-module 4062 is configured to configure the specific test device according to the target configuration parameter of the specific test device if the data port meets the port threshold condition.
Optionally, the test device configuration sub-module 4062 includes:
the parameter matching unit is used for matching the current configuration parameters of the specific test equipment with the target configuration parameters;
a configuration command query unit, configured to search a corresponding target configuration command in a preset configuration information base according to the target configuration parameter if the current configuration parameter of the specific test device is not matched with the target configuration parameter;
and the configuration command sending unit is used for sending the target configuration command to the specific test equipment so as to enable the specific test equipment to reconfigure parameters according to the target configuration command.
The test request sending submodule 4063 is configured to send the test request to the configured specific test device, so that the configured specific test device executes the test task on the device under test through the data link.
In summary, after receiving the test task, the embodiment of the present invention drives the physical layer switch to establish the data link between the device under test and the test device in the preset test network according to the resource information of the test device required by the test task, so as to realize free combination of the device under test and the test device, avoid manual plugging of the test line, avoid manual construction of the test network, and improve the test efficiency. In addition, the embodiment of the invention connects the testing equipment and the tested equipment through the programmable physical layer switch to form a preset testing network, and the testing network comprises the testing equipment required by most communication service tests, so that the requirements of most testing tasks can be met only by building the testing network once, and the situation that the testing network needs to be built manually before the testing task is executed every time is avoided.
The fourth embodiment is a device embodiment corresponding to the second embodiment, and the detailed information may refer to the detailed description of the second embodiment, which is not repeated herein.
An embodiment of the present invention further provides an electronic device, with reference to fig. 8, including: a processor 801, a memory 802 and a computer program 8021 stored on said memory and executable on said processor, said processor implementing the testing method of the preceding embodiments when executing said program.
Embodiments of the present invention also provide a readable storage medium, and when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the test method of the foregoing embodiments.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (18)

1. A testing method is applied to a server, and the method comprises the following steps:
receiving a test request, wherein the test request comprises resource information of test equipment required by a test task;
inquiring test equipment required by the test task in a preset test network according to the resource information;
driving a physical layer switch to establish a data link between a tested device and the testing device;
and sending the test request to the test equipment so that the test equipment executes the test task on the tested equipment through the data link.
2. The method of claim 1, wherein the step of receiving a test request is preceded by:
and respectively connecting at least one tested device and at least one testing device required by a testing task to the physical layer switch to construct a testing network.
3. The method of claim 1, wherein the step of driving the physical layer switch to establish the data link between the device under test and the test equipment is preceded by the step of:
and judging whether the test equipment meets preset test conditions or not according to the resource information.
4. The method according to claim 3, wherein the step of querying the test devices required by the test task in a preset test network according to the resource information comprises:
inquiring test equipment required by the test task and port information corresponding to the test equipment in a preset test network according to the resource information;
the step of driving the physical layer switch to establish a data link between the device under test and the test device includes:
and under the condition that the test equipment meets preset test conditions, driving a physical layer switch to establish a data link between the tested equipment and the test equipment according to the port information.
5. The method of claim 4, wherein the step of driving a physical layer switch to establish a data link between the device under test and the test equipment according to the port information comprises:
inquiring a control command required by a port connected with the test equipment in the physical layer switch in a drive information base according to the port information;
and sending the control command to a physical layer switch, and driving the physical layer switch to establish a data link between the tested equipment and the testing equipment according to the control command.
6. The method of claim 1, wherein the test request further includes a port threshold condition required for a test task and a target configuration parameter of a specific test device, and wherein the step of sending the test request to the test device to cause the test device to execute the test task on the device under test via the data link comprises:
verifying whether a data port of the physical layer switch satisfies the port threshold condition;
if the data port meets the port threshold condition, configuring the specific test equipment according to the target configuration parameters of the specific test equipment;
and sending the test request to the configured specific test equipment so that the configured specific test equipment executes the test task on the tested equipment through the data link.
7. The method of claim 6, wherein the step of configuring the specific test device according to the target configuration parameters of the specific test device comprises:
matching the current configuration parameters of the specific test equipment with the target configuration parameters;
if the current configuration parameter of the specific test equipment is not matched with the target configuration parameter, searching a corresponding target configuration command in a preset configuration information base according to the target configuration parameter;
and sending the target configuration command to the specific test equipment so that the specific test equipment reconfigures parameters according to the target configuration command.
8. The method of claim 6, wherein the port threshold condition comprises an optical port power threshold condition and a radio frequency port power threshold condition.
9. A testing device, applied to a server, the device comprising:
the test request receiving module is used for receiving a test request, wherein the test request comprises resource information of test equipment required by a test task;
the test equipment query module is used for querying test equipment required by the test task in a preset test network according to the resource information;
the data link establishing module is used for driving the physical layer switch to establish a data link between the tested equipment and the testing equipment;
and the test request sending module is used for sending the test request to the test equipment so that the test equipment executes the test task on the tested equipment through the data link.
10. The apparatus of claim 9, further comprising:
and the test network construction module is used for respectively connecting the at least one tested device and the test device required by the at least one test task to the physical layer switch to construct a test network.
11. The apparatus of claim 9, further comprising:
and the test condition judgment module is used for judging whether the test equipment meets the preset test condition according to the resource information.
12. The apparatus of claim 11, wherein the test device query module comprises:
the test equipment query submodule is used for querying the test equipment required by the test task and the port information corresponding to the test equipment in a preset test network according to the resource information;
the data link establishing module includes:
and the data link establishing submodule is used for driving the physical layer switch to establish a data link between the tested equipment and the testing equipment according to the port information under the condition that the testing equipment meets the preset testing condition.
13. The apparatus of claim 12, wherein the data link establishment sub-module comprises:
a control command query unit, configured to query, in a drive information base, a control command required by a port, connected to the test device, in the physical layer switch according to the port information;
and the data link establishing unit is used for sending the control command to a physical layer switch and driving the physical layer switch to establish a data link between the tested equipment and the testing equipment according to the control command.
14. The apparatus of claim 9, wherein the test request further includes a port threshold condition required for a test task and a target configuration parameter of a specific test device, and wherein the test request sending module includes:
a data port checking submodule for checking whether a data port of the physical layer switch satisfies the port threshold condition;
a test device configuration submodule, configured to configure the specific test device according to a target configuration parameter of the specific test device if the data port meets the port threshold condition;
and the test request sending submodule is used for sending the test request to the configured specific test equipment so as to enable the configured specific test equipment to execute the test task on the tested equipment through the data link.
15. The apparatus of claim 14, wherein the test device configuration submodule comprises:
the parameter matching unit is used for matching the current configuration parameters of the specific test equipment with the target configuration parameters;
a configuration command query unit, configured to search a corresponding target configuration command in a preset configuration information base according to the target configuration parameter if the current configuration parameter of the specific test device is not matched with the target configuration parameter;
and the configuration command sending unit is used for sending the target configuration command to the specific test equipment so as to enable the specific test equipment to reconfigure parameters according to the target configuration command.
16. The apparatus of claim 14, wherein the port threshold condition comprises an optical port power threshold condition and a radio frequency port power threshold condition.
17. An electronic device, comprising:
processor, memory and computer program stored on the memory and executable on the processor, characterized in that the processor implements the testing method according to any of claims 1 to 8 when executing the program.
18. A readable storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform a testing method according to any one of claims 1 to 8.
CN202011106043.XA 2020-10-15 2020-10-15 Test method, test device, electronic equipment and storage medium Active CN114374999B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011106043.XA CN114374999B (en) 2020-10-15 2020-10-15 Test method, test device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011106043.XA CN114374999B (en) 2020-10-15 2020-10-15 Test method, test device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114374999A true CN114374999A (en) 2022-04-19
CN114374999B CN114374999B (en) 2024-02-06

Family

ID=81138512

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011106043.XA Active CN114374999B (en) 2020-10-15 2020-10-15 Test method, test device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114374999B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017211169A1 (en) * 2016-06-06 2017-12-14 中兴通讯股份有限公司 Link testing method, apparatus and system
CN107529180A (en) * 2016-06-21 2017-12-29 中兴通讯股份有限公司 A kind of base station cloud test environment construction device and method
CN107608887A (en) * 2017-09-14 2018-01-19 郑州云海信息技术有限公司 A kind of method for creating virtual opetrating system test server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017211169A1 (en) * 2016-06-06 2017-12-14 中兴通讯股份有限公司 Link testing method, apparatus and system
CN107529180A (en) * 2016-06-21 2017-12-29 中兴通讯股份有限公司 A kind of base station cloud test environment construction device and method
CN107608887A (en) * 2017-09-14 2018-01-19 郑州云海信息技术有限公司 A kind of method for creating virtual opetrating system test server

Also Published As

Publication number Publication date
CN114374999B (en) 2024-02-06

Similar Documents

Publication Publication Date Title
EP3048759B1 (en) Fault diagnosis method, device and system
CN107026764A (en) A kind of remote debugging method, equipment, server and system
CN110677383B (en) Firewall wall opening method and device, storage medium and computer equipment
CN106776346B (en) Test method and device of CCMTS (China center testing System) equipment
US7623856B2 (en) Method for testing communication protocol having collection of internal information of a mobile communication terminal by an external module
US20080119136A1 (en) Access point with bluetooth transducer
CN111404779A (en) Method, device and system for testing role switching of router nodes
CN102111728B (en) Network connection management module and method of mobile terminal
CN115150377A (en) Method and device for calling and processing simulation interface
CN111224828A (en) Network management method of intelligent CPE (customer premise equipment)
CN104836614A (en) Method for testing performance of CATV product
CN110460474A (en) The configuration method and device of functions of the equipments, storage medium, electronic equipment
CN103220715B (en) A kind of method of report network the performance test results and device
CN114374999B (en) Test method, test device, electronic equipment and storage medium
CN107864488B (en) Method, device and system for automatically testing base station service
CN108712782B (en) Tunnel establishment method and device, electronic equipment and readable storage medium
CN102546825B (en) A kind of long-distance monitoring method of automatic drive test system and device
CN112559289A (en) Monitoring system
CN111585804A (en) Router automatic configuration system, router automatic configuration method and automatic test system
CN112600738B (en) Method and device for verifying connectivity of network port
CN115695233B (en) Link testing device, method, electronic equipment and computer program product
CN218352515U (en) Optical switch equipment port control management device
CN115373927B (en) Product testing method, device, electronic equipment and computer readable medium
CN115037664B (en) Network connection testing method and device, repeater and storage medium
CN117614764A (en) Distribution network testing method, system, equipment and storage medium for intelligent household appliances

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