CN105573904A - Test resource dynamic application method and device - Google Patents

Test resource dynamic application method and device Download PDF

Info

Publication number
CN105573904A
CN105573904A CN201410535165.9A CN201410535165A CN105573904A CN 105573904 A CN105573904 A CN 105573904A CN 201410535165 A CN201410535165 A CN 201410535165A CN 105573904 A CN105573904 A CN 105573904A
Authority
CN
China
Prior art keywords
application
networking
equipment
physics
test
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.)
Withdrawn
Application number
CN201410535165.9A
Other languages
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201410535165.9A priority Critical patent/CN105573904A/en
Publication of CN105573904A publication Critical patent/CN105573904A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a test resource dynamic application method and device. The method comprises the following steps of obtaining physical networking environment description information and test application resource description information; obtaining environment configuration of a current test scene of a test case in the test application resource description information, obtaining an application equipment list requiring the resource application according to the environment configuration requirements, and screening out a physical networking equipment set meeting the application requirements for each piece of application equipment in the list in the physical networking environment description information; calculating an effective connection combination of all of the application equipment on the basis of the physical networking equipment set of each piece of application equipment, obtaining all networking modes, and selecting one networking mode conforming to the application requirement from all of the networking modes according to the environment configuration requirements; and transferring the configuration information of each networking equipment in the selected networking modes to the test case. The method and the device have the advantages that the dynamic obtaining function of the test resource environment configuration information is realized; and the test efficiency and the environment utilization rate are improved.

Description

