CN106649012A - Automated testing method and device - Google Patents

Automated testing method and device Download PDF

Info

Publication number
CN106649012A
CN106649012A CN201611163517.8A CN201611163517A CN106649012A CN 106649012 A CN106649012 A CN 106649012A CN 201611163517 A CN201611163517 A CN 201611163517A CN 106649012 A CN106649012 A CN 106649012A
Authority
CN
China
Prior art keywords
test
tested
tested port
address
microsoft loopback
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
CN201611163517.8A
Other languages
Chinese (zh)
Other versions
CN106649012B (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.)
Shenzhen Hengxin Data Ltd By Share Ltd
Original Assignee
Shenzhen Hengxin Data Ltd By Share 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 Shenzhen Hengxin Data Ltd By Share Ltd filed Critical Shenzhen Hengxin Data Ltd By Share Ltd
Priority to CN201611163517.8A priority Critical patent/CN106649012B/en
Publication of CN106649012A publication Critical patent/CN106649012A/en
Application granted granted Critical
Publication of CN106649012B publication Critical patent/CN106649012B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test buses, lines or interfaces, e.g. stuck-at or open line faults
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention is applicable to the field of electronic technology, provides an automated testing method and device and aims to solve the problems that in the prior art, port compatibility testing is low in test efficiency, and the statistical error of test outputs is large. The method comprises the steps that virtual network cards with the same number of tested ports of tested equipment are created, wherein the tested equipment comprises multiple tested ports, and the virtual network cards are in one-to-one correspondence with the tested ports; IP addresses of the tested ports corresponding to the virtual network cards are configured according IP addresses of the virtual network cards; a preset configuration script is used for configuring test indexes of the tested ports; an automated script is used for testing the tested ports according to the test indexes; test results are output. According to the technical scheme, automated testing of the ports of the multi-port equipment is realized at the same time, test efficiency is improved, and the statistical error of the test outputs is lowered.

Description

