CN116347481A - Automatic testing method, system and device for multi-channel double-machine communication equipment - Google Patents

Automatic testing method, system and device for multi-channel double-machine communication equipment Download PDF

Info

Publication number
CN116347481A
CN116347481A CN202310319474.1A CN202310319474A CN116347481A CN 116347481 A CN116347481 A CN 116347481A CN 202310319474 A CN202310319474 A CN 202310319474A CN 116347481 A CN116347481 A CN 116347481A
Authority
CN
China
Prior art keywords
channel
test
tested
equipment
tested equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310319474.1A
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.)
Bangyan Technology Co ltd
Original Assignee
Bangyan 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 Bangyan Technology Co ltd filed Critical Bangyan Technology Co ltd
Priority to CN202310319474.1A priority Critical patent/CN116347481A/en
Publication of CN116347481A publication Critical patent/CN116347481A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/10Scheduling measurement reports ; Arrangements for measurement reports

Landscapes

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

Abstract

The invention relates to an automatic testing method, system and device for multi-channel double-machine communication equipment, wherein the method comprises the following steps: establishing connection between an upper computer and a plurality of tested equipment groups and connection between equipment inside the tested equipment groups; based on the type of the tested equipment, the upper computer sets test items, execution sequences and test parameters of all the tested equipment groups; starting a test, and transmitting channel switching signals to a plurality of tested equipment groups by an upper computer; after receiving the channel switching completion signal, the upper computer sends a channel establishment signal; after receiving the channel establishment completion signal, the upper computer sends a data test signal; after receiving the data test completion signal, recording the execution result of the current channel; the upper computer judges whether all channels of all the current tested equipment groups are tested; based on the execution results of all channels, the test passing rate is counted, and test reports of all tested devices are generated. The method realizes the automatic test of the data receiving and transmitting functions of each channel of the communication equipment.

Description

