CN101789889A - Method and system for automatic testing communication equipment - Google Patents

Method and system for automatic testing communication equipment Download PDF

Info

Publication number
CN101789889A
CN101789889A CN201010034223A CN201010034223A CN101789889A CN 101789889 A CN101789889 A CN 101789889A CN 201010034223 A CN201010034223 A CN 201010034223A CN 201010034223 A CN201010034223 A CN 201010034223A CN 101789889 A CN101789889 A CN 101789889A
Authority
CN
China
Prior art keywords
equipment under
under test
control appliance
line
port
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201010034223A
Other languages
Chinese (zh)
Other versions
CN101789889B (en
Inventor
王圣魁
李迎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Raisecom Technology Co Ltd
Original Assignee
Raisecom 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 Raisecom Technology Co Ltd filed Critical Raisecom Technology Co Ltd
Priority to CN2010100342231A priority Critical patent/CN101789889B/en
Publication of CN101789889A publication Critical patent/CN101789889A/en
Application granted granted Critical
Publication of CN101789889B publication Critical patent/CN101789889B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a method and a system for automatic testing communication equipment. The system comprises a testing tool, control equipment, a serial server and a plurality of tested equipment, wherein the plurality of tested equipment is sequentially connected in series; the control equipment is used for configuring the mapping relationship for the serial server in order to establish the mapping relationship between a virtual serial port and a real port, utilizing the mapping relationship to establish a serial channel between the control equipment and the tested equipment which are connected to a network by the serial server, and issuing configuration commands to the tested equipment through the serial channel; the testing tool is respectively connected with the tested equipment at the initial and end positions of the serial connection in order to issue testing commands to the tested equipment through the serial channel between the tested equipment, to receive testing results returned by the tested equipment, and to transmit the testing results to the control equipment. The system can automatically test a plurality of communication equipment and has the advantages of simple operation, high efficiency and low cost.

Description

A kind of method and system of automatic testing communication equipment
Technical field
The present invention relates to a kind of method and system of automatic testing communication equipment.
Background technology
Automatic test is exactly by testing tool or other means, scheduled plan according to the Test Engineer, the analog manual operation, finish input to system under test (SUT), and the process that output is tested, it is an important part of test job, can finish some test jobs that many craft can't be finished or be difficult to realize.Correctly, reasonably implement automatic test, can be fast, all sidedly product is tested, thus improving the quality of products, the saving funds shorten the product release cycle.Therefore, automatic test has been widely used in the test of various device level at present.
But, there is following weak point when in the prior art equipment being carried out automatic test:
1, only two of the use test instrument ports come equipment under test is carried out single machine test, at this moment, if many identical or similar equipment under tests, usually need repeat repeatedly the test process to the separate unit equipment under test, obviously not only efficient is low but also workload that easily strengthen the tester causes test tired;
If 2 test a plurality of ports that an equipment under test needs the use test instrument, test many equipment under tests to the demand of testing tool will be at double increase, at this moment, obviously, increased testing cost to the having relatively high expectations of testing tool.
Summary of the invention
The technical problem to be solved in the present invention is, a kind of method and system of automatic testing communication equipment are provided, and can test many communication equipments automatically, and is simple, efficient, cost is low.
In order to solve the problems of the technologies described above, the present invention proposes a kind of system of automatic testing communication equipment, comprises testing tool, control appliance, serial server, and several equipment under tests, and described several equipment under tests are connected in series successively, wherein:
Described control appliance, in order to described serial server is carried out the mapping relations configuration, to set up the mapping relations between virtual serial port and the actual port, and utilize described mapping relations to set up through several equipment under tests of described serial server access network and the serial ports passage between the described control appliance, issue the equipment under test configuration order through described serial ports passage to each equipment under test; And issue the testing tool configuration order to described testing tool, receive the test result that described testing tool sends and handle;
Described serial server in order to link to each other with several equipment under tests, is set up the mapping relations between virtual serial port and the actual port, with described several equipment under test access networks;
Described testing tool, its Frame input port connects first equipment under test connected in series, its Frame output port connects an end equipment under test connected in series, produce test command in order to the testing tool configuration order that issues according to described control appliance, passage connected in series between each equipment under test issues test command and receives the test result that each equipment under test returns to each equipment under test, then described test result is sent to described control appliance;
Described equipment under test is configured in order to the equipment under test configuration order that issues according to described control appliance; And after receiving the test command that described testing tool issues, return test result to it.
Further, said system also can have following characteristics:
Described control appliance also issues channel sense command to each equipment under test successively in order to the passage connected in series between each equipment under test, receives passage that each equipment under test returns and detects and reply and handle;
Described equipment under test in order to after receiving described channel sense command, is replied to described control appliance backward channel state.
Further, said system also can have following characteristics:
When described control appliance was replied the passage conducting of judging between each equipment under test connected in series in the channel status of returning according to each equipment under test, the passage connected in series between each equipment under test was followed successively by each equipment under test distributing IP address; And
Passage connected in series between each equipment under test extracts the MAC Address of each equipment under test successively, carries out MAC Address collision detection and processing.
Further, said system also can have following characteristics:
The serial ports passage that described control appliance is set up between itself and the equipment under test comprises:
Described control appliance is provided with the serial ports channel attributes of every equipment under test;
Described control appliance is provided with the serial ports parameter according to each equipment under test serial ports channel attributes, and described serial ports parameter comprises one or more in string slogan, baud rate, data bit, position of rest, the parity check bit;
Described control appliance is opened corresponding serial ports passage according to the string slogan of equipment under test;
Process of described control appliance registration is set up event trigger mechanism, the serial ports passage of setting up with association and read the data of transmitting in the serial ports passage;
Described control appliance is that each serial ports passage generates a result document, replys to the configuration that described control appliance returns through described serial ports passage to equipment under test configuration order and described equipment under test that described equipment under test sends through described serial ports passage in order to write down described control appliance;
Described equipment under test after the equipment under test configuration order that issues according to described control appliance is configured, is replied to the configuration that described control appliance returns according to configuration result.
Further, said system also can have following characteristics:
Described equipment under test has a first line of a couplet port and a second line of a couplet port, becomes the serial interface channel by first line of a couplet port with second line of a couplet port set between each described equipment under test, thereby each described equipment under test is connected in series;
The first line of a couplet port of described equipment under test and second line of a couplet port are 2 ethernet ports on the described equipment under test.
Further, said system also can have following characteristics:
Do the ethernet side slogan unanimity of first line of a couplet port in each described equipment under test, do the ethernet side slogan unanimity of second line of a couplet port in each described equipment under test.
Further, said system also can have following characteristics:
Described equipment under test also has a standby first line of a couplet port and a standby second line of a couplet port, also forms a standby serial-port by standby first line of a couplet port and standby second line of a couplet port between each equipment under test, and each described equipment under test is connected in series;
The standby first line of a couplet port of described equipment under test and standby second line of a couplet port are 2 ethernet ports on the described equipment under test.
Further, said system also can have following characteristics:
Do the ethernet side slogan unanimity of standby first line of a couplet port in each described equipment under test, do the ethernet side slogan unanimity of standby second line of a couplet port in each described equipment under test.
Further, said system also can have following characteristics:
Described control appliance is to read configuration file successively, according to the issuing and the reception of replying is handled of the command execution order in the configuration file, and writes down performed operation.
Further, said system also can have following characteristics:
Two equipment under tests that are in end positions in described a plurality of equipment under tests connected in series successively are two standard devices.
In order to solve the problems of the technologies described above, the present invention also proposes a kind of method of automatic testing communication equipment, is used for a plurality of testing equipments connected in series are tested, and described method comprises step:
Control appliance carries out the mapping relations configuration to serial server, setting up the mapping relations between virtual serial port and the actual port, and utilize described mapping relations to set up through several equipment under tests of described serial server access network and the serial ports passage between the described control appliance;
Described control appliance issues the equipment under test configuration order through described serial ports passage to each equipment under test, and each equipment under test is configured according to the configuration order that receives;
Described control appliance issues the testing tool configuration order to testing tool, described testing tool produces test command according to described testing tool configuration order, passage connected in series between each equipment under test issues test command to each equipment under test successively, receive the test result that each equipment under test returns, and send it to described control appliance;
Described control appliance is handled it after receiving the test result that described testing tool sends.
Further, said method also can have following characteristics:
The connected in series passage of described control appliance between each equipment under test issues channel sense command to each equipment under test successively;
Described equipment under test is replied to described control appliance backward channel state after receiving described channel sense command;
Described control appliance receives passage that each equipment under test returns and detects and reply and handle.
Further, said method also can have following characteristics:
When described control appliance was replied the passage conducting of judging between each equipment under test connected in series in the channel status of returning according to each equipment under test, the passage connected in series between each equipment under test was followed successively by each equipment under test distributing IP address; And
Passage connected in series between each equipment under test extracts the MAC Address of each equipment under test successively, carries out MAC Address collision detection and processing.
Further, said method also can have following characteristics:
The serial ports passage that described control appliance is set up between itself and the equipment under test comprises:
Described control appliance is provided with the serial ports channel attributes of every equipment under test;
Described control appliance is provided with the serial ports parameter according to each equipment under test serial ports channel attributes, and described serial ports parameter comprises one or more in string slogan, baud rate, data bit, position of rest, the parity check bit;
Described control appliance is opened corresponding serial ports passage according to the string slogan of equipment under test;
Process of described control appliance registration is set up event trigger mechanism, the serial ports passage of setting up with association and read the data of transmitting in the serial ports passage;
Described control appliance is that each serial ports passage generates a result document, replys to the configuration that described control appliance returns through described serial ports passage to equipment under test configuration order and described equipment under test that described equipment under test sends through described serial ports passage in order to write down described control appliance;
Described equipment under test is also replied to the configuration that described control appliance returns according to configuration result after the equipment under test configuration order that issues according to described control appliance is configured.
Further, said method also can have following characteristics:
Described equipment under test has a first line of a couplet port and a second line of a couplet port, becomes the serial interface channel by first line of a couplet port with second line of a couplet port set between each described equipment under test, thereby each described equipment under test is connected in series;
The first line of a couplet port of described equipment under test and second line of a couplet port are 2 ethernet ports on the described equipment under test.
Further, said method also can have following characteristics:
Do the ethernet side slogan unanimity of first line of a couplet port in each described equipment under test, do the ethernet side slogan unanimity of second line of a couplet port in each described equipment under test.
Further, said method also can have following characteristics:
Described equipment under test also has a standby first line of a couplet port and a standby second line of a couplet port, also forms a standby serial-port by standby first line of a couplet port and standby second line of a couplet port between each equipment under test, and each described equipment under test is connected in series;
The standby first line of a couplet port of described equipment under test and standby second line of a couplet port are 2 ethernet ports on the described equipment under test.
Further, said method also can have following characteristics:
Do the ethernet side slogan unanimity of standby first line of a couplet port in each described equipment under test, do the ethernet side slogan unanimity of standby second line of a couplet port in each described equipment under test.
Further, said method also can have following characteristics:
Described control appliance is to read configuration file successively, according to the issuing and the reception of replying is handled of the command execution order in the configuration file, and writes down performed operation.
Further, said method also can have following characteristics:
Two equipment under tests that are in end positions in described a plurality of equipment under tests connected in series successively are two standard devices.
Further, said method also can have following characteristics:
Described control appliance cuts out the serial ports passage between itself and the equipment under test after test is finished.
The method and system of a kind of automatic testing communication equipment provided by the invention have following advantage with respect to prior art:
1, by topology connected in series, control appliance can be finished simultaneously to the issuing of many close identical configurations of communication equipment of homologous series or function, and improves testing efficiency;
2, carry out detection and the collision detection of communication equipment MAC Address that serial ports connects automatically;
2, the testing tool resource is saved greatly, and testing cost reduces greatly;
3, reduce Test Engineer's repetitive operation, saved human resources.
Description of drawings
Fig. 1 is a kind of test macro topological structure of embodiment of the invention schematic diagram;
Fig. 2 is a kind of test macro expansion of embodiment of the invention topological structure schematic diagram;
Fig. 3 is the method flow diagram that the embodiment of the invention is tested many communication equipments in the topology connected in series automatically;
Fig. 4 is the method flow diagram that the embodiment of the invention is set up the serial ports passage of every communication equipment correspondence successively;
Fig. 5 is that the embodiment of the invention is carried out IP address assignment and MAC Address detection method flow chart to the serial ports passage;
Fig. 6 is an embodiment of the invention control appliance control communication equipment automatic test approach flow chart.
Embodiment
Deficiency at existing method of testing the invention provides a kind of test macro and method, by a plurality of serial ports passages, manages every communication equipment in the topology connected in series, finishes automatic test.
Describe specific embodiments of the present invention in detail below in conjunction with accompanying drawing.
Referring to Fig. 1, the figure shows the topological structure of a kind of test macro of the embodiment of the invention, comprise some equipment under tests, testing tool, control appliance, and serial server, wherein:
These several equipment under tests composition system under test (SUT) connected in series, any 4 ethernet ports of choosing every equipment under test be respectively as first line of a couplet port, standby first line of a couplet port, second line of a couplet port and standby second line of a couplet port.In the test process, the passage that only needs use first line of a couplet port to be connected with second line of a couplet port, the passage that standby first line of a couplet port is connected with standby second line of a couplet port is as alternate channel.Need to guarantee the first line of a couplet port numbers unanimity of all equipment under tests, second line of a couplet port numbers unanimity, standby first line of a couplet port numbers unanimity, standby second line of a couplet port numbers unanimity helps finishing in the automatic test course issuing of all equipment under test port arrangement like this.For example: among Fig. 1, the first line of a couplet port-for-port 1 of equipment under test, second line of a couplet port-for-port 3, standby first line of a couplet port-for-port 2, standby second line of a couplet port-for-port 4.
Any ethernet port of equipment under test 1 (non-second line of a couplet port and standby second line of a couplet port) is connected the testing tool port one, and any ethernet port of equipment under test N (non-first line of a couplet port and standby first line of a couplet port) is connected testing tool port 2.The testing tool port one is as the data frame signal input port, and testing tool port 2 is as the data frame signal output port.The equipment under test port numbers that connects two ports of testing tool needs unanimity, helps improving the automatic test integrated level like this.Testing tool is used for finishing automatic test to equipment under test by the mode of the frame that transmits and receive data, generally speaking, Frame is sent by signal input port, is received by output port, according to the demand of reality test, the Frame reverse transfer also can under a few cases.For example: among Fig. 1, the port 5 of equipment under test 1 and equipment under test N connects testing tool port one and 2 respectively.
6 ports of equipment under test 1 are connected with control appliance by twisted-pair feeder.
Be connected by RS232 serial line interface line between serial server and the equipment under test, the string slogan of equipment under test can be in test topology increases progressively successively according to from top to bottom order.Because the restriction of the port number of serial server, generally speaking, the equipment under test of connection is no more than 16, if equipment under test more than 16, can be expanded by the mode of cascade serial server.
This serial server be for the RS-232/485/422 serial ports to the Communication Interface Converter of finishing data transaction between the TCP/IP network, it provides the data double-way transparent transmission of RS-232/485/422 terminal serial ports and TCP/IP network, provide serial ports to change network function, the RS-232/485/422 serial ports changes the solution of network.Serial server can be connected to network with serial equipment.
This control appliance connects by network and serial server, serial server is carried out the mapping relations configuration, setting up the mapping relations between virtual serial port and the actual port, and utilize described mapping relations to set up through several equipment under tests of described serial server access network and the serial ports passage between the described control appliance.
This control appliance calls relevant function by carrying out automated procedures or script, finishes automatic test, and script commonly used comprises TCL, PERL etc.
Referring to Fig. 2, the embodiment of the invention has also proposed a kind of expansion topological structure of test macro, comprising:
Accurate equipment of two station symbols and equipment under test composition system under test (SUT) connected in series, any 4 ethernet ports of choosing accurate equipment of every station symbol and equipment under test be respectively as first line of a couplet port, standby first line of a couplet port, second line of a couplet port and standby second line of a couplet port.In the test process, the passage that only needs use first line of a couplet port to be connected with second line of a couplet port, standby first line of a couplet port and standby second line of a couplet port are as alternate channel.Need to guarantee that all standard devices are consistent with the first line of a couplet port numbers of equipment under test, second line of a couplet port numbers unanimity, standby first line of a couplet port numbers unanimity, standby second line of a couplet port numbers unanimity helps finishing in the automatic test course issuing of all standard devices and equipment under test port arrangement like this.For example: among Fig. 2, the first line of a couplet port-for-port 1 of standard device and equipment under test, second line of a couplet port-for-port 3, standby first line of a couplet port-for-port 2, standby second line of a couplet port-for-port 4.
Any ethernet port of standard device 1 (non-second line of a couplet port and standby second line of a couplet port) is connected the testing tool port one, and any ethernet port of standard device 2 (non-first line of a couplet port and standby first line of a couplet port) is connected testing tool port 2.The testing tool port one is as the data frame signal input port, and testing tool port 2 is as the data frame signal output port.The standard device port numbers that connects two ports of testing tool needs unanimity, helps improving the automatic test integrated level like this.Testing tool is used for finishing automatic test to equipment under test by the mode of the frame that transmits and receive data, generally speaking, Frame is sent by signal input port, is received by output port, according to the demand of reality test, the Frame reverse transfer also can under a few cases.For example: among Fig. 2, the port 5 of standard device 1 and standard device 2 connects testing tool port one and 2 respectively.
6 ports of standard device 1 are connected with control appliance by twisted-pair feeder.
Use RS232 serial line interface line to connect standard device and equipment under test by serial server, standard device 1 and 2 string slogans are respectively COM1 and COM2, and equipment under test is gone here and there slogan from top to bottom and increased progressively successively in test topology.Because the restriction of the port number of serial server, generally speaking, the communication equipment of connection is no more than 16, if communication equipment more than 16, can be expanded by the mode of cascade serial server.
Control appliance calls relevant function by carrying out automated procedures or script, finishes automatic test, and script commonly used comprises TCL, PERL etc.
Standard device needs all comparatively stable communication equipment of function of use performance, so that finish the cooperating with control appliance and testing tool, helps testing more stable carrying out.Event data stream can not be by equipment under test in the topology, and can pass through standard device smoothly, and in this case, standard device can help the tester to get rid of control appliance and the unusual situation of testing tool appearance fast, thus the reason of orientation problem faster.
Referring to Fig. 3, the figure shows the embodiment of the invention is tested many equipment under tests in the topology connected in series automatically in test macro shown in Figure 1 method, specifically comprise step:
Steps A: the Test Engineer carries out the mapping relations configuration according to the serial server software that is installed on the control appliance to serial server;
Because the serial ports of control appliance is limited, in order to increase the quantity of its equipment under test that can control, the present invention links to each other the serial ports of several equipment under tests with the port of serial server (network interface), with described several equipment under test access networks, connecting line between the two can adopt the connecting line of serial server producer configuration by serial server.Control appliance carries out the mapping relations configuration to serial server, set up the mapping relations between virtual serial port and the actual port, and utilize described mapping relations to realize, thereby break the restriction that a serial port board only is installed on every PC to management by described several equipment under tests of described serial server access network.
For realizing the control of control appliance to more equipment under test, can also adopt a plurality of serial servers to carry out the cascade expansion, each serial server links to each other with several equipment under tests, and all equipment under tests are connected in series successively.
Step B: the Test Engineer determines automatic test cases, and then definite configuration file;
Described configuration file and automatized script leave under the same catalogue;
Control appliance can carry out automatic test by reading the keyword call function storehouse in the configuration file;
Step C: control appliance is set up the serial ports passage of every equipment under test correspondence successively according to automatic test cases;
According to from top to bottom, being equipment under test 1 is provided with every serial ports channel attributes (comprising baud rate, parity modes etc.) that equipment under test need be set up in the topology to the order of equipment under test N, set up the serial ports passage of every equipment correspondence then according to the string slogan of every equipment under test, register a process and read the data that come from the serial ports passage, thereby be implemented in the result document record and output echo message;
Step D: control appliance is each equipment under test configuration of IP address by the passage connected in series between each equipment under test, and whether the MAC Address that detects all equipment under tests automatically conflicts;
Step e: control appliance reads configuration file line by line, and according to the content of configuration file, calls corresponding function, finishes by the serial ports passage equipment under test to be carried out order and issue the work of judging with echo, testing tool configuration effort, and the work of result's output;
Step F: after test was finished, control appliance cut out the serial ports passage of every equipment under test correspondence one by one, finished test.
Wherein, step C further comprises as shown in Figure 4:
Step C1: control appliance is provided with the serial ports channel attributes of every equipment under test;
Described serial ports channel attributes comprises baud rate, parity modes etc.;
Step C2: control appliance is provided with the serial ports parameter according to the serial ports channel attributes of each equipment under test;
Described serial ports parameter comprises one or more in string slogan, baud rate, data bit, position of rest, the parity check bit;
Step C3: control appliance is opened corresponding serial ports passage according to the string slogan of equipment under test;
Control appliance also detects the serial ports passage automatically and sets up success or not, if all serial ports passages are all set up success, then control appliance can be communicated by letter with equipment under test by the serial ports passage, otherwise, finish test, and provide information, and list the unsuccessful string slogan of connection, be convenient to manually locate reason and make change;
Step C4: process of control appliance registration, set up event trigger mechanism, the serial ports passage of setting up with association and read the data of transmitting in the serial ports passage;
So far, control appliance can be monitored in real time and read the data that come from the serial ports passage, and exports demonstration according to user's needs;
The work that described event trigger mechanism is finished is, the related serial ports passage of setting up and is read two programs of serial ports channel data.
Step C5: control appliance is that each serial ports passage generates a result document, replys etc. in order to write down configuration that equipment under test configuration order that described control appliance sends to described equipment under test through described serial ports passage and described equipment under test return to described control appliance through described serial ports passage.
Wherein, step D further comprises as shown in Figure 5:
Step D1: control appliance is every equipment under test configuration of IP address in the topology in regular turn, and for example according to serial ports numbering incremental order in the topology, IP address final stage is corresponding with the serial ports numbering;
Step D2: control appliance extracts the MAC Address of every equipment under test automatically by the passage connected in series between each equipment under test, if detect the MAC Address conflict, then finish test, and provide information, list the equipment under test of MAC Address conflict, be convenient to manually locate reason and make change.
Wherein, step e further comprises as shown in Figure 6:
Step e 1: control appliance reads each row of configuration file, if first keyword issues flag bit for order, then generate the serial ports numbered list according to it, will order and be issued to each serial ports one by one, judge the order echo of each serial ports one by one, and in result document record;
Step e 2: control appliance reads each row of configuration file, if first keyword is a testing tool configuration flag bit, then according to configuration file, finishes the message configuration, and message sends and operation such as reception, and in result document record;
Step e 3: control appliance reads each row of configuration file, if first keyword is judgement symbol position as a result, then according to the expected results in the configuration file, judges actual test result correctness, and in result document record;
Step e 4: control appliance reads each row of configuration file, if first keyword is test No. and name tag position, then consulting and record of result document be convenient in this character of output in result document;
Step e 5: configuration file is read in the control appliance circulation line by line, and execution in step E1-E4 finishes if configuration file has read, and then jumps out program, enters next procedure, i.e. the test of step F, and then end.
Wherein, further comprise in the step F:
Step F 1:, and finish test if the failure of serial ports pathway closure then provides corresponding prompting.
Be the preferred embodiments of the present invention only below, be not limited to the present invention, for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (21)

1. the system of an automatic testing communication equipment is characterized in that, comprises testing tool, control appliance, serial server, and several equipment under tests, and described several equipment under tests are connected in series successively, wherein:
Described control appliance, in order to described serial server is carried out the mapping relations configuration, to set up the mapping relations between virtual serial port and the actual port, and utilize described mapping relations to set up through several equipment under tests of described serial server access network and the serial ports passage between the described control appliance, issue the equipment under test configuration order through described serial ports passage to each equipment under test; And issue the testing tool configuration order to described testing tool, receive the test result that described testing tool sends and handle;
Described serial server in order to link to each other with several equipment under tests, is set up the mapping relations between virtual serial port and the actual port, with described several equipment under test access networks;
Described testing tool, its Frame input port connects first equipment under test connected in series, its Frame output port connects an end equipment under test connected in series, produce test command in order to the testing tool configuration order that issues according to described control appliance, passage connected in series between each equipment under test issues test command and receives the test result that each equipment under test returns to each equipment under test, then described test result is sent to described control appliance;
Described equipment under test is configured in order to the equipment under test configuration order that issues according to described control appliance; And after receiving the test command that described testing tool issues, return test result to it.
2. the system as claimed in claim 1 is characterized in that:
Described control appliance also issues channel sense command to each equipment under test successively in order to the passage connected in series between each equipment under test, receives passage that each equipment under test returns and detects and reply and handle;
Described equipment under test in order to after receiving described channel sense command, is replied to described control appliance backward channel state.
3. system as claimed in claim 2 is characterized in that:
When described control appliance was replied the passage conducting of judging between each equipment under test connected in series in the channel status of returning according to each equipment under test, the passage connected in series between each equipment under test was followed successively by each equipment under test distributing IP address; And
Passage connected in series between each equipment under test extracts the MAC Address of each equipment under test successively, carries out MAC Address collision detection and processing.
4. the system as claimed in claim 1 is characterized in that:
The serial ports passage that described control appliance is set up between itself and the equipment under test comprises:
Described control appliance is provided with the serial ports channel attributes of every equipment under test;
Described control appliance is provided with the serial ports parameter according to each equipment under test serial ports channel attributes, and described serial ports parameter comprises one or more in string slogan, baud rate, data bit, position of rest, the parity check bit;
Described control appliance is opened corresponding serial ports passage according to the string slogan of equipment under test;
Process of described control appliance registration is set up event trigger mechanism, the serial ports passage of setting up with association and read the data of transmitting in the serial ports passage;
Described control appliance is that each serial ports passage generates a result document, replys to the configuration that described control appliance returns through described serial ports passage to equipment under test configuration order and described equipment under test that described equipment under test sends through described serial ports passage in order to write down described control appliance;
Described equipment under test after the equipment under test configuration order that issues according to described control appliance is configured, is replied to the configuration that described control appliance returns according to configuration result.
5. as any one described system among the claim 1-4, it is characterized in that:
Described equipment under test has a first line of a couplet port and a second line of a couplet port, becomes the serial interface channel by first line of a couplet port with second line of a couplet port set between each described equipment under test, thereby each described equipment under test is connected in series;
The first line of a couplet port of described equipment under test and second line of a couplet port are 2 ethernet ports on the described equipment under test.
6. system as claimed in claim 5 is characterized in that:
Do the ethernet side slogan unanimity of first line of a couplet port in each described equipment under test, do the ethernet side slogan unanimity of second line of a couplet port in each described equipment under test.
7. system as claimed in claim 5 is characterized in that:
Described equipment under test also has a standby first line of a couplet port and a standby second line of a couplet port, also forms a standby serial-port by standby first line of a couplet port and standby second line of a couplet port between each equipment under test, and each described equipment under test is connected in series;
The standby first line of a couplet port of described equipment under test and standby second line of a couplet port are 2 ethernet ports on the described equipment under test.
8. system as claimed in claim 7 is characterized in that:
Do the ethernet side slogan unanimity of standby first line of a couplet port in each described equipment under test, do the ethernet side slogan unanimity of standby second line of a couplet port in each described equipment under test.
9. as any one described system among the claim 1-4, it is characterized in that:
Described control appliance is to read configuration file successively, according to the issuing and the reception of replying is handled of the command execution order in the configuration file, and writes down performed operation.
10. as any one described system among the claim 1-4, it is characterized in that:
Two equipment under tests that are in end positions in described a plurality of equipment under tests connected in series successively are two standard devices.
11. the method for an automatic testing communication equipment is used for a plurality of testing equipments connected in series are tested, and it is characterized in that described method comprises step:
Control appliance carries out the mapping relations configuration to serial server, setting up the mapping relations between virtual serial port and the actual port, and utilize described mapping relations to set up through several equipment under tests of described serial server access network and the serial ports passage between the described control appliance;
Described control appliance issues the equipment under test configuration order through described serial ports passage to each equipment under test, and each equipment under test is configured according to the configuration order that receives;
Described control appliance issues the testing tool configuration order to testing tool, described testing tool produces test command according to described testing tool configuration order, passage connected in series between each equipment under test issues test command to each equipment under test successively, receive the test result that each equipment under test returns, and send it to described control appliance;
Described control appliance is handled it after receiving the test result that described testing tool sends.
12. method as claimed in claim 11 is characterized in that:
The connected in series passage of described control appliance between each equipment under test issues channel sense command to each equipment under test successively;
Described equipment under test is replied to described control appliance backward channel state after receiving described channel sense command;
Described control appliance receives passage that each equipment under test returns and detects and reply and handle.
13. method as claimed in claim 12 is characterized in that:
When described control appliance was replied the passage conducting of judging between each equipment under test connected in series in the channel status of returning according to each equipment under test, the passage connected in series between each equipment under test was followed successively by each equipment under test distributing IP address; And
Passage connected in series between each equipment under test extracts the MAC Address of each equipment under test successively, carries out MAC Address collision detection and processing.
14. method as claimed in claim 11 is characterized in that:
The serial ports passage that described control appliance is set up between itself and the equipment under test comprises:
Described control appliance is provided with the serial ports channel attributes of every equipment under test;
Described control appliance is provided with the serial ports parameter according to each equipment under test serial ports channel attributes, and described serial ports parameter comprises one or more in string slogan, baud rate, data bit, position of rest, the parity check bit;
Described control appliance is opened corresponding serial ports passage according to the string slogan of equipment under test;
Process of described control appliance registration is set up event trigger mechanism, the serial ports passage of setting up with association and read the data of transmitting in the serial ports passage;
Described control appliance is that each serial ports passage generates a result document, replys to the configuration that described control appliance returns through described serial ports passage to equipment under test configuration order and described equipment under test that described equipment under test sends through described serial ports passage in order to write down described control appliance;
Described equipment under test is also replied to the configuration that described control appliance returns according to configuration result after the equipment under test configuration order that issues according to described control appliance is configured.
15., it is characterized in that as the described method of claim 11-14:
Described equipment under test has a first line of a couplet port and a second line of a couplet port, becomes the serial interface channel by first line of a couplet port with second line of a couplet port set between each described equipment under test, thereby each described equipment under test is connected in series;
The first line of a couplet port of described equipment under test and second line of a couplet port are 2 ethernet ports on the described equipment under test.
16. method as claimed in claim 15 is characterized in that:
Do the ethernet side slogan unanimity of first line of a couplet port in each described equipment under test, do the ethernet side slogan unanimity of second line of a couplet port in each described equipment under test.
17. method as claimed in claim 15 is characterized in that:
Described equipment under test also has a standby first line of a couplet port and a standby second line of a couplet port, also forms a standby serial-port by standby first line of a couplet port and standby second line of a couplet port between each equipment under test, and each described equipment under test is connected in series;
The standby first line of a couplet port of described equipment under test and standby second line of a couplet port are 2 ethernet ports on the described equipment under test.
18. method as claimed in claim 17 is characterized in that:
Do the ethernet side slogan unanimity of standby first line of a couplet port in each described equipment under test, do the ethernet side slogan unanimity of standby second line of a couplet port in each described equipment under test.
19., it is characterized in that as any one described method among the claim 11-14:
Described control appliance is to read configuration file successively, according to the issuing and the reception of replying is handled of the command execution order in the configuration file, and writes down performed operation.
20., it is characterized in that as any one described method among the claim 11-14:
Two equipment under tests that are in end positions in described a plurality of equipment under tests connected in series successively are two standard devices.
21., it is characterized in that as the described method of claim 11-14:
Described control appliance cuts out the serial ports passage between itself and the equipment under test after test is finished.
CN2010100342231A 2010-01-14 2010-01-14 Method and system for automatic testing communication equipment Expired - Fee Related CN101789889B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010100342231A CN101789889B (en) 2010-01-14 2010-01-14 Method and system for automatic testing communication equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010100342231A CN101789889B (en) 2010-01-14 2010-01-14 Method and system for automatic testing communication equipment

Publications (2)

Publication Number Publication Date
CN101789889A true CN101789889A (en) 2010-07-28
CN101789889B CN101789889B (en) 2011-11-23

Family

ID=42532954

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010100342231A Expired - Fee Related CN101789889B (en) 2010-01-14 2010-01-14 Method and system for automatic testing communication equipment

Country Status (1)

Country Link
CN (1) CN101789889B (en)

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012079374A1 (en) * 2010-12-15 2012-06-21 中兴通讯股份有限公司 Method, device, and system for binding virtual serial port and physical serial port
CN103036881A (en) * 2012-12-11 2013-04-10 广东电网公司电力调度控制中心 System for unified configuration of isolation devices
CN103209101A (en) * 2012-01-17 2013-07-17 深圳市共进电子股份有限公司 Gateway testing method
CN103428051A (en) * 2013-08-29 2013-12-04 普联技术有限公司 System and method for testing communication devices
CN103746873A (en) * 2013-12-30 2014-04-23 深圳市广和通实业发展有限公司 System and method for testing communication module
CN104052632A (en) * 2014-05-29 2014-09-17 汉柏科技有限公司 Device automation testing method and device based on virtual serial port servers
CN104660452A (en) * 2015-03-18 2015-05-27 深圳市九洲电器有限公司 Testing and error correction method and system
CN105119779A (en) * 2015-09-11 2015-12-02 上海斐讯数据通信技术有限公司 Automatic testing method and system for serial port of equipment to be tested
CN103902949B (en) * 2012-12-30 2017-02-15 航天信息股份有限公司 Method and device for using ordinary scanning gun based on specific application
CN106532960A (en) * 2016-12-23 2017-03-22 烟台东方威思顿电气股份有限公司 Adaptive SCADA monitoring method applicable to power supply and power distribution field
CN107302477A (en) * 2017-08-09 2017-10-27 武汉微创光电股份有限公司 A kind of Ethernet switch interface test method
CN107370965A (en) * 2017-08-28 2017-11-21 深圳市巨潮科技股份有限公司 Display terminal automatic test approach
CN107645727A (en) * 2016-07-20 2018-01-30 大唐移动通信设备有限公司 A kind of method and device of testing base station
CN109195172A (en) * 2018-07-27 2019-01-11 闻泰通讯股份有限公司 Radio frequency test method, device, test equipment and storage medium
CN109254925A (en) * 2018-12-10 2019-01-22 北京中创为南京量子通信技术有限公司 Test data frame generating method and device, method for testing software and device
CN111132060A (en) * 2019-12-16 2020-05-08 中建八局第二建设有限公司 Internet of things-based hardware automatic test tool and test method
CN112671596A (en) * 2020-11-18 2021-04-16 武汉迈威通信股份有限公司 Remote control automatic test system and test method
CN113347280A (en) * 2021-08-09 2021-09-03 武汉迈威通信股份有限公司 Multi-serial-port server system with redundant main and standby and load balancing functions
CN113411144A (en) * 2021-07-30 2021-09-17 深圳市富创优越科技有限公司 Device testing method, server and medium
CN113868063A (en) * 2021-09-30 2021-12-31 中国电子科技集团公司第五十八研究所 Multi-board card multi-channel serial port card verification method and system
CN115426286A (en) * 2022-08-30 2022-12-02 歌尔科技有限公司 Automatic product testing method, device, equipment and computer readable storage medium
CN115460042A (en) * 2022-09-30 2022-12-09 国家电网有限公司 Intelligent substation protection test method based on test special network

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6282678B1 (en) * 1999-01-08 2001-08-28 Cisco Technology, Inc. Generic test execution method and apparatus
CN101534223A (en) * 2008-03-11 2009-09-16 中兴通讯股份有限公司 Device and method for testing network switching equipment
CN201226523Y (en) * 2008-05-26 2009-04-22 北京星网锐捷网络技术有限公司 System for testing switch stability

Cited By (32)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546840A (en) * 2010-12-15 2012-07-04 中兴通讯股份有限公司 Method, device and system for binding virtual serial port and physical serial port
CN102546840B (en) * 2010-12-15 2014-09-10 中兴通讯股份有限公司 Method, device and system for binding virtual serial port and physical serial port
WO2012079374A1 (en) * 2010-12-15 2012-06-21 中兴通讯股份有限公司 Method, device, and system for binding virtual serial port and physical serial port
CN103209101A (en) * 2012-01-17 2013-07-17 深圳市共进电子股份有限公司 Gateway testing method
CN103209101B (en) * 2012-01-17 2016-12-14 深圳市共进电子股份有限公司 The method of testing of gateway
CN103036881A (en) * 2012-12-11 2013-04-10 广东电网公司电力调度控制中心 System for unified configuration of isolation devices
CN103036881B (en) * 2012-12-11 2016-06-08 广东电网公司电力调度控制中心 A kind of methods, devices and systems to the unified configuration of disrupter
CN103902949B (en) * 2012-12-30 2017-02-15 航天信息股份有限公司 Method and device for using ordinary scanning gun based on specific application
CN103428051A (en) * 2013-08-29 2013-12-04 普联技术有限公司 System and method for testing communication devices
CN103746873A (en) * 2013-12-30 2014-04-23 深圳市广和通实业发展有限公司 System and method for testing communication module
CN104052632A (en) * 2014-05-29 2014-09-17 汉柏科技有限公司 Device automation testing method and device based on virtual serial port servers
CN104052632B (en) * 2014-05-29 2018-01-02 汉柏科技有限公司 Equipment automatization method of testing and device based on virtual serial port server
CN104660452A (en) * 2015-03-18 2015-05-27 深圳市九洲电器有限公司 Testing and error correction method and system
CN105119779A (en) * 2015-09-11 2015-12-02 上海斐讯数据通信技术有限公司 Automatic testing method and system for serial port of equipment to be tested
CN105119779B (en) * 2015-09-11 2018-09-28 上海斐讯数据通信技术有限公司 A kind of automatic test approach, system and the control device of equipment under test serial ports
CN107645727B (en) * 2016-07-20 2020-04-03 大唐移动通信设备有限公司 Method and device for testing base station
CN107645727A (en) * 2016-07-20 2018-01-30 大唐移动通信设备有限公司 A kind of method and device of testing base station
CN106532960A (en) * 2016-12-23 2017-03-22 烟台东方威思顿电气股份有限公司 Adaptive SCADA monitoring method applicable to power supply and power distribution field
CN107302477A (en) * 2017-08-09 2017-10-27 武汉微创光电股份有限公司 A kind of Ethernet switch interface test method
CN107370965A (en) * 2017-08-28 2017-11-21 深圳市巨潮科技股份有限公司 Display terminal automatic test approach
CN109195172A (en) * 2018-07-27 2019-01-11 闻泰通讯股份有限公司 Radio frequency test method, device, test equipment and storage medium
CN109254925A (en) * 2018-12-10 2019-01-22 北京中创为南京量子通信技术有限公司 Test data frame generating method and device, method for testing software and device
CN109254925B (en) * 2018-12-10 2021-10-26 北京中创为南京量子通信技术有限公司 Test data frame generation method and device and software test method and device
CN111132060A (en) * 2019-12-16 2020-05-08 中建八局第二建设有限公司 Internet of things-based hardware automatic test tool and test method
CN112671596A (en) * 2020-11-18 2021-04-16 武汉迈威通信股份有限公司 Remote control automatic test system and test method
CN113411144B (en) * 2021-07-30 2021-12-17 深圳市富创优越科技有限公司 Device testing method, server and medium
CN113411144A (en) * 2021-07-30 2021-09-17 深圳市富创优越科技有限公司 Device testing method, server and medium
CN113347280A (en) * 2021-08-09 2021-09-03 武汉迈威通信股份有限公司 Multi-serial-port server system with redundant main and standby and load balancing functions
CN113868063A (en) * 2021-09-30 2021-12-31 中国电子科技集团公司第五十八研究所 Multi-board card multi-channel serial port card verification method and system
CN113868063B (en) * 2021-09-30 2024-05-14 中国电子科技集团公司第五十八研究所 Verification method and verification system for multi-board multi-channel serial port card
CN115426286A (en) * 2022-08-30 2022-12-02 歌尔科技有限公司 Automatic product testing method, device, equipment and computer readable storage medium
CN115460042A (en) * 2022-09-30 2022-12-09 国家电网有限公司 Intelligent substation protection test method based on test special network

Also Published As

Publication number Publication date
CN101789889B (en) 2011-11-23

Similar Documents

Publication Publication Date Title
CN101789889B (en) Method and system for automatic testing communication equipment
CN101179456A (en) Network appliance testing approach and device
CN103249069B (en) The test macro of the method for testing of mobile terminal and testing equipment, mobile terminal
CN100546262C (en) A kind of broadband aviation electronic bus testing apparatus and method of operation thereof
CN102967815B (en) Chip testing method, automated testing equipment and system
CN103746884A (en) Method and system for testing flow through switchboard
CN101873236B (en) Method and system for testing message
CN103186440B (en) Detect subcard method, apparatus and system in place
CN112055096B (en) Method and device for automatically setting communication address of equipment
CN106685733A (en) FC-AE-1553 network rapid configuration and automatic testing method
CN101222732B (en) State control signal testing device
CN205301911U (en) Embedded fault injection control system
CN104394029A (en) An AFDX bus detecting method based on a hybrid channel
CN105095037A (en) Wire card, backboard of wire card and wire card test method
CN105553885A (en) FC switch priority testing method
CN102291274A (en) System and method for realizing automatic adaptation of network testing instrument
CN204733178U (en) A kind of EtherCAT master station device based on FPGA
CN202694145U (en) Testing system for main control board
CN108919788A (en) A kind of remote monitoring system and method for the automobile bench test based on vehicle-mounted CAN bus
CN101645811B (en) Device and method for automatically testing embedded system
CN103576667B (en) The method of testing of master control borad, Apparatus and system
CN201072431Y (en) Broadband aviation electronic bus testing device
CN100366003C (en) Device and method for emulated route analysis test
CN201126570Y (en) Remote diagnosis device for computer fault
CN115657646B (en) Test method and device of CAN controller

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20111123

Termination date: 20220114

CF01 Termination of patent right due to non-payment of annual fee