A kind of method and apparatus of automatic test
Technical field
The present invention relates to electronic technology field, more particularly to a kind of method and apparatus of automatic test.
Background technology
With the fast development of Internet technology, modern network has become the requisite important tool of people's life, Network application requires also more and more higher to the integrated level of the network equipment, and the network interface quantity of single device is also more and more.
In order to ensure the network stabilization of multi-network mouth device, need that each network interface of multi-network mouth device is carried out and exchanged The compatibility test of machine.During manual mode test compatibility, it is more to repeat comparison in network interface configuration process, causes testing efficiency It is very low, while the tiling of multiple operation interfaces causes to check that test result is difficult, easily omit, affect the statistics of test.
The content of the invention
The embodiment of the present invention provides a kind of method and apparatus of automatic test, it is intended to solve prior art middle port compatible Property test testing efficiency it is low, and the larger problem of test result statistical error.
In a first aspect, embodiments providing a kind of method of automatic test, the method includes:
The Microsoft Loopback Adapter with the tested port equal number of equipment under test is created, wherein, the equipment under test is comprising multiple The tested port, the Microsoft Loopback Adapter is corresponded with the tested port;
The each self-corresponding institute of each described Microsoft Loopback Adapter is configured according to the network interconnection Protocol IP address of the Microsoft Loopback Adapter The IP address of tested port is stated, wherein, the IP address of each Microsoft Loopback Adapter is each with Microsoft Loopback Adapter each described self-corresponding The IP address of tested port belongs to the same network segment;
Using default configuration script, the test index of the tested port is configured;
According to the test index, the tested port is tested using automatized script;
Output test result.
On the other hand, a kind of device of automatic test is embodiments provided, the device includes:
Network interface card creation module, for creating the Microsoft Loopback Adapter with the tested port equal number of equipment under test, wherein, it is described Equipment under test includes multiple tested ports, and the Microsoft Loopback Adapter is corresponded with the tested port;
Address configuration module, it is described virtual for configuring each according to the network interconnection Protocol IP address of the Microsoft Loopback Adapter The IP address of each self-corresponding tested port of network interface card, wherein, the IP address of each Microsoft Loopback Adapter and each described void The IP address for intending each self-corresponding tested port of network interface card belongs to the same network segment;
Setup measures module, for using default configuration script, configuring the test index of the tested port;
Test module, for according to the test index, being tested the tested port using automatized script;
Output module, for outputing test result.
The embodiment of the present invention passes through to create the Microsoft Loopback Adapter with the tested port equal number of equipment under test, according to virtual net The each self-corresponding tested port of network interconnection agreement (Internet Protocal, IP) each Microsoft Loopback Adapter of address configuration of card IP address, using default configuration script, configure the test index of tested port, automatized script is used according to test index Tested port is tested, and is outputed test result, the automation for realizing multiple ports simultaneously to multi bri device is surveyed Examination, improves testing efficiency, reduces the statistical error of test result.
Description of the drawings
Fig. 1 is a kind of flow chart of the method for automatic test that the embodiment of the present invention one is provided;
Fig. 2 be the present invention provide a kind of automatic test method in test environment composition schematic diagram;
Fig. 3 is a kind of flow chart of the method for automatic test that the embodiment of the present invention two is provided;
Fig. 4 is a kind of structural representation of the device of automatic test that the embodiment of the present invention three is provided;
Fig. 5 is a kind of structural representation of the device of automatic test that the embodiment of the present invention four is provided.
Specific embodiment
In order that the objects, technical solutions and advantages of the present invention become more apparent, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, and It is not used in the restriction present invention.
It is described in detail below in conjunction with realization of the concrete accompanying drawing to the present invention.
Embodiment one:
Fig. 1 is a kind of flow chart of the method for automatic test that the embodiment of the present invention one is provided, the embodiment of the present invention Executive agent can be automatic test actuating station, and it can be specifically the meter such as PC (personal computer, PC) Machine equipment is calculated, the method for the automatic test of Fig. 1 examples can specifically include step S101 to S105, and details are as follows:
The Microsoft Loopback Adapter of the tested port equal number of S101, establishment and equipment under test, wherein, equipment under test is comprising multiple Tested port, Microsoft Loopback Adapter is corresponded with tested port.
It should be noted that equipment under test is multi bri device, tested port can be that network interface, power port or optical port etc. connect The one or any combination of mouth.The embodiment of the present invention goes for multi-network mouth device, many power port equipment, multiple light jaws equipment, Or the compatibility test between various multi bri devices and external equipment such as photoelectricity hybrid interface equipment, it specifically can be applied In the test of the multiport network equipment such as current divider, fire wall.
Fig. 2 for the test environment of the embodiment of the present invention composition schematic diagram, including equipment under test, switch, and automatically Change test execution end.Wherein, the tested port of each equipment under test can pass through net with the corresponding ports on corresponding switch Line or optical fiber are attached, and automatic test actuating station is attached by network interface with switch, equipment under test and switch Between can be that multiple equipment under tests connect with a switch connection, or single equipment under test and a switch simultaneously Connect, specifically can be selected according to actual test demand, be not limited herein.
Specifically, automatic test actuating station creates the Microsoft Loopback Adapter with tested port equal number in local terminal, and each is empty Intend network interface card and be allocated a virtual IP address.
Microsoft Loopback Adapter is corresponded with tested port, i.e. each one tested port of Microsoft Loopback Adapter correspondence.
S102, the IP address that each self-corresponding tested port of each Microsoft Loopback Adapter is configured according to the IP address of Microsoft Loopback Adapter, Wherein, the IP address of each Microsoft Loopback Adapter belongs to same net with the IP address of each self-corresponding tested port of each Microsoft Loopback Adapter Section.
Specifically, the IP address of the Microsoft Loopback Adapter that automatic test actuating station is created according to step S101, is that each is virtual The corresponding tested port of network interface card configures corresponding IP address so that the IP address of tested port belongs to the IP address of Microsoft Loopback Adapter The same network segment.The IP address of different Microsoft Loopback Adapters belongs to the different network segments.For example, it is assumed that automatic test actuating station is created Microsoft Loopback Adapter 1 and Microsoft Loopback Adapter 2, the IP address of Microsoft Loopback Adapter 1 is set to 192.168.110.1, then corresponding with Microsoft Loopback Adapter 1 The IP address of tested port 1 is configured to 192.168.110.2, so that the IP of the IP address of Microsoft Loopback Adapter 1 and tested port 1 Address has identical subnet mask 255.255.255.0, and belong to 192.168.110.0 to 192.168.110.255 this One network segment, the IP address of Microsoft Loopback Adapter 2 is set to 192.168.120.1, then the IP of tested port 2 corresponding with Microsoft Loopback Adapter 2 Address configuration is 192.168.120.2 so that the IP address of the IP address of Microsoft Loopback Adapter 2 and tested port 2 have it is identical Subnet mask 255.255.255.0, and belong to this network segment of 192.168.120.0 to 192.168.120.255.
It is understood that in other embodiments can also be to IP address using other configuration modes so that each The IP address of Microsoft Loopback Adapter belongs to the same network segment, different void with the IP address of each self-corresponding tested port of each Microsoft Loopback Adapter The IP address for intending network interface card belongs to the different network segments.It is not limited herein.
S103, using default configuration script, configure the test index of tested port.
Specifically, automatic test actuating station configures the test index of each tested port using default configuration script.
Further, test index can include time delay and/or packet loss.It should be noted that according to time delay or packet loss Rate may determine that whether tested port reachable, when packet loss exceedes default packet loss threshold value, such as 5%, or time delay exceed it is pre- If then may determine that tested port is unreachable during time threshold.It is understood that it can also be included in other embodiments His test index, is configured with specific reference to the needs of actual test, is not limited herein.
The test index of each tested port be able to can also be differed with identical, specifically can be according to the situation of practical application Configured, be not limited herein.
S104, according to test index, tested port is tested using automatized script.
Specifically, the test index that automatic test actuating station is configured according to step S103, using automatized script to quilt Survey port to be tested.
S105, output test result.
Specifically, the test result of the automatic test that automatic test actuating station output step S104 is carried out.When tested When the tested port number of equipment is huge, the method that automatic test actuating station can be provided by this method embodiment is while right These tested ports are tested, while outputing test result, such that it is able to greatly improve testing efficiency, lower human factor and lead The error of the result statistics of cause.
In the present embodiment, by creating the Microsoft Loopback Adapter with the tested port equal number of equipment under test, according to virtual net The IP address of card configures the IP address of each self-corresponding tested port of each Microsoft Loopback Adapter, make the IP address of each Microsoft Loopback Adapter with The IP address of each self-corresponding tested port of each Microsoft Loopback Adapter belongs to the same network segment, is then configured using default configuration script The test index of tested port, and according to the test index tested port is tested using automatized script, finally export Test result, realizes the automatic test of multiple ports simultaneously to multi bri device, improves testing efficiency, and reduces test As a result statistical error.
Embodiment two:
Fig. 3 is a kind of flow chart of the method for automatic test that the embodiment of the present invention two is provided, the embodiment of the present invention Executive agent can be automatic test actuating station, and it can be specifically the computer equipments such as PC, the test of Fig. 3 exemplary automations Method specifically includes step S201 to S206, and details are as follows:
The Microsoft Loopback Adapter of the tested port equal number of S201, establishment and equipment under test, wherein, equipment under test is comprising multiple Tested port, Microsoft Loopback Adapter is corresponded with tested port.
It should be noted that equipment under test is multi bri device, tested port can be that network interface, power port or optical port etc. connect The one or any combination of mouth.The embodiment of the present invention goes for multi-network mouth device, many power port equipment, multiple light jaws equipment, Or the compatibility test between various multi bri devices and external equipment such as photoelectricity hybrid interface equipment, it specifically can be applied In the test of the multiport network equipment such as current divider, fire wall.
Fig. 2 for the test environment of the embodiment of the present invention composition schematic diagram, including equipment under test, switch, and automatically Change test execution end.Wherein, the tested port of each equipment under test can pass through net with the corresponding ports on corresponding switch Line or optical fiber are attached, and automatic test actuating station is attached by network interface with switch, equipment under test and switch Between can be that multiple equipment under tests connect with a switch connection, or single equipment under test and a switch simultaneously Connect, specifically can be selected according to actual test demand, be not limited herein.
Specifically, automatic test actuating station creates the Microsoft Loopback Adapter with tested port equal number in local terminal, and each is empty Intend network interface card and be allocated a virtual IP address.
Microsoft Loopback Adapter is corresponded with tested port, i.e. each one tested port of Microsoft Loopback Adapter correspondence.
S202, the IP address that each self-corresponding tested port of each Microsoft Loopback Adapter is configured according to the IP address of Microsoft Loopback Adapter, Wherein, the IP address of each Microsoft Loopback Adapter belongs to same net with the IP address of each self-corresponding tested port of each Microsoft Loopback Adapter Section.
Specifically, the IP address of the Microsoft Loopback Adapter that automatic test actuating station is created according to step S201, is that each is virtual The corresponding tested port of network interface card configures corresponding IP address so that the IP address of tested port belongs to the IP address of Microsoft Loopback Adapter The same network segment.The IP address of different Microsoft Loopback Adapters belongs to the different network segments.For example, it is assumed that automatic test actuating station is created Microsoft Loopback Adapter 1 and Microsoft Loopback Adapter 2, the IP address of Microsoft Loopback Adapter 1 is set to 192.168.110.1, then corresponding with Microsoft Loopback Adapter 1 The IP address of tested port 1 is configured to 192.168.110.2, so that the IP of the IP address of Microsoft Loopback Adapter 1 and tested port 1 Address has identical subnet mask 255.255.255.0, and belong to 192.168.110.0 to 192.168.110.255 this One network segment, the IP address of Microsoft Loopback Adapter 2 is set to 192.168.120.1, then the IP of tested port 2 corresponding with Microsoft Loopback Adapter 2 Address configuration is 192.168.120.2 so that the IP address of the IP address of Microsoft Loopback Adapter 2 and tested port 2 have it is identical Subnet mask 255.255.255.0, and belong to this network segment of 192.168.120.0 to 192.168.120.255.
It is understood that in other embodiments can also be to IP address using other configuration modes so that each The IP address of Microsoft Loopback Adapter belongs to the same network segment, different void with the IP address of each self-corresponding tested port of each Microsoft Loopback Adapter The IP address for intending network interface card belongs to the different network segments.It is not limited herein.
S203, using default configuration script, configure the test index of tested port.
Specifically, automatic test actuating station configures the test index of each tested port using default configuration script.
Further, test index can include time delay and/or packet loss.It should be noted that according to time delay or packet loss Rate may determine that whether tested port is reachable, for example, when packet loss exceedes default packet loss threshold value, such as 5%, or time delay is super When crossing default time threshold, then may determine that tested port is unreachable.It is understood that in other embodiments can be with Including other test indexs, configured with specific reference to the needs of actual test, be not limited herein.
The test index of each tested port be able to can also be differed with identical, specifically can be according to the situation of practical application Configured, be not limited herein.
S204, according to test index use default test script, to tested port send test data.
Specifically, the test index that automatic test actuating station is configured according to step S203, using automatized script to quilt Survey port to be tested.
Further, automatic test actuating station can be according to the test index of step S203 configuration, using default survey Training sheet, to tested port send Internet Control Message agreement (Internet Control Message Protocol, ICMP) data.
ICMP is transmission control protocol/Internet Protocol (Transmission Control Protocol/ Internet Protocol, TCP/IP) protocol suite sub-protocol, for transmitting control message between main frame and router.Control Message processed refers to that network leads to the message of the networks such as whether obstructed, main frame is reachable, whether route can be used itself.Though these control messages So user data is not transmitted, but for the transmission of user data plays an important role.Specifically, based on ICMP agreements Order includes Ping orders, the Tracert orders of tracking route, and other networking commands etc..
S205, the test result data for counting tested port.
Specifically, the test data that automatic test actuating station sends according to step S204, counts each tested port Test result data.
S206, the preset standard value of test result data and test index is compared, judges whether tested port leads to Test is crossed, and exports judged result.
Specifically, automatic test actuating station counts step S205 test result data and the pre- bidding of test index Quasi- value is compared, and whether each tested port is judged by test according to comparative result, and exports judged result.For example, if The preset standard value of packet loss is 3% in test index, and packet loss is 6% in the test result data of certain tested port, then sentence The tested port break not by test, test result data can be included in the judged result of output and not by the original of test Cause.
When the tested port number of equipment under test is huge, automatic test actuating station can be carried by this method embodiment For method simultaneously automatic test is carried out to these tested ports, test result data is automatically analyzed, and while defeated Go out test result, such that it is able to greatly improve testing efficiency, lower the error of result statistics caused by human factor.
In the present embodiment, by creating the Microsoft Loopback Adapter with the tested port equal number of equipment under test, according to virtual net The IP address of card configures the IP address of each self-corresponding tested port of each Microsoft Loopback Adapter, make the IP address of each Microsoft Loopback Adapter with The IP address of each self-corresponding tested port of each Microsoft Loopback Adapter belongs to the same network segment, is then configured using default configuration script The test index such as the time delay of tested port and/or packet loss, and default test script is used according to the test index, to tested Port transmission ICMP data, and the test result data of tested port is counted, finally by test result data and test index Preset standard value is compared, and whether judges tested port by test, and exports judged result, realizes simultaneously to multiport Multiple ports of equipment carry out automatic test, and test result data is automatically analyzed, and while output test result, from And testing efficiency is improved, and reduce the statistical error of test result.
Embodiment three:
Fig. 4 is a kind of structural representation of the device of automatic test that the embodiment of the present invention three is provided, for the ease of saying It is bright, illustrate only the part related to the embodiment of the present invention.A kind of device of automatic test of Fig. 4 examples can be aforementioned reality The executive agent of the method for the automatic test of the offer of example one is provided.A kind of device of automatic test of Fig. 4 examples includes network interface card Creation module 31, address configuration module 32, setup measures module 33, test module 34 and output module 35, each functional module is detailed Carefully it is described as follows:
Network interface card creation module 31, for creating the Microsoft Loopback Adapter with the tested port equal number of equipment under test, wherein, quilt Measurement equipment includes multiple tested ports, and Microsoft Loopback Adapter is corresponded with tested port;
Address configuration module 32, the IP address of the Microsoft Loopback Adapter for being created according to network interface card creation module 31, configures each The IP address of each self-corresponding tested port of Microsoft Loopback Adapter, wherein, the IP address of each Microsoft Loopback Adapter is each with each Microsoft Loopback Adapter The IP address of self-corresponding tested port belongs to the same network segment;
Setup measures module 33, for using default configuration script, configuring the test index of tested port;
Test module 34, for the test index configured according to setup measures module 33, using automatized script to tested Port is tested;
Output module 35, for outputing test result.
Each module realizes the process of respective function in a kind of device of automatic test that the present embodiment is provided, and specifically can join The description of embodiment illustrated in fig. 1 is stated before examination, and here is omitted.
Knowable to a kind of device of automatic test of above-mentioned Fig. 4 examples, in the present embodiment, by establishment and equipment under test Tested port equal number Microsoft Loopback Adapter, each self-corresponding quilt of each Microsoft Loopback Adapter is configured according to the IP address of Microsoft Loopback Adapter The IP address of port is surveyed, the IP address of the IP address of each Microsoft Loopback Adapter and each self-corresponding tested port of each Microsoft Loopback Adapter is made Belong to the same network segment, then configure the test index of tested port using default configuration script, and made according to the test index Tested port is tested with automatized script, is finally outputed test result, realize simultaneously to the multiple of multi bri device The automatic test of port, improves testing efficiency, and reduces the statistical error of test result.
Example IV:
Fig. 5 is a kind of structural representation of the device of automatic test that the embodiment of the present invention four is provided, for the ease of saying It is bright, illustrate only the part related to the embodiment of the present invention.A kind of device of automatic test of Fig. 5 examples can be aforementioned reality The executive agent of the method for the automatic test of the offer of example two is provided.A kind of device of automatic test of Fig. 5 examples includes network interface card Creation module 41, address configuration module 42, setup measures module 43, test module 44 and output module 45, each functional module is detailed Carefully it is described as follows:
Network interface card creation module 41, for creating the Microsoft Loopback Adapter with the tested port equal number of equipment under test, wherein, quilt Measurement equipment includes multiple tested ports, and Microsoft Loopback Adapter is corresponded with tested port;
Address configuration module 42, the IP address of the Microsoft Loopback Adapter for being created according to network interface card creation module 41, configures each The IP address of each self-corresponding tested port of Microsoft Loopback Adapter, wherein, the IP address of each Microsoft Loopback Adapter is each with each Microsoft Loopback Adapter The IP address of self-corresponding tested port belongs to the same network segment;
Setup measures module 43, for using default configuration script, configuring the test index of tested port;
Test module 44, for the test index configured according to setup measures module 43, using automatized script to tested Port is tested;
Output module 45, for outputing test result.
Further, test module 44 includes:
Sending submodule 441, the test index for being configured according to setup measures module 43 uses default test script, Test data is sent to tested port;
Statistic submodule 442, for counting the test result data of tested port.
Further, output module 45 is additionally operable to:
The test result data that statistic submodule 442 is counted is compared with the preset standard value of test index, judges Whether tested port exports judged result by test.
Further, sending submodule 441 is additionally operable to:
Default test script is used according to the test index of the configuration of setup measures module 43, is sent to tested port and is interconnected Net Internet Control Message Protocol ICMP data.
Further, test index includes time delay and/or packet loss.
Each module realizes the process of respective function in a kind of device of automatic test that the present embodiment is provided, and specifically can join The description of embodiment illustrated in fig. 3 is stated before examination, and here is omitted.
Knowable to a kind of device of automatic test of above-mentioned Fig. 5 examples, in the present embodiment, by establishment and equipment under test Tested port equal number Microsoft Loopback Adapter, each self-corresponding quilt of each Microsoft Loopback Adapter is configured according to the IP address of Microsoft Loopback Adapter The IP address of port is surveyed, the IP address of the IP address of each Microsoft Loopback Adapter and each self-corresponding tested port of each Microsoft Loopback Adapter is made Belong to the same network segment, then configure the test indexs such as time delay and/or the packet loss of tested port using default configuration script, and Default test script is used according to the test index, to tested port ICMP data are sent, and count the test of tested port Result data, is finally compared test result data with the preset standard value of test index, judges whether tested port leads to Test is crossed, and exports judged result, realize carries out automatic test to multiple ports of multi bri device simultaneously, to test knot Fruit data are automatically analyzed, and while output test result, are missed so as to improving testing efficiency, and reducing the statistics of test result Difference.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment What is stressed is all the difference with other embodiment, between each embodiment same or like part mutually referring to .For device class embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, it is related Part is illustrated referring to the part of embodiment of the method.
It should be noted that in said apparatus embodiment, included modules simply carry out drawing according to function logic Point, but above-mentioned division is not limited to, as long as corresponding function can be realized;In addition, each functional module is concrete Title is also only to facilitate mutually differentiation, is not limited to protection scope of the present invention.
It will appreciated by the skilled person that realize that all or part of step in the various embodiments described above method is can Completed with instructing the hardware of correlation by program, corresponding program can be stored in a computer read/write memory medium In, described storage medium, such as ROM/RAM, disk or CD.
Presently preferred embodiments of the present invention is the foregoing is only, not to limit the present invention, all essences in the present invention Any modification, equivalent and improvement made within god and principle etc., should be included within the scope of the present invention.

