CN101404596B - Multi-topological environmental test method, system and equipment - Google Patents

Multi-topological environmental test method, system and equipment Download PDF

Info

Publication number
CN101404596B
CN101404596B CN2008101765452A CN200810176545A CN101404596B CN 101404596 B CN101404596 B CN 101404596B CN 2008101765452 A CN2008101765452 A CN 2008101765452A CN 200810176545 A CN200810176545 A CN 200810176545A CN 101404596 B CN101404596 B CN 101404596B
Authority
CN
China
Prior art keywords
test
topological
test assignment
assignment
switching device
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.)
Expired - Fee Related
Application number
CN2008101765452A
Other languages
Chinese (zh)
Other versions
CN101404596A (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.)
STATE GRID ZHEJIANG ZHUJI POWER SUPPLY Co Ltd
Zhuji Dongbai Electric Power Equipment Manufacturing Co Ltd
State Grid Corp of China SGCC
State Grid Zhejiang Electric Power Co Ltd
Shaoxing Power Supply Co of State Grid Zhejiang Electric Power Co Ltd
Original Assignee
Fujian Star Net Communication 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 Fujian Star Net Communication Co Ltd filed Critical Fujian Star Net Communication Co Ltd
Priority to CN2008101765452A priority Critical patent/CN101404596B/en
Publication of CN101404596A publication Critical patent/CN101404596A/en
Application granted granted Critical
Publication of CN101404596B publication Critical patent/CN101404596B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a multi-topology environment test method, a system and a device thereof used for using the test resource and time completely to improve the test efficiency and quality of the multi-topology environment. The method comprises the steps as follows: a test monitoring device confirms a test task to be executed currently in a test task list, loads a configuration file and a test script of the test task and allocates tested multi-topology environment corresponding to the test task for a topology switching device according to the configuration file; after the allocation is finished, the test script of the test task is executed; a tester and every corresponding test device in the tested multi-topology environment are controlled to receive and send test frames; the test frames between the tester and every test device are transmitted by the topology switching device; a test result of the test task which is obtained by the tester according to the receiving result of the test frames is received; and the test task is confirmed to be executed and completed according to the received test result.

Description