Automatic testing method, system and device for multi-channel double-machine communication equipment
Technical Field
The invention belongs to the technical field of computer software testing, and particularly relates to an automatic testing method, system and device for multi-channel double-computer communication equipment.
Background
In the specific communication field, in order to ensure the data point-to-point reliable transmission between two devices, a requirement for supporting multiple types of communication channels to transmit data is provided for the communication devices. When the default main communication channel fails, the user can quickly switch to other standby communication channels to continue to finish data transmission, so that the reliability of the communication equipment is improved, and the characteristic also brings great market demands for the type of communication equipment in specific industries. When the above type of communication equipment is subjected to mass production and delivery, the test of the type of equipment by a common factory is basically performed by manually testing and verifying the data receiving and transmitting function of each channel between every two devices one by one, and finally, a test operator also needs to manually record the corresponding test result and check whether the type of equipment passes the test. The repeated and complicated test mode is adopted manually, so that the overall production efficiency is low, and the risk of inconsistent overall quality caused by human error introduction exists.
Disclosure of Invention
The invention provides an automatic testing method, system and device for multi-channel double-machine communication equipment, and aims to at least solve one of the technical problems in the prior art. The automatic test method and the automatic test device for the multi-channel double-machine communication equipment can realize one-to-many automatic test on the data receiving and transmitting functions of each channel of the type of communication equipment in a batch production stage, simultaneously support the functions of automatic judgment, automatic recording and automatic generation of test reports of test results, and greatly improve the working efficiency and the product quality of the type of communication equipment in the batch production test stage.
The technical scheme of the invention relates to an automatic testing method for multi-channel double-machine communication equipment, which comprises the following steps:
s100, establishing connection between an upper computer and a plurality of tested equipment groups and connection between equipment inside the tested equipment groups, wherein the tested equipment groups comprise first tested equipment and second tested equipment, the first tested equipment is electrically connected with the second tested equipment and the upper computer, and the second tested equipment is electrically connected with the first tested equipment and the upper computer;
s200, setting test items, execution sequences and test parameters of all tested equipment groups by an upper computer based on the types of the tested equipment, wherein the types of the tested equipment comprise terminal type communication equipment, gateway type communication equipment and server type communication equipment;
s300, starting a test, wherein an upper computer sends channel switching signals to a plurality of tested equipment groups, and the channel switching signals are used for setting working channels and channel parameters of the tested equipment;
s400, after receiving channel switching completion signals of the first tested equipment and the second tested equipment which are in the same tested equipment group, the upper computer sends a channel establishment signal;
s500, after receiving channel establishment completion signals of the first tested equipment and the second tested equipment which are in the same tested equipment group, an upper computer sends data test signals;
s600, after receiving data test completion signals of the first tested device and the second tested device which are in the same tested device group, recording an execution result of a current channel;
s700, the upper computer judges whether all channels of all tested equipment groups are tested currently, if so, the step S800 is switched to, otherwise, the step S300 is returned to;
s800, based on the execution results of all channels, counting the test passing rate, and generating test reports of all tested devices.
Further, in the step S100, the first device under test and the second device under test are electrically connected through a plurality of channels, where the channels include an ethernet channel, a 4G communication channel, a satellite channel, and a short wave channel.
Further, the test item in step S200 includes:
the terminal type communication device test items include: an Ethernet channel intercommunication test, a 4G channel intercommunication test and a satellite channel intercommunication test;
the gateway type communication device test items include: an Ethernet channel intercommunication test, a 4G channel intercommunication test, a satellite channel intercommunication test and a short wave channel intercommunication test;
the server type communication device test items include: an Ethernet channel interworking test and a 4G channel interworking test.
Further, the test parameters in the step S200 are basic data for establishing a communication connection, and the test parameters include:
the Ethernet channel parameters comprise IP addresses and port data of the first tested device and the second tested device;
the 4G channel parameters comprise IP addresses and port data of the first tested device and the second tested device;
the satellite channel parameters comprise satellite numbers of the first tested equipment and the second tested equipment;
the short wave channel parameters comprise short wave numbers of the first tested equipment and the second tested equipment.
Further, in the step S300,
the channel switching signals comprise a channel working signal and a channel dismantling signal, wherein the channel working signal is used for enabling a currently set channel, and the channel dismantling signal is used for disabling the currently set channel;
the channel switching signal includes a first channel type bit for indicating a name of a currently operated channel, a channel state bit for indicating whether the currently operated channel is used or disabled, and a channel parameter bit for setting a parameter of the current channel.
Further, the method comprises the steps of,
in the step S400 of the above-mentioned process,
the channel establishment signal comprises a first channel number bit and a second channel type bit, wherein the first channel number bit is used for representing the number of a current establishment channel, and the second channel type bit is used for representing the type of the current establishment channel;
in the step S500 of the above-mentioned process,
the data test signal comprises a second channel number bit, a test data length bit and a test sub-digit, wherein the second channel number bit is used for representing the number of the current channel, the test data length bit is used for representing the byte number of each test inter-transmission data, and the test sub-digit is used for representing the repetition number of the test inter-transmission data.
Further, the step S500 further includes:
s510, if the channel establishment completion signals of the first tested device and the second tested device which are in the same tested device group are not received, the upper computer directly records the execution result of the current channel, and returns to the step S300 to execute the test of the next channel.
Further, in the step S800,
the test report comprises equipment model, testers, equipment numbers, equipment IP addresses, test time, test passing rate, test conclusion and test item execution conditions.
The invention also provides a system of the automatic test method of the multi-channel double-machine communication equipment, which comprises the following steps:
the test execution module is used for sending test signals and receiving signal execution results;
the system comprises a case management module, a user-defined test case management module and a user-defined test case management module, wherein the case management module is used for selecting and sequencing built-in test cases, configuring expected test results and importing and exporting custom test cases;
the parameter management module is used for configuring information of the tested equipment and parameter configuration of data intercommunication of the tested equipment;
the version management module is used for inquiring and upgrading management of the software version of the tested equipment;
and the test data management module is used for recording the test case execution result and the process log and generating a test report.
The invention also provides a device for the automatic test method of the multi-channel double-machine communication equipment, which is used for realizing the automatic test method of the multi-channel double-machine communication equipment.
According to some embodiments of the invention, the beneficial effects of the invention are as follows:
the automatic test method of the multi-channel double-machine communication equipment provided by the invention simulates the operation of the manual test process of the multi-channel double-machine communication equipment in a software mode, realizes one-to-many automatic test on the data receiving and transmitting functions of each channel of the terminal type communication equipment, the gateway type communication equipment and the server type communication equipment in a batch production stage, can achieve the functions of automatic judgment, automatic recording and automatic generation of test reports of test results, greatly improves the working efficiency of the terminal type communication equipment, the gateway type communication equipment and the server type communication equipment in the batch production test stage, reduces the manual participation degree, reduces the risk of human error introduction, and improves the consistency of product quality.
Further, additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
Fig. 1 is a flow chart of a method for automated testing of a multi-channel two-way communication device.
Fig. 2 is a schematic diagram of an overall test environment of an automated test method for a multi-channel dual-machine communication device.
Fig. 3 is a system diagram of an automated test method for a multi-channel dual-mode communication device.
In the above diagram, 100, a device under test group; 110. the first device under test; 120. the second tested device; 200. and an upper computer.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The conception, specific structure, and technical effects produced by the present invention will be clearly and completely described below with reference to the embodiments and the drawings to fully understand the objects, aspects, and effects of the present invention.
It should be noted that, unless otherwise specified, when a feature is referred to as being "fixed" or "connected" to another feature, it may be directly or indirectly fixed or connected to the other feature. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. Furthermore, unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art. The terminology used in the description presented herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The term "and/or" as used herein includes any combination of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in this disclosure to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element of the same type from another. For example, a first element could also be termed a second element, and, similarly, a second element could also be termed a first element, without departing from the scope of the present disclosure. The use of any and all examples, or exemplary language (e.g., "such as") provided herein, is intended merely to better illuminate embodiments of the invention and does not pose a limitation on the scope of the invention unless otherwise claimed. Further, as used herein, the industry term "pose" refers to the position and pose of an element relative to a spatial coordinate system.
Referring to fig. 1 to 3, embodiments of the present invention provide a method, an apparatus and a computer readable storage medium for automatically testing a multi-channel dual-machine communication device, where the method includes the following steps:
s100, establishing connection between an upper computer 200 and a plurality of tested equipment groups 100 and connection between internal equipment of the tested equipment groups 100, wherein the tested equipment groups 100 comprise first tested equipment 110 and second tested equipment 120, the first tested equipment 110 is respectively and electrically connected with the second tested equipment 120 and the upper computer 200, and the second tested equipment 120 is respectively and electrically connected with the first tested equipment 110 and the upper computer 200;
before the test starts, the tester connects the communication cables of each channel with the communication equipment to be tested in a pairwise pairing mode, and connects each communication equipment to be tested with the upper computer 200 running the automatic test software in a networking mode. The upper computer 200 is electrically connected with all the devices to be tested, in one embodiment, the upper computer 200 and the devices to be tested are connected to an ethernet switch through RJ45 interfaces, and in other embodiments, the upper computer 200 and the devices to be tested can also be connected through transmission media such as wireless networks, bluetooth, optical fibers, and the like. The first device under test 110 and the second device under test 120 in the same device under test group 100 are respectively provided with a plurality of channels or ports, and each channel is respectively connected with the opposite-end type channels through a specific connection mode. The specific connection mode comprises connection through an Ethernet switch, a 4G communication switch, a satellite transceiver and a short wave transceiver. In some embodiments, the specific channel of the first device under test 110 is electrically connected to the specific channel of the second device under test 120 through at least one network device such as a switch and at least one router.
Referring to fig. 2, in a specific embodiment, the upper computer 200 runs an automatic test software, and the tested device includes an interface module called by the automatic test software of the upper computer 200, so as to connect the upper computer 200 with the dual-machine paired tested communication device. All the communication equipment to be tested are connected to the switch through the operation and maintenance network port and then form a test local area network with the upper computer 200, the communication equipment to be tested is connected with service cables of all channels in a pairwise pairing mode, wherein the channel 1 is connected and communicated through the Ethernet switch, the channel 2 is connected and communicated through the 4G communication transceiver, the channel 3 and the channel 4 are connected and communicated through the satellite transceiver, and the channel 5 is connected and communicated through the short-wave transceiver.
S200, based on the types of the tested devices, the upper computer 200 sets test items, execution sequences and test parameters of all the tested device groups 100, wherein the types of the tested devices comprise terminal type communication devices, gateway type communication devices and server type communication devices;
the automatic test software is run on the upper computer 200, the corresponding equipment model is selected according to the type of the equipment to be tested, the equipment enters an automatic test software setting interface, the test items and sequences to be executed are set, and meanwhile, the related communication parameters of the equipment to be tested are set. And returning to the main interface of the automatic test software and starting the test. The specific device model includes three types of terminal type communication devices, gateway type communication devices, and server type communication devices. Wherein the dual-machine interworking is to connect two devices under test of the same type, and the selectable test items, the number of supported channels and the communication parameters presented by the devices under test of different types on the automated test software interface are different.
Entering an automatic test software setting interface, setting test items and execution sequences to be executed, and simultaneously setting the operation and maintenance IP address of the tested equipment and parameters of the intercommunication of channels between every two tested equipment. The test items of the terminal type communication equipment comprise an Ethernet channel intercommunication test, a 4G channel intercommunication test and a satellite channel intercommunication test. The gateway type communication equipment test items comprise an Ethernet channel intercommunication test, a 4G channel intercommunication test, a satellite channel intercommunication test and a short wave channel intercommunication test. The server type communication equipment test items comprise an Ethernet channel intercommunication test and a 4G channel intercommunication test.
The execution sequence setting refers to sequencing the execution sequence of the test items.
The channel intercommunication parameter is basic data for establishing communication connection at two ends, the specific Ethernet channel parameter comprises the IP address and the port of the two-end communication equipment, the 4G channel parameter comprises the IP address and the port of the two-end communication equipment, the satellite channel parameter comprises the satellite number of the two-end communication equipment, and the short wave channel parameter comprises the short wave number of the two-end communication equipment.
S300, starting a test, wherein the upper computer 200 transmits channel switching signals to a plurality of tested equipment groups 100, and the channel switching signals are used for setting working channels and channel parameters of the tested equipment;
specifically, after the setting is completed in step S200, the tester returns to the main interface of the automated test software, and clicks the start test button to start the test.
After the test starts, the automatic test software of the upper computer 200 sends channel switching signals to the paired tested devices, wherein the channel switching signals are used for setting the current working channels and channel parameters of the tested devices, and after the two devices to be paired are switched to the same type of channels, the instruction of channel establishment is sent down.
S400, after receiving channel switching completion signals of the first tested device 110 and the second tested device 120 in the same tested device group 100, the upper computer 200 sends a channel establishment signal;
judging that the channel switching signal and the channel establishing signal are both issued to the tested equipment and executed successfully, in a specific embodiment, after the channel switching signal and the channel establishing signal are sent, the tested equipment returns to the upper computer 200 to automatically test that the value of software is 0, if the value is 0, the execution is judged to be successful, otherwise, the channel testing result is automatically judged to be failure.
S500, after receiving channel establishment completion signals of the first tested device 110 and the second tested device 120 in the same tested device group 100, the upper computer 200 sends data test signals;
in a specific embodiment, the automated test software sends data test signals to the paired devices under test respectively, the paired devices under test execute the test and return data test results to the automated test software, if the return value is 0, the test is successful, and if the return value is other values, the test is failed.
S600, after receiving the data test completion signals of the first tested device 110 and the second tested device 120 which are positioned in the same tested device group 100, recording the execution result of the current channel;
s700, the upper computer 200 judges whether all channels of all tested equipment groups 100 are tested currently, if so, the step S800 is switched to, otherwise, the step S300 is returned to;
s800, based on the execution results of all channels, counting the test passing rate, and generating test reports of all tested devices.
Specifically, the automatic test software of the upper computer 200 respectively sends a channel switching signal and a channel establishing signal to the tested equipment paired by the two computers, if the channel switching signal and the channel establishing signal are successfully executed, the automatic test software continues to send a test instruction of data intercommunication to the tested equipment, and a test execution result is recorded; if the channel switching signal or the channel establishing signal fails to be executed, the executing result of the test is directly recorded and the next channel is switched to repeat the test steps S300 to S600 until all channels are traversed and the test report is automatically generated according to the test record.
Further, in the step S100, the first device under test 110 and the second device under test 120 are electrically connected through a plurality of channels, where the channels include an ethernet channel, a 4G communication channel, a satellite channel, and a short wave channel.
Further, the test item in step S200 includes:
the terminal type communication device test items include: an Ethernet channel intercommunication test, a 4G channel intercommunication test and a satellite channel intercommunication test;
the gateway type communication device test items include: an Ethernet channel intercommunication test, a 4G channel intercommunication test, a satellite channel intercommunication test and a short wave channel intercommunication test;
the server type communication device test items include: an Ethernet channel interworking test and a 4G channel interworking test.
Further, the test parameters in the step S200 are basic data for establishing a communication connection, and the test parameters include:
the ethernet channel parameters include IP addresses and port data of the first device under test 110 and the second device under test 120;
the 4G channel parameters include IP addresses and port data of the first device under test 110 and the second device under test 120;
the satellite channel parameters include satellite numbers of the first device under test 110 and the second device under test 120;
the short wave channel parameters include short wave numbers of the first device under test 110 and the second device under test 120.
Further, in the step S300,
the channel switching signals comprise a channel working signal and a channel dismantling signal, wherein the channel working signal is used for enabling a currently set channel, and the channel dismantling signal is used for disabling the currently set channel;
the channel switching signal includes a first channel type bit for indicating a name of a currently operated channel, a channel state bit for indicating whether the currently operated channel is used or disabled, and a channel parameter bit for setting a parameter of the current channel.
Specifically, the format of the channel switching signal is:
Figure BDA0004151184700000071
in a specific embodiment, where an ethernet channel has been previously established, and is now switched from an ethernet channel to a 4G channel, the channel down signal channel mod de-channel,
channel_mod_set(net_channel,free,192.xx.xx.100,10000),
wherein the first channel type bit is net_channel, which indicates that the currently operated channel is ethernet channel net_channel, the channel status bit is free, which indicates that the currently operated channel stops working, and the channel parameter bit specifically includes the IP address 192.Xx.xx.100 and the port data 10000 of the first device under test 110 or the second device under test 120.
The channel switch signal channel_mod_set is retransmitted:
channel_mod_set(4g_channel,work,192.xx.xx.101,10001),
wherein the first channel type bit is net_channel, which indicates that the currently operated channel is 4G channel 4g_channel, the channel status bit is work, which indicates that the currently operated channel is enabled to work, and the channel parameter bit specifically includes the IP address 192.Xx.xx.101 and the port data 10001 of the first device under test 110 or the second device under test 120.
Further, the method comprises the steps of,
in the step S400 of the above-mentioned process,
the channel establishment signal comprises a first channel number bit and a second channel type bit, wherein the first channel number bit is used for representing the number of a current establishment channel, and the second channel type bit is used for representing the type of the current establishment channel;
specifically, the format of the channel setup signal is:
Figure BDA0004151184700000081
in one specific embodiment, after the channel tear down signal channel_mod_demodulation and the channel switch signal channel_mod_set, if a successful return signal is received, a link setup instruction is issued last,
channel_mod_create(1,4g_channel),
wherein, the first channel number bit channel_id is 1, which indicates a channel with the current operation number of 1, and the second channel type bit channel_type is 4g_channel, which indicates that a channel with channel_id of 1 is a 4G channel, which indicates that a 4G channel is established.
In the step S500 of the above-mentioned process,
the data test signal comprises a second channel number bit, a test data length bit and a test sub-digit, wherein the second channel number bit is used for representing the number of the current channel, the test data length bit is used for representing the byte number of each test inter-transmission data, and the test sub-digit is used for representing the repetition number of the test inter-transmission data.
Specifically, the format of the data test signal is:
Figure BDA0004151184700000082
Figure BDA0004151184700000091
further, the step S500 further includes:
s510, if the channel establishment completion signals of the first device under test 110 and the second device under test 120 in the same device under test 100 are not received, the upper computer 200 directly records the execution result of the current channel, and returns to the step S300 to execute the test of the next channel.
Further, in the step S800,
the test report comprises equipment model, testers, equipment numbers, equipment IP addresses, test time, test passing rate, test conclusion and test item execution conditions.
Specifically, in one specific embodiment, the test report is in the format of:
Figure BDA0004151184700000092
referring to fig. 3, the invention further provides a system of the automatic testing method of the multi-channel dual-machine communication device, which comprises the following steps:
the test execution module is used for sending test signals and receiving signal execution results;
the system comprises a case management module, a user-defined test case management module and a user-defined test case management module, wherein the case management module is used for selecting and sequencing built-in test cases, configuring expected test results and importing and exporting custom test cases; the case management module comprises built-in case management, expected result management and user-defined case management, and is used for presenting selectable test items and execution sequences of the tested equipment of the current type to a user, and providing flexible configuration of expected results so as to realize automatic judgment of test results by automatic test software;
optionally, the system also comprises a custom case management module which can edit the test cases in an Excel form and the like, and import custom test items into the automated test software for execution;
the parameter management module is used for configuring information of the tested equipment and parameter configuration of data intercommunication of the tested equipment; the parameter management module comprises equipment basic information and data intercommunication configuration, wherein the equipment basic information comprises information for configuring the type, the number, the IP address and the like of the tested equipment, and the data intercommunication configuration is used for setting intercommunication parameters such as the IP address, the port, the number and the like of each channel of the tested equipment.
The version management module is used for inquiring and upgrading management of the software version of the tested equipment; the method comprises software version inquiry and software version upgrading, and is used for batch automatic inquiry and upgrading of the software version of the tested device.
The test data management module comprises test result management, test log management and test report management, and is used for recording test case execution results and process logs, generating test reports, judging and recording execution results of each test item, providing detailed log information of test instruction execution, facilitating rapid positioning and elimination when automatic test has problems, carrying out data analysis and statistics on the test information, and generating test reports.
The invention also provides a device for the automatic test method of the multi-channel double-machine communication equipment, which is used for realizing the automatic test method of the multi-channel double-machine communication equipment.
The automatic testing method for the multi-channel double-machine communication equipment provided by the invention has the beneficial effects that:
the automatic test method of the multi-channel double-machine communication equipment provided by the invention simulates the operation of the manual test process of the multi-channel double-machine communication equipment in a software mode, realizes one-to-many automatic test on the data receiving and transmitting functions of all channels of the communication equipment of the terminal type communication equipment, the gateway type communication equipment and the server type communication equipment in a batch production stage, can achieve the functions of automatic judgment, automatic recording and automatic generation of test reports of test results, greatly improves the working efficiency of the terminal type communication equipment, the gateway type communication equipment and the server type communication equipment in the batch production test stage, reduces the manual participation degree, reduces the risk of human error introduction, and improves the consistency of product quality.
It should be appreciated that the method steps in embodiments of the present invention may be implemented or carried out by computer hardware, a combination of hardware and software, or by computer instructions stored in non-transitory computer-readable memory. The method may use standard programming techniques. Each program may be implemented in a high level procedural or object oriented programming language to communicate with a computer system. However, the program(s) can be implemented in assembly or machine language, if desired. In any case, the language may be a compiled or interpreted language. Furthermore, the program can be run on a programmed application specific integrated circuit for this purpose.
Furthermore, the operations of the processes described herein may be performed in any suitable order unless otherwise indicated herein or otherwise clearly contradicted by context. The processes (or variations and/or combinations thereof) described herein may be performed under control of one or more computer systems configured with executable instructions, and may be implemented as code (e.g., executable instructions, one or more computer programs, or one or more applications), by hardware, or combinations thereof, collectively executing on one or more processors. The computer program includes a plurality of instructions executable by one or more processors.
Further, the method may be implemented in any type of computing platform operatively connected to a suitable computing platform, including, but not limited to, a personal computer, mini-computer, mainframe, workstation, network or distributed computing environment, separate or integrated computer platform, or in communication with a charged particle tool or other imaging device, and so forth. Aspects of the invention may be implemented in machine-readable code stored on a non-transitory storage medium or device, whether removable or integrated into a computing platform, such as a hard disk, optical read and/or write storage medium, RAM, ROM, etc., such that it is readable by a programmable computer, which when read by a computer, is operable to configure and operate the computer to perform the processes described herein. Further, the machine readable code, or portions thereof, may be transmitted over a wired or wireless network. When such media includes instructions or programs that, in conjunction with a microprocessor or other data processor, implement the steps described above, the invention described herein includes these and other different types of non-transitory computer-readable storage media. The invention may also include the computer itself when programmed according to the methods and techniques of the present invention.
The computer program can be applied to the input data to perform the functions described herein, thereby converting the input data to generate output data that is stored to the non-volatile memory. The output information may also be applied to one or more output devices such as a display. In a preferred embodiment of the invention, the transformed data represents physical and tangible objects, including specific visual depictions of physical and tangible objects produced on a display.
The present invention is not limited to the above embodiments, but can be modified, equivalent, improved, etc. by the same means to achieve the technical effects of the present invention, which are included in the spirit and principle of the present invention. Various modifications and variations are possible in the technical solution and/or in the embodiments within the scope of the invention.

