CN112491653A - Automatic test system and test method for communication equipment - Google Patents

Automatic test system and test method for communication equipment Download PDF

Info

Publication number
CN112491653A
CN112491653A CN202011297541.7A CN202011297541A CN112491653A CN 112491653 A CN112491653 A CN 112491653A CN 202011297541 A CN202011297541 A CN 202011297541A CN 112491653 A CN112491653 A CN 112491653A
Authority
CN
China
Prior art keywords
communication equipment
tested
serial port
tested communication
control computer
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.)
Withdrawn
Application number
CN202011297541.7A
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.)
Ma'anshan Intelay Information Technology Co ltd
Original Assignee
Ma'anshan Intelay Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ma'anshan Intelay Information Technology Co ltd filed Critical Ma'anshan Intelay Information Technology Co ltd
Priority to CN202011297541.7A priority Critical patent/CN112491653A/en
Publication of CN112491653A publication Critical patent/CN112491653A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5046Resolving address allocation conflicts; Testing of addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

The invention discloses an automatic test system of communication equipment and a test method thereof, and the automatic test system comprises a test tool, a main control computer, a network serial port conversion module and a module to be tested, wherein the module to be tested is specifically a plurality of pieces of tested communication equipment which are sequentially connected in series; the main control computer is used for configuring the mapping relation of the network serial port conversion module, establishing the mapping relation between the virtual serial port and the actual port, establishing a serial port channel between the module to be tested and the main control computer which are accessed to the network through the network serial port conversion module by utilizing the mapping relation, issuing a configuration command of the communication equipment to be tested to each communication equipment to be tested through the serial port channel and a configuration command of the test tool to the test tool, receiving the test result sent by the test tool and processing the test result; the coverage rate, the use efficiency, the detection speed and the usability are improved.

Description