A kind of multi-topological environmental test method, system and equipment
Technical field
The present invention relates to the network service field tests, relate in particular to a kind of multi-topological environmental measuring technology.
Background technology
Along with the develop rapidly of the computer technology and the network communications technology, the use of network communication equipments such as switch, router is extensive further, and in order to satisfy the heterogeneous networks demands of applications, the function of various network communication equipment is also more and more abundanter.For network communication equipment manufacturer or Virtual network operator, the quality that needs its network communication equipment produced of assurance or the network that provides are served must be carried out comprehensive and deep test to the function and the network application of corresponding network communication equipment.In the prior art, the general automatic test mode that adopts, automatic test is meant at test monitoring equipment (being generally PC) goes up operation automatic test program, testing equipment (is comprised equipment under test at least, may also comprise auxilliary measurement equipment) be managed for configuration, control tester carry out test frame transmitting-receiving and according to the test frame reception result draw by (Pass) or the failure (Fail) test result.
In common test, test environment can be divided into single topology environment and multi-topological environmental according to test topology.The single topology environment is meant to have only an equipment under test in the test environment, and this equipment under test and tester are formed the single topology environment, and this equipment under test links to each other and can test with tester and test monitoring equipment, as shown in Figure 1.Multi-topological environmental is meant the test topology of being made of certain setting in the test environment many testing equipments, at least comprise many equipment under tests in many testing equipments, simultaneously may also comprise one or more auxilliary measurement equipment, equipment under test, auxilliary measurement equipment and tester are formed multi-topological environmental, equipment under test, auxilliary measurement equipment link to each other and can test with tester and test monitoring equipment, as shown in Figure 2.Wherein, equipment under test can be switch, router or other test product; Auxilliary measurement equipment also can be switch, router or other network communication equipment, and its effect is to build test environment jointly with equipment under test.Tester is the standard instrument that performance test and analysis and assessment are carried out in the function of equipment under test and network application, there are a plurality of ports to be used for the transmission and the reception of test data message (data message of can analog network using variety of protocol) on the tester, and can processing such as add up sending with the data message that receives.Carry out the transmitting-receiving of test frame (certain protocol data message that promptly is used to test) by the control tester, and judge according to the test frame reception result whether the function of equipment under test or network application be correct, thereby reach test purpose equipment under test.The test monitoring control equipment is managed for configuration testing equipment by serial ports (com port also can be described as serial line interface or serial communication interface) or Telnet (Telnet), and the control tester carries out the transmitting-receiving of test frame.
When in multi-topological environmental, carrying out automatic test, because a test event comprises the multinomial test assignment that the multiple function and the multiple network of network communication equipment are used, under the test resource condition of limited, be difficult to accomplish distribute enough testing equipments to build corresponding multi-topological environmental to every test assignment, in actual test event, generally be the shared testing equipment of multinomial test assignment.Before carrying out every test assignment, need carry out the configuration of test environment, mainly comprise: according to test topology build multi-topological environmental, select tester/testing equipment test port, the serial ports that test monitoring equipment is set or Telnet port numbers, select automatic test cases or the like, the general test environment be configured to linear operation, can only carry out each step in proper order.Test case is meant the set of the various test inputs, test condition, testing procedure and the expected results that are used to test certain fc-specific test FC task; Automatic test cases is meant the test case that has realized automatic test by the mode of automatic test script.And the difference in functionality of network communication equipment and heterogeneous networks are used required test topology difference, and a test assignment may need to repeat repeatedly, this just requires to reconfigure test environment to meet the demands before carrying out every test assignment, cause whole test event to carry out on automatic smoothing ground, test resource and time have been wasted, make testing efficiency lower, the continuous change of test topology simultaneously may mistake occur and cause test result invalid, has had a strong impact on testing efficiency and test mass.
Summary of the invention
The invention provides a kind of multi-topological environmental test method, system and equipment,, improve the testing efficiency and the test mass of multi-topological environmental in order to make full use of test resource and time.
Multi-topological environmental test method provided by the invention comprises:
Test monitoring equipment is determined the current test assignment that needs execution from the test assignment formation, load the configuration file and the test script of described test assignment, described configuration file comprises topological arrangement information, described topological arrangement information is indicated the test port annexation of topological switching device and tester, the test port annexation of each testing equipment in topology switching device and the tested multi-topological environmental, each tested multi-topological environmental is built by tester and a plurality of testing equipment according to the test topology of corresponding test assignment, and described topological switching device links to each other with a plurality of testing equipments with tester;
Test monitoring equipment carries out the configuration of the tested multi-topological environmental of described test assignment correspondence to topological switching device according to configuration file, in the VLAN ID VID of idle condition value, select the VID value, realize that according to topological arrangement information and selected VID value generation control the command string that topology is switched sends to topological switching device, and selected VID value is set to user mode, described topological switching device is created special VLAN according to the command string that receives, and the test port that belongs to same broadcast domain in the tested multi-topological environmental of described special VLAN with described test assignment correspondence is divided in the same VLAN;
Test monitoring equipment is carried out the test script of described test assignment after configuration is finished, carry out the transmitting-receiving of test frame in control tester and the corresponding tested multi-topological environmental between each testing equipment, wherein, the test frame between tester and each testing equipment is transmitted by topological switching device;
Test monitoring equipment receives the test result of the described test assignment that described tester draws according to the test frame reception result, and confirms that according to the test result that receives described test assignment is complete.
Multi-topological environmental test macro provided by the invention comprises test monitoring equipment, topological switching device and tester and a plurality of testing equipment, and described tester links to each other with described topological switching device with a plurality of testing equipments, wherein:
Described test monitoring equipment, be used for determining the test assignment that current needs are carried out from the test assignment formation, load the configuration file and the test script of described test assignment, described configuration file comprises topological arrangement information, described topological arrangement information is indicated the test port annexation of topological switching device and tester, the test port annexation of each testing equipment in topology switching device and the tested multi-topological environmental, and topological switching device is carried out the configuration of the tested multi-topological environmental of described test assignment correspondence according to configuration file, in the VLAN ID VID of idle condition value, select the VID value, realize that according to topological arrangement information and selected VID value generation control the command string that topology is switched sends to topological switching device, the VID value of selecting is set to user mode; After finishing, configuration carries out the test script of described test assignment, carry out the transmitting-receiving of test frame in control tester and the corresponding tested multi-topological environmental between each testing equipment, and confirm that according to the test result that receives described test assignment is complete, wherein, each tested multi-topological environmental is built by described tester and a plurality of testing equipment according to the test topology of corresponding test assignment;
Described tester is used for drawing the test result of described test assignment and reporting test monitoring equipment according to the test frame reception result carrying out the transmitting-receiving of test frame under the control of test monitoring equipment and between each testing equipment of tested multi-topological environmental of configuration;
Described topological switching device, be used for creating special VLAN according to the command string that receives, the test port that belongs to same broadcast domain in the tested multi-topological environmental of described special VLAN with described test assignment correspondence is divided in the same VLAN, and between described tester and each testing equipment the transmitted test frame.
Test monitoring equipment provided by the invention comprises memory module, control module and topological arrangement module, wherein:
Described memory module, be used for storing the configuration information and the test script of test assignment formation and each test assignment of test assignment formation, described configuration information comprises that the described topological arrangement information of topological arrangement information indicates the test port annexation of each testing equipment in the test port annexation of topological switching device and tester, topological switching device and the tested multi-topological environmental;
Described control module, be used for determining the test assignment that current needs are carried out from the test assignment formation, load the configuration file and the test script of described test assignment, call the topological arrangement module and learning that the topological arrangement block configuration carries out the test script of described test assignment after finishing, carry out the transmitting-receiving of test frame in control tester and the corresponding tested multi-topological environmental between each testing equipment, and confirm that according to the test result that receives described test assignment is complete, wherein, each tested multi-topological environmental is built by tester and a plurality of testing equipment according to the test topology of corresponding test assignment, and described topological switching device links to each other with a plurality of testing equipments with tester;
Described topological arrangement module, be used for topological switching device being carried out the configuration of the tested multi-topological environmental of described test assignment correspondence according to configuration file, in the VLAN ID VID of idle condition value, select the VID value, realize that according to topological arrangement information and selected VID value generation control the command string that topology is switched sends to topological switching device, selected VID value is set to user mode, and notifies described control module after configuration is finished.
Multi-topological environmental test method provided by the invention, system and equipment, test monitoring equipment is determined the current test assignment that needs execution from the test assignment formation, load the configuration file and the test script of test assignment, and topological switching device is carried out the configuration of the tested multi-topological environmental of test assignment correspondence according to configuration file, after finishing, configuration carries out the test script of test assignment, carry out the transmitting-receiving of test frame in control tester and the corresponding tested multi-topological environmental between each testing equipment, test frame between tester and each testing equipment is transmitted by topological switching device, realized that the test port of tester is connected the automatic switchover of corresponding relation with the test port of each testing equipment in the tested multi-topological environmental, in the time need in the different multi-topological environmental of a plurality of independently test topologys, testing, can carry out topology automatically switches and the test assignment scheduling, make full use of testing time and test resource, improve the testing efficiency and the test mass of multi-topological environmental.
Description of drawings
Fig. 1 is a single topology environmental structure schematic diagram in the prior art;
Fig. 2 is a multi-topological environmental structural representation in the prior art;
Fig. 3 is a multi-topological environmental test macro schematic diagram in the embodiment of the invention;
Fig. 4 is a kind of possibility structured flowchart of test monitoring equipment in the embodiment of the invention;
Fig. 5 is a multi-topological environmental test method flow chart in the embodiment of the invention.
Embodiment
The embodiment of the invention provides a kind of multi-topological environmental testing scheme, can solve problems of the prior art, make whole test event to carry out on automatic smoothing ground, made full use of test resource and time, improved the testing efficiency and the test mass of how topological test environment.
As shown in Figure 3, the multi-topological environmental test macro that the embodiment of the invention provides, comprise a plurality of testing equipments 300, test monitoring equipment 301, tester 302 and topological switching device 303, test monitoring equipment 301 is by mode and a plurality of testing equipments 300 such as serial ports or network interface cards, tester 302 links to each other with topological switching device 303, the test port of tester 302, the test port of a plurality of testing equipments 300 links to each other with topological switching device 303, need not directly to link to each other between tester 302 and a plurality of testing equipments 300, a plurality of testing equipments 300 and tester 302 are formed at least two tested multi-topological environmentals in advance, wherein, each tested multi-topological environmental is built according to the test topology of corresponding test assignment, a plurality of testing equipments 300 comprise a plurality of equipment under tests at least, also may comprise one or more auxilliary measurement equipments.Wherein:
Test monitoring equipment 301, be used for determining the test assignment that current needs are carried out from the test assignment formation, load current configuration file and the test script that needs the test assignment of execution, and topological switching device 303 is carried out the configuration of the tested multi-topological environmental of the test assignment correspondence that current needs carry out according to configuration file, after finishing, configuration carries out the current test script that needs the test assignment of execution, carry out the transmitting-receiving of test frame in control tester 302 and the corresponding tested multi-topological environmental between each testing equipment 300, and confirm that according to the test result that receives the test assignment of current needs execution is complete;
Test monitoring equipment 301 determines to need to continue the test assignment of execution from the test assignment formation after the current test assignment that need carry out is complete, test assignments all in the test assignment formation is complete;
Tester 302, be used for carrying out the transmitting-receiving of test frame under the control of test monitoring equipment 301 and between each testing equipment 300 of tested multi-topological environmental of configuration, draw the test result of the test assignment that current needs carry out and report test monitoring equipment 301 according to the test frame reception result;
Topology switching device 303 is used for the tested multi-topological environmental according to configuration, transmitted test frame between tester 302 and each testing equipment 300.
Preferable, in the multi-topological environmental test macro that the embodiment of the invention provides, can dispose the tester 302 that a plurality of and topological switching device 303 links to each other, under the condition of test resource (tester and testing equipment) abundance, test monitoring equipment 301 can be determined a plurality of current test assignments that need execution from the test assignment formation, and after the configuration of the tested multi-topological environmental that topological switching device 303 is carried out each test assignment correspondence according to each configuration file, control each test assignment executed in parallel, further promote testing efficiency.
In the embodiment of the invention, topology switching device 303 can be by obtaining the switch transformation in the existing network communication equipment, switch that requirement is transformed is supported IEEE 802.1Q, IEEE 802.1Q tunnel (tunneling) function, and port arrangement, address learning switch, message are handled the configuration feature of switch.By transformation, make topological switching device 303 possess following characteristics to switch:
The topology switching device 303 simple data messages of transmitting based on variety of protocol, and the data message is not carried out any processing, based on the data message of variety of protocol BPDU (Bridge Protocol Data Unit for example, the bridge protocol data unit), ARP (Address Resolution Protocol, address resolution protocol), EAPOL (Extensible Authentication Protocol over LAN, the Extensible Authentication Protocol based on Ethernet) data message such as, wherein the BPDU data message is a kind of Spanning-Tree Protocol packet, send with configurable interval, be used between the bridge of communication network, carrying out information exchange;
Topology switching device 303 can not learnt the source MAC of any data message, the transmitting-receiving of all data messages all floods, promptly topology switching device 303 can be belonged to same VLAN (Virtual Local Area Network with receiving port with this data message forwarding when receiving certain data message, VLAN) all of the port, wherein VLAN divides the logical network of coming out on a physical network, a VLAN can regard a broadcast domain as, two layers clean culture, broadcasting and multicast frame are transmitted in same VLAN, diffusion, and can directly not enter other VLAN;
Topology switching device 303 can receive tagged and the untagged frame based on IEEE 802.1Q, and not carrying out any processing directly transmits, IEEE 802.1Q standard definition, the tag field is the field of sign vlan information additional in Frame, the tagged frame refers to carry the frame of tag field, and the untagged frame is meant the frame that does not carry the tag field;
Certain several port of topology switching device 303 can be in same special vlan, special vlan can comprise several VLAN, and the port that belongs to same broadcast domain is divided among the same VLAN, special vlan is divided into a broadcast domain to several ports, can not handle and change the included tag field of data message when transmitting simultaneously, message from certain port input of broadcast domain only can flood in the port of this broadcast domain, and can not be forwarded to other broadcast domain.
The operations such as configuration of topology switching device 303 are carried out by 301 controls of test monitoring equipment, this just need carry out software upgrading to test monitoring equipment of the prior art, automatic test software is installed to realize scheduling and the management to every test assignment in test monitoring equipment.A kind of possibility structure of test monitoring equipment 301 as shown in Figure 4, comprises memory module 401, control module 402 and topological arrangement module 403 in the embodiment of the invention, wherein:
Memory module 401 is used for storing the configuration information and the test script of test assignment formation and each test assignment of test assignment formation;
Wherein, the test assignment formation can realize by special queue file or realize with the formation array of automated procedures configuration file, the sign and the attribute that comprise at least one test assignment in the test assignment formation, equal corresponding test script of each test assignment and configuration file, by sign and the configuration file of test assignment and the corresponding relation of test script of test assignment, can conveniently obtain the configuration file and the test script of each test assignment.
Test script is the script file of writing with script (for example Tcl language or Perl language etc.) according to the execution in step of test case that can move.
Configuration file comprises the parameter configuration that topological arrangement information and test script are carried out, topological arrangement information can define in different files respectively with parameter configuration, with better recycling, multinomial test assignment also can a shared identical configuration file, wherein:
Topological arrangement information comprises the test port annexation of each testing equipment in the test port annexation of topological switching device and tester, topological switching device and the tested multi-topological environmental, and topological arrangement information adopts unified array to preserve configuration;
The parameter configuration that test script is carried out, the desired value that may comprise a certain function of different products to be measured, the desired value of supporting at a certain function for difference product to be measured may be different, the maximum port number that for example different switches can be supported may be different, and several desired values such as 24,48 or 52 are generally arranged; The attribute variable that may comprise test script, for example test script descriptor, test grade etc.; May also comprise the global variable of automatic test software definition etc.
The attribute of test assignment comprises the state information of test assignment at least in the test assignment formation, with test assignment be divided into executing state not, carry out in state and execute the state information of three types of states, test monitoring equipment is selected at least one state information from the test assignment formation be the test assignment of executing state not, be defined as the current test assignment that needs execution, can select at random also can select according to the time sequencing of submitting to, wherein:
When test assignment was added into the test assignment formation, the state information of this test assignment was executing state not;
When the test script of test assignment began to carry out, it was state in the execution that the state information of this test assignment refreshes;
After test assignment was complete, the state information of this test assignment refreshed and is the state of executing.
The attribute of test assignment also can comprise precedence information, the height of indication test assignment priority, precedence information can be represented with high, medium and low, perhaps represent with numerical value 1,2,3, perhaps expression otherwise, test monitoring equipment is selected at least one state information from the test assignment formation be not executing state and the highest test assignment of priority, is defined as the current test assignment carried out of needing.
Control module 402, be used for determining the test assignment that current needs are carried out from the test assignment formation, load current configuration file and the test script that needs the test assignment of execution, call topological arrangement module 403 and learning that topological arrangement module 403 configuration carries out the current test script that needs the test assignment of execution after finishing, carry out the transmitting-receiving of test frame in control tester and the corresponding tested multi-topological environmental between each testing equipment, and confirm that according to the test result that receives the test assignment of current needs execution is complete;
Control module 402 read test task queues, judge whether that state information is the test assignment of executing state not, if having, the sign of determining the test assignment that current needs are carried out according to the state information and the precedence information of test assignment then, if no, then power cut-off; When control module 402 begins to carry out the test script of test assignment, the state information of this test assignment never executing state be updated to state in the execution, load the configuration file and the test script of test assignment according to the sign of test assignment, call that 403 pairs of topological switching devices of topological arrangement module carry out the configuration of tested multi-topological environmental and learning that configuration carries out the test script of test assignment after finishing, complete up to test script; After test assignment is complete, the state information of this test assignment state from carry out is updated to the state of executing.
Topological arrangement module 403 is used for according to configuration file topological switching device being carried out the configuration of the tested multi-topological environmental of the test assignment correspondence that current needs carry out, and notifies control module 402 after configuration is finished.
Topological arrangement module 403 is selected operable VID value in the VID value scope of setting, the VID value is to be used for creating the employed ID of special vlan, the port that disposes same VID value belongs to same broadcast domain, can mutual communication, and all VID values are initially set to idle condition in the VID value scope.When topological arrangement module 403 selected the VID value to be used for creating special vlan from the VID value of idle condition, topological arrangement module 403 selected VID values were set to user mode.With the current configuration restore of topological switching device be initial condition (promptly the special vlan of Chuan Jianing is deleted) afterwards, the 403 selected VID values recoveries of topological arrangement module are set to idle condition.Prevent like this that a plurality of VID value is used the situation of confusion when being connected to topological switching device when tester simultaneous and creating special vlan.For example: when test environment 1 is tested, picked at random VID value 10~19 is used for creating special vlan on topological switching device, this moment, test environment 2 also will be tested, just can not determine which VID value is used when on topological switching device, creating special vlan in test environment 1, which is not used, so will manage the VID value.The method of management is VID value scope of definition, and VID values all in the VID value scope is initially set to idle condition.If certain VID value is used when creating special vlan, this VID value is set to user mode.When the special vlan of creating was deleted, this VID value was resumed and is set to idle condition.Have only the VID value when the idle condition, just can be used for creating special vlan.
Secondly, topological arrangement module 403 generates the command string (command string is the composition of configurable order on topological switching device) that control realizes that topology is switched according to topological arrangement information and selected VID value, command string is sent into the Console mouth of topological switching device by the API of serial ports (Com) or Telnet (Telnet), on topological switching device, create special vlan, topological switching device is divided into the test port that belongs to same broadcast domain in the tested multi-topological environmental among the same VLAN, test topology forms transparent connection like this, reaches the purpose that topology is switched.
Preferable, control module 402 also is used for after the test assignment that current needs are carried out is complete, and calling topological arrangement module 403 is that initial condition and selected VID value recovery are set to idle condition with the current configuration restore of topological switching device.
Control module 402 also is used for after the test assignment that current needs are carried out is complete, determines to need to continue the test assignment of execution from the test assignment formation, and test assignments all in the test assignment formation is complete.
Preferable, test monitoring equipment also comprises test assignment administration module 404, be used for the management testing task queue, be included in the test assignment formation and add, revise or the deletion test assignment, test assignment administration module 404 carries out alternately with user interface form and tester, the interpolation request of acceptance test task be added in the test assignment formation according to adding the test assignment of request with the request interpolation, and the configuration file and the test script of test assignment is added in the storage request; Perhaps, the removal request of acceptance test task will ask the test assignment of deletion to be deleted from the test assignment formation according to removal request, and the configuration file and the test script of the request deletion test assignment of deletion storage; Perhaps, the modification request of acceptance test task is carried out corresponding modify according to the test assignment that the request of revising is revised request.
Interpolation to test assignment can be handled flexibly.Suppose to carry out the test of two different test environments now: test environment 1 and test environment 2, can directly be connected to all settings in test environment 1 and the test environment 2 in the topological switching device, and store configuration files and script information, together the test assignment of test environment 1 and test environment 2 is added in the test assignment formation, test monitoring equipment can carry out the topology switching according to the configuration file of test assignment automatically and finish test assignments all in the test assignment formation, tester can not be in idle condition in whole test process finishes up to all test assignments, has effectively utilized test resource and testing time.Also can carry out the test of test environment 1 earlier, when test environment 1 is also being tested, also receive in the topological switching device and be configured test environment 2, add to then in the test assignment formation and go, test monitoring equipment can automatically carry out the topology switching to finish the test of test environment 2 after the test of finishing test environment 1 like this, can make full use of testing time and test resource equally, improve testing efficiency.
Based on same technical conceive, the embodiment of the invention provides a kind of multi-topological environmental test method, as shown in Figure 5, comprising:
S501, test monitoring equipment are determined the current test assignment that needs execution from the test assignment formation, load the configuration file and the test script of this test assignment, and topological switching device is carried out the configuration of the tested multi-topological environmental of this test assignment correspondence according to configuration file, wherein, each tested multi-topological environmental is built by the tester that links to each other with topological switching device and a plurality of testing equipment according to the test topology of corresponding test assignment.
Under the condition of test resource abundance, the current test assignment that needs to carry out that test monitoring equipment is determined from the test assignment formation can comprise a plurality of, test monitoring equipment carries out the configuration of tested multi-topological environmental of each test assignment correspondence to topological switching device according to each configuration file after, each test assignment executed in parallel.
The sign and the attribute that comprise at least one test assignment in the test assignment formation, test monitoring equipment are determined the current test assignment that needs execution from the test assignment formation, load the configuration file and the test script of this test assignment, specifically comprise:
Test monitoring equipment is determined the current sign that needs the test assignment of execution according to the attribute of each test assignment in this test assignment formation;
Load the configuration file and the test script of test assignment according to the sign of this test assignment, wherein, store sign and the configuration file of test assignment and the corresponding relation of test script of test assignment in advance.
Wherein, the attribute of test assignment comprises the state information of test assignment, state information comprises not executing state, carry out in state and execute state, and test monitoring equipment to select at least one state information from the test assignment formation be the test assignment of executing state not, be defined as the current test assignment carried out of needing; The attribute of test assignment is except that the state information that comprises test assignment, the precedence information that also can comprise test assignment, and test monitoring equipment to select at least one state information from the test assignment formation be not executing state and the highest test assignment of priority, be defined as the current test assignment carried out of needing.
Wherein, configuration file comprises the parameter configuration that topological arrangement information and test script are carried out, topological arrangement information is indicated the test port annexation of each testing equipment in the test port annexation of topological switching device and tester, topological switching device and the tested multi-topological environmental, according to configuration file topological switching device is carried out the configuration of the tested multi-topological environmental of described test assignment correspondence, comprising:
In the VID of idle condition value, select the VID value, realize that according to topological arrangement information and selected VID value generation control the command string that topology is switched sends to topological switching device, and the VID value of selecting is set to user mode;
The topology switching device is created special vlan according to the command string that receives, and the test port that belongs to same broadcast domain in the tested multi-topological environmental of special vlan with the test assignment correspondence is divided among the same VLAN.
Preferable, test monitoring equipment current need the test assignment carried out complete after, be initial condition with the current configuration restore of topological switching device, and the recovery of selected VID value is set to idle condition.
S502, test monitoring equipment are carried out the test script of this test assignment after configuration is finished, carry out the transmitting-receiving of test frame in control tester and the corresponding tested multi-topological environmental between each testing equipment, wherein, the test frame between tester and each testing equipment is transmitted by topological switching device.
The test result of the test assignment that S503, test monitoring equipment acceptance test instrument draw according to the test frame reception result, and confirm that according to the test result that receives this test assignment is complete.
Preferable, this method also comprises:
Test monitoring equipment determines to need to continue the test assignment of execution from the test assignment formation after the current test assignment that need carry out is complete, test assignments all in the test assignment formation is complete.
Wherein, the management method of test assignment formation comprises:
The interpolation request of acceptance test task;
The test assignment that to ask to submit to according to described interpolation request is added in the test assignment formation, and stores the configuration file and the test script of described test assignment;
Perhaps,
The removal request of acceptance test task;
To ask the test assignment of deletion from the test assignment formation, to be deleted according to described removal request, and the configuration file and the test script of the described test assignment of deletion storage;
Perhaps,
The modification request of acceptance test task;
Carry out corresponding modify according to the test assignment that described modification request is revised request.
In actual test process, when the tester will carry out the test of a certain test assignment, earlier the test script and the configuration file of this test assignment are imported by the test assignment administration module, by the test assignment administration module sign of this test assignment and the precedence information of test assignment are submitted in the test assignment formation then, the current test assignment that needs execution be will from the test assignment formation, determine automatically when the automatic test program is carried out, and the test script and the configuration file of this test assignment loaded.If a certain test assignment is when carrying out, this moment, the tester had a new test assignment to carry out again, the tester just can import the test script of new test assignment and configuration file by the test assignment administration module, do not need to wait until that test assignment that current needs carry out could submit to new task to test after complete, the automatic test program can automatically perform the next item down test assignment after the current test assignment that need carry out is complete.The tester submits to the time of test assignment unfettered, can make full use of testing time and test resource, and solving needs to wait for the complete drawback that could submit new test assignment afterwards to of previous test assignment.
The multi-topological environmental testing scheme that the embodiment of the invention provides, when carrying out automatic test to a plurality of test environments, adopt by needs test monitoring equipment and topological switching device to realize the topology switching, can make full use of test resource and testing time, improve automatic test and carry out efficient;
Test monitoring equipment automatically switches the test topology of different test assignments according to the configuration file of test assignment in the embodiment of the invention, this process does not need manual intervention by the automatic realization of software, just can finish the test of all test assignments, also reduce and manually frequently build multi-topological environmental, avoid the people to build issuable mistake simultaneously, make that automatic test can unattended operation for carrying out test topology;
Newly-increased topological switching device in the embodiment of the invention, tester all links to each other with topological switching device with testing equipment, and directly do not link to each other between tester and the testing equipment, help building and adjusting flexibly of test topology, test monitoring equipment is realized the switching of tested multi-topological environmental by the configured topology switching device, make things convenient for the configuration management of topological switching, can improve the efficient that topology is switched, thereby improved the testing efficiency of multi-topological environmental;
Further, when topological switching device can not satisfy the demand of a plurality of test environments with the port number of a switch, many switches can be piled up the port number of expanding topological switching device, to satisfy the demand of more test environments.
Describe for example.Suppose to have two test assignments to test, the test port that each test environment (test environment 1,2) needs to be connected testing equipment with topological switching device all is 10, and tester has two, can satisfy the test of two test assignments simultaneously.VID value scope is created in the special vlan in definition to be 100~1000 and to be initially set to idle condition.At first carry out following preparation: build two tested multi-topological environmentals according to the test topology of test environment 1,2, two test assignments are submitted in the test assignment formation, the sign of two test assignments is respectively JOB1, JOB2, the priority of JOB1 is higher than the priority of JOB2, and concrete handling process is:
The task queue of test monitoring equipment read test, determine that the current test assignment that needs to carry out is JOB1, load corresponding configuration file and test script then, topological switching device is carried out the configuration of the tested multi-topological environmental of JOB1 correspondence according to the configuration file of JOB1.At first select the VID value 100~109 of idle condition to be used to create special vlan, then topological switching device is configured to create special vlan, realize that topology automaticallyes switch, more selected VID value 100~109 is set to user mode, carry out the test script of JOB1 then.If test resource abundance, this moment tester the resource abundance, if the resource of testing equipment is also sufficient, then test monitoring equipment can determine simultaneously that also JOB2 is the current test assignment that needs execution, load corresponding configuration file of JOB2 and test script, topological switching device is carried out the configuration of the tested multi-topological environmental of JOB2 correspondence according to the configuration file of JOB2.At first select the VID value 110~119 of idle condition to be used to create special vlan, so just can not conflict with the VID value that JOB1 uses, then topological switching device is configured to create special vlan, realize that topology automaticallyes switch, again VID value 110~119 is set to user mode, carries out the test script of JOB2 then.
In test assignment JOB1, JOB2 executed in parallel, also can add new test assignment JOB3, it is just complete to suppose that JOB1 also has 2 hours, the time that JOB2 needs is more of a specified duration, can at first build the tested multi-topological environmental of JOB3 this moment, and test assignment JOB3 is submitted in the test assignment formation.Because the inadequate resource of tester, this moment, JOB3 can not carry out at once, must wait until that other test assignment is complete, could carry out after the release test resource.After JOB1 is complete, discharge test resource, test monitoring equipment can be carried out JOB3, automatically topological switching device is carried out the configuration of the tested multi-topological environmental of JOB3 correspondence according to the configuration file of JOB3, carries out the test script of JOB3 again.Can make full use of test resource and testing time like this, improve testing efficiency.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (10)

