CN109783392A - Cloud net fusion architecture system detection method and device - Google Patents

Cloud net fusion architecture system detection method and device Download PDF

Info

Publication number
CN109783392A
CN109783392A CN201910082121.8A CN201910082121A CN109783392A CN 109783392 A CN109783392 A CN 109783392A CN 201910082121 A CN201910082121 A CN 201910082121A CN 109783392 A CN109783392 A CN 109783392A
Authority
CN
China
Prior art keywords
test
architecture system
fusion architecture
cloud
test case
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.)
Pending
Application number
CN201910082121.8A
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.)
New H3C Cloud Technologies Co Ltd
Original Assignee
New H3C Cloud Technologies 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 New H3C Cloud Technologies Co Ltd filed Critical New H3C Cloud Technologies Co Ltd
Priority to CN201910082121.8A priority Critical patent/CN109783392A/en
Publication of CN109783392A publication Critical patent/CN109783392A/en
Pending legal-status Critical Current

Links

Abstract

The present invention provides a kind of cloud net fusion architecture system detection method and device, will programmed test case storage in advance into server;When testing, from obtained in server this in advance programmed test case in cloud net fusion architecture system software platform and/or hardware device test;The implementing result that software platform and/or hardware device in cloud net fusion architecture system are tested is obtained, and obtains the test result tested the cloud net fusion architecture system according to implementing result.It is realized in above process by interacting between server and cloud net fusion architecture system to the automatic test of cloud net fusion architecture system, improves the efficiency of test;Test case can be good according to the preparatory layout of test experience of tester, tests according to preparatory programmed test case cloud net fusion architecture system, to realize the test to each performance of cloud net fusion architecture system.

Description