Automatic test system and test method for communication equipment
Technical Field
The invention relates to an automatic test system, in particular to an automatic test system and a test method for communication equipment, and belongs to the technical field of automatic test of communication equipment.
Background
The automatic test is a process of simulating manual operation according to a preset plan of a test engineer through a test tool or other means to complete input of a tested system and test output, is an important component of test work, and can complete a plurality of test works which cannot be completed manually or are difficult to realize manually. The automatic test is correctly and reasonably implemented, and the product can be tested quickly and comprehensively, so that the product quality is improved, the expenditure is saved, and the product release period is shortened. Therefore, automated testing is currently widely used in various device-level tests.
Because modern communication equipment is various in variety, in order to detect and maintain the equipment and improve the coverage rate, the use efficiency, the detection speed and the usability, the traditional special instrument equipment is difficult to complete the task, and for the situation, the construction of a standard and universal automatic test system of the communication equipment is very important.
In order to solve the above technical problems, the present invention provides the following technical solutions.
Disclosure of Invention
The invention aims to provide an automatic testing system and a testing method thereof for communication equipment, which are used for detecting and maintaining the communication equipment and improving the coverage rate, the use efficiency, the detection speed and the usability.
The purpose of the invention can be realized by the following technical scheme:
an automatic test system for communication equipment comprises a test tool, a main control computer, a network serial port conversion module and a module to be tested, wherein the module to be tested is a plurality of pieces of tested communication equipment which are sequentially connected in series;
the main control computer is used for configuring the mapping relation of the network serial port conversion module, establishing the mapping relation between a virtual serial port and an actual port, establishing a serial port channel between a module to be tested and the main control computer which are accessed to the network through the network serial port conversion module by utilizing the mapping relation, issuing a configuration command of the communication equipment to be tested to each communication equipment to be tested through the serial port channel and a configuration command of a test tool to the test tool, receiving a test result sent by the test tool and processing the test result; the device is used for sequentially issuing channel detection commands to the tested communication equipment through the serial connection channels among the tested communication equipment, receiving channel detection responses returned by the tested communication equipment and processing the channel detection responses;
the network serial port conversion module is used for connecting with a module to be tested, establishing a mapping relation between a virtual serial port and an actual port, and accessing the module to be tested into a network;
the data frame input port of the test tool is connected with the first tested communication equipment in serial connection, the data frame output port is connected with the last tested communication equipment in serial connection and used for generating a test command according to a test tool configuration command sent by the main control computer, sending the test command to each tested communication equipment through a serial connection channel between each tested communication equipment, receiving a test result returned by each tested communication equipment and sending the test result to the main control computer;
the tested communication equipment is used for configuring according to a tested communication equipment configuration command issued by the main control computer and returning a test result to the tested communication equipment after receiving a test command issued by the test tool; and the channel state response module is used for returning a channel state response to the main control computer after receiving the channel detection command.
Preferably, when the main control computer judges that the serial connection channel between the tested communication devices is conducted according to the channel state response returned by the tested communication devices, the main control computer allocates IP addresses to the tested communication devices in sequence through the serial connection channel between the tested communication devices; and sequentially extracting the MAC address of each tested communication device through a serial connection channel between each tested communication device, and performing MAC address conflict detection and processing.
Preferably, the establishing, by the master computer, a serial port channel between the master computer and the tested communication device includes: the master control computer sets serial port channel attribute of each tested communication device; the main control computer sets serial port parameters according to the serial port channel attributes of each tested communication device, wherein the serial port parameters comprise one or more of serial port numbers, baud rates, data bits, stop bits and parity bits; the main control computer opens a corresponding serial port channel according to the serial port number of the tested communication equipment; the master control computer registers a process, establishes an event trigger mechanism to associate the established serial port channel and read data transmitted in the serial port channel; the master control computer generates a result document for each serial port channel and is used for recording a configuration command of the communication equipment to be tested, which is sent to the communication equipment to be tested by the master control computer through the serial port channel, and a configuration response returned to the master control computer by the communication equipment to be tested through the serial port channel; and the tested communication equipment is configured according to a tested communication equipment configuration command sent by the main control computer, and then returns a configuration response to the main control computer according to a configuration result.
Preferably, the communication device under test has an uplink port and a downlink port, and a serial connection channel is formed between the communication devices under test through the uplink port and the downlink port, so as to connect the communication devices under test in series; the upper connection port and the lower connection port of the tested communication equipment are two Ethernet ports on the tested communication equipment, the tested communication equipment is also provided with a spare upper connection port and a spare lower connection port, and spare serial channels are formed among the tested communication equipment through the spare upper connection port and the spare lower connection port to connect the tested communication equipment in series; the Ethernet ports of the tested communication equipment which are used as uplink ports are consistent, and the Ethernet ports of the tested communication equipment which are used as downlink ports are consistent; the spare uplink port and the spare downlink port of the tested communication equipment are two Ethernet ports on the tested communication equipment; and the Ethernet ports of the backup uplink ports in the tested communication equipment are consistent, and the Ethernet ports of the backup downlink ports in the tested communication equipment are consistent.
Preferably, the main control computer reads the configuration files in sequence, executes the issuing of the command and the receiving processing of the response according to the command in the configuration files, and records the executed operation.
Preferably, two tested communication devices at two ends of the plurality of tested communication devices connected in series in sequence are two standard communication devices.
An automatic test method for communication equipment comprises the following steps:
the method comprises the following steps: a test engineer configures the mapping relation of the network serial port conversion module according to the network serial port conversion module software installed on the main control computer; because the serial port of the main control computer is limited, in order to increase the number of the tested communication equipment which can be controlled by the main control computer, the serial ports of a plurality of tested communication equipment are connected with the port of the network serial port conversion module, the network serial port conversion module accesses the plurality of tested equipment into the network, and the connecting line between the tested equipment and the network serial port conversion module can adopt the connecting line configured by a network serial port conversion module manufacturer; the main control computer configures the mapping relation of the serial port server, establishes the mapping relation between a virtual serial port and an actual port, and utilizes the mapping relation to realize the management of the module to be tested accessed to the network by the network serial port conversion module, thereby breaking the limitation that only one serial port card is installed on each PC; in order to realize the control of the main control computer on more tested communication equipment, a plurality of network serial port conversion modules can be adopted for cascade expansion, each network serial port conversion module is connected with a module to be tested, and all the tested communication equipment are sequentially connected in series.
Step two: a test engineer determines an automatic test case, and further determines a configuration file; the configuration file and the automation script are stored in the same directory; the main control computer can call the function library by reading the keywords in the configuration file to perform automatic testing;
step three: the main control computer sequentially establishes a serial port channel corresponding to each tested communication device according to the automatic test case; the serial port channel attribute required to be established by each tested communication device in the topology is set according to the sequence from top to bottom, namely from the tested communication device 1 to the tested communication device N, then the serial port channel corresponding to each device is established according to the serial port number of each tested communication device, and a process is registered to read the data from the serial port channel, so that the record and the output of the echoed information in the result document are realized;
t1: the main control computer sets the serial port channel attribute of each tested communication device; the serial port channel attribute comprises a baud rate, an odd-even mode and the like;
t2: the main control computer sets serial port parameters according to the serial port channel attributes of the tested communication equipment; the serial port parameters comprise one or more of serial port numbers, baud rates, data bits, stop bits and parity bits;
t3: the main control computer opens the corresponding serial port channel according to the serial port number of the tested communication equipment; the main control computer also automatically detects whether the serial port channels are successfully established, if all the serial port channels are successfully established, the main control computer can communicate with the tested communication equipment through the serial port channels, otherwise, the test is finished, prompt information is given, serial port numbers which are not successfully connected are listed, and manual positioning reasons can be changed conveniently;
t4: the master control computer registers a process, establishes an event trigger mechanism to associate the established serial port channel and read data transmitted in the serial port channel; therefore, the main control computer can monitor and read data from the serial port channel in real time and output and display the data according to the user requirement; the event trigger mechanism completes the work of associating the established serial port channel with two programs of reading the data of the serial port channel;
t5: the main control computer generates a result document for each serial port channel, and is used for recording a configuration command of the tested communication equipment sent to the tested communication equipment by the main control computer through the serial port channel, a configuration response returned to the main control computer by the tested communication equipment through the serial port channel and the like.
Step four: the main control computer configures IP addresses for the tested communication equipment through serial connection channels among the tested communication equipment and automatically detects whether the MAC addresses of all the tested communication equipment conflict or not;
s1: the main control computer configures IP addresses for each tested communication device in the topology in sequence, and the last section of the IP addresses corresponds to serial port numbers according to the serial port number increasing sequence in the topology;
s2: the main control computer automatically extracts the MAC address of each tested communication device through a serial connection channel between each tested communication device, if MAC address conflict is detected, the test is finished, prompt information is given, the tested communication devices with the MAC address conflict are listed, and manual positioning reasons can be changed conveniently;
step five: the main control computer reads the configuration file line by line, calls a corresponding function according to the content of the configuration file, completes the work of command issuing and echoing judgment on the tested communication equipment through a serial port channel, and tests the work of tool configuration and result output;
step six: and after the test is finished, the main control computer closes the serial port channel corresponding to each tested communication device one by one, and the test is finished.
Compared with the prior art, the invention has the beneficial effects that:
1. through the serial connection topology, the control equipment can simultaneously complete the issuing of the same configuration of a plurality of communication equipment in the same series or similar functions, thereby improving the test efficiency; automatically detecting serial port connection and MAC address conflict of communication equipment; the main control computer is used for configuring the mapping relation of the network serial port conversion module, establishing the mapping relation between the virtual serial port and the actual port, establishing a serial port channel between the module to be tested and the main control computer which are accessed to the network through the network serial port conversion module by utilizing the mapping relation, issuing a configuration command of the communication equipment to be tested to each communication equipment to be tested through the serial port channel and a configuration command of the test tool to the test tool, receiving the test result sent by the test tool and processing the test result; the device is used for sequentially issuing channel detection commands to the tested communication equipment through the serial connection channels among the tested communication equipment, receiving channel detection responses returned by the tested communication equipment and processing the channel detection responses.
2. The tested communication equipment is provided with an upper connection port and a lower connection port, and serial connection channels are formed among the tested communication equipment through the upper connection port and the lower connection port so as to connect the tested communication equipment in series; the upper connection port and the lower connection port of the tested communication equipment are two Ethernet ports on the tested communication equipment, the tested communication equipment is also provided with a spare upper connection port and a spare lower connection port, and spare serial channels are formed among the tested communication equipment through the spare upper connection port and the spare lower connection port to connect the tested communication equipment in series; the Ethernet ports of the tested communication equipment as the uplink ports are consistent, and the Ethernet ports of the tested communication equipment as the downlink ports are consistent; the spare uplink port and the spare downlink port of the tested communication equipment are two Ethernet ports on the tested communication equipment; the Ethernet ports of the spare uplink ports in each tested communication device are consistent, and the Ethernet ports of the spare downlink ports in each tested communication device are consistent.
3. The repetitive work of a test engineer is reduced, the human resources are saved, the main control computer automatically extracts the MAC address of each tested communication device through a serial connection channel between the tested communication devices, if MAC address conflict is detected, the test is finished, prompt information is given, the tested communication devices with the MAC address conflict are listed, and the change of manual positioning reasons is facilitated; the main control computer reads the configuration files line by line, calls corresponding functions according to the content of the configuration files, completes the work of command issuing and echoing judgment on the tested communication equipment through the serial port channel, and tests the work of tool configuration and result output.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic block diagram of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the following embodiments, and it should be understood that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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.
Referring to fig. 1, an automatic test system for communication devices includes a test tool, a main control computer, a network serial port conversion module, and a module to be tested, where the module to be tested is specifically a plurality of communication devices to be tested, and the plurality of communication devices to be tested are connected in series in sequence;
the main control computer is used for configuring the mapping relation of the network serial port conversion module, establishing the mapping relation between a virtual serial port and an actual port, establishing a serial port channel between a module to be tested and the main control computer which are accessed to the network through the network serial port conversion module by utilizing the mapping relation, issuing a configuration command of the communication equipment to be tested to each communication equipment to be tested through the serial port channel and a configuration command of a test tool to the test tool, receiving a test result sent by the test tool and processing the test result; the device is used for sequentially issuing channel detection commands to the tested communication equipment through the serial connection channels among the tested communication equipment, receiving channel detection responses returned by the tested communication equipment and processing the channel detection responses;
the network serial port conversion module is used for connecting with a module to be tested, establishing a mapping relation between a virtual serial port and an actual port, and accessing the module to be tested into a network;
the data frame input port of the test tool is connected with the first tested communication equipment in serial connection, the data frame output port is connected with the last tested communication equipment in serial connection and used for generating a test command according to a test tool configuration command sent by the main control computer, sending the test command to each tested communication equipment through a serial connection channel between each tested communication equipment, receiving a test result returned by each tested communication equipment and sending the test result to the main control computer;
the tested communication equipment is used for configuring according to a tested communication equipment configuration command issued by the main control computer and returning a test result to the tested communication equipment after receiving a test command issued by the test tool; and the channel state response module is used for returning a channel state response to the main control computer after receiving the channel detection command.
Preferably, when the main control computer judges that the serial connection channel between the tested communication devices is conducted according to the channel state response returned by the tested communication devices, the main control computer allocates IP addresses to the tested communication devices in sequence through the serial connection channel between the tested communication devices; and sequentially extracting the MAC address of each tested communication device through a serial connection channel between each tested communication device, and performing MAC address conflict detection and processing.
Wherein, the master computer establishes a serial port channel between the master computer and the tested communication equipment and comprises: the master control computer sets serial port channel attribute of each tested communication device; the main control computer sets serial port parameters according to the serial port channel attributes of each tested communication device, wherein the serial port parameters comprise one or more of serial port numbers, baud rates, data bits, stop bits and parity bits; the main control computer opens a corresponding serial port channel according to the serial port number of the tested communication equipment; the master control computer registers a process, establishes an event trigger mechanism to associate the established serial port channel and read data transmitted in the serial port channel; the master control computer generates a result document for each serial port channel and is used for recording a configuration command of the communication equipment to be tested, which is sent to the communication equipment to be tested by the master control computer through the serial port channel, and a configuration response returned to the master control computer by the communication equipment to be tested through the serial port channel; and the tested communication equipment is configured according to a tested communication equipment configuration command sent by the main control computer, and then returns a configuration response to the main control computer according to a configuration result.
The tested communication equipment is provided with an uplink port and a downlink port, and serial connection channels are formed among the tested communication equipment through the uplink port and the downlink port so as to connect the tested communication equipment in series; the upper connection port and the lower connection port of the tested communication equipment are two Ethernet ports on the tested communication equipment, the tested communication equipment is also provided with a spare upper connection port and a spare lower connection port, and spare serial channels are formed among the tested communication equipment through the spare upper connection port and the spare lower connection port to connect the tested communication equipment in series; the Ethernet ports of the tested communication equipment which are used as uplink ports are consistent, and the Ethernet ports of the tested communication equipment which are used as downlink ports are consistent; the spare uplink port and the spare downlink port of the tested communication equipment are two Ethernet ports on the tested communication equipment; and the Ethernet ports of the backup uplink ports in the tested communication equipment are consistent, and the Ethernet ports of the backup downlink ports in the tested communication equipment are consistent.
The main control computer reads the configuration files in sequence, executes the issuing of the command and the receiving processing of the response according to the command in the configuration files, and records the executed operation.
And the two tested communication devices at two ends of the plurality of tested communication devices which are sequentially connected in series are two standard communication devices.
The automatic testing method of the communication equipment comprises the following steps:
the method comprises the following steps: a test engineer configures the mapping relation of the network serial port conversion module according to the network serial port conversion module software installed on the main control computer; because the serial port of the main control computer is limited, in order to increase the number of the tested communication equipment which can be controlled by the main control computer, the serial ports of a plurality of tested communication equipment are connected with the port of the network serial port conversion module, the network serial port conversion module accesses the plurality of tested equipment into the network, and the connecting line between the tested equipment and the network serial port conversion module can adopt the connecting line configured by a network serial port conversion module manufacturer; the main control computer configures the mapping relation of the serial port server, establishes the mapping relation between a virtual serial port and an actual port, and utilizes the mapping relation to realize the management of the module to be tested accessed to the network by the network serial port conversion module, thereby breaking the limitation that only one serial port card is installed on each PC; in order to realize the control of the main control computer on more tested communication equipment, a plurality of network serial port conversion modules can be adopted for cascade expansion, each network serial port conversion module is connected with a module to be tested, and all the tested communication equipment are sequentially connected in series;
step two: a test engineer determines an automatic test case, and further determines a configuration file; the configuration file and the automation script are stored in the same directory; the main control computer can call the function library by reading the keywords in the configuration file to perform automatic testing;
step three: the main control computer sequentially establishes a serial port channel corresponding to each tested communication device according to the automatic test case; the serial port channel attribute required to be established by each tested communication device in the topology is set according to the sequence from top to bottom, namely from the tested communication device 1 to the tested communication device N, then the serial port channel corresponding to each device is established according to the serial port number of each tested communication device, and a process is registered to read the data from the serial port channel, so that the record and the output of the echoed information in the result document are realized;
step four: the main control computer configures IP addresses for the tested communication equipment through serial connection channels among the tested communication equipment and automatically detects whether the MAC addresses of all the tested communication equipment conflict or not;
s1: the main control computer configures IP addresses for each tested communication device in the topology in sequence, and the last section of the IP addresses corresponds to serial port numbers according to the serial port number increasing sequence in the topology;
s2: the main control computer automatically extracts the MAC address of each tested communication device through a serial connection channel between each tested communication device, if MAC address conflict is detected, the test is finished, prompt information is given, the tested communication devices with the MAC address conflict are listed, and manual positioning reasons can be changed conveniently;
step five: the main control computer reads the configuration file line by line, calls a corresponding function according to the content of the configuration file, completes the work of command issuing and echoing judgment on the tested communication equipment through a serial port channel, and tests the work of tool configuration and result output;
step six: and after the test is finished, the main control computer closes the serial port channel corresponding to each tested communication device one by one, and the test is finished.
The working principle of the invention is as follows: a test engineer configures the mapping relation of the network serial port conversion module according to the network serial port conversion module software installed on the main control computer; because the serial port of the main control computer is limited, in order to increase the number of the tested communication equipment which can be controlled by the main control computer, the serial ports of a plurality of tested communication equipment are connected with the port of the network serial port conversion module, the network serial port conversion module accesses the plurality of tested equipment into the network, and the connecting line between the tested equipment and the network serial port conversion module can adopt the connecting line configured by a network serial port conversion module manufacturer; the main control computer configures the mapping relation of the serial port server, establishes the mapping relation between a virtual serial port and an actual port, and utilizes the mapping relation to realize the management of the module to be tested accessed to the network by the network serial port conversion module, thereby breaking the limitation that only one serial port card is installed on each PC; in order to realize the control of the main control computer on more tested communication equipment, a plurality of network serial port conversion modules can be adopted for cascade expansion, each network serial port conversion module is connected with a module to be tested, and all the tested communication equipment are sequentially connected in series; a test engineer determines an automatic test case, and further determines a configuration file; the configuration file and the automation script are stored in the same directory; the main control computer can call the function library by reading the keywords in the configuration file to perform automatic testing; the main control computer sequentially establishes a serial port channel corresponding to each tested communication device according to the automatic test case; the serial port channel attribute required to be established by each tested communication device in the topology is set according to the sequence from top to bottom, namely from the tested communication device 1 to the tested communication device N, then the serial port channel corresponding to each device is established according to the serial port number of each tested communication device, and a process is registered to read the data from the serial port channel, so that the record and the output of the echoed information in the result document are realized; the main control computer configures IP addresses for the tested communication equipment through serial connection channels among the tested communication equipment and automatically detects whether the MAC addresses of all the tested communication equipment conflict or not; the main control computer configures IP addresses for each tested communication device in the topology in sequence, and the last section of the IP addresses corresponds to serial port numbers according to the serial port number increasing sequence in the topology; the main control computer automatically extracts the MAC address of each tested communication device through a serial connection channel between each tested communication device, if MAC address conflict is detected, the test is finished, prompt information is given, the tested communication devices with the MAC address conflict are listed, and manual positioning reasons can be changed conveniently; the main control computer reads the configuration file line by line, calls a corresponding function according to the content of the configuration file, completes the work of command issuing and echoing judgment on the tested communication equipment through a serial port channel, and tests the work of tool configuration and result output; and after the test is finished, the main control computer closes the serial port channel corresponding to each tested communication device one by one, and the test is finished.
The preferred embodiments of the invention disclosed above are intended to be illustrative only. The preferred embodiments are not intended to be exhaustive or to limit the invention to the precise forms disclosed. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the invention and the practical application, to thereby enable others skilled in the art to best utilize the invention. The invention is limited only by the claims and their full scope and equivalents.