1. a multi-topological environmental test method is characterized in that, comprising:
Test monitoring equipment is determined the current test assignment that needs execution from the test assignment formation, load the configuration file and the test script of described test assignment, described configuration file comprises topological arrangement information, described topological arrangement information is indicated the test port annexation of topological switching device and tester, the test port annexation of each testing equipment in topology switching device and the tested multi-topological environmental, each tested multi-topological environmental is built by tester and a plurality of testing equipment according to the test topology of corresponding test assignment, and described topological switching device links to each other with a plurality of testing equipments with tester;
Test monitoring equipment carries out the configuration of the tested multi-topological environmental of described test assignment correspondence to topological switching device according to configuration file, in the VLAN ID VID of idle condition value, select the VID value, realize that according to described topological arrangement information and selected VID value generation control the command string that topology is switched sends to topological switching device, and the VID value of selecting is set to user mode; Described topological switching device is created special VLAN according to the command string that receives, and the test port that belongs to same broadcast domain in the tested multi-topological environmental of described special VLAN with described test assignment correspondence is divided in the same VLAN;
Test monitoring equipment is carried out the test script of described test assignment after configuration is finished, carry out the transmitting-receiving of test frame in control tester and the corresponding tested multi-topological environmental between each testing equipment, wherein, the test frame between tester and each testing equipment is transmitted by topological switching device;
Test monitoring equipment receives the test result of the described test assignment that described tester draws according to the test frame reception result, and confirms that according to the test result that receives described test assignment is complete.
2. the method for claim 1 is characterized in that, also comprises:
Described test monitoring equipment be initial condition with the current configuration restore of topological switching device, and the recovery of described selected VID value is set to idle condition after the current test assignment of need carrying out is complete.
3. method as claimed in claim 2 is characterized in that, also comprises:
Described test monitoring equipment determines to need to continue the test assignment of execution from the test assignment formation after the current test assignment that need carry out is complete, test assignments all in the test assignment formation is complete.
4. as the arbitrary described method of claim 1 to 3, it is characterized in that the current test assignment that need carry out that described test monitoring equipment is determined comprises a plurality of from the test assignment formation, and
Described test monitoring equipment carries out the configuration of tested multi-topological environmental of each test assignment correspondence to described topological switching device according to each configuration file after, each test assignment executed in parallel.
5. a multi-topological environmental test macro is characterized in that, comprises test monitoring equipment, topological switching device and tester and a plurality of testing equipment, and described tester links to each other with described topological switching device with a plurality of testing equipments, wherein:
Described test monitoring equipment, be used for determining the test assignment that current needs are carried out from the test assignment formation, load the configuration file and the test script of described test assignment, described configuration file comprises topological arrangement information, and described topological arrangement information is indicated the test port annexation of each testing equipment in the test port annexation of topological switching device and tester, topological switching device and the tested multi-topological environmental; And topological switching device is carried out the configuration of the tested multi-topological environmental of described test assignment correspondence according to configuration file, in the VLAN ID VID of idle condition value, select the VID value, realize that according to topological arrangement information and selected VID value generation control the command string that topology is switched sends to topological switching device, and the VID value of selecting is set to user mode; After finishing, configuration carries out the test script of described test assignment, carry out the transmitting-receiving of test frame in control tester and the corresponding tested multi-topological environmental between each testing equipment, and confirm that according to the test result that receives described test assignment is complete, wherein, each tested multi-topological environmental is built by described tester and a plurality of testing equipment according to the test topology of corresponding test assignment;
Described tester is used for drawing the test result of described test assignment and reporting test monitoring equipment according to the test frame reception result carrying out the transmitting-receiving of test frame under the control of test monitoring equipment and between each testing equipment of tested multi-topological environmental of configuration;
Described topological switching device, be used for creating special VLAN according to the command string that receives, the test port that belongs to same broadcast domain in the tested multi-topological environmental of described special VLAN with described test assignment correspondence is divided in the same VLAN; And according to the tested multi-topological environmental that disposes, transmitted test frame between described tester and each testing equipment.
6. system as claimed in claim 5 is characterized in that,
Described test monitoring equipment also is used for after the test assignment that current needs are carried out is complete, is that initial condition and the recovery of described selected VID value are set to idle condition with the current configuration restore of topological switching device.
7. system as claimed in claim 6 is characterized in that,
Described test monitoring equipment also is used for after the test assignment that current needs are carried out is complete, determines to need to continue the test assignment of execution from the test assignment formation, and test assignments all in the test assignment formation is complete.
8. as the arbitrary described system of claim 5 to 7, it is characterized in that the tester that links to each other with described topological switching device comprises a plurality of, and
Described test monitoring equipment is determined a plurality of current test assignments that need execution from the test assignment formation, and after the configuration of the tested multi-topological environmental that described topological switching device is carried out each test assignment correspondence according to each configuration file, control each test assignment executed in parallel.
9. a test monitoring equipment is characterized in that, comprises memory module, control module and topological arrangement module, wherein:
Described memory module, be used for storing the configuration information and the test script of test assignment formation and each test assignment of test assignment formation, described configuration information comprises topological arrangement information, and described topological arrangement information is indicated the test port annexation of each testing equipment in the test port annexation of topological switching device and tester, topological switching device and the tested multi-topological environmental;
Described control module, be used for determining the test assignment that current needs are carried out from the test assignment formation, load the configuration file and the test script of described test assignment, call the topological arrangement module and learning that the topological arrangement block configuration carries out the test script of described test assignment after finishing, carry out the transmitting-receiving of test frame in control tester and the corresponding tested multi-topological environmental between each testing equipment, and confirm that according to the test result that receives described test assignment is complete, wherein, each tested multi-topological environmental is built by tester and a plurality of testing equipment according to the test topology of corresponding test assignment, and described topological switching device links to each other with a plurality of testing equipments with tester;
Described topological arrangement module, be used for topological switching device being carried out the configuration of the tested multi-topological environmental of described test assignment correspondence according to configuration file, in the VLAN ID VID of idle condition value, select the VID value, realize that according to topological arrangement information and selected VID value generation control the command string that topology is switched sends to topological switching device, selected VID value is set to user mode, and notifies described control module after configuration is finished.
10. equipment as claimed in claim 9 is characterized in that,
Described control module also is used for after the test assignment that current needs are carried out is complete, and calling the topological arrangement module is that initial condition and the recovery of described selected VID value are set to idle condition with the current configuration restore of topological switching device.
CN2008101765452A 2008-11-17 2008-11-17 Multi-topological environmental test method, system and equipment Expired - Fee Related CN101404596B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101765452A CN101404596B (en) 2008-11-17 2008-11-17 Multi-topological environmental test method, system and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101765452A CN101404596B (en) 2008-11-17 2008-11-17 Multi-topological environmental test method, system and equipment