The method and apparatus that a kind of test resource is dynamically applied for
Technical field
The present invention relates to microwave equipment automatic test field, particularly relate to the method and apparatus that a kind of test resource is dynamically applied for.
Background technology
In domain of communication equipment, can form multiple network model according to the difference between equipment veneer configuration or equipment connection, as shown in Figure 1, and relevance between test case and test environment is larger.Therefore the environment configurations parameter that test case is correlated with will change along with the change of test environment.
Prior art is to the management method of test resource, and as shown in Figure 2, in figure, (1) is by recording the parameter of physical environment in the configuration file of use-case, resolves the parameter information that configuration file obtains current environment before use-case performs; In figure, (2) are the mapping relations by setting up between test case and test environment, and test case can obtain the configuration parameter of corresponding environment networking according to the mapping of its correspondence.A test case and a test environment are formed a test cell; The sequence number that each test cell is corresponding unique, test case can obtain all information of test environment by test cell sequence number.
There are some problems in prior art, record in test environment parameter to configuration file and set up these two kinds of environmental management modes of a test cell by mapping between test case and environment, be characterized in that test case has uniqueness with associating of test environment, use-case can only a corresponding fixing test environment.After test environment changes, the configuration file of manual modification use-case or revise the environmental parameter of mapping of environment, testing efficiency and Environment utilization ratio lower.
Summary of the invention
The invention provides the method and apparatus that a kind of test resource is dynamically applied for, lower in order to the Environment utilization ratio solving test resource management method in prior art, affect the problem of testing efficiency.
According to one aspect of the present invention, a kind of method providing test resource dynamically to apply for, comprising:
Obtain physics network environment descriptor and test application resource description information;
The environment configurations of test case present test field scape is obtained in test application resource description information, and environmentally configuration requirement, obtain need the application list of devices of resource bid and in physics network environment descriptor for each application equipment in list filters out the physics networking equipment collection meeting application requirement;
Based on the physics networking equipment collection of each application equipment, calculate effective connection combination of all application equipment, obtain all networking models, and require to select the networking model that meets application requirement according to environment configurations in all networking models;
The configuration information of networking equipment each in the networking model selected is passed to test case.
According to another aspect of the present invention, the device providing a kind of test resource dynamically to apply for, comprising:
Descriptor acquiring unit, for obtaining physics network environment descriptor and test application resource description information;
Equipment application unit, for obtaining the environment configurations of test case present test field scape in test application resource description information, and environmentally configuration requirement, obtain need the application list of devices of resource bid and in physics network environment descriptor for each application equipment in list filters out the physics networking equipment collection meeting application requirement;
Networking model determining unit, for the physics networking equipment collection based on each application equipment, calculate effective connection combination of all application equipment, obtain all networking models, and require to select the networking model that meets application requirement according to environment configurations in all networking models;
Messaging unit, passes to test case for the configuration information of each networking equipment in the networking model described networking model determining unit selected.
Beneficial effect of the present invention is as follows:
Scheme used in the present invention, have employed a kind of mode of resource dynamic application, achieve the Dynamic Acquisition function of test resource environment configuration information, when prosthetic is intervened, use-case obtains all available test environments according to the resource parameters of application, namely support that the many places of a use-case perform, support that again an environment runs the multiple use-case meeting application condition, compared with prior art, make significant headway, the effect that the multiple environment reaching use-case runs, save the change number of times of resource environment and test environment, improve testing efficiency and Environment utilization ratio.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the 2+0 network environment figure of microwave equipment;
Fig. 2 is the process flow diagram that existing test request obtains test environment parameter;
Fig. 3 is the process flow diagram of the method that in the embodiment of the present invention one, test resource is dynamically applied for;
Fig. 4 is the set of circumstances pessimistic concurrency control combination that in the embodiment of the present invention three, use-case request resource is possible;
Fig. 5 is the relation schematic diagram of test environment and test case in the present invention;
The structured flowchart of the device that Fig. 6 dynamically applies for for a kind of test resource that the embodiment of the present invention four provides.
Embodiment
The method and apparatus that the embodiment of the present invention provides a kind of test resource dynamically to apply for, achieve the Dynamic Acquisition of test resource environment configuration information, use-case obtains all available test environments according to the resource parameters of application, namely support that the many places of a use-case perform, support that again an environment runs the multiple use-case meeting application condition, thus improve testing efficiency and Environment utilization ratio.Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment one
A kind of method that the embodiment of the present invention provides test resource dynamically to apply for, as shown in Figure 3, described method specifically comprises the steps:
Step S301, obtains physics network environment descriptor and test application resource description information;
Wherein, physics network environment descriptor is equivalent to the mapping of actual environment networking.
Test application resource description information comprises the environment configuration information of the some test scenes of test case; Described environment configuration information comprises: test case performs Equipments Setting and the connection status of needs.
Step S302, obtains the environment configurations of test case present test field scape in test application resource description information, and environmentally configuration requirement, obtain the application list of devices needing resource bid;
Step S303, environmentally configuration requirement, for each application equipment in list filters out the physics networking equipment collection meeting application requirement in physics network environment descriptor;
This step is preferably through such as under type realization: for each application equipment in application list of devices, the physics networking equipment mated with this application device type is obtained in physics network environment descriptor, and environmentally configuration requirement, in the physics networking equipment of the type matching obtained, filter out the physics networking equipment collection meeting application requirement.
Wherein, environmentally configuration requirement, filters out the physics networking equipment collection meeting application requirement, specifically comprises in the physics networking equipment of the type matching obtained:
When applying for that device type is network element device, the each physics networking equipment mated with this application device type is logged in based on automatic test platform, obtain the veneer collocation information of each physics networking equipment, and judge that veneer collocation information meets the physics networking equipment of environment configurations requirement as the physics networking equipment meeting application requirement;
When applying for that device type is instrumentation, judge that each physics networking equipment mated with this application device type of acquisition is as the physics networking equipment meeting application requirement.
Step S304, based on the physics networking equipment collection of each application equipment, calculates effective connection combination of all application equipment, obtains all networking models, and require to select the networking model that meets application requirement according to environment configurations in all networking models;
In this step, based on the physics networking equipment collection of each application equipment, calculate all application equipment effective connect combination mode include but not limited to into:
(1) the physics networking equipment collection of each application equipment is carried out cartesian product as a member, obtain the combination of the ordered pair combination of all application equipment;
(2) reject the connection combination using a physics networking equipment for n time, obtain effective connection combination of all application equipment; Wherein n is more than or equal to 2.
Further, in this step, in all networking models, require that selecting a mode meeting the networking model of application requirement comprises according to environment configurations:
The environmentally connection type of the application of configuration requirement, selects the networking model of the connection type meeting application from all networking models;
The environmentally connection resource of the application of configuration requirement, filters out the networking model meeting application connection resource and require from the networking model meeting application connection type;
Judge the number filtering out networking model, if multiple, then select a networking model as the networking model finally selected; Otherwise, directly using the networking model filtered out as the networking model finally selected.
Step S305, passes to test case by the configuration information of networking equipment each in the networking model selected.
Preferably, this step realizes in the following way: carry out record to networking equipment each in the networking model selected; According to the parameter of test case request, obtain each networking equipment IP address and the device parameter information of record, and the information of acquisition is passed to test case.
Alternatively, the resource application method described in the embodiment of the present invention also comprises the application of logical resource, concrete: after selecting target networking model, passes to test case for the target networking model application logical resource selected.
In sum, method described in the embodiment of the present invention, have employed a kind of mode of resource dynamic application, achieve the Dynamic Acquisition function of test resource environment configuration information, when prosthetic is intervened, use-case obtains all available test environments according to the resource parameters of application, namely support that the many places of a use-case perform, support that again an environment runs the multiple use-case meeting application condition, compared with prior art, make significant headway, the effect that the multiple environment reaching use-case runs, save the change number of times of resource environment and test environment, improve testing efficiency and Environment utilization ratio.
Embodiment two
To implement principle identical with embodiment one, a kind of method that the embodiment of the present invention provides test resource dynamically to apply for, by open more ins and outs, the specific implementation process of method provided by the invention can be described better.
The method of the dynamic resource application that the embodiment of the present invention provides comprises the following steps:
The first step, describes physics network environment and test application resource (also can be called resource request environment):
The description document of physics network environment and test application resource is the basis performing resource dynamic acquisition.
1), describe physics network environment, comprise configuration (as: device type, device IP, connection type, and the port description etc. of equipment room connection) and the connection performance of equipment; This physics network environment description document is equivalent to the mapping of actual environment networking, for the dependence condition of dynamic resource application.
Description operation can be carried out before resource bid, and can carry out when physics networking occurs, the present invention does not describe it and uniquely limits opportunity yet.
2), test application resource is described, namely describe the most basic some network models that test case needs to perform, each network model comprises Equipments Setting (as: required device type, basic veneer configuration, port type, several pieces of veneers etc.) and the connection status that use-case performs needs.Wherein Equipments Setting describes the veneer or port type and quantity that test needs, and connection status describes connection type between equipment and connected node (device type, veneer, port title and type).
Second step, performs dynamic resource application
Before dynamic resource application, angle is realized from program, need some configuration information instantiations, concrete: all network element devices logged in physics networking description document based on automatic test platform obtain its veneer collocation information, then physics network environment descriptor, veneer collocation information and use-case request environmental resource information instances are turned to object.
1), obtain the environment configurations of the use-case request under special scenes according to use-case test scene, the environment configurations of use-case application comprises equipment, connection and logic application three part, and its application process comprises following step:
A) device type application: obtain the list of devices needing application from the environment configuration information (this environment configuration information obtains from test application Resource Description File) of the use-case request characteristic scene.Traversal equipment application list, for each equipment i in list, according to device type, all equipment of the same type with equipment i (equipment in physics networking) is obtained from physics network environment description document, obtain device type the Resources list, in this device type the Resources list, comprise network element device list and instrument list.
B) network element device list screening: traversal network element device list, each network element device is signed in by automatic test platform, obtain the veneer collocation information of each network element device, and according to the requirement of environment configuration information, filter out and comprise the veneer of application required for network element device and the list of devices of port arrangement.
And for instrument list, because the instrumentation in list does not only comprise port information containing single board information, it has been generally acknowledged that the requirement of its full environment configuration information.
C) all networking lists are obtained: from physics networking, obtain all list of devices meeting request condition according to each application equipment above, the i.e. corresponding equipment class table pack of each equipment, each kind table pack is carried out cartesian product as a member, the combination (comprising an equipment repeatedly to use) of the ordered pair combination of all devices can be obtained, reject the connection combination of the equipment repeatedly used in equipment class table pack again, all connection Assembly Listings satisfied condition of application equipment can be obtained, wherein each connects combination is all a kind of networking model, connection between networking model is different.
D) connection type application: each connection type is all a kind of specific application way.First, from all networking models obtained above, the networking model of its corresponding connection type is chosen according to the connection type of application; Then, from the networking model of the corresponding connection type chosen, qualified composite type is gone out using the connection resource applied for as conditional filtering;
2) resource parameters applying for arriving, is taken: integrating step 1), the descriptor of one group of networking model (a group physics networking connect) can be obtained, then according to the veneer of equipment in networking model and/or the veneer of port configuration information determination resource bid and port title according to application condition.
3), the parameter assignment of resource bid: use-case parameter is made in the IP address of equipment in the networking model that resource bid obtains and device parameter and exports use-case to.
4), logical resource application: based on the application of physics dynamic resource, to the dynamic application process of the resource environment of logic networking.Environmentally configure different logical messages in same physics networking, different logic network environments can be formed.In different logics environmentally, its logic configuration parameter (logic port title) is different, and corresponding physical port information is unavailable, therefore logic parameter required for implementation of test cases is also different.Its application process is as follows, in test application resource, describe use-case application logical type and port connect details, physical testing environment is got by the dynamic application process of physical resource, then details are connected according to logical type with port, perform the logical transition use-case of counterlogic type, obtain required logic network environment.Physical port corresponding for this logic network environment is directly changed into logic port, and passes to test case as test parameter.Wherein, the logical transition use-case of execution supports the mutual conversion between the direct configuration of logic network environment and Different Logic network environment.
Embodiment three
The present embodiment, in conjunction with concrete network environment, carries out imagery explanation to the dynamic application process of test resource described in the embodiment of the present invention one, two, is specifically related to following content:
The form of microwave networking is diversified, conventional Test Networking environment comprises the double bounce environment, trustship AOU environment etc. that 1+0,1+1 mono-jumps backup environment, 2+0, can automatically select the environment meeting use-case application condition in numerous network environment by the method for the invention, and provide environmental testing parameter for use-case.
Example one, for the double bounce environment of microwave networking 2+0, the process introducing dynamic resource application specifically comprises:
The first step, describes physics network environment:
As shown in Figure 1, be the physics network environment of microwave 2+0, its description document namely to following equipment be connected description.
Equipment is network element 1, network element 2 and outdoor linkage unit ODU and test instrumentation, and two ports of the MUA veneer of network element 1 and network element 2 are connected by outdoor linkage unit ODU, and the port of network element 1 and instrument connect.
Second step, describes test application resource:
The 2+0 networking test environment of test case request, its description document is to the equipment of request and is connected description, and it is network element 1, network element 2 and test instrumentation that the device descriptive information of request is respectively device type, wherein will comprise and ask the veneer collocation information of network element.The connection of request is described as description that network element 1 and the slot, MU veneer place at network element 2 place be connected by eating dishes without rice or wine and the connection between network element 1 and instrument describes.
3rd step, performs use-case resource bid:
1), equipment application process: according to the type of the equipment req1 of the application of test resource, all equipment of the same type is obtained from physics networking description document, be respectively network element 1 and network element 2 and return network element ip, the ip address of network element 1 and network element 2 is logged in by robotframework framework, whether the veneer configuration MU veneer inquiring about its request exists, record satisfactory list of devices, the equipment satisfied condition of application equipment req1 is { network element 1, network element 2}, the equipment that equipment req2 satisfies condition is { network element 1, network element 2}, the equipment that instrument req3 satisfies condition is { instrument }.
2), connection application process: based on the result of applying for equipment above, calculate equipment req1, req2, link models all between req3, the model repeatedly using an equipment is also deleted in the calculating of being amassed by Di Kaer afterwards, link model can be obtained and be combined as { < network element 1, network element 2, instrument >, < network element 2, network element 1, instrument >} two kinds of link models, its link model is shown in Fig. 4, wherein { network element 1, network element 2, instrument } represent to have between network element 1 with network element 2 and be connected, connection is had between network element 2 and instrument.Travel through this two kinds of link models, the connection environmentally described in configuration file, judge whether current connection networking connects consistent with physics network environment, if unanimously, then think that current connection networking is the test environment applying for arriving.First, select { network element 1, network element 2, instrument }, as shown in (1) of Fig. 4, it connects the network element 1 in describing and meets the requirements with the description that the slot, MU veneer place at network element 2 place is connected by eating dishes without rice or wine, but the connection between network element 1 and instrument describes undesirable, so kind link model is unavailable.Secondly, select { network element 2, network element 1, instrument } link model, as shown in (2) of Fig. 4, with the equipment of physical environment networking with is connected completely the same, therefore the test environment link model that current application is arrived is { network element 2, network element 1, instrument }.
3), in order to the configuration parameter of physical environment networking is passed to test case, applying for that the physical environment mesh information that obtains carries out record, assignment is carried out, as parameter for use-case test according to test case required parameter.
4), logical resource application: namely same to physics networking environment facies, the dynamic application process of logical resource environment that software merit rating is different, based on the application of physics dynamic resource, according to the physical resource parameters acquired, for the resource environment actuating logic conversion use-case applying for obtaining, and the logical resource configuration information of resource environment is returned the execution parameter as use-case.As to logical resource PLA connection application, then under the condition met at physical condition, then to continue whether decision logic configuration is PLA, if not then actuating logic conversion use-case, change into the configuration of PLA logic, and logic parameter configuration is returned as use-case parameter.
Example two, utilize resource dynamic application method of the present invention, a use-case can apply for multiple environment, concrete, is described for a network element device application:
1) check physics network environment: present physical networking comprises 1+0, multiple test environment such as 1+1,2+0, and in each networking, comprise one and multiple network element device, and on equipment, veneer configuration meets application condition.
2) device resource applied for, only need apply for a network element device, there is not equipment connection.
3) resource dynamic application, network element device according to application checks whether the equipment comprising application NE type from each networking description document according to equipment application condition, therefore above 3 environment can meet resource bid condition, and return any one network element device as test environment, and its configuration is as use-case parameter testing.As shown in Figure 5, apply for that test environment is that the use-case of 1+0 environmentally can run at test environment 1+0,1+1,2+0, xpic2+0.
Example three, utilize resource dynamic application method of the present invention, an environment can perform the use-case of multiple scene, jumps network environments be described for 2:
One, 2 environment application is jumped:
1) physical environment describes: describe equipment and connection, comprise 3 network element devices, and wherein network element 1 and network element 2, network element 2 and network element 3 form a jumping environment respectively.
2) apply for that use-case environment describes: connect between the network element device of application 3 specified type and equipment, the double bounce environment of composition.
3) equipment application result, the list of 3 network element device application acquisitions is all { network element 1, network element 2, network element 3}.
4) connection application process, calculate equipment req1, req2, link models all between req3, the model repeatedly using an equipment is also deleted in the calculating of being amassed by Di Kaer afterwards, link model can be obtained and be combined as { < network element 1, network element 2, network element 3>, < network element 2, network element 1, network element 3>} two kinds of link models, wherein < network element 1, network element 2, network element 3> is expressed as network element 1 and forms a jumping with network element 2 and be connected, network element 2 and network element 3 form a jumping and are connected.Choose according to connection type and choose the network model consistent with physical environment from above network model, as test environment, and provide test parameter for use-case.
Two, jump 2 the use-case environmentally performing 1 jumping environment:
1), physical description file with 2 jump network environments describe, use-case test application resource file be 1 jumping equipment be connected description.
2), when test environment is jumped in application 2, analyzing current networking is < network element 1, network element 2, network element 3> connects, wherein network element 1 and network element 2, network element 2 and network element 3 are respectively 1 jumping and are connected, and comprise two one and jump connection type, therefore can obtain wherein any pair one jumping networkings as test environment.
According to the explanation of example two, three, a complicated network environment comprises multiple simple network environment, therefore can be used for the test case of multiple scene to perform, and improves environment commonality.
In sum, the method that the embodiment of the present invention uses, have employed a kind of mode of resource dynamic application, achieve the Dynamic Acquisition function of test resource environment configuration information, the next use-case of situation of intervening at prosthetic can perform many places, compared with prior art, make significant headway, the effect that the multiple environment reaching use-case runs, as shown in Figure 5, save the change number of times of resource environment and test environment, improve capacity utilization and work efficiency.
Embodiment four
The device that the embodiment of the present invention provides a kind of test resource dynamically to apply for, as shown in Figure 6, comprising:
Descriptor acquiring unit 610, for obtaining physics network environment descriptor and test application resource description information;
Equipment application unit 620, for obtaining the environment configurations of test case present test field scape in test application resource description information, and environmentally configuration requirement, obtain need the application list of devices of resource bid and in physics network environment descriptor for each application equipment in list filters out the physics networking equipment collection meeting application requirement;
Networking model determining unit 630, for the physics networking equipment collection based on each application equipment, calculate effective connection combination of all application equipment, obtain all networking models, and require to select the networking model that meets application requirement according to environment configurations in all networking models;
Messaging unit 640, passes to test case for the configuration information of each networking equipment in the networking model described networking model determining unit selected.
Based on said structure framework and enforcement principle, provide several concrete and preferred implementation under the above constitution below, in order to refinement and the function optimizing device of the present invention, be specifically related to following content:
In descriptor acquiring unit 610, physics network environment descriptor is equivalent to the mapping of actual environment networking.Test application resource description information comprises the environment configuration information of the some test scenes of test case; Described environment configuration information comprises: test case performs Equipments Setting and the connection status of needs.
Further, in the present embodiment, equipment application unit 620, comprises further:
Device type coupling subelement 621, for for each application equipment in application list of devices, obtains the physics networking equipment mated with this application device type in physics network environment descriptor;
Equipment screening subelement 622, for environmentally configuration requirement, filters out the physics networking equipment collection meeting application requirement in the physics networking equipment of the type matching obtained.
Preferably, equipment screening subelement 622, specific implementation in the following way: when applying for that device type is network element device, the each physics networking equipment mated with this application device type is logged in based on automatic test platform, obtain the veneer collocation information of each physics networking equipment, and judge that veneer collocation information meets the physics networking equipment of environment configurations requirement as the physics networking equipment meeting application requirement; When applying for that device type is instrumentation, judge that each physics networking equipment mated with this application device type of acquisition is as the physics networking equipment meeting application requirement.
Further, in the present embodiment, networking model determining unit 630, comprises further:
Effective Connecting groups closes computation subunit 631, for the physics networking equipment collection of each application equipment is carried out cartesian product as a member, obtain the combination of the ordered pair combination of all application equipment, and reject the connection combination using a physics networking equipment for n time, obtain effective connection combination of all application equipment; Wherein n is more than or equal to 2;
Target networking model determination subelement 632, for the connection type of the environmentally application of configuration requirement, selects the networking model of the connection type meeting application from all networking models; The environmentally connection resource of the application of configuration requirement, filters out the networking model meeting application connection resource and require from the networking model meeting application connection type; Judge the number filtering out networking model, if multiple, then select a networking model as the networking model finally selected; Otherwise, directly using the networking model filtered out as the networking model finally selected.
Further, in the present embodiment, messaging unit 640, specifically for carrying out record to networking equipment each in the networking model selected; According to the parameter of test case request, obtain each networking equipment IP address and the device parameter information of record, and the information of acquisition is passed to test case.
Alternatively, device described in the embodiment of the present invention can also realize the application of logical resource, concrete, and described in the present embodiment, device also comprises: logical resource application unit 650, for passing to test case after the networking model application logical resource for selecting.
Wherein, logical resource application unit 650, connects details specifically for the logical type and port obtaining test case application in described test application resource description information; Be connected details according to described logical type with port, under the networking model selected, perform the logical transition use-case that described logical type is corresponding, obtain required logic network environment; Test case is passed to as test parameter after physical port corresponding for the logic network environment obtained is converted into logic port.
In sum, device described in the present embodiment, have employed a kind of mode of resource dynamic application, achieve the Dynamic Acquisition function of test resource environment configuration information, when prosthetic is intervened, use-case obtains all available test environments according to the resource parameters of application, namely support that the many places of a use-case perform, support that again an environment runs the multiple use-case meeting application condition, compared with prior art, make significant headway, the effect that the multiple environment reaching use-case runs, save the change number of times of resource environment and test environment, improve testing efficiency and Environment utilization ratio.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (16)