Claims (7)

1. An automatic test system for communication equipment is characterized by comprising a test tool, a main control computer, a network serial port conversion module and a module to be tested, wherein the module to be tested is specifically a plurality of pieces of tested communication equipment which are sequentially connected in series;
the main control computer is used for configuring the mapping relation of the network serial port conversion module, establishing the mapping relation between the virtual serial port and the actual port, establishing a serial port channel between the module to be tested and the main control computer which are accessed to the network through the network serial port conversion module by utilizing the mapping relation, issuing a configuration command of the communication equipment to be tested to each communication equipment to be tested through the serial port channel and a configuration command of the test tool to the test tool, receiving the test result sent by the test tool and processing the test result; the device is used for sequentially issuing channel detection commands to the tested communication equipment through the serial connection channels among the tested communication equipment, receiving channel detection responses returned by the tested communication equipment and processing the channel detection responses;
the network serial port conversion module is used for connecting with the module to be tested, establishing a mapping relation between a virtual serial port and an actual port, and accessing the module to be tested into a network;
the data frame input port of the test tool is connected with the first tested communication equipment in serial connection, the data frame output port is connected with the last tested communication equipment in serial connection and used for generating a test command according to a test tool configuration command sent by the main control computer, sending the test command to each tested communication equipment through a serial connection channel between each tested communication equipment, receiving a test result returned by each tested communication equipment and sending the test result to the main control computer;
the tested communication equipment is used for configuring according to a tested communication equipment configuration command issued by the main control computer and returning a test result to the tested communication equipment after receiving the test command issued by the test tool; and the channel state response module is used for returning a channel state response to the main control computer after receiving the channel detection command.
2. The automatic test system of claim 1, wherein: when the main control computer judges that the serial connection channel between the tested communication equipment is conducted according to the channel state response returned by the tested communication equipment, the main control computer distributes IP addresses to the tested communication equipment in sequence through the serial connection channel between the tested communication equipment; and sequentially extracting the MAC address of each tested communication device through a serial connection channel between each tested communication device, and performing MAC address conflict detection and processing.
3. The automatic test system of claim 1, wherein: the main control computer establishes a serial port channel between the main control computer and the tested communication equipment, and the method comprises the following steps: the main control computer sets the serial port channel attribute of each tested communication device; the main control computer sets serial port parameters according to the serial port channel attributes of each tested communication device, wherein the serial port parameters comprise one or more of serial port numbers, baud rates, data bits, stop bits and parity bits; the main control computer opens the corresponding serial port channel according to the serial port number of the tested communication equipment; the master control computer registers a process, establishes an event trigger mechanism to associate the established serial port channel and read data transmitted in the serial port channel; the main control computer generates a result document for each serial port channel and is used for recording a configuration command of the communication equipment to be tested, which is sent to the communication equipment to be tested by the main control computer through the serial port channel, and a configuration response returned to the main control computer by the communication equipment to be tested through the serial port channel; and the tested communication equipment is configured according to the configuration command of the tested communication equipment transmitted by the main control computer, and then returns a configuration response to the main control computer according to the configuration result.
4. The automatic test system of claim 1, wherein: the tested communication equipment is provided with an upper connection port and a lower connection port, and serial connection channels are formed among the tested communication equipment through the upper connection port and the lower connection port so as to connect the tested communication equipment in series; the upper connection port and the lower connection port of the tested communication equipment are two Ethernet ports on the tested communication equipment, the tested communication equipment is also provided with a spare upper connection port and a spare lower connection port, and spare serial channels are formed among the tested communication equipment through the spare upper connection port and the spare lower connection port to connect the tested communication equipment in series; the Ethernet ports of the tested communication equipment as the uplink ports are consistent, and the Ethernet ports of the tested communication equipment as the downlink ports are consistent; the spare uplink port and the spare downlink port of the tested communication equipment are two Ethernet ports on the tested communication equipment; the Ethernet ports of the spare uplink ports in each tested communication device are consistent, and the Ethernet ports of the spare downlink ports in each tested communication device are consistent.
5. The automatic test system of claim 1, wherein: the main control computer reads the configuration files in sequence, executes the issuing of the command and the receiving processing of the response according to the command in the configuration files, and records the executed operation.
6. The automatic test system of claim 1, wherein: two tested communication devices at two ends of the plurality of tested communication devices which are sequentially connected in series are two standard communication devices.
7. An automatic test method for communication equipment is characterized by comprising the following steps:
the method comprises the following steps: a test engineer configures the mapping relation of the network serial port conversion module according to the network serial port conversion module software installed on the main control computer;
step two: a test engineer determines an automatic test case, and further determines a configuration file; the configuration file and the automation script are stored in the same directory; the main control computer calls a function library by reading the keywords in the configuration file to perform automatic testing;
step three: the main control computer sequentially establishes a serial port channel corresponding to each tested communication device according to the automatic test case; setting serial port channel attributes required to be established by each tested communication device in the topology according to the sequence from top to bottom, then establishing a serial port channel corresponding to each device according to the serial port number of each tested communication device, registering a process to read data from the serial port channel, and recording and outputting echoed information in a result document;
step four: the main control computer configures IP addresses for the tested communication equipment through serial connection channels among the tested communication equipment and automatically detects whether the MAC addresses of all the tested communication equipment conflict or not;
s1: the main control computer configures IP addresses for each tested communication device in the topology in sequence, and the last section of the IP addresses corresponds to serial port numbers according to the serial port number increasing sequence in the topology;
s2: the main control computer automatically extracts the MAC address of each tested communication device through a serial connection channel between each tested communication device, if MAC address conflict is detected, the test is finished, prompt information is given, the tested communication devices with the MAC address conflict are listed, and manual positioning reasons can be changed conveniently;
step five: the main control computer reads the configuration file line by line, calls a corresponding function according to the content of the configuration file, completes the work of command issuing and echoing judgment on the tested communication equipment through a serial port channel, and tests the work of tool configuration and result output;
step six: and after the test is finished, the main control computer closes the serial port channel corresponding to each tested communication device one by one, and the test is finished.
CN202011297541.7A 2020-11-18 2020-11-18 Automatic test system and test method for communication equipment Withdrawn CN112491653A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011297541.7A CN112491653A (en) 2020-11-18 2020-11-18 Automatic test system and test method for communication equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011297541.7A CN112491653A (en) 2020-11-18 2020-11-18 Automatic test system and test method for communication equipment