Cloud net fusion architecture system detection method and device
Technical field
This application involves field of cloud computer technology, in particular to a kind of cloud net fusion architecture system detection method and Device.
Background technique
Cloud refers to that enterprise, by the infrastructure of enterprise, management and service deployment to cloud, utilizes net by network in enterprise Network easily obtains the services such as calculating, storage, software and the data of cloud service provider offer, so as to improve Allocation Efficiency, drop Low informatization cost.
With the fast development of cloud computing technology, cloud has become the new trend of industry development in enterprise, and cloud computing is It is widely used in the industries such as government, finance, industry, traffic, logistics, medical treatment & health, from cloud in the enterprise that current industry provides From the point of view of case, have become the main trend of industry using cloud in cloud net fusion architecture system realization enterprise.Wherein, cloud net merges Structure system refers in conjunction with SDN (Software Defined Network, software defined network) technology and Overlay network pair Logical network and physical network decoupling, realize the structure system of network function virtualization and network-control centralization, specifically, solution Coupling process is exactly to pass through SDN software to carry out layout configuration in Virtual Network Software level, cumbersome without carrying out to bottom Physical configuration.
However, the structure of current cloud net fusion architecture system is more complicated, in the Yun Wangrong provided cloud computing manufacturer Structure system is closed when being tested, it is inefficient and do not know how performance the problems such as tests to face test automation.
Summary of the invention
Embodiments herein describes a kind of cloud net fusion architecture system detection method and device, for improving to Yun Wangrong Close testing efficiency and the performance test of structure system.
In a first aspect, the embodiment of the present application provides a kind of cloud net fusion architecture system detection method, it is applied to server, institute The method of stating includes:
Using layout preparatory in the server test case in cloud net fusion architecture system software platform and/or Hardware device is tested;
The software platform and/or hardware device obtained in the cloud net fusion architecture system is carried out using the test case The implementing result of test;
The implementing result is analyzed, the test result of cloud net fusion architecture system is obtained.
Optionally, in the embodiment of the present application, the test case using layout preparatory in the server is to cloud net The step of software platform and/or hardware device in fusion architecture system are tested, comprising:
Obtain the test case of preparatory layout in the server;
Required keyword method is loaded in the test case;
The testing tool load of the software platform in the cloud net fusion architecture system and/or hardware device will be used to test To in the test case, the testing tool includes the tool that automatic test is carried out to cloud net fusion architecture system;
Using load keyword method and testing tool after Test cases technology test packet and/or test command, The test packet of generation and/or test command are sent to the software platform and/or hardware in the cloud net fusion architecture system Equipment, in the cloud net fusion architecture system software platform and/or hardware device test.
Optionally, in the embodiment of the present application, the hardware device includes interchanger, and the software platform includes that software is fixed Adopted network SDN controller, cloud management platform and calculating virtual management platform, it is described to obtain in the cloud net fusion architecture system Software platform and/or hardware device tested using the test case implementing result the step of, comprising:
It is remote by transmission control protocol TCP when test object is the hardware device in the cloud net fusion architecture system Journey order obtains implementing result from corresponding hardware device;And
Test object be the cloud net fusion architecture system in software platform when, by with the cloud net fusion architecture The hypertext transfer protocol http communication interface of system communication obtains implementing result from corresponding software platform.
Optionally, the implementing result to the cloud net fusion architecture system is analyzed, and obtains the cloud net fusion The step of test result of architecture system, comprising:
From preconfigured test case weight table, the weighted value of the test case is searched;
The cloud net fusion is calculated according to the weighted value of the implementing result of the test case and the test case The test result of architecture system.
Optionally, in the embodiment of the present application, the method also includes:
Weighted value is configured in the test case weight table for test case;And
Keyword method is configured, and keyword method is packaged, so that the test case calls the keyword Method.
Second aspect, the embodiment of the present application also provide a kind of cloud net fusion architecture opening machine system test device, are applied to server, Described device includes:
Test module, for the test case using layout in advance in the server in cloud net fusion architecture system Software platform and/or hardware device are tested;
Module is obtained, for obtaining software platform in the cloud net fusion architecture system and/or hardware device using institute State the implementing result that test case is tested;
Analysis module obtains the test result of cloud net fusion architecture system for analyzing the implementing result.
Optionally, in the embodiment of the present application, the test module is specifically used for:
Obtain the test case of preparatory layout in the server;
Required keyword method is loaded in the test case;
The testing tool load of the software platform in the cloud net fusion architecture system and/or hardware device will be used to test To in the test case, the testing tool includes the tool that automatic test is carried out to cloud net fusion architecture system;
Using load keyword method and testing tool after Test cases technology test packet and/or test command, The test packet of generation and/or test command are sent to the software platform and/or hardware in the cloud net fusion architecture system Equipment, in the cloud net fusion architecture system software platform and/or hardware device test.
Optionally, in the embodiment of the present application, the hardware device includes interchanger, and the software platform includes that software is fixed Adopted network SDN controller, cloud management platform and calculating virtual management platform, the acquisition module are specifically used for:
It is remote by transmission control protocol TCP when test object is the hardware device in the cloud net fusion architecture system Journey order obtains implementing result from corresponding hardware device;And
Test object be the cloud net fusion architecture system in software platform when, by with the cloud net fusion architecture The hypertext transfer protocol http communication interface of system communication obtains implementing result from corresponding software platform.
Optionally, in the embodiment of the present application, the analysis module is specifically used for:
From preconfigured test case weight table, the weighted value of the test case is searched;
The cloud net fusion is calculated according to the weighted value of the implementing result of the test case and the test case The test result of architecture system.
Optionally, in the embodiment of the present application, described device further include:
Configuration module, for configuring weighted value in the test case weight table for test case;And
Keyword method is configured, and keyword method is packaged, so that the test case loads the keyword Method.
The third aspect, embodiments herein also provide a kind of server, and the server includes processor and is stored with The nonvolatile memory of several computer instructions, when the computer instruction is executed by the processor, the server is held Cloud net fusion architecture system detection method described in row first aspect.
Fourth aspect, embodiments herein also provide a kind of readable storage medium storing program for executing, and the readable storage medium storing program for executing includes meter Calculation machine program, server executes described in first aspect the computer program controls the readable storage medium storing program for executing when running where Cloud net fusion architecture system detection method.
In terms of existing technologies, the application has the advantages that
The embodiment of the present application provides cloud net fusion architecture system detection method and device, will preparatory programmed test case It stores in server;When testing, the preparatory programmed test case is obtained from server to cloud net fusion cage Software platform and/or hardware device in construction system are tested;Obtain cloud net fusion architecture system in software platform and/or The implementing result that hardware device is tested, and the survey tested the cloud net fusion architecture system is obtained according to implementing result Test result.In above process by interacting realization to cloud net fusion architecture system between server and cloud net fusion architecture system The automatic test of system improves the efficiency of test;Test case can be good according to the preparatory layout of test experience of tester, presses Cloud net fusion architecture system is tested according to preparatory programmed test case, to realize to each of cloud net fusion architecture system The test of a performance.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the test structure schematic diagram provided by the embodiments of the present application tested cloud net fusion architecture system;
Fig. 2 is the structural schematic diagram of cloud net fusion architecture system provided by the embodiments of the present application;
Fig. 3 is the structural block diagram of server in Fig. 1;
Fig. 4 is a kind of configuration diagram of Fig. 3 medium cloud net fusion architecture opening machine system test device deployment on the server;
Fig. 5 is the step flow chart of net fusion architecture system detection method provided by the embodiments of the present application;
Fig. 6 is the sub-step flow diagram of step S310 in Fig. 5;
Fig. 7 is the timing diagram provided by the embodiments of the present application when being tested using test case one;
Fig. 8 is the timing diagram provided by the embodiments of the present application when being tested using test case two;
Fig. 9 is the timing diagram provided by the embodiments of the present application when being tested using test case three;
Figure 10 is a kind of functional block diagram of cloud net fusion architecture opening machine system test device provided by the embodiments of the present application;
Figure 11 is another functional block diagram of cloud net fusion architecture opening machine system test device provided by the embodiments of the present application.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is Some embodiments of the present application, instead of all the embodiments.The application being usually described and illustrated herein in the accompanying drawings is implemented The component of example can be arranged and be designed with a variety of different configurations.
Therefore, the detailed description of the embodiments herein provided in the accompanying drawings is not intended to limit below claimed Scope of the present application, but be merely representative of the selected embodiment of the application.Based on the embodiment in the application, this field is common Technical staff's every other embodiment obtained without creative efforts belongs to the model of the application protection It encloses.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.
In the description of the present application, it is also necessary to which explanation is unless specifically defined or limited otherwise, term " setting ", " installation ", " connected ", " connection " shall be understood in a broad sense, for example, it may be fixedly connected, may be a detachable connection or one Connect to body;It can be mechanical connection, be also possible to be electrically connected;It can be directly connected, it can also be indirect by intermediary It is connected, can be the connection inside two elements.For the ordinary skill in the art, on being understood with concrete condition State the concrete meaning of term in this application.
In order to solve the technical issues of background technique refers to, the prior art provides following solution.
Scheme one provides the service tested cloud net fusion architecture system, generally, third by third party provider Square provider tests cloud net fusion architecture system by way of deployment hardware or software server.
Scheme two calls the application programming interface of cloud management platform by using cloud platform test macro (Application Programming Interface, API) realizes the atomicity feature operation to cloud management platform, wherein Atom sexual function may include increasing to data, the functions such as delete, changes, looking into.
Above two scheme has the following defects.Scheme one, can be only done SaaS (Software-as-a-Service, Software is to service) change the test of application layer, can not hardware device to cloud net fusion architecture system (for example, interchanger, virtual machine Or cloud host) tested, and then frame system can not be merged to entire cloud net and make comprehensive test assessment.Scheme two, cloud The complexity of net fusion architecture system is very high, and there are many component part for including from top to bottom, only carries out atom to cloud management platform There are great limitations for sexual function test, and frame system can not be merged to entire cloud net and makes comprehensive test assessment.
It should be noted that defect present in the above scheme in the prior art, is inventor by practicing simultaneously It is being obtained after carefully studying as a result, therefore, the discovery procedure of the above problem and hereinafter the embodiment of the present application are asked for above-mentioned Itd is proposed solution is inscribed, all should be the contribution that inventor makes the application during the application.
In order to solve above-mentioned at least one technical problem in the prior art, the embodiment of the present application provides a kind of cloud net and melts Architecture system test method and device are closed, programmed test case will be stored in advance into server;When testing, from The preparatory programmed test case is obtained in server to the software platform and/or hardware device in cloud net fusion architecture system It is tested;Obtain the implementing result that software platform and/or hardware device in cloud net fusion architecture system are tested, and root The test result tested the cloud net fusion architecture system is obtained according to implementing result.In above process by server with Interaction between cloud net fusion architecture system is realized to the automatic test of cloud net fusion architecture system, and the efficiency of test is improved; Test case can be good according to the preparatory layout of test experience of tester, according to preparatory programmed test case to Yun Wangrong The software platform and/or hardware device for closing architecture system are tested, to realize each performance to cloud net fusion architecture system Test.
Fig. 1 is please referred to, Fig. 1 provides the test structure schematic diagram tested cloud net fusion architecture system for the application, The test structure includes server 10 and cloud net fusion architecture system 20.Specifically, the structure of cloud net fusion architecture system 20 can With referring to fig. 2, cloud net fusion architecture system 20 may include cloud management platform 21, SDN controller 22, to calculate virtual management flat Platform 23, interchanger 24 and the other equipment 25 connecting with interchanger 24 etc., other equipment 25 may be used to provide virtualization services, Virtualization services include calculating virtualization services, safety virtualization service etc..Wherein, cloud management platform 21,22 and of SDN controller Calculating virtual management platform 23 is software platform, and interchanger 24 is hardware device.
Cloud management platform 21 is based on distributed computing framework and open interface, realizes calculating, storage, network security, void The United Dispatching and management of quasi- resource pool and PAAS (Platform-as-a-Service, platform are to service) platform, to be deployed in All kinds of operation systems in cloud platform provide running environment.SDN controller 22 sets for realizing the network switching equipment, network routing The functions such as standby, Network Security Device network dynamic configuration and management, can be according to management granularity to the net in network area Network equipment is physically or logically isolated, and SDN/NFV (Network Function Virtualization, net may be implemented Network virtualization of function) Dynamical Deployment and to application the network architecture adjustment.It is responsible hard to bottom to calculate virtual management platform 23 Part resource is virtualized, and is shielded to bottom hardware failure;It functionally supports computing resource pool, and may be implemented not Resource isolation between congenerous unit.Interchanger 24 is generally the interchanger of three-tier switch or three layers or more, in this Shen Please be in embodiment, interchanger 24 may include Spine interchanger and Leaf interchanger, and Spine interchanger and Leaf interchanger can To form leaf ridge topology network architecture, for realizing the management net interconnecting of 24 side of interchanger.
Server 10 is respectively at cloud management platform 21, SDN controller 22, calculating virtual management platform 23 and interchanger 24 Communication connection, wherein server 10 can be logical with cloud management platform 21, SDN controller 22 and calculating virtual management platform 23 Api interface communication connection is crossed, server 10 can be by communication protocol (for example, in TCP/IP protocol suite with interchanger 24 Telnet agreement) communication connection.
Referring to figure 3., Fig. 3 is a kind of structural block diagram of server 10 provided by the embodiments of the present application.The server 10 Including cloud net fusion architecture opening machine system test device 110, memory 101, processor 102 and communication unit 103.
Each element of the memory 101, processor 102 and communication unit 103 is directly or indirectly electrical between each other Connection, to realize the transmission or interaction of data.For example, these elements can pass through one or more communication bus or letter between each other Number line, which is realized, to be electrically connected.
Wherein, the memory 101 may be, but not limited to, random access memory (Random Access Memory, RAM), read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..Wherein, memory 101 is for storing program, the processor 102 after receiving and executing instruction, Execute described program.The communication unit 103 is used to establish the server 10 and other equipment by network, and (for example cloud net melts Close architecture system 20) between communication connection, and for being sended and received by network progress data.
Cloud net fusion architecture opening machine system test device 110 includes at least one can be in the form of software or firmware (firmware) It is stored in the memory 101 or is solidificated in the operating system (Operating System, OS) of the server 10 Software function module.The processor 102 is used to execute the executable module stored in the memory 101, such as cloud net melts Close software function module and computer program etc. included by architecture system test device 110.In the embodiment of the present application, the cloud Net fusion architecture opening machine system test device 110 is that cloud net fusion architecture system 20 provides cloud testing service, specific cloud net fusion Architecture system test method for cleaning is described in detail subsequent.
It should be understood that structure shown in Fig. 3 is only to illustrate, the server 10 may also include more than as shown in the figure Perhaps less component or with the configuration different from shown in Fig. 3.Each component shown in Fig. 3 can use hardware, software Or combinations thereof realize.
Referring to figure 4., Fig. 4 is that the application implements the cloud net fusion architecture system testing being deployed on server 10 provided A kind of architecture diagram of device 110.Cloud net fusion architecture opening machine system test device 110 architecturally includes test front end 111 and test Rear end 112, wherein test front end 111 is for calculating and opening up according to the implementing result of test case and the importance of test case Show the test result of cloud net fusion architecture system.Test rear end 112 is for handling test case and realizing and cloud net fusion cage Data interaction between construction system.
Test rear end 112 architecturally includes: test case semantic layer 1121, test cradle 1122, cloud adaptation layer Test library 1123, testing tool 1124 and interface layer 1125.
Test case semantic layer 1121 for realizing the displaying test case under cloud net fusion system simulation.Specifically Ground, test case semantic layer 1121 are broadly divided into parameter configuration files, common test scene collection and test case.Wherein, parameter Configuration file is used to define correlated variables and corresponding value in each test case.Common test scene collection includes a large amount of realization phases The keyword method of test subfunction is closed, common test scene collection is the answering according to keyword method of test case semantic layer 1121 It is formed with the keyword method for reaching certain number by numerous reusabilities that rate is extracted, includes in the test case of exploitation When the subfunction that common test scene concentrates keyword method to realize, these keyword methods only need to be called, do not need weight Relevant subfunction program code is developed again.Test case includes test data, expected result and at least one keyword, each Include expected result that is complete and striving in test case.
In the embodiment of the present application, test cradle 1122 can be the Yun Wangding based on robotframework frame Inhibition and generation model, Python environmental variance is introduced in test cradle 1122 can make multiple testers' cooperations complete test Use-case development.In addition, test cradle 1122 is mainly used for the keyword method in cloud adaptation layer test library 1123 It is packaged.Test case semantic layer 1121 can call the keyword method of encapsulation, and according to keyword method and test language Adopted layout constitutes test case.
Cloud adaptation layer test library 1123 mainly realizes the software merged in construction system with cloud net by testing tool 1124 Information exchange between platform and/or hardware device.For carrying out information exchange with software platform, cloud adaptation layer test library 1123 contents interacted with software platform include sending HTTP request to software platform and receiving the return value of software platform.Specifically Ground, for logging in cloud management platform 21, HTTP request utilizes URI (Uniform Resource Identifier, same money Source identifier), user name and the available HTTP request head of cipher constructions, by HTTP request head, HTTP request method, interface, super When the relevant informations such as time or reconnection time cloud management platform 21 is sent to by test packet.
Testing tool 1124 is mainly the connection protocol of assisted automated test or (for example carries out for being tested for the property Web page test).The software platform in construction system, which is merged, with cloud net in cloud adaptation layer test library 1123 carries out information exchange When, testing tool 1124 can realize interaction between the two using hypertext transfer protocol.In cloud adaptation layer test library 1123 When merging the progress information exchange of the hardware device in construction system with cloud net, testing tool 1124 can be realized with transmission control protocol Interaction between the two.
Interface layer 1125 includes the api interface or executable CLI that server 10 is interacted with cloud net fusion architecture system 20 (Command-line interface Command Line Interface) order, interface layer 1125 are used for the soft of cloud net fusion architecture system 20 Part platform and/or hardware device send HTTP request and/or CLI command, and the software for receiving cloud net fusion architecture system 20 is flat The implementing result of platform and/or hardware device.
Referring to figure 5., Fig. 5 is the cloud net fusion cage provided by the embodiments of the present application applied to server 10 in Fig. 1 and Fig. 3 The flow chart of construction system test method.Below with reference to Fig. 4 framework to the method includes each step explained in detail It states.
Step S310, using the test case of layout preparatory in server to software platform in cloud net fusion architecture system And/or hardware device is tested.
Programmed test case is stored in advance in server 10, test case can be pressed according to the experience of tester Layout is carried out according to the test sequencing of test item, specifically, programmed test case can be stored into list, be led to It crosses access list and obtains programmed test case.In the embodiment of the present application, in order to the progress of cloud net fusion architecture system 20 The test case of more comprehensive test, preparatory layout can be by software platform in cloud net fusion architecture system 20 and/or firmly The major function of part equipment carries out multiple test cases composition of functional test.
Server 10 can independently trigger the instruction tested cloud net fusion architecture system 20, specifically, Ke Yitong Cross the triggering test instruction of setting signal clock;Certain server 10 can also be according to the test received control command in front end 111 touching The test for testing cloud net fusion architecture system 20 is sent out to instruct.
Fig. 6 is please referred to, in the embodiment of the present application, step S310 may include following sub-step.
Sub-step S311 obtains the test case of layout in advance in server.
Server 10 obtains the test case of preparatory layout, wherein each after triggering test instruction from server 10 Test case includes at least one keyword, and keyword can be the test program for realizing a certain test subfunction in test case Title.
Sub-step S312 loads required keyword method in test case.
Keyword method refers to the specific procedure code realized and test subfunction in test case.In the embodiment of the present application In, keyword is loaded by the common test scene collection of test case semantic layer 1121 according to the keyword in test case and is corresponded to Keyword method, the keyword method include realize test case subfunction specific procedure code.
For example, may include in test case when test case is used to test the user account information of cloud management platform 21 The keyword OpenBrowser at interface and the keyword Do Login of login interface are opened, in specific implementation, if keyword OpenBrowser and Do Login has corresponding keyword method common test scene is centrally stored, can be according to keyword OpenBrowser is from common test scene concentrated loading keyword method Open Browser (), wherein Open Browser () includes realizing the specific procedure code for opening interface;It similarly, can be according to keyword Do Login from common test scene collection Middle load keyword method Do Login (), wherein Do Login () includes the specific procedure code realizing interface and logging in.
In the embodiment of the present application, comprising complete and correct expected result judgement in every test case, generally with Boolean indicates test case success or failure.Or it is used to test the user account letter of cloud management platform 21 with test case For breath, in test case, test data is user account and login password, and expected result is to login successfully, wherein using The expression of Boolean 1 logins successfully, and Boolean 0 indicates login failure.
Step S313 will be used for the testing tool of the software platform in Test Network fusion architecture system and/or hardware device It is loaded onto test case.
Step S314, using load keyword method and testing tool after Test cases technology test packet and/or Test command, by the test packet of generation and/or test command be sent to software platform in cloud net fusion architecture system and/or Hardware device, in cloud net fusion architecture system software platform and/or hardware device test.
Cloud adaptation layer test library 1123 is merged in construction system 20 by interface layer 1125 with net according to testing tool 1124 Software platform and/or hardware device between information exchange.Specifically, or to test the user account of cloud management platform 21 For the test case of information, open login interface when, cloud adaptation layer test library 1123 is used by testing tool 1124 Hypertext transfer protocol sends test packet to cloud management platform 21, and wherein the content of test packet is keyword method Open Program code in Browser (), the program code may include that cloud adaptation layer test library 1123 and cloud management platform 21 carry out Interactive HTTP request.Similarly, in login interface, cloud adaptation layer test library 1123 uses hypertext by testing tool 1124 Transport protocol sends test packet to cloud management platform 21, and wherein the content of test packet is keyword method Do Login () In program code, the HTTP which may include cloud adaptation layer test library 1123 and cloud management platform 21 interacts Request.In test case for when testing hardware device, the difference is that, cloud adaptation layer to be tested with above-mentioned test software platform Library 1123 sends test command (for example, CLI command) to hardware device using transmission control protocol by testing tool 1124.
Step S320, obtain cloud net fusion architecture system in software platform and/or hardware device using test case into The implementing result of row test.
In the embodiment of the present application, cloud adaptation layer test library 1123 obtains the execution knot of test case by interface layer 1125 Fruit, when test object is that cloud net merges the hardware device in frame system, cloud adaptation layer test library 1123 passes through transmission control Agreement TCP remote command obtains implementing result from corresponding hardware device.
When test object is the software platform in cloud net fusion architecture system, cloud adaptation layer test library 1123 passes through interface The http communication interface of layer 1125 obtains implementing result from corresponding software platform.
The implementing result of test can indicate that specifically, test cradle 1122 can be according to execution by Boolean As a result the Boolean in judges whether test case passes through, and in Boolean 1, discriminating test use-case is by test, in Boolean 0 When discriminating test use-case do not pass through test.Meanwhile test cradle 1122 can also trigger the test report for generating test case It accuses.
Step S330, analyzes implementing result, obtains the test result of cloud net fusion architecture system.
Firstly, searching the weighted value of test case from preconfigured test case weight table.
Then, cloud net fusion architecture system is calculated according to the weighted value of the implementing result of test case and test case Test result.
In the embodiment of the present application, test result can be testing evaluation, and specifically, test front end 111 is compiled according to test Test case that frame 1122 obtains is arranged by situation, according to the test case ID of each test case from test case weight table In, obtain the weighted value of each test case.Then situation and the power of each test case are passed through according to each test case The testing evaluation of cloud net fusion architecture system is calculated in weight values, and testing evaluation is shown.Calculating testing evaluation In the process, testing evaluation can be handled so that testing evaluation when all test cases pass through is a preset fraction (such as 100 points).
In the embodiment of the present application, test result can also be it is excellent, good, in, difference is such tests grade.Specifically, false If the scoring that test case all passes through is 100 points, it is greater than 90 points in testing evaluation and is less than or equal to 100 timesharing, test result is It is excellent;It is greater than 80 points in testing evaluation and is less than or equal to 90 timesharing, test result is good;It is greater than 60 points in testing evaluation and is less than or equal to 80 Timesharing, during test result is;In testing evaluation less than 60 timesharing, test result is poor.It is understood that above-mentioned is only to illustrate The example that test result can be divided according to grade can also use different testing evaluation ranges in the embodiment of the present application Determine test grade.
In the embodiment of the present application, cloud net fusion architecture system detection method can also include:
Weighted value is configured for test case in test case weight table,
And configuration keyword method, and keyword method is packaged, so that test case calls keyword method.
In the embodiment of the present application, can by test cradle 1122 in advance by the high keyword method of reusability into Row encapsulation, to call directly the keyword method of encapsulation when subsequent development test case by test case semantic layer 1121.
Specifically, scheme provided by the embodiments of the present application is further introduced below with reference to specific test case.
Fig. 7 is please referred to, Fig. 7 is shown as logging in the test case of cloud management platform 21.
Firstly, opening cloud management platform 21 by browser;
Then, after cloud management platform is opened, login account and password are filled in;
Finally, triggering log-in events log in cloud management platform after filling in login account and password, returns and whether successfully step on Record the result of cloud management platform.
Specifically, test semanteme can be such that
Open Browserhttp://192.168.247.157/chrome;
Input Textid=usernameadmin;
Input Password id=passwordcloudos;
Click Button id=loginCmd.
It may include keyword Open Browser, Input Text, Input Password in above-mentioned test case And Click Button.
Fig. 8 is please referred to, Fig. 8 is shown as the test case of creation cloud host.
Firstly, the interface for calling cloud management platform 21 to create cloud host creates cloud host, after the creation for completing cloud host, The ID of cloud host is obtained by cloud management platform 21;
Then, cloud management platform 21 is searched in SDN controller 22 by the ID of cloud host, SDN controller 22 whether Cloud host corresponding with the ID is created in lower hardware equipment, returns again to creation successfully test if finding and creating cloud host As a result.
Specifically, test semanteme can be such that
@{create_vRouter_res}Call Method${cloud_obj}createvRouter
${router_test}&{project_2}[user]&{project_2}[passwd]
Should Be True@{create_vRouter_res}[0]
${vRouter_id_t}Set Variable@{create_vRouter_res}[1]
@{check_vRouter_SDN_res}Call Method${CVM_obj}checkSDNServer
${vRouter_id_t}
Should Be True@{check_vRouter_SDN_res}[0]
It may include keyword createvRouter, Should Be True, Set in above-mentioned test case Variable and checkSDNServer.
Fig. 9 is please referred to, Fig. 9 is shown as the test case of network address overlapping.
Firstly, call cloud management platform 21 creation interface create virtual machine VM1 of the different tenants under phase same network segment with VM2;
Then, the ID of cloud host where obtaining the virtual machine VM1 and VM2 of creation;
Then, whether online in calculating virtual management platform 23 by the ID verifying virtual machines of cloud host;
Followed by, log on on corresponding cloud host equipment detect two cloud hosts whether can access outer net;
Finally, the test result whether two cloud hosts can access outer net is fed back to server 10, with ensure to create Virtual machine is available.
The test case distributes identical subnet network segment by two tenant networks of creation, verifies two tenant networks Respective business whether conflict.Specific test with above-mentioned two test case is semantic similar, which also includes more A keyword, the specific test for just no longer enumerating this test case herein are semantic.
In the embodiment of the present application, server 10 can also directly in cloud net fusion architecture system 20 software platform or Hardware device is directly interactive, and tests these software platforms or hardware device.
It is realized in above process by the interaction between server 10 and cloud net fusion architecture system 20 and cloud net is merged The automatic test of architecture system 20 improves the efficiency of test;Test case can be preparatory according to the test experience of tester Layout is good, tests according to preparatory programmed test case cloud net fusion architecture system, to realize to cloud net fusion cage The performance test of software platform and/or hardware device in construction system 20.Keyword method is packaged, test case is being carried out When exploitation, it need to be only multiplexed the keyword method of encapsulation, do not need the corresponding function code of overlapping development, reduce developer Workload.
Figure 10 is please referred to, the embodiment of the present application also provides a kind of function knot of cloud net fusion architecture opening machine system test device 110 The concrete function of structure block diagram, each functional module of cloud net fusion architecture opening machine system test device 110 has been described above method and step Middle introduction simply introduces each functional module of cloud net fusion architecture opening machine system test device 110 now.
Cloud net fusion architecture opening machine system test device 110 includes:
Test module 1101, for the test case using layout in advance in server 10 to cloud net fusion architecture system 20 In software platform and/or hardware device tested.
Specifically, in the embodiment of the present application, test module 1101 can be specifically used for:
Obtain the test case of layout in advance in server;
Required keyword method is loaded in test case;
The testing tool of the software platform for being used to test in cloud net fusion architecture system 20 and/or hardware device is loaded onto In test case, testing tool includes the tool that automatic test is carried out to cloud net fusion architecture system 20;
Using load keyword method and testing tool after Test cases technology test packet and/or test command, Software platform and/or hardware that the test packet of generation and/or test command are sent in cloud net fusion architecture system 20 are set It is standby, in cloud net fusion architecture system 20 software platform and/or hardware device test.
Module 1102 is obtained, for obtaining software platform and/or hardware device use in cloud net fusion architecture system 20 The implementing result that test case is tested.
Cloud net fusion architecture system 20 includes hardware device and software platform, and hardware device includes interchanger, software platform Including software defined network SDN controller, cloud management platform and virtual management platform is calculated, module 1102 is obtained and specifically uses In:
It is long-range by transmission control protocol TCP when test object is the hardware device in cloud net fusion architecture system 20 Order obtains implementing result from corresponding hardware device;And
When test object is the software platform in cloud net fusion architecture system 20, by logical with cloud net fusion architecture system The hypertext transfer protocol http communication interface of letter obtains implementing result from corresponding software platform.
Analysis module 1103 obtains the test result of cloud net fusion architecture system for analyzing implementing result.
Specifically, analysis module 1103 is specifically used for:
From preconfigured test case weight table, the weighted value of test case is searched;
The survey of cloud net fusion architecture system is calculated according to the weighted value of the implementing result of test case and test case Examination scoring, as the test result.
Figure 11 is please referred to, cloud net fusion architecture opening machine system test device 110 can also include:
Configuration module 1104, for configuring weighted value in test case weight table for test case;And
Keyword method is configured, and keyword method is packaged, so that test case loads keyword method.
It, can be with if above-mentioned function is realized and when sold or used as an independent product in the form of software function module It is stored in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are with so that corresponding equipment executes each reality of the application Apply all or part of the steps of the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (English Text: Read-Only Memory, referred to as: ROM), random access memory (English: Random Access Memory, referred to as: RAM), the various media that can store program code such as magnetic or disk.
In conclusion the application implements the cloud net fusion architecture system detection method and device provided, preparatory layout is good Test case store into server;When testing, the programmed test case pair in advance is obtained from server Software platform and/or hardware device in cloud net fusion architecture system are tested;It obtains soft in cloud net fusion architecture system The implementing result that part platform and/or hardware device are tested, and obtained according to implementing result to the cloud net fusion architecture system The test result tested.In above process by interacting realization to cloud between server and cloud net fusion architecture system The automatic test of net fusion architecture system, improves the efficiency of test;Test case can be according to the test experience of tester Preparatory layout is good, according to preparatory programmed test case to the software platform and/or hardware device of cloud net fusion architecture system It is tested, to realize the test to each performance of cloud net fusion architecture system.Keyword method is packaged, is being carried out When test case is developed, it need to be only multiplexed the keyword method of encapsulation, do not need the corresponding function code of overlapping development, reduced The workload of developer.
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any Those familiar with the art within the technical scope of the present application, can easily think of the change or the replacement, and should all contain Lid is within the scope of protection of this application.Therefore, the protection scope of the application shall be subject to the protection scope of the claim.

