CN106936605A - A kind of method and apparatus for creating test assignment - Google Patents

A kind of method and apparatus for creating test assignment Download PDF

Info

Publication number
CN106936605A
CN106936605A CN201511009647.1A CN201511009647A CN106936605A CN 106936605 A CN106936605 A CN 106936605A CN 201511009647 A CN201511009647 A CN 201511009647A CN 106936605 A CN106936605 A CN 106936605A
Authority
CN
China
Prior art keywords
test
equipment
protocol
assignment
event
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
CN201511009647.1A
Other languages
Chinese (zh)
Other versions
CN106936605B (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.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201511009647.1A priority Critical patent/CN106936605B/en
Publication of CN106936605A publication Critical patent/CN106936605A/en
Application granted granted Critical
Publication of CN106936605B publication Critical patent/CN106936605B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/14Arrangements for monitoring or testing data switching networks using software, i.e. software packages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • H04L43/55Testing of service level quality, e.g. simulating service usage

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Quality & Reliability (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the present invention provides a kind of method and apparatus for creating test assignment, is related to the automatization testing technique of data communication field, to solve the existing field needed in artificial setting test assignment, causes the problem for taking time and effort.The method that the present invention is provided includes:Obtain predefined at least one test protocol corresponding with test event and the field for controlling the test process of all test protocols;The full test logical topology collection of each test protocol is obtained, and the full test logical topology collection of test event is calculated according to the full test logical topology collection of each test protocol;The physical equipment collection of test protocol is obtained according to the automatic test environment built;Field in main test equipment, subtest equipment, the task template of test protocol that the physical equipment of test protocol is concentrated constitutes the sub- test assignment of test protocol;The sub- test assignment of each test protocol and each test assignment are combined together as the test assignment of test event correspondingly.

Description

A kind of method and apparatus for creating test assignment
Technical field
The present embodiments relate to the automatization testing technique of data communication field, more particularly to one Plant the method and apparatus for creating test assignment.
Background technology
Automatic test is a kind of mistake that machine execution is converted into the artificial behavioral test for driving Journey, in existing automatic test, for each round test, it is necessary to artificial according to test Demand goes to create and submit to test assignment, then completes epicycle test according to the test assignment for creating.
Because the test protocol quantity that each test assignment is included is more, and each test protocol is needed It is correspondingly arranged some fields (such as:Indicate the field of the control mode of test protocol, indicate to survey Try the field of the topology collection of the agreement), now, if all going to set each test association by artificial The field of view, then can expend considerable time and effort, and take time and effort.
The content of the invention
Embodiments of the invention provide a kind of method and apparatus for creating test assignment, existing to solve Have in the case that test protocol is large number of, it is necessary to artificially set test assignment in field, Cause the problem for taking time and effort.
To reach above-mentioned purpose, embodiments of the invention are adopted the following technical scheme that:
In a first aspect, the embodiment of the present invention provides a kind of method for creating test assignment, by creating The equipment of test assignment is performed, described for creating the test assignment corresponding with test event Method can include:
Obtain the predefined configuration content corresponding with the test event, the configuration content Comprising:Test protocol list and test assignment module;The test protocol list is included:It is described At least one test protocol to be tested in test event, the test assignment module is included:With In the field of the test process for controlling all test protocols;
The full test logical topology collection of each test protocol is obtained, and according to each test protocol Full test logical topology collection calculate the full test logical topology collection of the test event; The full test logical topology collection of the test protocol is included:Test what the test protocol needed The type and quantity of the interface needed for the type and quantity and every kind of equipment of equipment;The survey The full test logical topology collection of examination project is included:Test the equipment that the test event needs The type and quantity of the interface needed for type and quantity and every kind of equipment;
Full test logical topology collection according to the test event builds automatic test environment;
For each test protocol, the full test logical topology of the test protocol is concentrated Each equipment is matched with each equipment in the automatic test environment built, by institute State the physics of at least one equipment that is matched in automatic test environment as the test protocol Equipment collection;The physical equipment collection of the test protocol is included:Test what the test protocol needed Interface needed for main test equipment and subtest equipment, the number of equipment and every kind of equipment Type and quantity;
For each test protocol, used during the test protocol history run according to record To subtest equipment and the subtest that includes of physical equipment collection of the test protocol set It is standby, the subtest equipment of the test protocol is obtained, by the physical equipment of the test protocol Main test equipment, the subtest equipment of the test protocol and the task template concentrated In field constitute the sub- test assignment of the test protocol;
By one-to-one group of the sub- test assignment of each test protocol and described each test assignment Included together as the test assignment of the test event.
Second aspect, the embodiment of the present invention provides a kind of equipment for creating test assignment, for creating The test assignment corresponding with test event is built, the equipment of the establishment test assignment includes:
Acquisition module, for obtaining the predefined configuration content corresponding with the test event, The configuration content is included:Test protocol list and test assignment module;The test protocol row Table is included:At least one test protocol to be tested, the test assignment in the test event Module is included:Field for controlling the test process of all test protocols;
And, obtain the full test logical topology collection of each test protocol, the test protocol Full test logical topology collection include:Test the equipment that the test protocol needs type and The type and quantity of the interface needed for quantity and every kind of equipment;
Computing module, the maximum of each test protocol for being got according to the acquisition module Test logical topology collection calculates the full test logical topology collection of the test event;The survey The full test logical topology collection of examination project is included:Test the equipment that the test event needs The type and quantity of the interface needed for type and quantity and every kind of equipment;
Test environment builds module, for the full test logical topology according to the test event Collection builds automatic test environment;
Sub- test assignment creation module, for for each test protocol, by the test protocol Full test logical topology concentrate each equipment build what module was built with the test environment Each equipment in automatic test environment is matched, by the automatic test environment At least one equipment mixed as the test protocol physical equipment collection;The test protocol Physical equipment collection include:Test main test equipment and subtest that the test protocol needs The type and quantity of the interface needed for equipment, the number of equipment and every kind of equipment;
And, the subtest used during the test protocol history run according to record The subtest equipment that the physical equipment collection of equipment and the test protocol is included, obtains the survey The subtest equipment of agreement is tried, the main test that the physical equipment of the test protocol is concentrated is set Field composition institute in the subtest equipment and the task template of standby, described test protocol State the sub- test assignment of test protocol;
Test assignment creation module, by the sub- test assignment of each test protocol and described each survey Trial business is combined together as the test assignment of the test event correspondingly.
From the foregoing, it will be observed that the embodiment of the present invention provides a kind of method and apparatus for creating test assignment, It is automatic by tolerant test equipment in these in advance for the test event specified defines some contents Calculate every corresponding with each test protocol of the test protocol being related in test assignment The value of individual field and physical equipment and auxiliary equipment collection required for calculating the test event, The equipment collection needed for building automatic test environment is quickly known very much so as to tester, whole During the establishment of individual test assignment, independently completed by test equipment, it is not necessary to which too many is artificial Participate in, realize automatically creating for test assignment, it is time saving and energy saving, it is to avoid existing to be assisted in test , it is necessary to artificially set the field in test assignment in the case that view is large number of, cause time-consuming consumption The problem of power.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will to embodiment or The accompanying drawing to be used needed for description of the prior art is briefly described, it should be apparent that, below Accompanying drawing in description is only some embodiments of the present invention, for those of ordinary skill in the art For, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Fig. 1 is a kind of flow chart of method for creating test assignment provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic diagram of automatic test environment provided in an embodiment of the present invention;
Fig. 3 is a kind of structure chart of equipment for creating test assignment provided in an embodiment of the present invention.
Specific embodiment
General principle of the invention is:In advance for the test event specified defines some contents, lead to Cross tolerant equipment for creating test assignments in these and automatically calculate what is be related in test assignment The value of test protocol each field corresponding with each test protocol and calculate the survey Physical equipment collection required for examination project, automation is built so that tester quickly knows very much Equipment collection needed for test environment, during the establishment of whole test assignment, is tested by creating The equipment autonomously of task is completed, it is not necessary to too many artificial participation, realizes the automatic of test assignment Create, it is time saving and energy saving.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, to the technical side in the embodiment of the present invention Case is clearly and completely described, it is clear that described embodiment is only the present invention one Divide embodiment, rather than whole embodiments.Based on the embodiment in the present invention, this area is general The every other embodiment that logical technical staff is obtained under the premise of creative work is not made, Belong to the scope of protection of the invention.
For the ease of description, following examples one are shown in the form of step and describe this in detail The method that invention creates test assignment, wherein, test assignment can also created the step of show Equipment outside the such as one group computer system of executable instruction in perform, in addition, although Logical order is shown in figure, but institute can be performed with different from order herein at some The step of showing or describe.
Embodiment one
Fig. 1 is a kind of flow chart of method for creating test assignment provided in an embodiment of the present invention, Performed by the equipment of establishment test assignment, it is described for creating test assignment for a test event Test event is the pending test activity of user, such as:Can be some associations of communication to be tested One project of view;As shown in figure 1, methods described can include:
S101:The predefined configuration content corresponding with the test event is obtained, it is described to match somebody with somebody Content is put to include:Test protocol list and test assignment module;The test protocol list is included: At least one test protocol to be tested in the test event, the test assignment module is included: Field for controlling the test process of all test protocols.
Wherein, at least one test protocol is to share same test envelope (test environment) to enter The agreement of row test, such as, for the test of procotol, the test protocol list Can include:Tri- test protocols of A, B, C, test protocol A can be Ethernet protocol, survey Examination agreement B can be ospf (Open Shortest Path First, OSFP) agreement, test protocol C can be asynchronous transfer mode (Asynchronous Transfer Mode, ATM) agreement.
During the foundation of test assignment, for any test protocol, it is required for setting control Some control field (feedback sides as being used to control test result of the test protocol test process Some fields of formula), because for same test event, the test event is included The different corresponding control fields of test protocol be substantially identical, therefore, it can in advance The corresponding control field storage of all test protocols in same test event is being configured into the survey of content In examination task module, directly invoked when test assignment is set up in the later stage, be implemented as follows:
Can pre-define the configuration content of at least one test event, and by described at least one The configuration content of test event is stored described correspondingly with least one test event In the equipment of establishment test assignment;
After request to create is received, according to the title of the test event, obtain storage with institute State the corresponding configuration content of test event;
Title of the request to create comprising test event, the request to create is described for indicating The equipment for creating test assignment creates the test assignment corresponding with the test event.
S102:The full test logical topology collection of each test protocol is obtained, and according to each survey The full test logic that the full test logical topology collection of examination agreement calculates the test event is opened up Flutter collection.
The full test logical topology collection of the test protocol is included:Testing the test protocol needs The type and quantity of the interface needed for the type and quantity and every kind of equipment of the equipment wanted;Institute The full test logical topology collection for stating test event is included:Test setting for the test event needs The type and quantity of the interface needed for standby type and quantity and every kind of equipment.
It should be noted that test the test protocol referring to:The test protocol is corresponding Test script is at test envelope (test environment that at least one equipment included according to topology collection is built) In run, check whether operation result matches with expected results;Logical topology collection is right The description of essential most simple environment, this environment when the corresponding test script of test protocol runs It is virtual, equipment therein and interface use virtual title, and device type is the tool of equipment Build number;The type of the interface required for equipment is:The type of the port of equipment connection.
Optionally, it is described to obtain for any test protocol at least one test protocol The full test logical topology collection for taking the test protocol can include:
Read the test script corresponding with the test protocol;
According to the test script, obtain full test logic corresponding with the test script and open up Collection is flutterred, full test of the full test logical topology collection that will be got as the test protocol Logical topology collection.
Wherein, test script is the process realization of the automatic test of data communication products, mainly Execution is transmitted the actions such as configuration order, result inspection to equipment;Test script can be advance It is centrally stored in the test script layer of the equipment for creating test assignment;It is corresponding with test script most Big test logical topology collection can also be stored in advance in the equipment for creating test assignment, it is necessary to When directly read.
Optionally, the full test logical topology collection according to each test protocol calculates the survey The full test logical topology collection of examination project can include:
The equipment that the full test logical topology collection of each test protocol is included is merged Weight;
Interface needed for the type and quantity and every kind of equipment of the equipment after duplicate removal will be merged Type and quantity as the test event full test logical topology collection.
Such as, if the test script operation of above-mentioned test protocol A needs 1 Ethernet switch With 1 personal computer (Personal Computer, PC), the test of test protocol B Script operation needs 2 routers, test script operation 2 exchanges of needs of test protocol C Machine, then it is considered that the full test logical topology collection of whole test event is included:2 interchangers, 2 routers and 1 PC and the corresponding interface type of each of which equipment and quantity.
S103:Full test logical topology collection according to the test event builds automatic test Environment.
Optionally, the full test logical topology collection according to the test event is built automatically Changing test environment can be:At least one that the full test logical topology collection of test event is included Individual equipment, according to the type of equipment interface, by being connected with each other for the equipment of same interface, group Into a test environment.
For example, the full test logical topology of the whole test event to be calculated in step 103 Collection is included:As a example by 2 interchangers, 2 routers and 1 PC, according to each equipment pair The interface type and quantity answered build the automatic test environment for coming as shown in Fig. 2 now, The test script of test protocol can be carried out operation in this automatic test environment and check this The Expected Results of test protocol.
But, in actual applications, for each test protocol, its corresponding test pin Required topology collection may be than the equipment in the automatic test environment actually built during this operation Lack, and the interface of the equipment that need to pass through during operation is also indefinite, therefore, in order to obtain survey The equipment and the interface type of equipment needed in the test script actual moving process for trying agreement are right For each test protocol, in addition it is also necessary to carry out step S104, the physical equipment of test protocol is obtained Collection, i.e., the true equipment for needing in the test script running of test protocol.
S104:Each equipment that the full test logical topology of the test protocol is concentrated and institute Each equipment stated in the automatic test environment built is matched, by the automatic test At least one equipment matched in environment as the test protocol physical equipment collection.
The physical equipment collection of the test protocol is included:Test the main survey that the test protocol needs The class of the interface needed for examination equipment and subtest equipment, the number of equipment and every kind of equipment Type and quantity;The main test equipment is to test the capital equipment of the test protocol, and auxiliary is surveyed Examination equipment is the equipment that the auxiliary main test equipment tests the test protocol.
Optionally, each of the full test logical topology concentration of the test protocol can be traveled through Equipment, each equipment in the equipment and the automatic test environment built is carried out Match somebody with somebody;
If there is the class of the first equipment and the equipment in the automatic test environment built Type, interface number are identical with interface type, it is determined that first equipment be it is described build from The equipment matched in dynamicization test environment;
Each equipment that the full test logical topology concentration of the test protocol will be traveled through is determined At least one equipment for matching as the test protocol physical equipment collection.
For example, in the automation survey built by 2 interchangers, 2 routers and 1 PC In test ring border, although the test script operation for test protocol B needs 2 routers, and Each router one Ethernet interface of correspondence, but, according to the automatic test actually built Environment, finds according to matching:Be can be obtained by by the two of router Ethernet interfaces pre- The test result of phase, the then physical equipment that can at this time determine test protocol B is comprising 2 1 router of Ethernet interface.
Additionally, for each test protocol, its corresponding subtest equipment is not yet It is all necessary, therefore, in order to economize on resources, it is nonessential auxiliary that the present invention also needs to remove some Test equipment is helped, it is specific as shown in step S105.
S105:The subtest used during the test protocol history run according to record The subtest equipment that the physical equipment collection of equipment and the test protocol is included, obtains the survey The subtest equipment of agreement is tried, the main test that the physical equipment of the test protocol is concentrated is set Field composition institute in the subtest equipment and the task template of standby, described test protocol State the sub- test assignment of test protocol.
Optionally, the subtest equipment that the physical equipment collection of the test protocol can be included In with the test protocol history run according to record during the subtest used set Standby identical subtest equipment as the test protocol subtest equipment;Take institute State subtest equipment that the physical equipment collection of test protocol includes and described according to record The common factor of the subtest equipment used during test protocol history run is assisted as the test The subtest equipment of view.
S106:By a pair of the sub- test assignment of each test protocol and described each test assignment 1 That answers is combined together as the test assignment of the test event.
From the foregoing, it will be observed that the embodiment of the present invention provides a kind of method for creating test assignment, it is in advance The test event specified defines some contents, by the tolerant equipment for creating test assignment in these Automatically calculate the test protocol being related in test assignment corresponding with each test protocol The value of each field and the physical equipment required for calculating the test event and auxiliary set Standby collection, the equipment collection needed for building automatic test environment is quickly known so as to tester very much, During the establishment of whole test assignment, completed by the equipment autonomously of establishment test assignment, no Too many artificial participation is needed, automatically creating for test assignment is realized, it is time saving and energy saving, it is to avoid It is existing in the case that test protocol is large number of, it is necessary to word in artificially setting test assignment Section, causes the problem for taking time and effort.
According to embodiments of the present invention, following embodiments of the invention additionally provide a kind of establishment test and appoint The equipment 20 of business, is preferably used for realizing the method in above method embodiment.
Embodiment two
Fig. 3 is a kind of structure of equipment 20 for creating test assignment provided in an embodiment of the present invention Figure, for performing the method described in embodiment one, as shown in figure 3, the establishment test assignment Equipment 20 can be:
Acquisition module 201, for obtaining in the predefined configuration corresponding with the test event Hold, the configuration content is included:Test protocol list and test assignment module;The test association View list is included:At least one test protocol to be tested, the test in the test event Task module is included:Field for controlling the test process of all test protocols;
And, obtain the full test logical topology collection of each test protocol, the test protocol Full test logical topology collection include:Test the equipment that the test protocol needs type and The type and quantity of the interface needed for quantity and every kind of equipment.
Wherein, at least one test protocol is to share same test envelope (test environment) to enter The agreement of row test, such as, for the test of procotol, the test protocol list Can include:Tri- test protocols of A, B, C, test protocol A can be Ethernet protocol, survey Examination agreement B can be ospf (Open Shortest Path First, OSFP) agreement, test protocol C can be asynchronous transfer mode (Asynchronous Transfer Mode, ATM) agreement.
Computing module 202, for each test protocol got according to the acquisition module 201 Full test logical topology collection calculate the full test logical topology collection of the test event; The full test logical topology collection of the test event is included:Test what the test event needed The type and quantity of the interface needed for the type and quantity and every kind of equipment of equipment.
Test environment builds module 203, is opened up for the full test logic according to the test event Flutter collection and build automatic test environment.
Sub- test assignment creation module 204, for for each test protocol, the test being assisted Each equipment that the full test logical topology of view is concentrated builds module 203 with the test environment Each equipment in the automatic test environment built is matched, by the automatic test ring At least one equipment matched in border as the test protocol physical equipment collection;The survey The physical equipment collection for trying agreement is included:Test main test equipment that the test protocol needs and auxiliary The type and quantity of the interface needed for helping test equipment, the number of equipment and every kind of equipment;
And, the subtest used during the test protocol history run according to record The subtest equipment that the physical equipment collection of equipment and the test protocol is included, obtains the survey The subtest equipment of agreement is tried, the main test that the physical equipment of the test protocol is concentrated is set Field composition institute in the subtest equipment and the task template of standby, described test protocol State the sub- test assignment of test protocol.
Test assignment creation module 205, by the sub- test assignment of each test protocol with it is described each Test assignment is combined together as the test assignment of the test event correspondingly.
During the foundation of test assignment, for any test protocol, it is required for setting control Some control field (feedback sides as being used to control test result of the test protocol test process Some fields of formula), because for same test event, the test event is included The different corresponding control fields of test protocol be substantially identical, therefore, it can in advance The corresponding control field storage of all test protocols in same test event is being configured into the survey of content In examination task module, directly invoked when test assignment is set up in the later stage, specifically, such as Fig. 3 Shown, the equipment 20 for creating test assignment can also include:
Predefined module 206, for obtaining predefined with the survey in the acquisition module 201 Before the corresponding configuration content of examination project, pre-define in the configuration of at least one test event Hold, and by the configuration content of at least one test event and at least one test event One-to-one storage is in the equipment of the establishment test assignment;
The acquisition module 201, specifically for:
Request to create is received, title of the request to create comprising test event, the establishment is asked Ask for indicating the equipment of the establishment test assignment to create the survey corresponding with the test event Trial is engaged in;
According to the title of the test event, the corresponding with the test event of storage is obtained Configuration content.
Further, the acquisition module 201 is used for:
Read the test script corresponding with the test protocol;
According to the test script, obtain full test logic corresponding with the test script and open up Collection is flutterred, full test of the full test logical topology collection that will be got as the test protocol Logical topology collection.
Wherein, test script is the process realization of the automatic test of data communication products, mainly Execution is transmitted the actions such as configuration order, result inspection to equipment;Test script can be advance It is centrally stored in the test script layer of the equipment for creating test assignment;It is corresponding with test script most Big test logical topology collection can also be stored in advance in the equipment for creating test assignment, it is necessary to When directly read.
Further, the computing module 202 specifically for:
The equipment that the full test logical topology collection of each test protocol is included is merged Weight;
Interface needed for the type and quantity and every kind of equipment of the equipment after duplicate removal will be merged Type and quantity as the test event full test logical topology collection.
But, in actual applications, for each test protocol, its corresponding test pin Required topology collection may be than the equipment in the automatic test environment actually built during this operation Lack, and the interface of the equipment that need to pass through during operation is also indefinite, therefore, in order to obtain survey The equipment and the interface type of equipment needed in the test script actual moving process for trying agreement, enter One step, for each test protocol, the sub- test assignment creation module 204 is specific For:
Each equipment that the full test logical topology of the test protocol is concentrated is traveled through, will be described Equipment is matched with each equipment in the automatic test environment built;
If there is the class of the first equipment and the equipment in the automatic test environment built Type, interface number are identical with interface type, it is determined that first equipment be it is described build from The equipment matched in dynamicization test environment;
Each equipment that the full test logical topology concentration of the test protocol will be traveled through is determined At least one equipment for matching as the test protocol physical equipment collection.
Further, due to for each test protocol, its corresponding subtest equipment It is not all necessary yet, therefore, in order to economize on resources, the present invention also needs to remove some non- Necessary subtest equipment, it is specific as follows:
The sub- test assignment creation module 204 can be used for:
With the basis in the subtest equipment that the physical equipment collection of the test protocol is included The identical of the subtest equipment used during the test protocol history run of record is auxiliary Test equipment is helped as the subtest equipment of the test protocol;Take the test protocol Subtest equipment and the test protocol history according to record that physical equipment collection is included The common factor of the subtest equipment used in running as the test protocol subtest Equipment.
It should be noted that the acquisition module in equipment shown in Fig. 3 of the present invention can be a communication Module;Computing module, test environment build module, sub- test assignment creation module, test times Business creation module and to becheduled for module can be the processor individually set up, it is also possible to be integrated in Realized in some processor for the equipment for creating test assignment, in addition it is also possible to program generation The form of code is stored in the memory of the equipment for creating test assignment, by establishment test assignment Some processor of equipment is called and performs the function of test assignment created above.It is described here Processor can be a central processing unit (Central Processing Unit, CPU), Or specific integrated circuit (Application Specific Integrated Circuit, ASIC), or be arranged to implement the embodiment of the present invention one or more integrated circuits.
From the foregoing, it will be observed that the embodiment of the present invention provides a kind of equipment for creating test assignment, it is in advance The test event specified defines some contents, by the tolerant equipment for creating test assignment in these Automatically calculate the test protocol being related in test assignment corresponding with each test protocol The value of each field and the physical equipment required for calculating the test event and auxiliary set Standby collection, the equipment collection needed for building automatic test environment is quickly known so as to tester very much, During the establishment of whole test assignment, completed by the equipment autonomously of establishment test assignment, no Too many artificial participation is needed, automatically creating for test assignment is realized, it is time saving and energy saving, it is to avoid It is existing in the case that test protocol is large number of, it is necessary to word in artificially setting test assignment Section, causes the problem for taking time and effort.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, and It is non-that it is limited;Although being described in detail to the present invention with reference to the foregoing embodiments, ability The those of ordinary skill in domain should be understood:It still can be to the skill described in foregoing embodiments Art scheme is modified, or carries out equivalent to which part technical characteristic;And these are repaiied Change or replace, the essence of appropriate technical solution is departed from various embodiments of the present invention technical side The scope of case.

Claims (10)

1. it is a kind of create test assignment method, it is characterised in that methods described includes:
The predefined configuration content corresponding with test event is obtained, the configuration content is included: Test protocol list and test assignment module;
The full test logical topology collection of each test protocol in the test protocol list is obtained, And the test event is calculated most according to the full test logical topology collection of each test protocol Big test logical topology collection;
Full test logical topology collection according to the test event builds automatic test environment;
For each test protocol, the full test logical topology of the test protocol is concentrated Each equipment is matched with each equipment in the automatic test environment built, by institute State the physics of at least one equipment that is matched in automatic test environment as the test protocol Equipment collection;
For each test protocol, used during the test protocol history run according to record To subtest equipment and the subtest that includes of physical equipment collection of the test protocol set It is standby, the subtest equipment of the test protocol is obtained, by the physical equipment of the test protocol Main test equipment, the subtest equipment of the test protocol and the task template concentrated In field constitute the sub- test assignment of the test protocol;
By one-to-one group of the sub- test assignment of each test protocol and described each test assignment Included together as the test assignment of the test event.
2. method according to claim 1, it is characterised in that obtain it is predefined with Before the corresponding configuration content of the test event, methods described also includes:
The configuration content of pre-defined at least one test event, and described at least one is tested The configuration content of project is stored in the establishment correspondingly with least one test event In the equipment of test assignment;
Request to create is received, title of the request to create comprising test event, the establishment is asked Ask for indicating the equipment of the establishment test assignment to create the survey corresponding with the test event Trial is engaged in;
According to the title of the test event, the corresponding with the test event of storage is obtained Configuration content.
3. method according to claim 1 and 2, it is characterised in that for it is described at least Any test protocol in one test protocol, the full test of the acquisition test protocol Logical topology collection includes:
Read the test script corresponding with the test protocol;
According to the test script, obtain full test logic corresponding with the test script and open up Collection is flutterred, full test of the full test logical topology collection that will be got as the test protocol Logical topology collection.
4. method according to claim 3, it is characterised in that according to each test protocol Full test logical topology collection calculate the full test logical topology Ji Bao of the test event Include:
The equipment that the full test logical topology collection of each test protocol is included is merged Weight;
Interface needed for the type and quantity and every kind of equipment of the equipment after duplicate removal will be merged Type and quantity as the test event full test logical topology collection.
5. method according to claim 1, it is characterised in that by the test protocol In each equipment and the automatic test environment built that full test logical topology is concentrated Each equipment is matched, at least one equipment that will be matched in the automatic test environment Physical equipment collection as the test protocol includes:
Each equipment that the full test logical topology of the test protocol is concentrated is traveled through, will be described Equipment is matched with each equipment in the automatic test environment built;
If there is the class of the first equipment and the equipment in the automatic test environment built Type, interface number are identical with interface type, it is determined that first equipment be it is described build from The equipment matched in dynamicization test environment;
Each equipment that the full test logical topology concentration of the test protocol will be traveled through is determined At least one equipment for matching as the test protocol physical equipment collection.
6. a kind of equipment for creating test assignment, for creating the test corresponding with test event Task, it is characterised in that the equipment of the establishment test assignment includes:
Acquisition module, for obtaining the predefined configuration content corresponding with the test event, The configuration content is included:Test protocol list and test assignment module;And for obtaining State the full test logical topology collection of each test protocol in test protocol list;
Computing module, the maximum of each test protocol for being got according to the acquisition module Test logical topology collection calculates the full test logical topology collection of the test event;
Test environment builds module, for the full test logical topology according to the test event Collection builds automatic test environment;
Sub- test assignment creation module, for for each test protocol, by the test protocol Full test logical topology concentrate each equipment build what module was built with the test environment Each equipment in automatic test environment is matched, by the automatic test environment At least one equipment mixed as the test protocol physical equipment collection;And be used for, root The subtest equipment used during the test protocol history run according to record and the survey The subtest equipment that the physical equipment collection of agreement is included is tried, the auxiliary of the test protocol is obtained Test equipment, main test equipment, the test that the physical equipment of the test protocol is concentrated Field in the subtest equipment and the task template of agreement constitutes the test protocol Sub- test assignment;
Test assignment creation module, by the sub- test assignment of each test protocol and described each survey Trial business is combined together as the test assignment of the test event correspondingly.
7. equipment according to claim 6, it is characterised in that the establishment test assignment Equipment also include:
Predefined module, for obtaining predefined with the test event in the acquisition module Before corresponding configuration content, the configuration content of at least one test event is pre-defined, and By a pair of the configuration content of at least one test event and at least one test event 1 The storage answered is in the equipment of the establishment test assignment;
The acquisition module, specifically for:Request to create is received, the request to create includes survey The title of examination project, the request to create is used to indicate the equipment of the establishment test assignment to create The test assignment corresponding with the test event;
According to the title of the test event, the corresponding with the test event of storage is obtained Configuration content.
8. the equipment according to claim 6 or 7, it is characterised in that for it is described at least Any test protocol in one test protocol, the acquisition module is used for:
Read the test script corresponding with the test protocol;
According to the test script, obtain full test logic corresponding with the test script and open up Collection is flutterred, full test of the full test logical topology collection that will be got as the test protocol Logical topology collection.
9. equipment according to claim 8, it is characterised in that the computing module is specific For:
The equipment that the full test logical topology collection of each test protocol is included is merged Weight;
Interface needed for the type and quantity and every kind of equipment of the equipment after duplicate removal will be merged Type and quantity as the test event full test logical topology collection.
10. equipment according to claim 6, it is characterised in that the sub- test assignment Creation module specifically for:
Each equipment that the full test logical topology of the test protocol is concentrated is traveled through, will be described Equipment is matched with each equipment in the automatic test environment built;
If there is the class of the first equipment and the equipment in the automatic test environment built Type, interface number are identical with interface type, it is determined that first equipment be it is described build from The equipment matched in dynamicization test environment;
Each equipment that the full test logical topology concentration of the test protocol will be traveled through is determined At least one equipment for matching as the test protocol physical equipment collection.
CN201511009647.1A 2015-12-29 2015-12-29 A kind of method and apparatus creating test assignment Active CN106936605B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511009647.1A CN106936605B (en) 2015-12-29 2015-12-29 A kind of method and apparatus creating test assignment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511009647.1A CN106936605B (en) 2015-12-29 2015-12-29 A kind of method and apparatus creating test assignment

Publications (2)

Publication Number Publication Date
CN106936605A true CN106936605A (en) 2017-07-07
CN106936605B CN106936605B (en) 2019-09-20

Family

ID=59458477

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511009647.1A Active CN106936605B (en) 2015-12-29 2015-12-29 A kind of method and apparatus creating test assignment

Country Status (1)

Country Link
CN (1) CN106936605B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108966262A (en) * 2018-06-14 2018-12-07 四川斐讯信息技术有限公司 A kind of router peak performance test topology and method
CN109918290A (en) * 2019-01-17 2019-06-21 平安科技(深圳)有限公司 Auto-screening method, device, computer equipment and the storage medium of target device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101330412A (en) * 2008-07-29 2008-12-24 中兴通讯股份有限公司 Automatization test approach and system based on topological discovery
CN101404596A (en) * 2008-11-17 2009-04-08 福建星网锐捷网络有限公司 Multi-topological environmental test method, system and equipment
CN101639806A (en) * 2009-09-01 2010-02-03 中兴通讯股份有限公司 Topology adaptation method and device for automatization test
CN101706799A (en) * 2009-11-20 2010-05-12 中兴通讯股份有限公司 Method and device for realizing automated testing
US7885204B1 (en) * 2006-08-11 2011-02-08 Cisco Technology, Inc. Method and system for testing network topology
CN102118281A (en) * 2011-03-16 2011-07-06 北京星网锐捷网络技术有限公司 Method, device and network equipment for automatic testing
CN103647679A (en) * 2013-11-26 2014-03-19 上海斐讯数据通信技术有限公司 Automated topology dynamic mapping method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7885204B1 (en) * 2006-08-11 2011-02-08 Cisco Technology, Inc. Method and system for testing network topology
CN101330412A (en) * 2008-07-29 2008-12-24 中兴通讯股份有限公司 Automatization test approach and system based on topological discovery
CN101404596A (en) * 2008-11-17 2009-04-08 福建星网锐捷网络有限公司 Multi-topological environmental test method, system and equipment
CN101639806A (en) * 2009-09-01 2010-02-03 中兴通讯股份有限公司 Topology adaptation method and device for automatization test
CN101706799A (en) * 2009-11-20 2010-05-12 中兴通讯股份有限公司 Method and device for realizing automated testing
CN102118281A (en) * 2011-03-16 2011-07-06 北京星网锐捷网络技术有限公司 Method, device and network equipment for automatic testing
CN103647679A (en) * 2013-11-26 2014-03-19 上海斐讯数据通信技术有限公司 Automated topology dynamic mapping method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
代云华: ""基于拓扑调度的软件自动化测试技术的研究与实现"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108966262A (en) * 2018-06-14 2018-12-07 四川斐讯信息技术有限公司 A kind of router peak performance test topology and method
CN108966262B (en) * 2018-06-14 2022-06-07 深圳市携众通科技有限公司 Router peak performance test topology and method
CN109918290A (en) * 2019-01-17 2019-06-21 平安科技(深圳)有限公司 Auto-screening method, device, computer equipment and the storage medium of target device
CN109918290B (en) * 2019-01-17 2022-03-15 平安科技(深圳)有限公司 Automatic screening method and device for target equipment, computer equipment and storage medium

Also Published As

Publication number Publication date
CN106936605B (en) 2019-09-20

Similar Documents

Publication Publication Date Title
WO2020010887A1 (en) Network deployment method and apparatus
CN104899150B (en) Automated testing method and system and automation platform based on object-oriented
CN106874189B (en) Method for realizing automatic test system of power grid real-time database system
CN104270416A (en) Load balancing control method and management node
CN104796240A (en) Fuzz testing system for stateful network protocol
CN105448348B (en) A kind of chip restorative procedure and device
CN105117346A (en) Automatic testing method and system for distributed system of virtualization platform
CN102546639A (en) Network-oriented penetration testing scheme automatic-generation method
Wu et al. Integration of computer networks and artificial neural networks for an AI-based network operator
CN107094091A (en) A kind of intelligent substation station level network configuration method of calibration and system
CN106786529B (en) A kind of distribution static security analysis method
Berwanger et al. A perfect-information construction for coordination in games
CN116821001B (en) Verification method and device of input/output subsystem, electronic equipment and medium
CN106936605A (en) A kind of method and apparatus for creating test assignment
CN109005080B (en) Distributed packet forwarding implementation method, implementation system and automatic test method
Ingalalli et al. Platform for hardware in loop simulation
CN106100939A (en) The network equipment starts time test method and test console
CN106878095B (en) Network configuration method based on scenario distributed simulation
CN105162703A (en) Multi-level network topology intelligent discovery and generation method and system based on hybrid protocol
Zhang et al. Incremental network configuration verification
CN113162816B (en) Testing method and testing system for OSPFv3 protocol of switch
CN105893233A (en) Method and system used for automatically testing firmware
CN105391595A (en) Vulnerability discovery user-defined method based on industrial control protocol
CN106294146B (en) Parameter replacement test method and device
CN106612213A (en) An equipment test method and apparatus

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