1. a test resource method of dynamically applying for, is characterized in that, comprising:
Obtain physics network environment descriptor and test application resource description information;
The environment configurations of test case present test field scape is obtained in test application resource description information, and environmentally configuration requirement, obtain need the application list of devices of resource bid and in physics network environment descriptor for each application equipment in list filters out the physics networking equipment collection meeting application requirement;
Based on the physics networking equipment collection of each application equipment, calculate effective connection combination of all application equipment, obtain all networking models, and require to select the networking model that meets application requirement according to environment configurations in all networking models;
The configuration information of networking equipment each in the networking model selected is passed to test case.
2. the method for claim 1, is characterized in that, described test application resource description information comprises the environment configuration information of the some test scenes of test case; Described environment configuration information comprises: test case performs Equipments Setting and the connection status of needs.
3. the method for claim 1, is characterized in that, described be that in list, each application equipment filters out the physics networking equipment collection meeting application requirement in physics network environment descriptor, specifically comprises:
For each application equipment in application list of devices, the physics networking equipment mated with this application device type is obtained in physics network environment descriptor, and environmentally configuration requirement, in the physics networking equipment of the type matching obtained, filter out the physics networking equipment collection meeting application requirement.
4. method as claimed in claim 3, is characterized in that, described environmentally configuration requirement, filters out the physics networking equipment collection meeting application requirement, specifically comprise in the physics networking equipment of the type matching obtained:
When applying for that device type is network element device, the each physics networking equipment mated with this application device type is logged in based on automatic test platform, obtain the veneer collocation information of each physics networking equipment, and judge that veneer collocation information meets the physics networking equipment of environment configurations requirement as the physics networking equipment meeting application requirement;
When applying for that device type is instrumentation, judge that each physics networking equipment mated with this application device type of acquisition is as the physics networking equipment meeting application requirement.
5. the method for claim 1, is characterized in that, the described physics networking equipment collection based on each application equipment, calculates effective connection combination of all application equipment, specifically comprises:
The physics networking equipment collection of each application equipment is carried out cartesian product as a member, obtains the combination of the ordered pair combination of all application equipment;
Reject the connection combination using a physics networking equipment for n time, obtain effective connection combination of all application equipment; Wherein n is more than or equal to 2.
6. the method for claim 1, is characterized in that, described in all networking models according to environment configurations require select the networking model that meets application requirement, specifically comprise:
The environmentally connection type of the application of configuration requirement, selects the networking model of the connection type meeting application from all networking models;
The environmentally connection resource of the application of configuration requirement, filters out the networking model meeting application connection resource and require from the networking model meeting application connection type;
Judge the number filtering out networking model, if multiple, then select a networking model as the networking model finally selected; Otherwise, directly using the networking model filtered out as the networking model finally selected.
7. the method for claim 1, is characterized in that, the described configuration information by networking equipment each in the networking model selected passes to test case, specifically comprises:
Record is carried out to networking equipment each in the networking model selected;
According to the parameter of test case request, obtain each networking equipment IP address and the device parameter information of record, and the information of acquisition is passed to test case.
8. the method as described in claim 1 to 7 any one, is characterized in that, described method also comprises: pass to test case for after the networking model application logical resource selected.
9. method as claimed in claim 8, is characterized in that, passing to test case, specifically comprising after the described networking model application logical resource for selecting:
In described test application resource description information, obtain test case application logical type and port connect details;
Be connected details according to described logical type with port, under the networking model selected, perform the logical transition use-case that described logical type is corresponding, obtain required logic network environment;
Test case is passed to as test parameter after physical port corresponding for the logic network environment obtained is converted into logic port.
10. the device dynamically applied for of test resource, is characterized in that, comprising:
Descriptor acquiring unit, for obtaining physics network environment descriptor and test application resource description information;
Equipment application unit, for obtaining the environment configurations of test case present test field scape in test application resource description information, and environmentally configuration requirement, obtain need the application list of devices of resource bid and in physics network environment descriptor for each application equipment in list filters out the physics networking equipment collection meeting application requirement;
Networking model determining unit, for the physics networking equipment collection based on each application equipment, calculate effective connection combination of all application equipment, obtain all networking models, and require to select the networking model that meets application requirement according to environment configurations in all networking models;
Messaging unit, passes to test case for the configuration information of each networking equipment in the networking model described networking model determining unit selected.
11. devices as claimed in claim 10, it is characterized in that, described equipment application unit, comprises further:
Device type coupling subelement, for for each application equipment in application list of devices, obtains the physics networking equipment mated with this application device type in physics network environment descriptor;
Equipment screening subelement, for environmentally configuration requirement, filters out the physics networking equipment collection meeting application requirement in the physics networking equipment of the type matching obtained.
12. devices as claimed in claim 11, it is characterized in that, described equipment screening subelement, specifically for when applying for that device type is network element device, the each physics networking equipment mated with this application device type is logged in based on automatic test platform, obtain the veneer collocation information of each physics networking equipment, and judge that veneer collocation information meets the physics networking equipment of environment configurations requirement as the physics networking equipment meeting application requirement; When applying for that device type is instrumentation, judge that each physics networking equipment mated with this application device type of acquisition is as the physics networking equipment meeting application requirement.
13. devices as claimed in claim 10, it is characterized in that, described networking model determining unit, comprises further:
Effective Connecting groups closes computation subunit, for the physics networking equipment collection of each application equipment is carried out cartesian product as a member, obtain the combination of the ordered pair combination of all application equipment, and reject the connection combination using a physics networking equipment for n time, obtain effective connection combination of all application equipment; Wherein n is more than or equal to 2;
Target networking model determination subelement, for the connection type of the environmentally application of configuration requirement, selects the networking model of the connection type meeting application from all networking models; The environmentally connection resource of the application of configuration requirement, filters out the networking model meeting application connection resource and require from the networking model meeting application connection type; Judge the number filtering out networking model, if multiple, then select a networking model as the networking model finally selected; Otherwise, directly using the networking model filtered out as the networking model finally selected.
14. devices as claimed in claim 10, is characterized in that, described messaging unit, specifically for carrying out record to networking equipment each in the networking model selected; According to the parameter of test case request, obtain each networking equipment IP address and the device parameter information of record, and the information of acquisition is passed to test case.
15. devices as described in claim 10 to 14 any one, it is characterized in that, described device also comprises: logical resource application unit, for passing to test case after the networking model application logical resource for selecting.
16. devices as claimed in claim 15, is characterized in that, described logical resource application unit, connect details specifically for the logical type and port obtaining test case application in described test application resource description information; Be connected details according to described logical type with port, under the networking model selected, perform the logical transition use-case that described logical type is corresponding, obtain required logic network environment; Test case is passed to as test parameter after physical port corresponding for the logic network environment obtained is converted into logic port.
CN201410535165.9A 2014-10-11 2014-10-11 Test resource dynamic application method and device Withdrawn CN105573904A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410535165.9A CN105573904A (en) 2014-10-11 2014-10-11 Test resource dynamic application method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410535165.9A CN105573904A (en) 2014-10-11 2014-10-11 Test resource dynamic application method and device