Claims (10)

1. a kind of cloud net fusion architecture system detection method, which is characterized in that be applied to server, which comprises
Using the test case of layout preparatory in the server to the software platform and/or hardware in cloud net fusion architecture system Equipment is tested;
The software platform and/or hardware device obtained in the cloud net fusion architecture system is tested using the test case Implementing result;
The implementing result is analyzed, the test result of cloud net fusion architecture system is obtained.
2. the method as described in claim 1, which is characterized in that the test case using layout preparatory in the server To in cloud net fusion architecture system software platform and/or hardware device test the step of, comprising:
Obtain the test case of preparatory layout in the server;
Required keyword method is loaded in the test case;
The testing tool of the software platform for being used to test in the cloud net fusion architecture system and/or hardware device is loaded onto institute It states in test case, the testing tool includes the tool that automatic test is carried out to cloud net fusion architecture system;
Using the Test cases technology test packet and/or test command after load keyword method and testing tool, will give birth to At test packet and/or test command be sent to software platform and/or hardware device in the cloud net fusion architecture system, To in the cloud net fusion architecture system software platform and/or hardware device test.
3. method according to claim 1 or 2, which is characterized in that the hardware device includes interchanger, the software platform Including software defined network SDN controller, cloud management platform and virtual management platform is calculated, it is described to obtain the cloud net fusion The step of implementing result that software platform and/or hardware device in architecture system are tested using the test case, packet It includes:
When test object is the hardware device in the cloud net fusion architecture system, remotely ordered by transmission control protocol TCP It enables from corresponding hardware device and obtains implementing result;And
Test object be the cloud net fusion architecture system in software platform when, by with the cloud net fusion architecture system The hypertext transfer protocol http communication interface of communication obtains implementing result from corresponding software platform.
4. method as claimed in claim 3, which is characterized in that the implementing result to the cloud net fusion architecture system into The step of row is analyzed, and the test result of the cloud net fusion architecture system is obtained, comprising:
From preconfigured test case weight table, the weighted value of the test case is searched;
The cloud net fusion architecture is calculated according to the weighted value of the implementing result of the test case and the test case The test result of system.
5. method as claimed in claim 4, which is characterized in that the method also includes:
Weighted value is configured in the test case weight table for test case;And
Keyword method is configured, and keyword method is packaged, so that the test case loads the keyword method.
6. a kind of cloud net fusion architecture opening machine system test device, which is characterized in that be applied to server, described device includes:
Test module, for the test case using layout in advance in the server to the software in cloud net fusion architecture system Platform and/or hardware device are tested;
Module is obtained, for obtaining software platform in the cloud net fusion architecture system and/or hardware device using the survey The implementing result that example on probation is tested;
Analysis module obtains the test result of cloud net fusion architecture system for analyzing the implementing result.
7. device as claimed in claim 6, which is characterized in that the test module is specifically used for:
Obtain the test case of preparatory layout in the server;
Required keyword method is loaded in the test case;
The testing tool of the software platform for being used to test in the cloud net fusion architecture system and/or hardware device is loaded onto institute It states in test case, the testing tool includes the tool that automatic test is carried out to cloud net fusion architecture system;
Using the Test cases technology test packet and/or test command after load keyword method and testing tool, will give birth to At test packet and/or test command be sent to software platform and/or hardware device in the cloud net fusion architecture system, To in the cloud net fusion architecture system software platform and/or hardware device test.
8. device as claimed in claims 6 or 7, which is characterized in that the hardware device includes interchanger, the software platform Including software defined network SDN controller, cloud management platform and virtual management platform is calculated, the acquisition module is specifically used In:
When test object is the hardware device in the cloud net fusion architecture system, remotely ordered by transmission control protocol TCP It enables from corresponding hardware device and obtains implementing result;And
Test object be the cloud net fusion architecture system in software platform when, by with the cloud net fusion architecture system The hypertext transfer protocol http communication interface of communication obtains implementing result from corresponding software platform.
9. device as claimed in claim 8, which is characterized in that the analysis module is specifically used for:
From preconfigured test case weight table, the weighted value of the test case is searched;
The cloud net fusion architecture is calculated according to the weighted value of the implementing result of the test case and the test case The test result of system.
10. device as claimed in claim 9, which is characterized in that described device further include:
Configuration module, for configuring weighted value in the test case weight table for test case;And
Keyword method is configured, and keyword method is packaged, so that the test case loads the keyword method.
CN201910082121.8A 2019-01-28 2019-01-28 Cloud net fusion architecture system detection method and device Pending CN109783392A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910082121.8A CN109783392A (en) 2019-01-28 2019-01-28 Cloud net fusion architecture system detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910082121.8A CN109783392A (en) 2019-01-28 2019-01-28 Cloud net fusion architecture system detection method and device