Publications (1)

Publication Number Publication Date
CN112491653A true CN112491653A (en) 2021-03-12

Family

ID=74931645

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011297541.7A Withdrawn CN112491653A (en) 2020-11-18 2020-11-18 Automatic test system and test method for communication equipment

Country Status (1)

Country Link
CN (1) CN112491653A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115426286A (en) * 2022-08-30 2022-12-02 歌尔科技有限公司 Automatic product testing method, device, equipment and computer readable storage medium
CN115459860A (en) * 2022-07-25 2022-12-09 中国电子科技集团公司第二十九研究所 Automatic test system and test method for mixed signal processing module
CN115733778A (en) * 2022-09-07 2023-03-03 苏州磊泰电子科技有限公司 Universal serial port testing method, system and device
CN116663580A (en) * 2023-05-19 2023-08-29 深圳市铨顺宏科技有限公司 Module testing method, terminal and system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115459860A (en) * 2022-07-25 2022-12-09 中国电子科技集团公司第二十九研究所 Automatic test system and test method for mixed signal processing module
CN115426286A (en) * 2022-08-30 2022-12-02 歌尔科技有限公司 Automatic product testing method, device, equipment and computer readable storage medium
CN115426286B (en) * 2022-08-30 2024-10-11 歌尔科技有限公司 Automatic product testing method, device, equipment and computer readable storage medium
CN115733778A (en) * 2022-09-07 2023-03-03 苏州磊泰电子科技有限公司 Universal serial port testing method, system and device
CN116663580A (en) * 2023-05-19 2023-08-29 深圳市铨顺宏科技有限公司 Module testing method, terminal and system

