[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN110213121A - Test platform, test method and the test device of virtual communication product - Google Patents

Test platform, test method and the test device of virtual communication product Download PDF

Info

Publication number
CN110213121A
CN110213121A CN201910350713.3A CN201910350713A CN110213121A CN 110213121 A CN110213121 A CN 110213121A CN 201910350713 A CN201910350713 A CN 201910350713A CN 110213121 A CN110213121 A CN 110213121A
Authority
CN
China
Prior art keywords
test
virtual
communication product
network
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910350713.3A
Other languages
Chinese (zh)
Other versions
CN110213121B (en
Inventor
虞安虎
张峰
张晔
闫梦成
郭艳泓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanshi Network Communication Technology Co Ltd
Original Assignee
Shanshi Network Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanshi Network Communication Technology Co Ltd filed Critical Shanshi Network Communication Technology Co Ltd
Priority to CN201910350713.3A priority Critical patent/CN110213121B/en
Publication of CN110213121A publication Critical patent/CN110213121A/en
Application granted granted Critical
Publication of CN110213121B publication Critical patent/CN110213121B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses test platform, test method and the test devices of a kind of virtual communication product.Wherein, which includes: test terminal, the version information and test content of virtual communication product for receiving input;At least one virtual server is connect with test terminal by test macro, for determining the test environment tested virtual communication product according to version information and test content, and is tested under the test environment virtual communication product.The present invention solves existing automatization test system there are testing efficiencies the technical problem low, utilization rate of equipment and installations is low.

Description

Test platform, test method and the test device of virtual communication product
Technical field
The present invention relates to computer fields, test platform, test method in particular to a kind of virtual communication product And test device.
Background technique
With enterprise's private clound, mixed cloud, public cloud high speed development, for cloud communication virtualization communication products (for example, virtual firewall) is more and more, is presently mainly built based on virtual platforms such as VMWARE, XEN, OPENSTACK Cloud platform, traditional firewall can only be deployed in network egress with security protection, can not protect internal Cloud Server and server The data safety of internal virtual terminal, and can solve the above problem based on the virtual firewall on virtual platform.
By taking virtual firewall as an example, virtual firewall is different from traditional firewall, need support VMWARE, XEN, It is disposed on multiple virtual platforms such as OPENSTACK, KVM.During disposing virtual firewall, firewall own service is removed Complexity other than, it is also necessary to consider the compatibility of virtual platform.Virtual firewall can not only be deployed in server network Outlet is used as security boundary and protects, and the outlet that can also dispose every virtual terminal on the server is done server internal and is used as Security protection.Therefore, the quality of virtual firewall exports Logistics networks or the safety of server internal network has important shadow It rings.
Fig. 1 shows the test schematic diagram of virtual firewall in the prior art.As shown in Figure 1, flat in a virtualization 2 virtual firewalls (virtual firewall -1 as shown in figure 1, void are deployed on platform server (for example, XEN, VMWARE, KVM etc.) Quasi- firewall -2), the virtual port and server physical network card interface of virtual firewall (ETHO, ETH2 as shown in figure 1, ETH3, ETH4, ETH5) correspond binding, wherein and the ethernet0/0 mouth (not shown in figure 1) of virtual firewall passes through server ETHO be connected to control interchanger on.Two virtualization test terminals are disposed on another virtual platform server (such as Virtualization test PC1, virtualization test PC2 in Fig. 1), the binding of virtualization test terminal and server, with virtual firewall Virtual port with service implements reason the binding of network card interface it is identical.
In Fig. 1, user will run automation by automatization test system and survey after finishing writing automatic test script Training carries out automatic test originally, in general, running automatic test foot using Robot Framework automatization test system This.
From the foregoing, it will be observed that the hardware firewall automation skill that the automatic test Primary Reference of existing virtual firewall is traditional Art realizes that testing efficiency is low, and server demands amount is big, and utilization rate of equipment and installations is low, and flexibility is poor, and be difficult to complete multiple services The efficiently completeness of test and guarantee test.
For above-mentioned problem, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides test platform, test method and the test devices of a kind of virtual communication product, so that Solve existing automatization test system less there are testing efficiencies the technical problem low, utilization rate of equipment and installations is low.
According to an aspect of an embodiment of the present invention, a kind of test platform of virtual communication product is provided, comprising: test Terminal, the version information and test content of virtual communication product for receiving input;At least one virtual server, passes through Test macro is connect with test terminal, for being tested according to version information and test content determination virtual communication product Test environment, and virtual communication product is tested under the test environment.
Further, communication network is provided at least one virtual server, wherein communication network includes at least: control Network, internal communication network and test capaciated flow network processed.
Further, at least one virtual server is communicated by control network with external server;At least one Virtual server is communicated by internal communication network with internal server;At least one virtual server passes through test flow Network tests the flow between virtual communication product and virtual test terminal, wherein virtual communication product and virtual survey Terminal is tried to be arranged at least one virtual server.
Further, virtual communication product includes multiple first network interfaces, wherein multiple first network interfaces at least wrap It includes: at least one management interface and multiple test interfaces;At least one management interface is arranged in internal communication network, by going out Mouth gateway and control network are communicated with external server;Multiple test interface settings are in test capaciated flow network.
Further, virtual test terminal includes multiple second network interfaces, wherein multiple second network interfaces at least wrap It includes: at least one management interface, multiple test interfaces and at least one communication interface;Including the setting of at least one management interface In portion's communication network, communicated by egress gateways and control network with external server;Multiple test interface settings exist It tests in capaciated flow network;At least one communication interface is arranged in internal communication network, is communicated with internal server, with reality Now to the setting of multiple second network interfaces.
Further, virtual communication product includes at least virtual firewall.
According to another aspect of an embodiment of the present invention, a kind of test method of virtual communication product is additionally provided, comprising: obtain Take the version information and test content of virtual communication product;Virtual communication is produced according to version information and test content setting The test environment that product are tested, and virtual communication product is tested under the test environment.
Further, test environment is at least provided with virtual test terminal, the test method of virtual communication product further include: Obtain the corresponding default template of virtual test terminal;Duplication behaviour is carried out to default template according to version information and test content Make, to realize the setting to virtual test terminal.
Further, the test method of virtual communication product further include: internal server is obtained based on the first preset interface With the mailing address of external server;It is configured based on mailing address of second preset interface to external server, Yi Jiji It is configured in mailing address of first preset interface to internal server, obtains configuration result;According to configuration result to virtual The interface of test terminal carries out spelling logical test, obtains test result;Determine that the network of virtual test terminal is matched according to test result It sets and whether completes.
Further, the test method of virtual communication product further include: detecting the survey completed to virtual communication product In the case where examination, destruction operation is carried out to the virtual unit being arranged in test environment, wherein virtual unit includes at least virtual Communication products and virtual test terminal.
According to another aspect of an embodiment of the present invention, a kind of test device of virtual communication product is additionally provided, comprising: obtain Modulus block, for obtaining the version information and test content of virtual communication product;Test module, for according to version information with And the test environment tested virtual communication product is arranged in test content, and under the test environment to virtual communication product into Row test.
According to another aspect of an embodiment of the present invention, a kind of storage medium is additionally provided, which includes storage Program, wherein equipment where control storage medium executes the test method of virtual communication product in program operation.
According to another aspect of an embodiment of the present invention, a kind of processor is additionally provided, which is used to run program, In, the test method of virtual communication product is executed when program is run.
In embodiments of the present invention, in such a way that automatic deployment tests environment, in the version for getting virtual communication product After this information and test content, according to the version information of virtual communication product and test content automatic deployment test wrapper Border, and virtual communication product is tested under the test environment.It is easily noted that, virtual server is according to virtual The version information and test content of communication products test environment to dispose, and whole process is participated in without artificial, saves people Power cost.In addition, due to virtual server can automatic deployment test environment, scheme provided herein improves void The flexibility and high efficiency of the automatic test of quasi- communication products.
From the foregoing, it will be observed that scheme provided herein has achieved the purpose that test virtual communication product, thus real The technical effect for improving the testing efficiency of automatization test system is showed, and then has solved existing automatization test system and exist The technical problem that testing efficiency is low, utilization rate of equipment and installations is low.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of test schematic diagram of virtual firewall according to prior art;
Fig. 2 is a kind of schematic diagram of the test platform of virtual communication product according to an embodiment of the present invention;
Fig. 3 is a kind of schematic diagram of optional test platform according to an embodiment of the present invention;
Fig. 4 is a kind of schematic diagram of optional virtual server according to an embodiment of the present invention;
Fig. 5 is a kind of test method flow chart of virtual communication product according to an embodiment of the present invention;And
Fig. 6 is a kind of schematic diagram of the test device of virtual communication product according to an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product Or other step or units that equipment is intrinsic.
Embodiment 1
According to embodiments of the present invention, a kind of test platform embodiment of virtual communication product is provided, wherein Fig. 2 is root According to the schematic diagram of the test platform of the virtual communication product of the embodiment of the present invention, as shown in Fig. 2, the test platform includes: test Terminal 20 and at least one virtual server 22 (one is illustrated only in Fig. 2).
Wherein, terminal 20, the version information and test content of virtual communication product for receiving input are tested;At least One virtual server 22 is connect, for being determined according to version information and test content with test terminal by test macro To the test environment that virtual communication product is tested, and virtual communication product is tested under the test environment.
It should be noted that above-mentioned virtual server can be but be not limited to KVM (Kernel-based Virtual Machine) virtual server, VMWARE virtual server optionally can exist simultaneously multiple void in a test platform Quasi- server, wherein multiple virtual servers can be the server (for example, being KVM virtual server) of same type, It can be different types of server.In addition, virtual server can be realized automation creation virtual equipment and test wrapper The deployment and recovery in border, and same automatic test interface is externally provided by built-in proxy module.Wherein, virtualization is set The virtual test terminal of standby including but not limited to virtual communication product and test product, virtual communication product include at least virtual Firewall.
Above-mentioned test terminal can be terminal device used by a user, for example, computer.Optionally, user passes through test The corresponding version information of virtual communication product to be tested and test content are input to test macro by terminal, by test macro Virtual communication product is tested in the environment that virtual server is disposed.
Above-mentioned test macro can automation networking plan and automatization testing technique on realize virtualized server and The management of automated test device thereon and automatic test communication pool.
In addition it is also necessary to which explanation, in traditional automated testing method, is carrying out virtual communication product to test it Before, need to dispose test environment, also, virtual communication product needs to be bound with the physical network card of server, dependent on survey The manual operations of examination personnel, so that the test of virtual communication product cannot achieve full-automatic test, testing efficiency is low.Separately Outside, if multiple virtual platforms are required to deployment test, testing efficiency can be further decreased, is taken time and effort.And the application The version information and test content that the test platform of provided virtual communication product only needs to pay close attention to virtual communication product are i.e. Can, it is participated in without artificial, the test to the deployment of test environment and to virtual communication product can be realized, realized full-automatic The test of change, is greatly saved human cost.
Further, since the test platform of virtual communication product provided herein can not only automatic deployment test Environment, additionally it is possible to the virtual equipment in test environment is automatically created, the automatic synchronization for row information of going forward side by side, so that The test of virtual communication product is more flexible.
From the foregoing, it will be observed that using automatic deployment test environment by the way of, the version information for getting virtual communication product with And after test content, environment is tested according to the version information of virtual communication product and test content automatic deployment, and at this Virtual communication product is tested under test environment.It is easily noted that, virtual server is according to virtual communication product Version information and test content dispose test environment, whole process is participated in without artificial, save human cost.Separately Outside, due to virtual server can automatic deployment test environment, scheme provided herein improves virtual communication product Automatic test flexibility and high efficiency.
From the foregoing, it will be observed that scheme provided herein has achieved the purpose that test virtual communication product, thus real The technical effect for improving the testing efficiency of automatization test system is showed, and then has solved existing automatization test system and exist The technical problem that testing efficiency is low, utilization rate of equipment and installations is low.
In an alternative embodiment, communication network is provided at least one virtual server, wherein communication network It includes at least: control network, internal communication network and test capaciated flow network.Optionally, at least one virtual server passes through Control network is communicated with external server;At least one virtual server by internal communication network and internal server into Row communication;At least one virtual server is by test capaciated flow network to the stream between virtual communication product and virtual test terminal Amount is tested, wherein virtual communication product and virtual test terminal are arranged at least one virtual server.
Optionally, Fig. 3 shows a kind of schematic diagram of optional test platform, includes in test platform shown in Fig. 3 Two virtual servers, i.e. KVM virtual server and VMWARE virtual server, each virtual server all have three bases Network, i.e. control network C ontrol network, internal communication network Internal Network and test capaciated flow network Traffic network.From the figure 3, it may be seen that control network communicated with external server, wherein external server include but It is not limited to automatization test system server, testing service updates server, image server (the IMAGE service in such as Fig. 3 Device) and other communication servers.The communication that internal communication network can be used between virtual test terminal and internal server, with It can be realized virtual test terminal to automatically configure and detect, in addition, internal communication network can also make inside virtual server Communication flows it is protected, do not influenced by external flow.Capaciated flow network is tested for virtual firewall and virtual test terminal Between test traffic communication, wherein all test flows forward inside virtual server, not will receive external network stream The interference of amount, to reduce environmental positioning cost.As shown in figure 3, internal server can include but is not limited to RPC (Remote Procedure Call Protocol, remote procedure call protocol) server.
In an alternative embodiment, virtual communication product includes multiple first network interfaces, wherein multiple first nets Network interface at least includes: at least one management interface and multiple test interfaces;At least one management interface is arranged in internal communication In network, communicated by egress gateways and control network with external server;Multiple test interface settings are flowed in test It measures in network.
Optionally, Fig. 4 shows the schematic diagram of virtual server, and in Fig. 4, virtualization communication products are (for example, virtual anti- Wall with flues) the multiple first network interfaces of default creation, for example, creating 5 first network interfaces in Fig. 4, including 1 management connects Mouth and 4 test interfaces.In Fig. 4, Ethernet0/0 interface is management interface, is deployed in internal communication network In Internet Network.If virtual firewall needs and outbound communication, the firewall by virtual server is needed Egress gateways, then by controlling network C ontrol network and outbound communication, in addition, test interface Eethernet0/1~ Ethernet0/4 is deployed in test capaciated flow network Traffic network, guarantees that test flow will not flow out Virtual Service Device.
In an alternative embodiment, virtual test terminal includes multiple second network interfaces, wherein the second network connects Mouth includes at least: at least one management interface, multiple test interfaces and at least one communication interface;At least one management interface It is arranged in internal communication network, is communicated by egress gateways and control network with external server;Multiple tests connect Mouth setting is in test capaciated flow network;At least one communication interface is arranged in internal communication network, carries out with internal server Communication, to realize the setting to multiple second network interfaces.
Optionally, as shown in figure 4, virtual test terminal VPC default creates multiple second network interfaces.In Fig. 4, virtually Test terminal VPC creates 4 the second network interfaces, including 1 management interface ETH0,1 communication interface Eth3 and two surveys Try mouthful ETH1, an ETH2.Wherein, management interface ETH0 is deployed in control network C ontrol Network, for being by outside System access control, communication interface ETH3 are communicated with the internal services of institute's deployment services device, are deployed in internal communication network In Internal Network network, communicated with the RPC service device program of internal server, to complete virtual test terminal The work such as the automatically dispose of upper network interface address, test interface ETH1 and ETH2 are deployed in test capaciated flow network Traffic In network network.In addition, as shown in figure 3, other virtual platform servers can also pass through management interface ETH0 and test macro It is attached.
In an alternative embodiment, virtual server is built-in with communication agent access modules, wherein structure difference is surveyed Try that technical interface that platform provides is unified to be encapsulated, can using RPC (Remote Procedure Call Protocol, remotely Invocation of procedure agreement) mode communicate, and provide the api interface of unified operation virtual server to external system, which connects Mouth can be used for creation, destruction, topology deployment of virtual communication product etc..In addition, the communication agent access modules can be also test The network address of terminal distribution intranet and extranet, to test terminal virtualized, automate creation virtual firewall, power-up, power-off, It destroys, automatically dispose network interface is (for example, realize that automatically dispose network connects by the functionality of vlan based on virtual switch Mouthful), internal resource using monitoring and alarm etc..
Optionally, network interface can be realized by the functionality of vlan based on virtual switch.Specifically, passing through communication agent Access modules externally provide the unified access interface of each virtual switch operation, and realization specifies single or multiple interfaces to be deployed to together Under one VLAN, meet the automatically dispose of test environment.Wherein, above-mentioned virtual switch can include but is not limited to OVS, VDS etc., OVS (OpenvSwitch, open virtual interchanger) are forwarded for realizing flow and are communicated, vDS (distributed virtual Change exchange network) it is used exchange network on VMWARE virtual server.
In an alternative embodiment, every virtual server has automatically-monitored, automation creation virtual test The functions such as terminal and test environment automation recovery.Optionally, it can be configured according to the automatic performance of virtual equipment, example Such as, using the virtual server of 24 core CPU, 128G memories, default configuration creates 18 virtual test terminals, including 6 The virtual test terminal of the virtual test terminal of Windows system and 12 linux systems, virtual server about occupy whole The resource of a server 40%, remaining 60% resource are used to be created according to the requirements automation of the version information of virtual communication product Virtual communication product can dispose 4~6 sets of automatic test environment on single server.
Further, the automatization testing technique on test platform provided herein can be based on the STAF of IBM Corporation Frame is realized, is integrated with STAF frame in virtual test terminal, based on a testing service of STAF frame load more than 40 (for example, Telnetclient, DNSServer etc.) CLI (command-line that any end is provided by STAF can be achieved Interface, Command Line Interface) testing service in any test terminal operated to realize test by specified network address Purpose.
From the foregoing, it will be observed that the test platform of virtual communication product provided herein can not only be according to service topology demand Automatic deployment network interface, moreover it is possible to automatically create virtual equipment in test environment, and be to testing by information automatic synchronization System, the virtual equipment that auto-destruct creates after test is available without test resource without having to worry about test assignment, to keep away Exempt from craft in the prior art and built the high problem of testing efficiency caused by test environment, reduces the maintenance of test environment Cost.
In addition, the test platform of virtual communication product provided herein has stronger scalability, when virtual clothes When the resource of business device is not able to satisfy testing requirement, as long as addition virtual server, avoiding existing test topology cannot Change automatically with test scene demand, leads to the problem that equipment input cost is high.
Existing virtual test terminal management is at high cost, and the terminal environments for testing for a long time are also easy to produce various environment and ask Topic need to put into great effort analysis so as to cause tester.With being continuously increased for test business, the environment of terminal is tested It is to be doubled and redoubled, causes to pay the automatic test that very expensive management service cost is just able to satisfy routine work.And this Shen Please provided by the test platform of virtual communication product be also able to satisfy the compatibility deployment validation test of multiple virtualization platform, script It is adaptable.In addition, the testing tool in virtual test terminal is encapsulated based on STAF platform and provides the automatic of unified standard Change test to adjust interface and realize that the automatic test after unified encapsulation disposes external member based on each virtual platform interface, provide Unified calling api interface realizes that 1 script can satisfy the automatic test of more set virtualization products, greatlys improve foot This development efficiency reduces the maintenance cost of script.Optionally, above-mentioned script is automatized script, and automatized script passes through offer Automatic test communication pool, realize the automatic test business of every business.
The test platform of virtual communication product provided herein can high concurrent, high efficiency full-automation test execution, On the basis of existing deployment scheme, in conjunction with the application of distribution testing technology, flexible more set of environments concurrent test operations are realized, Greatly improve the operational efficiency of test assignment.
Finally, the virtual server utilization with higher in the test platform of virtual communication product provided herein Rate, for example, the server of 1 24 core CPU, 128G can only meet 5~10 by the automatization testing technique of traditional firewall before Platform firewall (while First server needs to configure 4 and throws the net card), can realize creation by new automatization testing technique scheme 18 test terminals, 15 virtual firewalls (the EMS memory occupation 4G memory of such as 1 virtual firewall), it is same can to meet 4 tasks When triggering operation (by each task distribute 4 test terminals, 4 virtual firewalls), greatly improve server utilization, section Equipment cost is saved.
Embodiment 2
According to embodiments of the present invention, a kind of test method embodiment of virtual communication product is additionally provided, needs to illustrate It is that the test method of virtual communication product provided herein can execute in test platform in embodiment 1.Wherein, Fig. 5 It is the test method flow chart of virtual communication product according to an embodiment of the present invention, as shown in figure 5, this method includes following step It is rapid:
Step S502 obtains the version information and test content of virtual communication product;
The test wrapper tested virtual communication product is arranged according to version information and test content in step S504 Border, and virtual communication product is tested under the test environment.
It should be noted that above-mentioned virtual server can be but be not limited to KVM (Kernel-based Virtual Machine) virtual server, VMWARE virtual server optionally can exist simultaneously multiple void in a test platform Quasi- server, wherein multiple virtual servers can be the server (for example, being KVM virtual server) of same type, It can be different types of server.In addition, virtual server can be realized automation creation virtual equipment and test wrapper The deployment and recovery in border, and same automatic test interface is externally provided by built-in proxy module.Wherein, virtualization is set The virtual test terminal of standby including but not limited to virtual communication product and test product, virtual communication product include at least virtual Firewall.
Above-mentioned test terminal can be terminal device used by a user, for example, computer.Optionally, user passes through test The corresponding version information of virtual communication product to be tested and test content are input to test macro by terminal, by test macro Virtual communication product is tested in the environment that virtual server is disposed.
In addition it is also necessary to which explanation, in traditional automated testing method, is carrying out virtual communication product to test it Before, need to dispose test environment, also, virtual communication product needs to be bound with the physical network card of server, dependent on survey The manual operations of examination personnel, so that the test of virtual communication product cannot achieve full-automatic test, testing efficiency is low.Separately Outside, if multiple virtual platforms are required to deployment test, testing efficiency can be further decreased, is taken time and effort.And the application The version information and test content that the test platform of provided virtual communication product only needs to pay close attention to virtual communication product are i.e. Can, it is participated in without artificial, the test to the deployment of test environment and to virtual communication product can be realized, realized full-automatic The test of change, is greatly saved human cost.
Further, since the test platform of virtual communication product provided herein can not only automatic deployment test Environment, additionally it is possible to the virtual equipment in test environment is automatically created, the automatic synchronization for row information of going forward side by side, so that The test of virtual communication product is more flexible.
From the foregoing, it will be observed that using automatic deployment test environment by the way of, the version information for getting virtual communication product with And after test content, environment is tested according to the version information of virtual communication product and test content automatic deployment, and at this Virtual communication product is tested under test environment.It is easily noted that, virtual server is according to virtual communication product Version information and test content dispose test environment, whole process is participated in without artificial, save human cost.Separately Outside, due to virtual server can automatic deployment test environment, scheme provided herein improves virtual communication product Automatic test flexibility and high efficiency.
From the foregoing, it will be observed that scheme provided herein has achieved the purpose that test virtual communication product, thus real The technical effect for improving the testing efficiency of automatization test system is showed, and then has solved existing automatization test system and exist The technical problem that testing efficiency is low, utilization rate of equipment and installations is low.
In an alternative embodiment, test environment is at least provided with virtual test terminal.To virtual communication product Before being tested, the survey tested virtual communication product is arranged also according to version information and test content in test platform Test ring border.Specifically, test platform obtains the corresponding default template of virtual test terminal, then according to version information and test Content carries out duplication operation to default template, to realize the setting to virtual test terminal.
Optionally, virtual server stores the virtualization test template (i.e. default template) made, and utilizes KVM void CLONE interface in quasi- server is by realizing the creation to virtual communication product to the clone of default template, by entire mistake Journey is packaged into unified call interface, realizes that 1 script can satisfy the automatic test of more set virtualization test platforms, improves The efficiency of script exploitation.
In an alternative embodiment, after realizing to the setting of virtual test terminal, survey provided herein It tries platform and also obtains the mailing address of internal server and external server based on the first preset interface, and preset and connect based on second Mouthful the mailing address of external server is configured, and based on the first preset interface to the mailing address of internal server into Row configuration, obtains configuration result.Then it carries out spelling logical test according to interface of the configuration result to virtual test terminal, be tested As a result, finally determining whether the network configuration of virtual test terminal is completed according to test result.
It should be noted that the first preset interface is communication interface, such as the ETH3 in Fig. 4.Second preset interface is management Interface, such as the ETH0 in Fig. 4.
Optionally, 30 outbound communication network address and 30 Intranet communication network address are allocated on every virtual server in advance, when It after the completion of the creation of virtual test terminal, is powered up, by setting startup program triggering operation after the starting of virtual test terminal The network set detects configurator automatically.Due to there is a allocate in advance on the ETH3 interface (as shown in Figure 4) of virtual test terminal Internal address, communicated by the interface with the built-in module on virtual server to obtain outer net address and interior entoilage Then location configures outer net address on ETH0 interface, configures internal address on ETH3 interface.Configuration carries out each interface after completing Logical test is spelled, the automatic configuration of the own net of virtual test terminal is finally completed.
In above process, the internal address with MAC Address of distribution are bound one by one, when in order to the destruction of virtual test terminal Unified release.
In an alternative embodiment, in order to guarantee the availability of test resource, under the test environment to virtual communication After product is tested, test platform is surveying setting in the case where detecting test of the completion to virtual communication product Virtual unit in test ring border carries out destruction operation, wherein virtual unit includes at least virtual communication product and virtual test Terminal.
It should be noted that after test auto-destruct create virtual equipment, without having to worry about test assignment without Test resource is available, builds the high problem of testing efficiency caused by test environment so as to avoid craft in the prior art, Reduce the maintenance cost of test environment.
In addition it is also necessary to explanation, scheme provided herein be suitable for based on major virtual platform (XEN, VMWARE, KVM etc.) on virtual equipment (including but not limited to network traffic security equipment, network data forwarding device, network Flow management apparatus, such as virtual firewall, vADC).
From the foregoing, it will be observed that scheme provided herein takes full advantage of virtualization technology (grinds one using virtualization technology certainly Cover the function controls such as creation, power-up, the power-off of controllable virtual equipment), virtualization tool (such as hand over by OVS, vDS virtualization Change, use the functionality of vlan of interchanger realize freely, quickly networking), communication test technology is (real based on STAF frame end to end Now test formula tool encapsulation standardized test calling interface is externally provided), automatic test script layering realization technology, Yi Jiyi Set grinds matched automatization test system (comprising test environmental management, test assignment management, distributed testing execution etc.) certainly, real Show flexibility, the high efficiency for significantly promoting virtualization firewall automatic test, provides one completely virtually for user Chemoprevention wall with flues realizes the technical solution of full-automatic test.
Embodiment 3
According to embodiments of the present invention, a kind of test device embodiment of virtual communication product is additionally provided, wherein Fig. 6 is The schematic diagram of the test device of virtual communication product according to an embodiment of the present invention, as shown in fig. 6, the device includes: acquisition mould Block 601 and test module 603.
Wherein, module 601 is obtained, for obtaining the version information and test content of virtual communication product;Test module 603, for the test environment tested virtual communication product to be arranged according to version information and test content, and testing Virtual communication product is tested under environment.
Herein it should be noted that the step of above-mentioned acquisition module 601 and test module 603 correspond to above-described embodiment S502 to step S504, two modules are identical as example and application scenarios that corresponding step is realized, but are not limited to above-mentioned reality Apply a disclosure of that.
In an alternative embodiment, test environment is at least provided with virtual test terminal, wherein test module packet Include: first obtains module and first processing module.Wherein, first module is obtained, it is corresponding for obtaining virtual test terminal Default template;First processing module, for carrying out duplication operation to default template according to version information and test content, with reality Now to the setting of virtual test terminal.
In an alternative embodiment, the test device of virtual communication product further include: second obtains module, at second Manage module, the first test module and detection module.Wherein, second module is obtained, in obtaining based on the first preset interface The mailing address of portion's server and external server;Second processing module, for being based on the second preset interface to external server Mailing address configured, and configured, matched based on mailing address of first preset interface to internal server Set result;First test module is tested for carrying out spelling logical test according to interface of the configuration result to virtual test terminal As a result;Detection module, for determining whether the network configuration of virtual test terminal is completed according to test result.
In an alternative embodiment, the test device of virtual communication product further include: third processing module.Wherein, Third processing module, for detect complete to the test of virtual communication product in the case where, to setting in test environment Virtual unit carry out destruction operation, wherein virtual unit include at least virtual communication product and virtual test terminal.
Embodiment 4
According to another aspect of an embodiment of the present invention, a kind of storage medium is additionally provided, which includes storage Program, wherein equipment where control storage medium executes the test method of above-mentioned virtual communication product in program operation.
Embodiment 5
According to another aspect of an embodiment of the present invention, a kind of processor is additionally provided, which is used to run program, In, program executes the test method of above-mentioned virtual communication product when running.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, Ke Yiwei A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or Part steps.And storage medium above-mentioned includes: that USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. be various to can store program code Medium.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (13)

1. a kind of test platform of virtual communication product characterized by comprising
Test terminal, the version information and test content of virtual communication product for receiving input;
At least one virtual server is connect by test macro with the test terminal, for according to the version information with And the test content determines the test environment tested the virtual communication product, and to institute under the test environment Virtual communication product is stated to be tested.
2. test platform according to claim 1, which is characterized in that be provided at least one described virtual server logical Communication network, wherein the communication network includes at least: control network, internal communication network and test capaciated flow network.
3. test platform according to claim 2, which is characterized in that at least one described virtual server passes through the control Network processed is communicated with external server;At least one described virtual server passes through the internal communication network and internal clothes Business device is communicated;At least one described virtual server is by the test capaciated flow network to the virtual communication product and void Flow between quasi- test terminal is tested, wherein the virtual communication product and the virtual test terminal are arranged in institute It states at least one virtual server.
4. test platform according to claim 3, which is characterized in that the virtual communication product includes multiple first networks Interface, wherein the multiple first network interface at least includes: at least one management interface and multiple test interfaces;It is described extremely A few management interface is arranged in the internal communication network, passes through egress gateways and the control network and the outside Server is communicated;The multiple test interface is arranged in the test capaciated flow network.
5. test platform according to claim 3, which is characterized in that the virtual test terminal includes multiple second networks Interface, wherein the multiple second network interface includes at least: at least one management interface, multiple test interfaces and at least One communication interface;At least one described management interface is arranged in the internal communication network, passes through egress gateways and institute Control network is stated to be communicated with the external server;The multiple test interface is arranged in the test capaciated flow network; At least one described communication interface is arranged in the internal communication network, is communicated with the internal server, to realize Setting to the multiple second network interface.
6. test platform as claimed in any of claims 1 to 5, which is characterized in that the virtual communication product is extremely It less include virtual firewall.
7. a kind of test method of virtual communication product characterized by comprising
Obtain the version information and test content of virtual communication product;
According to the version information and the test content, the test environment tested the virtual communication product is set, And the virtual communication product is tested under the test environment.
8. the method according to the description of claim 7 is characterized in that the test environment is at least provided with virtual test terminal, Wherein, the test wrapper tested the virtual communication product is arranged according to the version information and the test content Border, comprising:
Obtain the corresponding default template of the virtual test terminal;
Duplication operation is carried out to the default template according to the version information and the test content, to realize to the void The setting of quasi- test terminal.
9. according to the method described in claim 8, it is characterized in that, realize to the setting of the virtual test terminal after, The method also includes:
The mailing address of internal server and external server is obtained based on the first preset interface;
It is configured based on mailing address of second preset interface to the external server, and presets and connect based on described first Mouth configures the mailing address of the internal server, obtains configuration result;
It carries out spelling logical test according to interface of the configuration result to the virtual test terminal, obtains test result;
Determine whether the network configuration of the virtual test terminal is completed according to the test result.
10. the method according to the description of claim 7 is characterized in that the virtual communication product under the test environment After being tested, the method also includes:
It is virtual in the test environment to being arranged in the case where detecting test of the completion to the virtual communication product Equipment carries out destruction operation, wherein the virtual unit includes at least the virtual communication product and the virtual test is whole End.
11. a kind of test device of virtual communication product characterized by comprising
Module is obtained, for obtaining the version information and test content of virtual communication product;
Test module, for being surveyed according to the version information and test content setting to the virtual communication product The test environment of examination, and the virtual communication product is tested under the test environment.
12. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein run in described program When control the storage medium where equipment perform claim require any one of 7 to 10 described in virtual communication product test Method.
13. a kind of processor, which is characterized in that the processor is for running program, wherein right of execution when described program is run Benefit require any one of 7 to 10 described in virtual communication product test method.
CN201910350713.3A 2019-04-28 2019-04-28 Test platform, test method and test device for virtual communication product Active CN110213121B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910350713.3A CN110213121B (en) 2019-04-28 2019-04-28 Test platform, test method and test device for virtual communication product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910350713.3A CN110213121B (en) 2019-04-28 2019-04-28 Test platform, test method and test device for virtual communication product

Publications (2)

Publication Number Publication Date
CN110213121A true CN110213121A (en) 2019-09-06
CN110213121B CN110213121B (en) 2023-05-19

Family

ID=67786577

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910350713.3A Active CN110213121B (en) 2019-04-28 2019-04-28 Test platform, test method and test device for virtual communication product

Country Status (1)

Country Link
CN (1) CN110213121B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111083011A (en) * 2019-12-18 2020-04-28 北京网太科技发展有限公司 Automatic testing method and device for routing security firewall and management platform
CN111130927A (en) * 2019-12-04 2020-05-08 中国电子科技集团公司第三十研究所 Method for automatically realizing service test of network layer communication terminal equipment
CN112181802A (en) * 2020-08-21 2021-01-05 长沙市到家悠享网络科技有限公司 Test method and device
CN112667498A (en) * 2020-12-22 2021-04-16 北京像素软件科技股份有限公司 Server building method and device, computer equipment and readable storage medium
CN112765007A (en) * 2019-10-21 2021-05-07 腾讯科技(深圳)有限公司 Integration test method, device and storage medium
CN114363226A (en) * 2021-12-27 2022-04-15 北京安博通科技股份有限公司 Automatic testing method and system based on equipment in virtual complex network scene
CN114430385A (en) * 2022-01-17 2022-05-03 锐捷网络股份有限公司 Network equipment detection method and device and electronic equipment
CN114827258A (en) * 2022-03-01 2022-07-29 网易(杭州)网络有限公司 Management control method and device of server and electronic equipment
WO2024109505A1 (en) * 2022-11-24 2024-05-30 吴伟 Method and system for applying cloud instrument

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789432A (en) * 2016-12-28 2017-05-31 中软信息系统工程有限公司 Test system based on autonomous controllable cloud platform technology
CN107943690A (en) * 2017-11-16 2018-04-20 郑州云海信息技术有限公司 A kind of platform and method for disposing compatibility test environment
CN107995064A (en) * 2017-12-14 2018-05-04 云南电网有限责任公司玉溪供电局 Test platform building method based on virtualization technology
CN108763090A (en) * 2018-05-31 2018-11-06 上海陆家嘴国际金融资产交易市场股份有限公司 Test environment dispositions method, device, computer equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789432A (en) * 2016-12-28 2017-05-31 中软信息系统工程有限公司 Test system based on autonomous controllable cloud platform technology
CN107943690A (en) * 2017-11-16 2018-04-20 郑州云海信息技术有限公司 A kind of platform and method for disposing compatibility test environment
CN107995064A (en) * 2017-12-14 2018-05-04 云南电网有限责任公司玉溪供电局 Test platform building method based on virtualization technology
CN108763090A (en) * 2018-05-31 2018-11-06 上海陆家嘴国际金融资产交易市场股份有限公司 Test environment dispositions method, device, computer equipment and storage medium

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112765007A (en) * 2019-10-21 2021-05-07 腾讯科技(深圳)有限公司 Integration test method, device and storage medium
CN111130927A (en) * 2019-12-04 2020-05-08 中国电子科技集团公司第三十研究所 Method for automatically realizing service test of network layer communication terminal equipment
CN111130927B (en) * 2019-12-04 2021-12-17 中国电子科技集团公司第三十研究所 Method for automatically realizing service test of network layer communication terminal equipment
CN111083011A (en) * 2019-12-18 2020-04-28 北京网太科技发展有限公司 Automatic testing method and device for routing security firewall and management platform
CN112181802A (en) * 2020-08-21 2021-01-05 长沙市到家悠享网络科技有限公司 Test method and device
CN112667498A (en) * 2020-12-22 2021-04-16 北京像素软件科技股份有限公司 Server building method and device, computer equipment and readable storage medium
CN114363226A (en) * 2021-12-27 2022-04-15 北京安博通科技股份有限公司 Automatic testing method and system based on equipment in virtual complex network scene
CN114363226B (en) * 2021-12-27 2024-03-01 北京安博通科技股份有限公司 Automatic testing method and system for equipment in complex network scene based on virtualization
CN114430385A (en) * 2022-01-17 2022-05-03 锐捷网络股份有限公司 Network equipment detection method and device and electronic equipment
CN114827258A (en) * 2022-03-01 2022-07-29 网易(杭州)网络有限公司 Management control method and device of server and electronic equipment
CN114827258B (en) * 2022-03-01 2024-03-22 网易(杭州)网络有限公司 Management control method and device of server and electronic equipment
WO2024109505A1 (en) * 2022-11-24 2024-05-30 吴伟 Method and system for applying cloud instrument

Also Published As

Publication number Publication date
CN110213121B (en) 2023-05-19

Similar Documents

Publication Publication Date Title
CN110213121A (en) Test platform, test method and the test device of virtual communication product
CN114208124B (en) System and method for selectively implementing services on virtual machines and containers
US11611487B2 (en) Model driven process for automated deployment of domain 2.0 virtualized services and applications on cloud infrastructure
CN108696458B (en) Network switch system including logical switches
EP3163797B1 (en) Service orchestration method and apparatus in software-defined networking, and storage medium
CN109194502B (en) Management method of multi-tenant container cloud computing system
CN106685787B (en) PowerVM (virtual machine) virtualized network management method and device based on OpenStack
CN103747107B (en) A kind of compatible cloud operating platform and its implementation
CA2456952A1 (en) Virtual network topology generation
CN112671578B (en) SRIOV virtual network configuration method and related device
CN106060122A (en) Docker container uploading/downloading feature control method and device
EP3488583B1 (en) System and method for transport-layer level identification and isolation of container traffic
CN107734065A (en) A kind of Internet of Things IaaS service implementing methods based on container
US20230100276A1 (en) Runtime customization for network function deployment
CN115185647B (en) virtio equipment direct connection method and related device
CN104506403B (en) A kind of virtual network management method for supporting multi-stage isolation
Bemby et al. ViNO: SDN overlay to allow seamless migration across heterogeneous infrastructure
CN111800523B (en) Management method, data processing method and system of virtual machine network
CN110247820A (en) Automated testing method and device based on cloud computing open network operating system
Miyachi et al. Automatic configuration and execution of internet experiments on an actual node-based testbed
Zaballa et al. Automation of modular and programmable control and data plane SDN networks
CN109379239A (en) The method and device of access switch is configured in a kind of OpenStack environment
CN114124714A (en) Multi-level network deployment method, device, equipment and storage medium
CN108234174A (en) The management method and device of virtual network function
CN109660575B (en) Method and device for realizing NFV service deployment

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