Publications (1)

Publication Number Publication Date
CN105573904A true CN105573904A (en) 2016-05-11

Family

ID=55884070

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410535165.9A Withdrawn CN105573904A (en) 2014-10-11 2014-10-11 Test resource dynamic application method and device

Country Status (1)

Country Link
CN (1) CN105573904A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107315686A (en) * 2017-06-28 2017-11-03 郑州云海信息技术有限公司 A kind of operation method of automatic test
CN107529180A (en) * 2016-06-21 2017-12-29 中兴通讯股份有限公司 A kind of base station cloud test environment construction device and method
CN112486819A (en) * 2020-11-27 2021-03-12 中国电子科技集团公司第三十研究所 Method and system for batch testing of communication equipment
CN114430385A (en) * 2022-01-17 2022-05-03 锐捷网络股份有限公司 Network equipment detection method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101404596A (en) * 2008-11-17 2009-04-08 福建星网锐捷网络有限公司 Multi-topological environmental test method, system and equipment
CN102012845A (en) * 2010-12-16 2011-04-13 迈普通信技术股份有限公司 Method for improving utilization rate of automatic testing resources
CN102231686A (en) * 2011-06-24 2011-11-02 北京天融信科技有限公司 System and method for implementing automated test of network security equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101404596A (en) * 2008-11-17 2009-04-08 福建星网锐捷网络有限公司 Multi-topological environmental test method, system and equipment
CN102012845A (en) * 2010-12-16 2011-04-13 迈普通信技术股份有限公司 Method for improving utilization rate of automatic testing resources
CN102231686A (en) * 2011-06-24 2011-11-02 北京天融信科技有限公司 System and method for implementing automated test of network security equipment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107529180A (en) * 2016-06-21 2017-12-29 中兴通讯股份有限公司 A kind of base station cloud test environment construction device and method
CN107529180B (en) * 2016-06-21 2022-01-25 中兴通讯股份有限公司 Base station cloud test environment construction device and method
CN107315686A (en) * 2017-06-28 2017-11-03 郑州云海信息技术有限公司 A kind of operation method of automatic test
CN112486819A (en) * 2020-11-27 2021-03-12 中国电子科技集团公司第三十研究所 Method and system for batch testing of communication equipment
CN112486819B (en) * 2020-11-27 2022-04-22 中国电子科技集团公司第三十研究所 Method and system for batch testing of communication equipment
CN114430385A (en) * 2022-01-17 2022-05-03 锐捷网络股份有限公司 Network equipment detection method and device and electronic equipment