Claims (10)

1. a kind of method of automatic test, it is characterised in that methods described includes:
The Microsoft Loopback Adapter with the tested port equal number of equipment under test is created, wherein, the equipment under test is comprising multiple described Tested port, the Microsoft Loopback Adapter is corresponded with the tested port;
The each self-corresponding quilt of each described Microsoft Loopback Adapter is configured according to the network interconnection Protocol IP address of the Microsoft Loopback Adapter The IP address of port is surveyed, wherein, the IP address of each Microsoft Loopback Adapter is each self-corresponding described with each described Microsoft Loopback Adapter The IP address of tested port belongs to the same network segment;
Using default configuration script, the test index of the tested port is configured;
According to the test index, the tested port is tested using automatized script;
Output test result.
2. method according to claim 1, it is characterised in that described according to the test index, using automatized script Carrying out test to the tested port includes:
Default test script is used according to the test index, to the tested port test data is sent;
Count the test result data of the tested port.
3. method according to claim 2, it is characterised in that it is described output test result including:
The test result data is compared with the preset standard value of the test index, whether the tested port is judged By test, and export judged result.
4. method according to claim 2, it is characterised in that described that default test pin is used according to the test index This, sending test data to the tested port includes:
Default test script is used according to the test index, to the tested port Internet Control Message agreement is sent ICMP data.
5. the method according to any one of Claims 1-4, it is characterised in that the test index includes time delay and/or loses Bag rate.
6. a kind of device of automatic test, it is characterised in that described device includes:
Network interface card creation module, for creating the Microsoft Loopback Adapter with the tested port equal number of equipment under test, wherein, it is described tested Equipment includes multiple tested ports, and the Microsoft Loopback Adapter is corresponded with the tested port;
Address configuration module, for configuring each described Microsoft Loopback Adapter according to the network interconnection Protocol IP address of the Microsoft Loopback Adapter The IP address of each self-corresponding tested port, wherein, the IP address of each Microsoft Loopback Adapter and each described virtual net The IP address for blocking each self-corresponding tested port belongs to the same network segment;
Setup measures module, for using default configuration script, configuring the test index of the tested port;
Test module, for according to the test index, being tested the tested port using automatized script;
Output module, for outputing test result.
7. device according to claim 6, it is characterised in that the test module includes:
Sending submodule, for using default test script according to the test index, to the tested port test is sent Data;
Statistic submodule, for counting the test result data of the tested port.
8. device according to claim 7, it is characterised in that the output module is additionally operable to:
The test result data is compared with the preset standard value of the test index, whether the tested port is judged By test, and export judged result.
9. device according to claim 7, it is characterised in that the sending submodule is additionally operable to:
Default test script is used according to the test index, to the tested port Internet Control Message agreement is sent ICMP data.
10. the device according to any one of claim 6 to 9, it is characterised in that the test index include time delay and/or Packet loss.
CN201611163517.8A 2016-12-14 2016-12-14 A kind of method and apparatus of automatic test Active CN106649012B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611163517.8A CN106649012B (en) 2016-12-14 2016-12-14 A kind of method and apparatus of automatic test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611163517.8A CN106649012B (en) 2016-12-14 2016-12-14 A kind of method and apparatus of automatic test