Claims (10)

1. An automated testing method for a multi-channel dual-machine communication device, comprising the steps of:
s100, establishing connection between an upper computer and a plurality of tested equipment groups and connection between equipment inside the tested equipment groups, wherein the tested equipment groups comprise first tested equipment and second tested equipment, the first tested equipment is electrically connected with the second tested equipment and the upper computer, and the second tested equipment is electrically connected with the first tested equipment and the upper computer;
s200, setting test items, execution sequences and test parameters of all tested equipment groups by an upper computer based on the types of the tested equipment, wherein the types of the tested equipment comprise terminal type communication equipment, gateway type communication equipment and server type communication equipment;
s300, starting a test, wherein an upper computer sends channel switching signals to a plurality of tested equipment groups, and the channel switching signals are used for setting working channels and channel parameters of the tested equipment;
s400, after receiving channel switching completion signals of the first tested equipment and the second tested equipment which are in the same tested equipment group, the upper computer sends a channel establishment signal;
s500, after receiving channel establishment completion signals of the first tested equipment and the second tested equipment which are in the same tested equipment group, an upper computer sends data test signals;
s600, after receiving data test completion signals of the first tested device and the second tested device which are in the same tested device group, recording an execution result of a current channel;
s700, the upper computer judges whether all channels of all tested equipment groups are tested currently, if so, the step S800 is switched to, otherwise, the step S300 is returned to;
s800, based on the execution results of all channels, counting the test passing rate, and generating test reports of all tested devices.
2. The automated testing method of multi-channel dual-machine communication device according to claim 1, wherein in step S100, the first device under test and the second device under test are electrically connected through a plurality of channels, the channels including an ethernet channel, a 4G communication channel, a satellite channel, and a short wave channel.
3. The automated testing method of a multi-channel two-way communication device according to claim 1, wherein the testing items in the step S200 include:
the terminal type communication device test items include: an Ethernet channel intercommunication test, a 4G channel intercommunication test and a satellite channel intercommunication test;
the gateway type communication device test items include: an Ethernet channel intercommunication test, a 4G channel intercommunication test, a satellite channel intercommunication test and a short wave channel intercommunication test;
the server type communication device test items include: an Ethernet channel interworking test and a 4G channel interworking test.
4. The automated testing method of a multi-channel dual-mode communication device according to claim 1, wherein the testing parameters in step S200 are basic data for establishing a communication connection, and the testing parameters include:
the Ethernet channel parameters comprise IP addresses and port data of the first tested device and the second tested device;
the 4G channel parameters comprise IP addresses and port data of the first tested device and the second tested device;
the satellite channel parameters comprise satellite numbers of the first tested equipment and the second tested equipment;
the short wave channel parameters comprise short wave numbers of the first tested equipment and the second tested equipment.
5. The automated test equipment testing method of claim 1, wherein in step S300,
the channel switching signals comprise a channel working signal and a channel dismantling signal, wherein the channel working signal is used for enabling a currently set channel, and the channel dismantling signal is used for disabling the currently set channel;
the channel switching signal includes a first channel type bit for indicating a name of a currently operated channel, a channel state bit for indicating whether the currently operated channel is used or disabled, and a channel parameter bit for setting a parameter of the current channel.
6. The automated test equipment testing method of claim 1, wherein,
in the step S400 of the above-mentioned process,
the channel establishment signal comprises a first channel number bit and a second channel type bit, wherein the first channel number bit is used for representing the number of a current establishment channel, and the second channel type bit is used for representing the type of the current establishment channel;
in the step S500 of the above-mentioned process,
the data test signal comprises a second channel number bit, a test data length bit and a test sub-digit, wherein the second channel number bit is used for representing the number of the current channel, the test data length bit is used for representing the byte number of each test inter-transmission data, and the test sub-digit is used for representing the repetition number of the test inter-transmission data.
7. The automated testing method of a multi-channel two-way communication device according to claim 1, wherein the step S500 further comprises:
s510, if the channel establishment completion signals of the first tested device and the second tested device which are in the same tested device group are not received, the upper computer directly records the execution result of the current channel, and returns to the step S300 to execute the test of the next channel.
8. The automated test equipment testing method of multi-channel two-way communication according to claim l, wherein in step S800,
the test report comprises equipment model, testers, equipment numbers, equipment IP addresses, test time, test passing rate, test conclusion and test item execution conditions.
9. An automated testing system for a multi-channel two-way communication device, comprising:
the test execution module is used for sending test signals and receiving signal execution results;
the system comprises a case management module, a user-defined test case management module and a user-defined test case management module, wherein the case management module is used for selecting and sequencing built-in test cases, configuring expected test results and importing and exporting custom test cases;
the parameter management module is used for configuring information of the tested equipment and parameter configuration of data intercommunication of the tested equipment;
the version management module is used for inquiring and upgrading management of the software version of the tested equipment;
and the test data management module is used for recording the test case execution result and the process log and generating a test report.
10. An automated testing apparatus for a multi-channel dual-mode communication device, for implementing the automated testing method for a multi-channel dual-mode communication device according to any one of claims 1 to 8.
CN202310319474.1A 2023-03-23 2023-03-23 Automatic testing method, system and device for multi-channel double-machine communication equipment Pending CN116347481A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310319474.1A CN116347481A (en) 2023-03-23 2023-03-23 Automatic testing method, system and device for multi-channel double-machine communication equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310319474.1A CN116347481A (en) 2023-03-23 2023-03-23 Automatic testing method, system and device for multi-channel double-machine communication equipment