Publications (1)

Publication Number Publication Date
CN109783392A true CN109783392A (en) 2019-05-21

Family

ID=66502748

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910082121.8A Pending CN109783392A (en) 2019-01-28 2019-01-28 Cloud net fusion architecture system detection method and device

Country Status (1)

Country Link
CN (1) CN109783392A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111897724A (en) * 2020-07-21 2020-11-06 国云科技股份有限公司 Automatic testing method and device suitable for cloud platform
CN112162927A (en) * 2020-10-13 2021-01-01 网易(杭州)网络有限公司 Test method, medium and device of cloud computing platform and computing equipment
CN114448832A (en) * 2022-02-08 2022-05-06 西南证券股份有限公司 Pressure testing system for security online trading platform
CN114721957A (en) * 2022-04-14 2022-07-08 合肥卓讯云网科技有限公司 Software and hardware automatic testing method and device
CN112162927B (en) * 2020-10-13 2024-04-26 网易(杭州)网络有限公司 Testing method, medium, device and computing equipment of cloud computing platform

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252471A (en) * 2008-03-20 2008-08-27 中兴通讯股份有限公司 Distributed automatization test system and method
CN103825954A (en) * 2014-03-10 2014-05-28 中国联合网络通信集团有限公司 OpenFlow control method and corresponding insert, platform and network thereof
CN104378252A (en) * 2014-08-26 2015-02-25 国家电网公司 Cloud testing service platform
CN105528288A (en) * 2015-12-01 2016-04-27 深圳市迪菲特科技股份有限公司 Software testing method and apparatus
US10055336B1 (en) * 2016-06-23 2018-08-21 VCE IP Holding Company LLC Computer implemented system and method and computer program product for testing a software component by simulating an interface to a computing component using randomized network packet information
CN108683523A (en) * 2018-04-24 2018-10-19 国家电网公司信息通信分公司 A kind of SDN frameworks based on network virtualization

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252471A (en) * 2008-03-20 2008-08-27 中兴通讯股份有限公司 Distributed automatization test system and method
CN103825954A (en) * 2014-03-10 2014-05-28 中国联合网络通信集团有限公司 OpenFlow control method and corresponding insert, platform and network thereof
CN104378252A (en) * 2014-08-26 2015-02-25 国家电网公司 Cloud testing service platform
CN105528288A (en) * 2015-12-01 2016-04-27 深圳市迪菲特科技股份有限公司 Software testing method and apparatus
US10055336B1 (en) * 2016-06-23 2018-08-21 VCE IP Holding Company LLC Computer implemented system and method and computer program product for testing a software component by simulating an interface to a computing component using randomized network packet information
CN108683523A (en) * 2018-04-24 2018-10-19 国家电网公司信息通信分公司 A kind of SDN frameworks based on network virtualization

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111897724A (en) * 2020-07-21 2020-11-06 国云科技股份有限公司 Automatic testing method and device suitable for cloud platform
CN112162927A (en) * 2020-10-13 2021-01-01 网易(杭州)网络有限公司 Test method, medium and device of cloud computing platform and computing equipment
CN112162927B (en) * 2020-10-13 2024-04-26 网易(杭州)网络有限公司 Testing method, medium, device and computing equipment of cloud computing platform
CN114448832A (en) * 2022-02-08 2022-05-06 西南证券股份有限公司 Pressure testing system for security online trading platform
CN114721957A (en) * 2022-04-14 2022-07-08 合肥卓讯云网科技有限公司 Software and hardware automatic testing method and device