Publications (2)

Publication Number Publication Date
CN106649012A true CN106649012A (en) 2017-05-10
CN106649012B CN106649012B (en) 2019-11-22

Family

ID=58823588

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611163517.8A Active CN106649012B (en) 2016-12-14 2016-12-14 A kind of method and apparatus of automatic test

Country Status (1)

Country Link
CN (1) CN106649012B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107659434A (en) * 2017-09-11 2018-02-02 上海斐讯数据通信技术有限公司 A kind of automatic test approach of Devices to test, apparatus and system
CN109815068A (en) * 2018-12-25 2019-05-28 曙光信息产业(北京)有限公司 The method and system of multiple port PCI e compatibility transmitting terminal test
CN111371654A (en) * 2020-03-18 2020-07-03 四川九州电子科技股份有限公司 Automatic testing system and method for intelligent fusion product network port
CN113535325A (en) * 2021-06-29 2021-10-22 惠州华阳通用电子有限公司 Double-system debugging method based on virtual network card
CN114095413A (en) * 2022-01-10 2022-02-25 北京安博通科技股份有限公司 Automatic test networking system for network hardware equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1556625A (en) * 2004-01-05 2004-12-22 联想(北京)有限公司 Data transmission method of network equipment based on multinetwork card and device
CN101163051A (en) * 2006-10-13 2008-04-16 鸿富锦精密工业(深圳)有限公司 Network card transmission speed testing system and method
CN102137169A (en) * 2011-01-30 2011-07-27 华为技术有限公司 Method, network card and communication system for binding physical internet ports
US20120278802A1 (en) * 2011-04-28 2012-11-01 Dell Products L.P. System and method for automated virtual network configuration
CN103684924A (en) * 2013-12-26 2014-03-26 上海原动力通信科技有限公司 Test system and test method
CN105183482A (en) * 2015-09-23 2015-12-23 浪潮(北京)电子信息产业有限公司 Network simulation development testing method and system
CN106209449A (en) * 2016-07-06 2016-12-07 天脉聚源(北京)传媒科技有限公司 A kind of method and device binding network interface card

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1556625A (en) * 2004-01-05 2004-12-22 联想(北京)有限公司 Data transmission method of network equipment based on multinetwork card and device
CN101163051A (en) * 2006-10-13 2008-04-16 鸿富锦精密工业(深圳)有限公司 Network card transmission speed testing system and method
CN102137169A (en) * 2011-01-30 2011-07-27 华为技术有限公司 Method, network card and communication system for binding physical internet ports
US20120278802A1 (en) * 2011-04-28 2012-11-01 Dell Products L.P. System and method for automated virtual network configuration
CN103684924A (en) * 2013-12-26 2014-03-26 上海原动力通信科技有限公司 Test system and test method
CN105183482A (en) * 2015-09-23 2015-12-23 浪潮(北京)电子信息产业有限公司 Network simulation development testing method and system
CN106209449A (en) * 2016-07-06 2016-12-07 天脉聚源(北京)传媒科技有限公司 A kind of method and device binding network interface card

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107659434A (en) * 2017-09-11 2018-02-02 上海斐讯数据通信技术有限公司 A kind of automatic test approach of Devices to test, apparatus and system
CN109815068A (en) * 2018-12-25 2019-05-28 曙光信息产业(北京)有限公司 The method and system of multiple port PCI e compatibility transmitting terminal test
CN111371654A (en) * 2020-03-18 2020-07-03 四川九州电子科技股份有限公司 Automatic testing system and method for intelligent fusion product network port
CN111371654B (en) * 2020-03-18 2022-10-14 四川九州电子科技股份有限公司 Automatic testing system and method for intelligent fusion product network port
CN113535325A (en) * 2021-06-29 2021-10-22 惠州华阳通用电子有限公司 Double-system debugging method based on virtual network card
CN114095413A (en) * 2022-01-10 2022-02-25 北京安博通科技股份有限公司 Automatic test networking system for network hardware equipment