Publications (2)

Publication Number Publication Date
CN101404596A CN101404596A (en) 2009-04-08
CN101404596B true CN101404596B (en) 2010-12-08

Family

ID=40538473

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101765452A Expired - Fee Related CN101404596B (en) 2008-11-17 2008-11-17 Multi-topological environmental test method, system and equipment

Country Status (1)

Country Link
CN (1) CN101404596B (en)

Families Citing this family (39)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101668036B (en) * 2009-09-22 2012-07-25 成都市华为赛门铁克科技有限公司 Simulating system of distributed device and method for processing service by simulating distributed device
CN102013993B (en) * 2010-10-14 2014-06-11 中兴通讯股份有限公司 Physical topology use management method and system
CN102333005B (en) * 2011-06-02 2014-03-05 迈普通信技术股份有限公司 Tester control method in automatic testing system
CN102523052B (en) * 2011-12-01 2014-07-09 无锡中星微电子有限公司 Testing method and testing device
CN103457784B (en) * 2012-06-01 2018-03-23 腾讯科技(深圳)有限公司 Performance test methods and device
CN102891778B (en) * 2012-09-27 2016-03-30 迈普通信技术股份有限公司 Control system and the method for loop is avoided in automatic test
CN102946286B (en) * 2012-10-26 2015-05-20 株洲南车时代电气股份有限公司 Method, device and system for controlling detection of equipment
CN103853655A (en) * 2012-11-30 2014-06-11 英业达科技有限公司 Testing system and testing method for generating virtual testing unit outside to-be-tested device
CN103248539A (en) * 2013-05-17 2013-08-14 上海大亚科技有限公司 Network equipment integrated test control system and method
CN104424099B (en) * 2013-08-30 2017-12-12 上海复旦微电子集团股份有限公司 Method for testing software and system
CN104125597A (en) * 2014-08-04 2014-10-29 上海大亚科技有限公司 System and method for realizing integration testing of wireless throughput of network devices
CN105573904A (en) * 2014-10-11 2016-05-11 中兴通讯股份有限公司 Test resource dynamic application method and device
CN105607588B (en) * 2014-11-25 2019-03-19 迈普通信技术股份有限公司 A kind of test control method, device and test macro
CN104468288B (en) * 2015-01-04 2018-04-27 中国联合网络通信集团有限公司 Terminal network data test method and device
CN106161131A (en) * 2015-04-16 2016-11-23 中兴通讯股份有限公司 A kind of network tests the speed the processing method of business and server
CN104980315A (en) * 2015-06-11 2015-10-14 北京信而泰科技股份有限公司 Network equipment test method and device
CN106909131B (en) * 2015-12-22 2020-10-16 上海西门子线路保护系统有限公司 Management system of experimental instrument
CN106936605B (en) * 2015-12-29 2019-09-20 迈普通信技术股份有限公司 A kind of method and apparatus creating test assignment
CN105656718A (en) * 2016-01-06 2016-06-08 上海斐讯数据通信技术有限公司 Stable automatic testing method for switch
CN105847039A (en) * 2016-03-17 2016-08-10 王庆东 Network monitoring method and network monitoring system based on dynamic executable script
CN105893263B (en) * 2016-04-25 2018-08-03 北京智能综电信息技术有限责任公司 A kind of test assignment dispatching method
CN106647689A (en) * 2016-09-30 2017-05-10 杭州迪普科技股份有限公司 Complete machine test system
CN106685733B (en) * 2017-01-24 2019-08-16 北京国科天迅科技有限公司 A kind of FC-AE-1553 network rapid configuration and automated testing method
CN106911535A (en) * 2017-03-01 2017-06-30 南京南瑞继保电气有限公司 A kind of industrial ethernet switch installation and the system and method for debugging routine
CN107092547B (en) * 2017-04-18 2020-11-10 合肥联宝信息技术有限公司 Equipment test method, electronic equipment and test system
CN107479531B (en) * 2017-07-31 2019-08-20 杭州电子科技大学 The access device communication protocol frame format information of Embedded PLC remotely determines method
CN107579872A (en) * 2017-08-25 2018-01-12 上海斐讯数据通信技术有限公司 A kind of test envelope and its method of testing for realizing wireless router test
CN107659434A (en) * 2017-09-11 2018-02-02 上海斐讯数据通信技术有限公司 A kind of automatic test approach of Devices to test, apparatus and system
CN109873731B (en) * 2017-12-05 2021-04-30 北京京东尚科信息技术有限公司 Test method, device and system
CN109960645B (en) * 2017-12-22 2022-10-18 迈普通信技术股份有限公司 Script test method and device and script test system
CN108683563B (en) * 2018-05-18 2020-09-25 奇安信科技集团股份有限公司 Distributed access performance test method, device and system
CN111159006B (en) * 2018-11-07 2022-10-18 迈普通信技术股份有限公司 Automatic testing method and device
CN110365552A (en) * 2019-07-09 2019-10-22 山石网科通信技术股份有限公司 Test method, device, storage medium and processor
CN110535725B (en) * 2019-08-28 2021-10-29 网宿科技股份有限公司 Enterprise network testing method and device
CN111124936B (en) * 2020-02-28 2023-10-31 师江帆 Building block type software testing method, testing device, testing equipment and storage medium
CN112671604A (en) * 2020-12-16 2021-04-16 广州鲁邦通物联网科技有限公司 Test system and method of network equipment
CN114244701B (en) * 2021-12-24 2024-04-12 四川天邑康和通信股份有限公司 Large-scale production and test method for wireless router equipment
CN114095413A (en) * 2022-01-10 2022-02-25 北京安博通科技股份有限公司 Automatic test networking system for network hardware equipment
CN115015666B (en) * 2022-06-20 2023-02-03 国网山东省电力公司莱西市供电公司 Intelligent substation relay protection test expander and protection debugging method

