CN112702239A - Automatic test method of distributed test system - Google Patents
Automatic test method of distributed test system Download PDFInfo
- Publication number
- CN112702239A CN112702239A CN202011598005.0A CN202011598005A CN112702239A CN 112702239 A CN112702239 A CN 112702239A CN 202011598005 A CN202011598005 A CN 202011598005A CN 112702239 A CN112702239 A CN 112702239A
- Authority
- CN
- China
- Prior art keywords
- test
- time
- equipment
- distributed
- devices
- 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
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 214
- 238000010998 test method Methods 0.000 title claims abstract description 10
- 238000000034 method Methods 0.000 claims abstract description 18
- 230000005284 excitation Effects 0.000 claims description 11
- 238000004891 communication Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 206010033799 Paralysis Diseases 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 238000012536 packaging technology Methods 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
- H04J3/0658—Clock or time synchronisation among packet nodes
- H04J3/0661—Clock or time synchronisation among packet nodes using timestamps
- H04J3/0667—Bidirectional timestamps, e.g. NTP or PTP for compensation of clock drift and for compensation of propagation delays
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1004—Server selection for load balancing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Computer And Data Communications (AREA)
Abstract
The application provides an automatic test method of a distributed test system, the method is applied to the distributed test system, the distributed test system comprises N test devices, the device standards, device interfaces and test software operating environments of the N test devices are all different, and the method comprises the following steps: connecting all the test devices through the Ethernet by an Ethernet switch; determining one of the test devices as a master clock source device; when the master clock source equipment receives the test instruction, a bus network time protocol is adopted to periodically send time synchronization information to other test equipment, so that clocks of N test equipment complete clock synchronization; determining test equipment to be stimulated, the running time of each test equipment and the running content corresponding to each running time according to the test items; and each device to be excited tests according to the respective running time and the running content based on the local clock.
Description
Technical Field
The invention relates to testing, in particular to an automatic testing method of a distributed testing system.
Background
People always pursue to reduce time cost and improve production efficiency, and automatic testing is one of important means for achieving the purpose. In order to verify whether a set of complex system can work normally, a plurality of test devices are required to cooperate together to complete the test, and if the test projects are numerous, manual test is time-consuming and labor-consuming, and automatic test is required. Because each testing device is located at different spatial positions, in order to complete automatic testing, all testing devices need to be constructed into a distributed testing system through a network, and the devices can work coordinately and consistently through network communication.
An automatic test method of a distributed test system generally adopts a high-performance computer as an upper computer to manage test equipment, sends test instructions to each test equipment through a network, and outputs test results through back-sampling comparison to complete the test. The general steps for completing the automatic test are as follows:
the method comprises the following steps: connecting all the test equipment through a network, and using a high-performance computer as an upper computer to manage all the test equipment;
step two: the upper computer is mobilized through a network and sends a test instruction to each lower computer test device;
step three: the lower computer test equipment receives the test instruction, performs test excitation and reports response information;
step four: and the upper computer acquires the response information reported by the lower computer through the network, compares the response information with an expected value, analyzes and outputs a test result.
Through the continuous operation of the steps, the distributed test system completes automatic test. In this method, since the upper computer manages the whole system, when the test system is complex, the performance of the test system is highly required, which undoubtedly increases the cost. Meanwhile, the network load of the distributed test system is high, which may affect the transmission of information. Finally, the method has poor equipment compatibility, the upper computer needs to schedule and manage each lower computer test equipment, the lower computer needs to provide a uniform interface, and if the interfaces of the lower computer test equipment are not uniform, a great deal of effort is needed to uniformly interface each equipment through an interface packaging technology.
Disclosure of Invention
The application provides an automatic test method of a distributed test system, which not only can realize automatic test of the distributed test system, but also can save cost, reduce network load rate and improve compatibility and expansibility of the automatic test system.
The application provides an automatic test method of a distributed test system, the method is applied to the distributed test system, the distributed test system comprises N test devices, the device standards, device interfaces and test software operating environments of the N test devices are all different, and the method comprises the following steps:
connecting all the test devices through the Ethernet by an Ethernet switch;
determining one of the test devices as a master clock source device;
when the master clock source equipment receives the test instruction, a bus network time protocol is adopted to periodically send time synchronization information to other test equipment, so that clocks of N test equipment complete clock synchronization;
determining test equipment to be stimulated, the running time of each test equipment and the running content corresponding to each running time according to the test items;
and each device to be excited tests according to the respective running time and the running content based on the local clock.
Specifically, if the test equipment to be excited is a response acquisition signal at the operating time, the response acquisition value is compared with an expected value, whether the test result is qualified is judged, and the test result is output.
Specifically, if the test device to be excited is an excitation signal at the operating time, the test device to be excited performs test output at the corresponding time.
Specifically, the test items include tests of an aircraft electromechanical management system.
Specifically, the test equipment of the aircraft electromechanical management system comprises an electromechanical core processor exciter, a remote acquisition control device exciter and a lamp driver exciter.
Specifically, the bus network time protocol includes an NTP protocol and an IEEE1588 protocol.
Specifically, the synchronization error Δ T of the clock synchronization of the N test devices is less than 50 ms.
Specifically, if the test device to be excited is a test signal at the operation time, the test device to be excited performs a corresponding test according to the test signal.
In summary, in the automatic testing method of the distributed testing system provided by the present application, the system network is only responsible for periodically timing to complete clock synchronization of each testing device, and the network load rate is relatively low. Each device in the test system only needs to run the script to complete automatic test in time triggering, an upper computer is not needed to be added to manage the test system, a high-performance computer can be saved, the cost is reduced, meanwhile, the paralysis of the whole test system caused by the fault of the upper computer is avoided, and the fault tolerance of the system is improved. In addition, the invention has no uniform requirement on the equipment interface in the test system, and does not need to uniformly schedule the equipment in the test system, thereby saving a large amount of interface packaging work and greatly improving the compatibility and expansibility of the automatic test system.
Drawings
Fig. 1 is a schematic diagram of an automatic testing method of a distributed testing system provided in the present application.
Detailed Description
In order to solve the problems, the invention provides the automatic testing method of the distributed testing system, which has low network load and good testing equipment compatibility and does not need to be managed by an upper computer.
The application provides an automatic test method of a distributed test system, which connects all test devices in a test platform through an Ethernet to form the distributed test system, and then periodically synchronizes time in a network through a distributed system clock synchronization technology to enable all node devices of the test platform to complete clock synchronization. When each node test device has the same time reference, an automatic test script can be designed for each test device according to a time axis, test excitation or response collection is carried out by time triggering based on a local clock, and a response collection value is compared with an expected value to be judged so as to complete closed-loop test. When each test device completes test excitation and response collection at corresponding time according to the respective automatic test script, and outputs the comparison result, the whole test system completes system-level automatic test.
The invention is described in further detail below with reference to the accompanying drawings and examples, with reference to fig. 1. In a test system containing N test devices, all the test devices are coordinated and loaded to complete the automatic test of the whole system.
The method comprises the following steps: all the test devices are connected through the Ethernet switch to form a distributed test system, so that normal communication among the devices can be ensured;
step two: determining that the test equipment 1 is a master clock source equipment, and performing clock synchronization by adopting a bus network time protocol (such as NTP protocol, IEEE1588 protocol and the like) method to enable a node clock in the test system to complete clock synchronization (if a synchronization error delta T is less than 50ms, the test system is considered to achieve clock synchronization);
step three: a test start instruction is set in the test device 1, and when the instruction is valid, the test device 1 can issue reference time information for starting a test to the network. Then, the test equipment 1 is used as a master clock, and the time synchronization information is periodically sent out through the Ethernet, so that the equipment of the whole network can always keep synchronous all the time;
step four: according to the requirements of the test equipment, compiling a single-machine automatic test program to enable the test equipment to run an automatic test script program based on time triggering;
step five: and compiling an automatic test script according to the test case of the tested object, wherein the script needs to be subjected to overall planning of a system level. First, according to the test case, the test procedure of the system is completed according to the time axis with reference to the time information of starting the test issued in step three (time T0 at which the start instruction is issued in fig. 1), as shown in fig. 1: in step1, the test device 1, the test device 2 and the test device N are required to cooperate together, and respective excitation or collection is completed at the time of T1; in step2, test device 1 is required to be energized or picked up at time T2 and test device 2 and test device N at time T3, respectively. Then, classifying the excitation/acquisition signals involved in the testing step according to the test equipment; finally, compiling an automatic test script for each test device according to the classified information, as shown in fig. 1, starting the test at the time of T0 by the automatic test script of the test device 1, exciting or acquiring step1-1 at the time of T1, and exciting or acquiring step2-1 at the time of T2;
step six: each test device of the test platform runs an automatic test script based on a local clock to trigger test excitation or response acquisition in time. And when the response acquisition signal is at a certain moment, comparing the response acquisition value with an expected value, judging whether the test result is qualified or not, and outputting the test result.
When each test device completes test excitation and response collection at corresponding time according to the respective automatic test script, and outputs the comparison result, the whole test system completes system-level automatic test. In the invention, the key of the distributed test system for completing automatic test is clock synchronization of the test equipment, the whole set of test system is coordinated loading excitation or response acquisition based on time, and each test equipment can complete automatic test only if having the same time reference.
The invention relates to an automatic test method of a distributed test system, which is suitable for a test platform for completing system test by cooperation of a plurality of test devices. According to the invention, all the test equipment in the test platform are connected through the Ethernet to form a distributed test system, then all the node equipment of the test platform completes clock synchronization through a clock synchronization technology, and then an automatic test script is compiled for each test equipment according to a test case and a time axis, so that all the test equipment can be coordinately loaded according to time. After the test platform starts working, each node device runs an automatic test script to trigger test excitation or response acquisition in time, and compares and judges a response acquisition value with an expected value to complete closed-loop test. Therefore, each test device in the system can orderly complete the test by taking time as a reference through the script drive, and the automatic test of the distributed test system can be completed when the distributed system network carries out the periodic clock synchronization.
Claims (8)
1. An automatic test method of a distributed test system is characterized in that the method is applied to the distributed test system, the distributed test system comprises N test devices, the device standards, device interfaces and test software operation environments of the N test devices are different, and the method comprises the following steps:
connecting all the test devices through the Ethernet by an Ethernet switch;
determining one of the test devices as a master clock source device;
when the master clock source equipment receives the test instruction, a bus network time protocol is adopted to periodically send time synchronization information to other test equipment, so that clocks of N test equipment complete clock synchronization;
determining test equipment to be stimulated, the running time of each test equipment and the running content corresponding to each running time according to the test items;
and each device to be excited tests according to the respective running time and the running content based on the local clock.
2. The method of claim 1, wherein if the test device to be stimulated is a response acquisition signal at the operation time, comparing the response acquisition value with an expected value, judging whether the test result is qualified, and outputting the test result.
3. The method according to claim 1, characterized in that if the test device to be excited is a test signal at the running time, the test device to be excited carries out a corresponding test according to the test signal.
4. The method according to claim 1, wherein if the test device to be excited is an excitation signal at the operation time, the test device to be excited performs test output at the corresponding time.
5. The method of claim 1, wherein the test items comprise tests of aircraft electromechanical management systems.
6. The method according to claim 5, characterized in that the test equipment of the aircraft electromechanical management system comprises an electromechanical core processor actuator, a remote acquisition control device actuator, a lamp driver actuator.
7. The method of claim 1, wherein the bus network time protocol comprises NTP protocol, IEEE1588 protocol.
8. Method according to claim 1, characterized in that the synchronization error Δ T of the clock synchronization of the N test devices is <50 ms.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011598005.0A CN112702239A (en) | 2020-12-29 | 2020-12-29 | Automatic test method of distributed test system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011598005.0A CN112702239A (en) | 2020-12-29 | 2020-12-29 | Automatic test method of distributed test system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112702239A true CN112702239A (en) | 2021-04-23 |
Family
ID=75511948
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011598005.0A Pending CN112702239A (en) | 2020-12-29 | 2020-12-29 | Automatic test method of distributed test system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112702239A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US3619510A (en) * | 1968-02-23 | 1971-11-09 | Philips Corp | Time division multiplex transmission system for the transmission of signals by means of pulse code modulation |
JP2003337161A (en) * | 2002-03-14 | 2003-11-28 | Matsushita Electric Ind Co Ltd | Transmitter, receiver, testing circuit, and testing method |
JP2008118297A (en) * | 2006-11-01 | 2008-05-22 | Matsushita Electric Ind Co Ltd | Digital video data test system and semiconductor device |
CN101189815A (en) * | 2005-03-16 | 2008-05-28 | 艾比奎蒂数字公司 | Method for synchronizing exporter and exciter clocks |
CN102122995A (en) * | 2010-12-20 | 2011-07-13 | 北京航空航天大学 | Wireless distributed automatic test system (WDATS) |
CN107592177A (en) * | 2017-08-30 | 2018-01-16 | 江西昌河航空工业有限公司 | A kind of clock synchronizing method of helicopter avionics system test network |
CN112054939A (en) * | 2020-08-31 | 2020-12-08 | 中国科学院空间应用工程与技术中心 | Precision testing method and device for high-precision clock synchronization |
-
2020
- 2020-12-29 CN CN202011598005.0A patent/CN112702239A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US3619510A (en) * | 1968-02-23 | 1971-11-09 | Philips Corp | Time division multiplex transmission system for the transmission of signals by means of pulse code modulation |
JP2003337161A (en) * | 2002-03-14 | 2003-11-28 | Matsushita Electric Ind Co Ltd | Transmitter, receiver, testing circuit, and testing method |
CN101189815A (en) * | 2005-03-16 | 2008-05-28 | 艾比奎蒂数字公司 | Method for synchronizing exporter and exciter clocks |
JP2008118297A (en) * | 2006-11-01 | 2008-05-22 | Matsushita Electric Ind Co Ltd | Digital video data test system and semiconductor device |
CN102122995A (en) * | 2010-12-20 | 2011-07-13 | 北京航空航天大学 | Wireless distributed automatic test system (WDATS) |
CN107592177A (en) * | 2017-08-30 | 2018-01-16 | 江西昌河航空工业有限公司 | A kind of clock synchronizing method of helicopter avionics system test network |
CN112054939A (en) * | 2020-08-31 | 2020-12-08 | 中国科学院空间应用工程与技术中心 | Precision testing method and device for high-precision clock synchronization |
Non-Patent Citations (2)
Title |
---|
YUPING LIAN: "Design and FPGA verification of a novel reliable real-time data transfer system", 《JOURNAL OF ZHEJIANG UNIVERSITY(SCIENCE A:AN INTERNATIONAL APPLIED PHYSICS & ENGINEERING JOURNAL)》 * |
黄翔等: "GPS同步时钟的高精度守时方案", 《电力系统自动化》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112034413B (en) | Multi-core modular electric energy meter detection system | |
CN100361079C (en) | Method for testing synchronous automatic installation for system including multiple complete computers | |
CN104267715A (en) | Vehicle-mounted electronic control unit LIN bus communication automatic testing device and system | |
CN115333988B (en) | Test method, system and equipment for rocket interstage communication signals | |
CN109240257B (en) | Multi-slave unmanned aerial vehicle test system and method | |
CN111026072B (en) | Test system and method for control equipment | |
CN112702239A (en) | Automatic test method of distributed test system | |
CN112783523B (en) | Air loading method for redundant aircraft management computer software | |
CN102201877B (en) | Method and apparatus for testing air interface of TTCN (Testing and Test Control Notation)-3-based digital interphone | |
CN102291449B (en) | Method for testing and adjusting cluster storage system performance based on synchronous strategy | |
Du et al. | A FACE-based simulation and verification approach for avionics systems | |
CN111103810B (en) | Spacecraft GNC system simulation test method based on prototype digital twins framework | |
CN109783295A (en) | Test macro self-test method for producing software and device based on configuration | |
CN103973793A (en) | Distributed aviation electronic testing system | |
CN111426895A (en) | In-situ protection device test system and test method thereof | |
CN111103495A (en) | Automatic test system and method for field debugging of cross-interval relay protection equipment | |
CN114050989B (en) | Distributed test execution method based on cloud computing technology | |
CN113051158B (en) | System-level and link-level multi-index synchronous automatic testing method and system | |
US8355806B2 (en) | Information control system and information control method | |
CN114296900A (en) | UVM-based process control method and device among multiple processes | |
CN114138364A (en) | Application information loading control system and application information loading method | |
CN117234102A (en) | Mixed model simulation real-time scheduling system | |
CN114546873B (en) | HIL automatic test method and system for battery management system | |
CN117033252B (en) | Combined simulation communication system based on opcua | |
CN117289622A (en) | Real-time simulation control system of multilayer nested control loop |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210423 |