Similar Documents

Publication Publication Date Title
CN112491653A (en) Automatic test system and test method for communication equipment
CN109361562B (en) Automatic testing method based on associated network equipment access
CN109413678A (en) A kind of Wi-Fi module automatic test approach and test macro
CN101789889B (en) Method and system for automatic testing communication equipment
CN101136790B (en) Cluster managerial automatization test system and method of ethernet switchboard
WO2017000424A1 (en) Protocol detection method and apparatus
CN105528290A (en) Construction method of script-based embedded software simulation and test integrated platform
CN103902458A (en) Universal storage software test design method
CN103761185B (en) A kind of automatization test system and method
CN111752772B (en) Storage device simulation test system and method
CN106776346B (en) Test method and device of CCMTS (China center testing System) equipment
CN106302027A (en) A kind of SDN controller performance tester and method of testing
CN110347539B (en) Test method, device, system, computing device and medium applied to server
CN116107893A (en) Heterogeneous platform embedded software test verification system and method
CN102291274A (en) System and method for realizing automatic adaptation of network testing instrument
CN104461854A (en) General simulation testing platform for software of ship equipment and construction method of general simulation testing platform
WO2009076827A1 (en) An automated testing method, system and a testing device
CN101776915A (en) Cross-platform station automatic monitoring system testing method based on concurrency simulating tools
CN116303034A (en) Automatic test system, method, equipment and medium for network on chip
CN113945743B (en) Multi-channel test automatic management system and method for pulse current injection experiment
CN105721568A (en) Remote debugging system, method and device
CN111752785B (en) System and method for testing SATA signal
CN103902590B (en) Premises automation method of testing and its device
CN116545891A (en) Automatic distribution network testing method based on intelligent equipment
CN111371512A (en) BLE module automated production test 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
WW01 Invention patent application withdrawn after publication

Application publication date: 20210312

WW01 Invention patent application withdrawn after publication