Also Published As

Publication number Publication date
CN101404596A (en) 2009-04-08

Similar Documents

Publication Publication Date Title
CN101404596B (en) Multi-topological environmental test method, system and equipment
CN102395144B (en) Wireless access point upgrade method, system thereof and device thereof
CN102333005B (en) Tester control method in automatic testing system
CN103814554A (en) Communication method, device and system of virtual extensible local area network
CN102185706B (en) Method for generating IEEE1394 (Institute of Electrical and Electronics Engineers 1394) network topological graph
CN104506462A (en) MAC (Media Access Control) address management method and equipment in distributed switch
CN106101299B (en) Method for assigning address to indoor unit and multi-line system
CN102307141B (en) Message forwarding method and device
CN105763385A (en) Flow scheduling method and apparatus
CN105162704A (en) Multicast replication method and device in Overlay network
CN103731353A (en) Physical address acquiring method of virtual machine
CN107135279A (en) It is a kind of to handle the method and apparatus that request is set up in long connection
CN103581274A (en) Message forwarding method and device in stacking system
CN103179636A (en) Mobile internet access node, system and partner finding method of system
CN104283802A (en) Neighbor discovery method and device
CN105162897A (en) System and method for allocating IP address for virtual machine and network virtual machine
CN105991783A (en) MAC (Media Access Control) address learning method, device and system
CN102065018A (en) Method and system for transmitting message
CN103532851A (en) Method and device for processing data flow in distributed link aggregation network
CN107465621A (en) A kind of router finds method, SDN controllers, router and network system
CN112953739B (en) K8S platform-based method, system and storage medium for nanotube SDN
CN110851186B (en) Network equipment restarting method and device, electronic equipment and readable storage medium
Ammar et al. Dynamic SDN controllers-switches mapping for load balancing and controller failure handling
CN108900441A (en) Method for switching network, the first electronic equipment and readable storage medium storing program for executing
CN101115017A (en) Method and device for deleting MAC address

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
ASS Succession or assignment of patent right