Also Published As

Publication number Publication date
CN106649012B (en) 2019-11-22

Similar Documents

Publication Publication Date Title
CN106649012B (en) A kind of method and apparatus of automatic test
US7100091B2 (en) Method and system for testing networks
US9306816B2 (en) System and method for replaying network captures
CN104184617B (en) InterWorking Equipment pre-add method for reconfiguration, device, system and the network equipment
US7440415B2 (en) Virtual network addresses
CN106452942B (en) The vehicle-mounted Ethernet exchanging software performance test system and method for track transportation industry
CN101841441B (en) Test method and system for flow control device and data stream playback device
CN107026764A (en) A kind of remote debugging method, equipment, server and system
CN102307118B (en) Back plate test method, apparatus thereof and system thereof
CN105227406A (en) A kind of method of testing of router combination property
CN101854648A (en) Testing method, device and testing system for single board of communication apparatus
CN105553885B (en) A kind of FC interchanger priority test method
CN104539483A (en) Network testing system
CN111092782B (en) Tested communication equipment, communication equipment port data forwarding test system and method
CN105847460A (en) Method and device for realizing BFD (Bidirectional Forwarding Detection)
JP2011071989A (en) Traffic distribution control process and apparatus therefor
CN115914042A (en) Methods, systems, and computer readable media for network traffic generation using machine learning
CN107733743B (en) Method and system for realizing automatic test of Ethernet bus data
Kováč et al. Modern internet based production technology
US20130305090A1 (en) Test configuration resource manager
CN102377606A (en) Network connection device and port test method thereof
CN109633414B (en) Backboard testing device and method based on ATCA (advanced telecom computing architecture)
US20040143781A1 (en) System and method for non-intrusive loopback testing
US8630187B1 (en) Method and system for testing a network switching apparatus
CN102546306B (en) DSL transmission range test method and device adopting same

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A method and device for automatic testing

Effective date of registration: 20220701

Granted publication date: 20191122

Pledgee: Bank of Communications Limited Shenzhen Branch

Pledgor: Shenzhen Hengyang Data Co.,Ltd.

Registration number: Y2022340000011