Similar Documents

Publication Publication Date Title
US9628339B1 (en) Network testbed creation and validation
CN103188112B (en) Network flow detection method and device
CN105573904A (en) Test resource dynamic application method and device
CN108702316B (en) VNF resource allocation method and device
Houidi et al. An efficient algorithm for virtual network function scaling
CN105574082A (en) Storm based stream processing method and system
CN103685583A (en) Method and system for resolving domain names
CN104184617A (en) Method, device and system for configuring pre-emphasis for interconnection equipment and network device
KR102328938B1 (en) Management of log data in electronic systems
CN107959582A (en) A kind of management method and device of example of cutting into slices
CN109756357A (en) A kind of network slice generation method and device and terminal
US20110258620A1 (en) Method and Apparatus for Making a BPM Application Available to Multiple Tenants
Liu et al. Fattreesim: Modeling large-scale fat-tree networks for hpc systems and data centers using parallel and discrete event simulation
US10965609B2 (en) Mapping of service requirements for a virtualized network on a packet flow
CN103312424A (en) Control method and system for multiple switches in automatic testing system
CN108733698A (en) A kind of processing method and background service system of log information
CN109948938A (en) The bill of materials configuration method and device and equipment of a kind of enterprise resource planning
CN103384251A (en) Multi-class safety service combinable safety network construction method and device
Casellas et al. Virtualization of disaggregated optical networks with open data models in support of network slicing
CN102291274A (en) System and method for realizing automatic adaptation of network testing instrument
US9705978B1 (en) Dependency graph management
CN106201852A (en) A kind of distributed test method and test system
US20140225896A1 (en) Resource oriented dependency graph for network configuration
Souza et al. Towards a Fog-to-Cloud control topology for QoS-aware end-to-end communication
Nikolaidis et al. IOTier: A Virtual Testbed to evaluate systems for IoT environments

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20160511