Owner name: PU NING

Free format text: FORMER OWNER: FUJIAN XINGWANGRUIJIE NETWORK CO., LTD.

Effective date: 20140516

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 350015 FUZHOU, FUJIAN PROVINCE TO: 518052 SHENZHEN, GUANGDONG PROVINCE

TR01 Transfer of patent right

Effective date of registration: 20140516

Address after: 518052 Guangdong city of Shenzhen province Nanshan District Nanshan digital and cultural industry base east tower room 407

Patentee after: Pu Ning

Address before: 350015 M9511 Industrial Park, fast road, Mawei District, Fujian, Fuzhou

Patentee before: Fujian Xingwangruijie Network Co., Ltd.

ASS Succession or assignment of patent right

Owner name: STATE GRID ZHEJIANG ELECTRIC POWER COMPANY SHAOXIN

Effective date: 20141010

Owner name: STATE GRID CORPORATION OF CHINA

Free format text: FORMER OWNER: PU NING

Effective date: 20141010

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 518052 SHENZHEN, GUANGDONG PROVINCE TO: 100031 XICHENG, BEIJING

TR01 Transfer of patent right

Effective date of registration: 20141010

Address after: 100031 Xicheng District West Chang'an Avenue, No. 86, Beijing

Patentee after: State Grid Corporation of China

Patentee after: State Grid Zhejiang Electric Power Company

Patentee after: Shaoxing Power Supply Company of State Grid Zhejiang Electric Power Company

Patentee after: State Grid Zhejiang Zhuji Power Supply Co., Ltd.

Patentee after: Zhuji Dongbai Electric Power Equipment Manufacturing Co., Ltd.

Address before: 518052 Guangdong city of Shenzhen province Nanshan District Nanshan digital and cultural industry base east tower room 407

Patentee before: Pu Ning

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

Granted publication date: 20101208

Termination date: 20171117

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