Publications (1)

Publication Number Publication Date
CN116347481A true CN116347481A (en) 2023-06-27

Family

ID=86875892

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310319474.1A Pending CN116347481A (en) 2023-03-23 2023-03-23 Automatic testing method, system and device for multi-channel double-machine communication equipment

Country Status (1)

Country Link
CN (1) CN116347481A (en)

Similar Documents

Publication Publication Date Title
CN108566323B (en) T-Box automated testing method and system
CN107145140B (en) Automatic test system and test method for CAN interface of vehicle-mounted electronic control unit
CN109740222B (en) Testing device and system for automobile networking scene
CN101170438B (en) A remote serial port debugging method and its system
CN112737886B (en) Tool testing method and system, electronic equipment and storage medium
CN112463511B (en) Automatic test system and test method for serial port equipment of Internet of things
CN106776346B (en) Test method and device of CCMTS (China center testing System) equipment
EP3179321B1 (en) System and method for testing configuration and operation of i/o devices
CN113067738A (en) Network topology visualization function equipment compatibility testing method and system
CN111224835B (en) Automatic serial port communication mode switching method, device and system
CN102426548A (en) Debugging method, debugger and debugging system for embedded system
JPH0215753A (en) Evaluation method and evaluation system of data transmission
CN108306781B (en) Online downloading and automatic testing system for L oRaWAN node
CN116347481A (en) Automatic testing method, system and device for multi-channel double-machine communication equipment
CN110708216B (en) Switch LLDP protocol test method and test system
CN110825617B (en) Method and device for simulating communication interaction between devices
CN112867024A (en) Test method, system and communication equipment
CN116545891A (en) Automatic distribution network testing method based on intelligent equipment
CN116841874A (en) Test method and device for unified diagnosis service function, storage medium and electronic equipment
KR20060098679A (en) A system for checking a system in communication system and system method thereof
CN113886274A (en) Stability testing method, device, equipment and storage medium for Internet of vehicles terminal
CN115051730B (en) Automatic testing device and method for wired network transmission equipment
CN109302332B (en) Automatic testing arrangement of communication network controller
CN218499152U (en) Network throughput testing system
CN113252373B (en) Bluetooth printer testing method and system

Legal Events

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