CN106936605B - A kind of method and apparatus creating test assignment - Google Patents
A kind of method and apparatus creating test assignment Download PDFInfo
- Publication number
- CN106936605B CN106936605B CN201511009647.1A CN201511009647A CN106936605B CN 106936605 B CN106936605 B CN 106936605B CN 201511009647 A CN201511009647 A CN 201511009647A CN 106936605 B CN106936605 B CN 106936605B
- Authority
- CN
- China
- Prior art keywords
- test
- equipment
- protocol
- assignment
- logical topology
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/14—Network analysis or design
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/12—Discovery or management of network topologies
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/14—Arrangements for monitoring or testing data switching networks using software, i.e. software packages
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
- H04L43/55—Testing 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 problem of that the field in the artificial setting test assignment of existing needs causes to take time and effort.The method include that obtaining the field of predefined corresponding with test item at least one test protocol and the test process for controlling all test protocols;The full test logical topology collection of each test protocol is obtained, and calculates the full test logical topology collection of test item 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;By the sub- test assignment of the field composition test protocol in the main test equipment, the subtest equipment of test protocol, task template of the physical equipment concentration of test protocol;The sub- test assignment of each test protocol and each test assignment are combined together as to the test assignment of test item correspondingly.
Description
Technical field
The present embodiments relate to the automatization testing technique of data communication field more particularly to a kind of creation test assignments
Method and apparatus.
Background technique
Automatic test be the behavioral test taking human as driving is converted into machine execution a kind of process, it is existing from
In dynamicization test, each round is tested, need it is artificial gone to create and submit test assignment according to testing requirement, then basis
The test assignment of creation completes epicycle test.
Since the test protocol quantity that each test assignment includes is more, and each test protocol needs to be correspondingly arranged
Field (such as: indicating that the field of the control mode of test protocol, instruction test the field of the topology collection of the agreement), at this point, if
All by the field for artificially going that each test protocol is arranged, then it can expend considerable time and effort, take time and effort.
Summary of the invention
The embodiment of the present invention provides a kind of method and apparatus for creating test assignment, existing in test protocol number to solve
Measure it is numerous in the case where, need artificially be arranged test assignment in field, lead to the problem of taking time and effort.
In order to achieve the above objectives, the embodiment of the present invention adopts 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 the equipment of creation test assignment
It executes, for creating test assignment corresponding with test item, the method may include:
Predefined configuration content corresponding with the test item is obtained, the configuration content includes: test protocol
List and test assignment module;The test protocol list includes: at least one test association to be tested in the test item
View, the test assignment module includes: for controlling the field of the test process of all test protocols;
The full test logical topology collection of each test protocol is obtained, and according to the full test logic of each test protocol
Topology collection calculates the full test logical topology collection of the test item;The full test logical topology collection of the test protocol
Include: the type sum number of interface needed for testing the type and quantity and every kind of equipment for the equipment that the test protocol needs
Amount;The full test logical topology collection of the test item includes: testing the type sum number for the equipment that the test item needs
The type and quantity of interface needed for amount and every kind of equipment;
Automatic test environment is built according to the full test logical topology collection of the test item;
For each test protocol, each equipment that the full test logical topology of the test protocol is concentrated with it is described
The each equipment in automatic test environment built is matched, at least one will matched in the automatic test environment
Physical equipment collection of a equipment as the test protocol;The physical equipment collection of the test protocol includes: testing the test
Agreement need main test equipment and subtest equipment, the number of equipment and every kind of equipment needed for interface type and
Quantity;
For each test protocol, set according to the subtest used during the test protocol history run of record
The subtest equipment that the physical equipment collection of the standby and described test protocol includes, the subtest for obtaining the test protocol are set
Main test equipment, the subtest equipment of the test protocol and institute standby, that the physical equipment of the test protocol is concentrated
State the sub- test assignment that the field in task template forms the test protocol;
The sub- test assignment of each test protocol and each test assignment are combined together as correspondingly
The test assignment of the test item.
Second aspect, the embodiment of the present invention provides a kind of equipment for creating test assignment, for creating and test item phase
Corresponding test assignment, the equipment for creating test assignment include:
Module is obtained, for obtaining predefined configuration content corresponding with the test item, the configuration content
Include: test protocol list and test assignment module;The test protocol list includes: in the test item it is to be tested extremely
A few test protocol, the test assignment module includes: for controlling the field of the test process of all test protocols;
And obtain the full test logical topology collection of each test protocol, the full test logic of the test protocol
Topology collection includes: the class of interface needed for testing the type and quantity and every kind of equipment for the equipment that the test protocol needs
Type and quantity;
Computing module, the full test logical topology collection of each test protocol for being got according to the acquisition module
Calculate the full test logical topology collection of the test item;The full test logical topology collection of the test item includes:
The type and quantity of interface needed for testing the type and quantity and every kind of equipment for the equipment that the test item needs;
Environmental structure module is tested, automation is built for the full test logical topology collection according to the test item and surveys
Test ring border;
Sub- test assignment creation module is used for for each test protocol, by the full test logic of the test protocol
Each equipment in automatic test environment that each equipment and the test environmental structure module that topology is concentrated are built carries out
Matching, using at least one equipment matched in the automatic test environment as the physical equipment collection of the test protocol;
The physical equipment collection of the test protocol includes: test main test equipment that the test protocol needs and subtest equipment,
The type and quantity of interface needed for the number of equipment and every kind of equipment;
And according to the subtest equipment and the test used during the test protocol history run of record
The subtest equipment that the physical equipment collection of agreement includes obtains the subtest equipment of the test protocol, by the test
In main test equipment, the subtest equipment of the test protocol and the task template that the physical equipment of agreement is concentrated
Field forms the sub- test assignment of the test protocol;
Test assignment creation module corresponds the sub- test assignment of each test protocol and each test assignment
The test assignment for being combined together as the test item.
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 in advance specified survey
The some contents of project definition are tried, the test association being related in test assignment is automatically calculated by test equipment tolerant in these
View, each field corresponding with each test protocol value and calculate physical equipment required for the test item and
Ancillary equipment collection, so as to tester quickly know build automatic test environment very much needed for equipment collection, entirely testing
It during the creation of task, is independently completed by test equipment, does not need too many artificial participation, realize the automatic of test assignment
Creation, it is time saving and energy saving, avoid it is existing in the case where test protocol is large number of, need artificially be arranged test assignment in word
Section, leads to the problem of taking time and effort.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be in embodiment or description of the prior art
Required attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some realities of the invention
Example is applied, it for those of ordinary skill in the art, without creative efforts, can also be according to these attached drawings
Obtain other attached drawings.
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
Basic principle of the invention is: defining some contents in advance for specified test item, passes through wound tolerant in these
The equipment for building test assignment automatically calculates the test protocol being related in test assignment, corresponding with each test protocol
The value of each field and physical equipment collection required for the test item is calculated, so that tester quickly knows very much
Equipment collection needed for building automatic test environment, during the creation of entire test assignment, by setting for creation test assignment
Standby autonomous completion, does not need too many artificial participation, realizes automatically creating for test assignment, time saving and energy saving.
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
For ease of description, following embodiment one is shown in the form of step and present invention creation test is described in detail and appointed
The method of business, wherein the step of showing can also such as one group of executable instruction except the equipment of creation test assignment
Executed in computer system, although in addition, be shown in figure logical order, it is certain can be to be different from herein suitable
Sequence executes shown or described step.
Embodiment one
Fig. 1 is a kind of flow chart of method for creating test assignment provided in an embodiment of the present invention, by creation test assignment
Equipment execute, for creating test assignment for a test item, the test item is the pending test activity of user,
Such as: can be a project of certain agreements of communication to be tested;As shown in Figure 1, the method may include:
S101: predefined configuration content corresponding with the test item is obtained, the configuration content includes: test
Protocol list and test assignment module;The test protocol list includes: at least one survey to be tested in the test item
Agreement is tried, the test assignment module includes: for controlling the field of the test process of all test protocols.
Wherein, at least one described test protocol is the agreement sharing same test envelope (test environment) and being tested, than
Such as, for the test of network protocol, the test protocol list be may include: A, tri- test protocols of B, C, test protocol
A can be Ethernet protocol, test protocol B can be ospf (Open Shortest Path First,
OSFP) agreement, test protocol C can be asynchronous transfer mode (Asynchronous Transfer Mode, ATM) agreement.
In the establishment process of test assignment, for any test protocol, requires setting and control test protocol test
Some control fields (such as some fields of the feedback system for controlling test result) of process, due to for the same survey
For examination project, the corresponding control field of different test protocols which includes is basically the same, therefore, can
The corresponding control field of test protocols all in same test item to be stored in the test assignment module of configuration content in advance
In, it calls directly, is implemented as follows when establishing test assignment in the later period:
The configuration content of at least one test item can be pre-defined, and by the configuration of at least one test item
Content and at least one described test item are stored in correspondingly in the equipment of the creation test assignment;
After receiving request to create, according to the title of the test item, the opposite with the test item of storage is obtained
The configuration content answered;
The request to create includes the title of test item, and the request to create is used to indicate the creation test assignment
Equipment creates test assignment corresponding with the test item.
S102: the full test logical topology collection of each test protocol is obtained, and is surveyed according to the maximum of each test protocol
Examination logical topology collection calculates the full test logical topology collection of the test item.
The full test logical topology collection of the test protocol includes: testing the type for the equipment that the test protocol needs
With the type and quantity of interface needed for quantity and every kind of equipment;The full test logical topology Ji Bao of the test item
Contain: the type and quantity of interface needed for testing the type and quantity and every kind of equipment for the equipment that the test item needs.
Refer to it should be noted that testing the test protocol: the corresponding test script of the test protocol is being tested
Run in bed (the test environment built of at least one equipment for including according to topology collection), check operation result whether in advance
Phase result matches;Logical topology collection is that essential most simple environment is retouched when running to the corresponding test script of test protocol
State, this environment be it is virtual, equipment therein and interface use virtual title, and device type is the concrete model of equipment;
The type of interface required for equipment are as follows: the type of the port of equipment connection.
Optionally, described to obtain the test protocol for any test protocol at least one described test protocol
Full test logical topology collection may include:
Read test script corresponding with the test protocol;
According to the test script, full test logical topology collection corresponding with the test script is obtained, will acquire
Full test logical topology collection of the full test logical topology collection as the test protocol.
Wherein, test script is that the process of the automatic test of data communication products is realized, main execute carries out equipment
Send the movement such as configuration order, result inspection;Test script can be centrally stored in the survey of the equipment of creation test assignment in advance
Try script layer;The equipment that full test logical topology collection corresponding with test script can also be stored in advance in creation test assignment
In, it is directly read when needs.
Optionally, the maximum of the test item is calculated according to the full test logical topology collection of each test protocol to survey
Trying logical topology collection may include:
The equipment that the full test logical topology collection of each test protocol includes is merged into duplicate removal;
Using merge duplicate removal after equipment type and quantity and every kind of equipment needed for interface type and quantity as
The full test logical topology collection of the test item.
For example, if the test script operation of above-mentioned test protocol A needs 1 Ethernet switch and 1 personal computer
The test script operation of (Personal Computer, PC machine), test protocol B needs 2 routers, the test of test protocol C
Script operation needs 2 interchangers, it may be considered that the full test logical topology collection of entire test item includes: 2 exchanges
Machine, 2 routers and 1 PC machine and the corresponding interface type of each of which equipment and quantity.
S103: automatic test environment is built according to the full test logical topology collection of the test item.
Optionally, the full test logical topology collection according to the test item build automatic test environment can be with
Are as follows: at least one equipment for including by the full test logical topology collection of test item same will connect according to the type of equipment interface
Being connected with each other for the equipment of mouth, forms a test environment.
For example, including with the full test logical topology collection of entire test item calculated in step 103: 2 exchanges
For machine, 2 routers and 1 PC machine, according to the corresponding interface type of each equipment and quantity build come automation survey
Test ring border at this point it is possible to which the test script of test protocol to be carried out to operation in this automatic test environment as shown in Fig. 2, look into
See the desired effect of the test protocol.
But in practical applications, for each test protocol, corresponding test script is required when running
Topology collection may be fewer than the equipment in the automatic test environment actually built, and the interface of equipment that while running need to pass through
Be it is indefinite, therefore, the interface of the equipment and equipment that are needed in the test script actual moving process in order to obtain test protocol
Type, for each test protocol, it is also necessary to carry out step S104, obtain the physical equipment collection of test protocol, that is, test
The equipment really needed in the test script operational process of agreement.
S104: each equipment and the automation built that the full test logical topology of the test protocol is concentrated
Each equipment in test environment is matched, using at least one equipment matched in the automatic test environment as institute
State the physical equipment collection of test protocol.
The physical equipment collection of the test protocol includes: testing the main test equipment and auxiliary survey that the test protocol needs
The type and quantity of interface needed for examination equipment, the number of equipment and every kind of equipment;The main test equipment is described in test
The capital equipment of test protocol, subtest equipment are the equipment that the auxiliary main test equipment tests the test protocol.
Optionally, each equipment that the full test logical topology of the test protocol is concentrated can be traversed, is set described
Standby each equipment with the automatic test environment built is matched;
If there are the type of the first equipment and the equipment, interface number and being connect in the automatic test environment built
Mouth type is identical, it is determined that first equipment is the equipment matched in the automatic test environment built;
At least one that each equipment that the full test logical topology for traversing the test protocol is concentrated is determined
Physical equipment collection of the equipment mixed as the test protocol.
For example, in the automatic test environment built by 2 interchangers, 2 routers and 1 PC machine, although for
The test script operation of test protocol B needs 2 routers, and the corresponding Ethernet interface of each router, still, according to
The automatic test environment actually built, found according to matching: two Ethernet interfaces of You Yitai router can be obtained by
Expected test result then can at this time determine that the physical equipment of test protocol B is 1 road comprising 2 Ethernet interfaces
By device.
In addition, corresponding subtest equipment is not that whole is necessary yet for each test protocol, therefore,
In order to economize on resources, the present invention also needs to remove some nonessential subtest equipment, specifically as shown in step S105.
S105: according to the subtest equipment and the test used during the test protocol history run of record
The subtest equipment that the physical equipment collection of agreement includes obtains the subtest equipment of the test protocol, by the test
In main test equipment, the subtest equipment of the test protocol and the task template that the physical equipment of agreement is concentrated
Field forms the sub- test assignment of the test protocol.
Optionally, with described according to note in the subtest equipment that can include by the physical equipment collection of the test protocol
Described in the identical subtest equipment for the subtest equipment used during the test protocol history run of record is used as
The subtest equipment of test protocol;The subtest equipment for taking the physical equipment collection of the test protocol to include and described
According to the intersection for the subtest equipment used during the test protocol history run of record as the test protocol
Subtest equipment.
S106: the sub- test assignment of each test protocol and each test assignment are combined correspondingly
Test assignment as the test item.
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 specified test item
Some contents are defined, the survey being related in test assignment is automatically calculated by the equipment of creation test assignment tolerant in these
Try agreement, the value of each field corresponding with each test protocol and calculate physics required for the test item to set
Standby and ancillary equipment collection, so as to tester quickly know build automatic test environment very much needed for equipment collection, entire
During the creation of test assignment, is completed by the equipment autonomously of creation test assignment, do not need too many artificial participation, realize
Automatically creating for test assignment, it is time saving and energy saving, it avoids existing in the case where test protocol is large number of, needs artificially to be arranged
Field in test assignment, leads to the problem of taking time and effort.
According to embodiments of the present invention, the following embodiments of the present invention additionally provide a kind of equipment 20 for creating test assignment, excellent
Selection of land is for realizing the method in above method embodiment.
Embodiment two
Fig. 3 is a kind of structure chart of equipment 20 for creating test assignment provided in an embodiment of the present invention, for executing implementation
Method described in example one, as shown in figure 3, the equipment 20 of the creation test assignment can be with are as follows:
Module 201 is obtained, for obtaining predefined configuration content corresponding with the test item, in the configuration
Appearance includes: test protocol list and test assignment module;The test protocol list includes: to be tested in the test item
At least one test protocol, the test assignment module includes: for controlling the field of the test process of all test protocols;
And obtain the full test logical topology collection of each test protocol, the full test logic of the test protocol
Topology collection includes: the class of interface needed for testing the type and quantity and every kind of equipment for the equipment that the test protocol needs
Type and quantity.
Wherein, at least one described test protocol is the agreement sharing same test envelope (test environment) and being tested, than
Such as, for the test of network protocol, the test protocol list be may include: A, tri- test protocols of B, C, test protocol
A can be Ethernet protocol, test protocol 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, the full test logic of each test protocol for being got according to the acquisition module 201
Topology collection calculates the full test logical topology collection of the test item;The full test logical topology collection of the test item
Include: the type sum number of interface needed for testing the type and quantity and every kind of equipment for the equipment that the test item needs
Amount.
Environmental structure module 203 is tested, for building automatically according to the full test logical topology collection of the test item
Change test environment.
Sub- test assignment creation module 204, for for each test protocol, the full test of the test protocol to be patrolled
Collect each equipment in each equipment that topology is concentrated and the automatic test environment that the test environmental structure module 203 is built
It is matched, using at least one equipment matched in the automatic test environment as the physical equipment of the test protocol
Collection;The physical equipment collection of the test protocol includes: the main test equipment and subtest for testing the test protocol needs are set
The type and quantity of interface needed for standby, equipment number and every kind of equipment;
And according to the subtest equipment and the test used during the test protocol history run of record
The subtest equipment that the physical equipment collection of agreement includes obtains the subtest equipment of the test protocol, by the test
In main test equipment, the subtest equipment of the test protocol and the task template that the physical equipment of agreement is concentrated
Field forms the sub- test assignment of the test protocol.
Test assignment creation module 205, one by one with each test assignment by the sub- test assignment of each test protocol
The corresponding test assignment for being combined together as the test item.
In the establishment process of test assignment, for any test protocol, requires setting and control test protocol test
Some control fields (such as some fields of the feedback system for controlling test result) of process, due to for the same survey
For examination project, the corresponding control field of different test protocols which includes is basically the same, therefore, can
The corresponding control field of test protocols all in same test item to be stored in the test assignment module of configuration content in advance
In, it is called directly when establishing test assignment in the later period, specifically, as shown in figure 3, the equipment 20 of the creation test assignment
Can also include:
Predefined module 206, it is predefined corresponding with the test item for being obtained in the acquisition module 201
Before configuring content, the configuration content of at least one test item, and matching at least one test item are pre-defined
It sets content and at least one described test item is stored in correspondingly in the equipment of the creation test assignment;
The acquisition module 201, is specifically used for:
Request to create is received, the request to create includes the title of test item, and the request to create is used to indicate described
The equipment for creating test assignment creates test assignment corresponding with the test item;
According to the title of the test item, the configuration content corresponding with the test item of storage is obtained.
Further, the acquisition module 201 is used for:
Read test script corresponding with the test protocol;
According to the test script, full test logical topology collection corresponding with the test script is obtained, will acquire
Full test logical topology collection of the full test logical topology collection as the test protocol.
Wherein, test script is that the process of the automatic test of data communication products is realized, main execute carries out equipment
Send the movement such as configuration order, result inspection;Test script can be centrally stored in the survey of the equipment of creation test assignment in advance
Try script layer;The equipment that full test logical topology collection corresponding with test script can also be stored in advance in creation test assignment
In, it is directly read when needs.
Further, the computing module 202 is specifically used for:
The equipment that the full test logical topology collection of each test protocol includes is merged into duplicate removal;
Using merge duplicate removal after equipment type and quantity and every kind of equipment needed for interface type and quantity as
The full test logical topology collection of the test item.
But in practical applications, for each test protocol, corresponding test script is required when running
Topology collection may be fewer than the equipment in the automatic test environment actually built, and the interface of equipment that while running need to pass through
Be it is indefinite, therefore, the interface of the equipment and equipment that are needed in the test script actual moving process in order to obtain test protocol
Type, further, for each test protocol, the sub- test assignment creation module 204 is specifically used for:
Each equipment that the full test logical topology of the test protocol is concentrated is traversed, the equipment is built with described
Automatic test environment in each equipment matched;
If there are the type of the first equipment and the equipment, interface number and being connect in the automatic test environment built
Mouth type is identical, it is determined that first equipment is the equipment matched in the automatic test environment built;
At least one that each equipment that the full test logical topology for traversing the test protocol is concentrated is determined
Physical equipment collection of the equipment mixed as the test protocol.
Further, since for each test protocol, corresponding subtest equipment is not all must yet
Must, therefore, in order to economize on resources, the present invention also needs to remove some nonessential subtest equipment, specific as follows:
The sub- test assignment creation module 204 can be used for:
In the subtest equipment for including by the physical equipment collection of the test protocol with the survey according to record
The identical subtest equipment for the subtest equipment used during examination agreement history run is as the test protocol
Subtest equipment;The subtest equipment for taking the physical equipment collection of the test protocol to include and the institute according to record
The intersection for stating the subtest equipment used during test protocol history run is set as the subtest of the test protocol
It is standby.
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 environmental structure module, sub- test assignment creation module, test assignment creation module and to becheduled for module can be independent
The processor set up also can integrate and realize in some processor of the equipment of creation test assignment, in addition it is also possible to
The form of program code is stored in the memory of the equipment of creation test assignment, by some of the equipment of creation test assignment
Processor calls and executes the function of test assignment created above.Processor described here can be a central processing unit
(Central Processing Unit, CPU) or specific integrated circuit (Application Specific
Integrated Circuit, ASIC), or be arranged to implement one or more integrated circuits of the embodiment of the present invention.
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 specified test item
Some contents are defined, the survey being related in test assignment is automatically calculated by the equipment of creation test assignment tolerant in these
Try agreement, the value of each field corresponding with each test protocol and calculate physics required for the test item to set
Standby and ancillary equipment collection, so as to tester quickly know build automatic test environment very much needed for equipment collection, entire
During the creation of test assignment, is completed by the equipment autonomously of creation test assignment, do not need too many artificial participation, realize
Automatically creating for test assignment, it is time saving and energy saving, it avoids existing in the case where test protocol is large number of, needs artificially to be arranged
Field in test assignment, leads to the problem of taking time and effort.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used
To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;
And these are modified or replaceed, the range for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.
Claims (10)
1. a kind of method for creating test assignment, which is characterized in that the described method includes:
Predefined configuration content corresponding with test item is obtained, the configuration content includes: test protocol list and survey
Try task module;
The full test logical topology collection of each test protocol in the test protocol list is obtained, and according to each test protocol
Full test logical topology collection calculate the full test logical topology collection of the test item;
Automatic test environment is built according to the full test logical topology collection of the test item;
For each test protocol, each equipment that the full test logical topology of the test protocol is concentrated is built with described
Automatic test environment in each equipment matched, at least one matched in the automatic test environment is set
The standby physical equipment collection as the test protocol;
For each test protocol, according to the subtest equipment used during the test protocol history run of record and
The subtest equipment that the physical equipment collection of the test protocol includes obtains the subtest equipment of the test protocol, will
Main test equipment, the subtest equipment of the test protocol and the task template that the physical equipment of the test protocol is concentrated
In field form the sub- test assignment of the test protocol;
The sub- test assignment of each test protocol and each test assignment are combined together as correspondingly described
The test assignment of test item.
2. the method according to claim 1, wherein predefined corresponding with the test item obtaining
Before configuring content, the method also includes:
Pre-define the configuration content of at least one test item, and by the configuration content of at least one test item and institute
At least one test item is stated to be stored in correspondingly in the equipment of the creation test assignment;
Request to create is received, the request to create includes the title of test item, and the request to create is used to indicate the creation
The equipment of test assignment creates test assignment corresponding with the test item;
According to the title of the test item, the configuration content corresponding with the test item of storage is obtained.
3. method according to claim 1 or 2, which is characterized in that for any test at least one test protocol
Agreement, the full test logical topology collection for obtaining the test protocol include:
Read test script corresponding with the test protocol;
According to the test script, full test logical topology collection corresponding with the test script is obtained, will acquire most
Full test logical topology collection of the big test logical topology collection as the test protocol.
4. according to the method described in claim 3, it is characterized in that, according to the full test logical topology collection of each test protocol
The full test logical topology collection for calculating the test item includes:
The equipment that the full test logical topology collection of each test protocol includes is merged into duplicate removal;
Using the type of interface needed for the type and quantity and every kind of equipment of the equipment after merging duplicate removal and quantity as described in
The full test logical topology collection of test item.
5. the method according to claim 1, wherein the full test logical topology of the test protocol is concentrated
Each equipment matched with each equipment in the automatic test environment built, by the automatic test environment
In at least one equipment for matching include: as the physical equipment collection of the test protocol
Traverse the test protocol full test logical topology concentrate each equipment, by the equipment and it is described build from
Each equipment in dynamicization test environment is matched;
If there are type, interface number and the interface classes of the first equipment and the equipment in the automatic test environment built
Type is identical, it is determined that first equipment is the equipment matched in the automatic test environment built;
By the full test logical topology for traversing the test protocol concentrate each equipment determine at least one match
Physical equipment collection of the equipment as the test protocol.
6. a kind of equipment for creating test assignment, for creating test assignment corresponding with test item, which is characterized in that institute
Stating the equipment for creating test assignment includes:
Module is obtained, for obtaining predefined configuration content corresponding with the test item, the configuration content includes:
Test protocol list and test assignment module;And it is surveyed for obtaining the maximum of each test protocol in the test protocol list
Try logical topology collection;
The full test logical topology collection of computing module, each test protocol for being got according to the acquisition module calculates
The full test logical topology collection of the test item out;
Environmental structure module is tested, for building automatic test ring according to the full test logical topology collection of the test item
Border;
Sub- test assignment creation module is used for for each test protocol, by the full test logical topology of the test protocol
Each equipment in automatic test environment that each equipment concentrated is built with the test environmental structure module is matched,
Using at least one equipment matched in the automatic test environment as the physical equipment collection of the test protocol;And it uses
According to the physics for the subtest equipment and the test protocol used during the test protocol history run of record
The subtest equipment that equipment collection includes obtains the subtest equipment of the test protocol, by the physics of the test protocol
The field in main test equipment, the subtest equipment of the test protocol and task template that equipment is concentrated forms the survey
Try the sub- test assignment of agreement;
Test assignment creation module, by the sub- test assignment of each test protocol and one-to-one group of each test assignment
Included together as the test assignment of the test item.
7. equipment according to claim 6, which is characterized in that the equipment of the creation test assignment further include:
Predefined module, for the predefined configuration content corresponding with the test item of acquisitions module acquisition it
Before, pre-define the configuration content of at least one test item, and by the configuration content of at least one test item and institute
At least one test item is stated to be stored in correspondingly in the equipment of the creation test assignment;
The acquisition module, is specifically used for: receiving request to create, the request to create includes the title of test item, the wound
It builds the equipment that request is used to indicate the creation test assignment and creates test assignment corresponding with the test item;
According to the title of the test item, the configuration content corresponding with the test item of storage is obtained.
8. equipment according to claim 6 or 7, which is characterized in that for any test at least one test protocol
Agreement, the acquisition module are used for:
Read test script corresponding with the test protocol;
According to the test script, full test logical topology collection corresponding with the test script is obtained, will acquire most
Full test logical topology collection of the big test logical topology collection as the test protocol.
9. equipment according to claim 8, which is characterized in that the computing module is specifically used for:
The equipment that the full test logical topology collection of each test protocol includes is merged into duplicate removal;
Using the type of interface needed for the type and quantity and every kind of equipment of the equipment after merging duplicate removal and quantity as described in
The full test logical topology collection of test item.
10. equipment according to claim 6, which is characterized in that the sub- test assignment creation module is specifically used for:
Traverse the test protocol full test logical topology concentrate each equipment, by the equipment and it is described build from
Each equipment in dynamicization test environment is matched;
If there are type, interface number and the interface classes of the first equipment and the equipment in the automatic test environment built
Type is identical, it is determined that first equipment is the equipment matched in the automatic test environment built;
By the full test logical topology for traversing the test protocol concentrate each equipment determine at least one match
Physical equipment collection of the equipment as the test protocol.
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 CN106936605A (en) | 2017-07-07 |
CN106936605B true 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) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108966262B (en) * | 2018-06-14 | 2022-06-07 | 深圳市携众通科技有限公司 | Router peak performance test topology and method |
CN109918290B (en) * | 2019-01-17 | 2022-03-15 | 平安科技(深圳)有限公司 | Automatic screening method and device for target equipment, computer equipment and storage medium |
Citations (7)
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 |
-
2015
- 2015-12-29 CN CN201511009647.1A patent/CN106936605B/en active Active
Patent Citations (7)
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)
Title |
---|
"基于拓扑调度的软件自动化测试技术的研究与实现";代云华;《中国优秀硕士学位论文全文数据库 信息科技辑》;20120415;I138-1191 * |
Also Published As
Publication number | Publication date |
---|---|
CN106936605A (en) | 2017-07-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101558909B1 (en) | Iterative simulation of requirement metrics for assumption and schema-free configuration management | |
Hasenburg et al. | MockFog: Emulating fog computing infrastructure in the cloud | |
US8874776B2 (en) | Virtual ad hoc network testbeds for network-aware applications | |
US10514994B2 (en) | Distributed scalable workload testing | |
CN108737141B (en) | Satellite link intermittent and delayed simulation method | |
JP6387182B2 (en) | Information processing method, apparatus, and computer storage medium | |
US10067859B2 (en) | Constructing test-centric model of application | |
CN110046088A (en) | A kind of interface test method, device and equipment | |
CN106936605B (en) | A kind of method and apparatus creating test assignment | |
CN104020763A (en) | Automatic test method and system for input and output interfaces | |
CN107770786A (en) | A kind of method of testing of network performance, equipment and system | |
Lei et al. | Performance and scalability testing strategy based on kubemark | |
Tello et al. | SDN controllers scalability and performance study | |
Zhang et al. | SDNMS: A software defined network measurement system for NFV networks | |
Csoma et al. | Management and orchestration for network function virtualization: An open source mano approach | |
CN106294146B (en) | Parameter replacement test method and device | |
Balasubramanian et al. | A rapid testing framework for a mobile cloud | |
Jin et al. | A center-based community detection method in weighted networks | |
Snow et al. | Openflow experimenter labels for encoding adaptive network functions | |
CN106330556A (en) | Method and device for generating service module calling associated information | |
Ali et al. | Model-based test case generation approach for mobile applications load testing using OCL enhanced activity diagrams | |
Gong et al. | Interoperability test of northbound interface for a transport SDON prototype | |
Kessaraphong et al. | Building a network performance benchmarking system using monitoring as a service infrastructure | |
CN108415839A (en) | The development frame of multinuclear SoC chip and the development approach of multinuclear SoC chip | |
WO2018187160A1 (en) | Distributed scalable workload testing |
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 |