Similar Documents

Publication Publication Date Title
US11755919B2 (en) Analytics for an automated application testing platform
CN109783392A (en) Cloud net fusion architecture system detection method and device
US20230018871A1 (en) Predictive analysis in a software defined network
US10956131B2 (en) Separation of user interface logic from user interface presentation by using a protocol
Zhang et al. Towards a virtual network function research agenda: A systematic literature review of vnf design considerations
Beilharz et al. Continuously testing distributed iot systems: An overview of the state of the art
CN112235300B (en) Cloud virtual network vulnerability detection method, system, device and electronic equipment
Berger et al. Does my bft protocol implementation scale?
Siebra et al. From theory to practice: The challenges of a DevOps infrastructure as code implementation
Makaya et al. Automated virtual network functions onboarding
Maleh et al. Building open virtual cloud lab for advanced education in networks and security
US10270662B2 (en) Local consumption of remote services
Liu et al. Distributed testing system for web service based on crowdsourcing
Du et al. A service-based testing framework for NFV platform performance evaluation
CN112328374B (en) Comprehensive evaluation system and method based on virtualized real operation environment
Nguyen et al. An agent-based mechanism for testing sfc
Akbarisamani Service based architecture with service mesh platform in the context of 5g core
Gallardo et al. How Formal Methods Can Contribute to 5G Networks
Toro Marin Containerizing ONAP using Kubernetes and Docker
CN117331758B (en) Verification method and device for target virtual machine mirror image, electronic equipment and storage medium
Pino Martínez Validation and Extension of Kubernetes-based Network Functions (KNFs) in OSM for Cloud Native (CN) applications in 5G and beyond
Wasilewska Pre-study on Network Function Virtualization at Communication Technology Lab: Emulator
Li Modeling of a 5G (or B5G) network to estimate its capacity to meet verticals resilience requirements
García et al. Teaching information systems technologies: a new approach based on virtualization and hosting technologies
Erol Generalized resource management for heterogeneous cloud data centers

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190521