CN105357067A - Test method and system for cloud platform - Google Patents
Test method and system for cloud platform Download PDFInfo
- Publication number
- CN105357067A CN105357067A CN201510665768.5A CN201510665768A CN105357067A CN 105357067 A CN105357067 A CN 105357067A CN 201510665768 A CN201510665768 A CN 201510665768A CN 105357067 A CN105357067 A CN 105357067A
- Authority
- CN
- China
- Prior art keywords
- test
- cloud platform
- level container
- file
- master component
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/04—Processing captured monitoring data, e.g. for logfile generation
- H04L43/045—Processing captured monitoring data, e.g. for logfile generation for graphical visualisation of monitoring data
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3698—Environments for analysis, debugging or testing of software
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/22—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks comprising specially adapted graphical user interfaces [GUI]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/14—Arrangements for monitoring or testing data switching networks using software, i.e. software packages
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Computer Hardware Design (AREA)
- Human Computer Interaction (AREA)
- Computer Security & Cryptography (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域technical field
本发明涉及云计算技术领域,尤其涉及一种云平台的测试方法及装置。The invention relates to the technical field of cloud computing, in particular to a testing method and device for a cloud platform.
背景技术Background technique
云计算(CloudComputing)是虚拟化(Virtualization)、效用计算(UtilityComputing)、IaaS(基础设施即服务)、PaaS(平台即服务)、SaaS(软件即服务)等概念混合演进并跃升的结果。它提供了一个全新的互联网商业服务模型,即用户可以通过网络以按需、易扩展的方式租用所需的服务。Cloud Computing is the result of the mixed evolution and leap of concepts such as Virtualization, Utility Computing, IaaS (Infrastructure as a Service), PaaS (Platform as a Service), and SaaS (Software as a Service). It provides a brand-new Internet business service model, that is, users can rent the required services through the network in an on-demand and easy-to-expand manner.
基础设施即服务IaaS(Infrastructureasaservice)是把基础设备这些设施作为一种底层资源来为上层提供服务。IaaS的设施有很多,常见的PC、网络、处理、存储、带宽等等都可以是它的基础资源。这些基础资源对用户来说是透明的,也就是说当它们被提供的时候是经过虚拟化后的计算资源,这些资源只作为服务提供给终端用户,终端用户不用关心这些资源的来源或者实现细节。此外这些资源对外都会被封装为统一的逻辑接口,从而屏蔽了底层硬件的差异。Infrastructure as a service IaaS (Infrastructure as a service) is to use infrastructure as a bottom resource to provide services for the upper layer. There are many IaaS facilities, and common PCs, networks, processing, storage, bandwidth, etc. can be its basic resources. These basic resources are transparent to users, that is to say, when they are provided, they are virtualized computing resources. These resources are only provided to end users as services, and end users do not need to care about the source or implementation details of these resources. . In addition, these resources will be packaged as a unified logical interface to the outside world, thus shielding the differences in the underlying hardware.
所谓私有云,就是将通过虚拟化的硬件资源提供给该企业内部人员使用,对于企业外部是透明。私有云平台服务的提供者和消费者是同一个公司或组织,正因为如此,私有云对数据资源的安全特性和服务稳定性相对于公有云的控制要有效得多。对于创建私有云的企业,它拥有私有云构成的全部基础设施而且可以自由的控制项目以及应用的部署方式。企业通过私有云可以提高资源的利用率,进而达到降低成本提高企业信息数据安全性和企业核心业务的竞争力。私有云的创建,既可由企业IT部门自行构建,也可由云计算服务提供商提供创建好的然后交付和部署在用户内容环境中。The so-called private cloud is to provide virtualized hardware resources to the internal personnel of the enterprise, which is transparent to the outside of the enterprise. The provider and consumer of private cloud platform services are the same company or organization. Because of this, private cloud is much more effective in controlling the security features of data resources and service stability than public cloud. For an enterprise that creates a private cloud, it has all the infrastructure of the private cloud and can freely control the deployment of projects and applications. Through the private cloud, enterprises can improve the utilization rate of resources, thereby reducing costs and improving the security of enterprise information data and the competitiveness of enterprise core business. The creation of a private cloud can be built by the IT department of the enterprise itself, or it can be provided by the cloud computing service provider and then delivered and deployed in the user content environment.
在现有技术中,云平台的测试一般是通过主控组件对云平台直接进行测试。在每次测试时,测试人员均需编写测试脚本,并发送测试脚本到云平台实现对云平台的测试。但是,每次均编写测试脚本进行测试导致云平台测试复杂且效率低下。In the prior art, the cloud platform is generally tested directly through the main control component. In each test, the tester needs to write the test script and send the test script to the cloud platform to realize the test on the cloud platform. However, writing test scripts for testing every time makes cloud platform testing complicated and inefficient.
发明内容Contents of the invention
本发明实施例提出一种云平台的测试方法及系统,能够有效提高云平台的测试效率。Embodiments of the present invention propose a cloud platform testing method and system, which can effectively improve the testing efficiency of the cloud platform.
本发明实施例提供一种云平台的测试方法,包括:The embodiment of the present invention provides a kind of testing method of cloud platform, comprising:
检测进程级容器接收主控组件发送的测试请求;所述测试请求包括测试名称和测试文件的存储位置;Detecting that the process-level container receives a test request sent by the main control component; the test request includes a test name and a storage location of a test file;
所述检测进程级容器扫描所述存储位置,获取所述测试名称相应的测试文件;The detection process-level container scans the storage location to obtain a test file corresponding to the test name;
所述检测进程级容器根据所述测试文件对IaaS平台进行测试;The detection process-level container tests the IaaS platform according to the test file;
所述检测进程级容器将测试结果反馈给所述主控组件。The detection process-level container feeds back the test result to the main control component.
进一步地,在所述检测进程级容器接收主控组件发送的测试请求之前,还包括:Further, before the detection process-level container receives the test request sent by the main control component, it also includes:
所述检测进程级容器接收所述主控组件发送的测试用例;所述测试用例包括测试名称、存储位置和测试文件;The detection process level container receives the test case sent by the main control component; the test case includes a test name, a storage location and a test file;
所述检测进程级容器将所述测试名称和所述测试文件相对应的保存在所述存储位置中。The detection process-level container stores the corresponding test name and the test file in the storage location.
进一步地,在所述检测进程级容器将测试结果反馈给所述主控组件之后,还包括:Further, after the detection process-level container feeds back the test result to the main control component, it further includes:
所述检测进程级容器将所述测试结果保存在数据库进程级容器里。The detection process-level container stores the test results in the database process-level container.
优选地,所述测试文件包括云平台组件测试文件、功能冒烟测试文件、HA测试文件和云平台服务功能测试文件中的至少一个。Preferably, the test files include at least one of cloud platform component test files, functional smoke test files, HA test files, and cloud platform service function test files.
优选地,所述IaaS平台采用可视化构建方法进行部署;所述可视化构建方法具体包括:Preferably, the IaaS platform is deployed using a visual construction method; the visual construction method specifically includes:
所述主控组件接收用户发送的网络环境配置指令;The main control component receives the network environment configuration instruction sent by the user;
所述主控组件根据所述网络环境配置指令配置IaaS网络环境,并对所述IaaS网络环境的网络连通性进行验证;The main control component configures the IaaS network environment according to the network environment configuration instruction, and verifies the network connectivity of the IaaS network environment;
若验证成功,则所述主控组件接收用户发送的组件配置指令;If the verification is successful, the main control component receives the component configuration instruction sent by the user;
所述主控组件根据所述组件配置指令,向第一物理机和第二物理机发送安装列表,使所述第一物理机安装配置控制服务所需的第一安装文件,部署为控制组件,并使所述第二物理机安装配置计算服务所需的第二安装文件,部署为计算组件;The main control component sends an installation list to the first physical machine and the second physical machine according to the component configuration instruction, so that the first physical machine installs the first installation file required by the configuration control service and deploys it as a control component, and make the second physical machine install and configure the second installation file required by the computing service, and deploy it as a computing component;
所述主控组件完成IaaS平台的构建。The main control component completes the construction of the IaaS platform.
相应地,本发明实施例还提供了一种云平台的测试系统,包括主控组件、检测进程级容器和IaaS平台;所述检测进程级容器具体包括:Correspondingly, an embodiment of the present invention also provides a test system for a cloud platform, including a main control component, a detection process-level container, and an IaaS platform; the detection process-level container specifically includes:
测试请求接收模块,用于接收所述主控组件发送的测试请求;所述测试请求包括测试名称和测试文件的存储位置;A test request receiving module, configured to receive a test request sent by the main control component; the test request includes a test name and a storage location of a test file;
扫描模块,用于扫描所述存储位置,获取所述测试名称相应的测试文件;A scanning module, configured to scan the storage location and obtain a test file corresponding to the test name;
测试模块,用于根据所述测试文件对云平台进行测试;以及,A test module, configured to test the cloud platform according to the test file; and,
反馈模块,用于将测试结果反馈给所述主控组件。The feedback module is used to feed back the test result to the main control component.
进一步地,所述检测进程级容器还包括:Further, the detecting process-level container also includes:
测试用例接收模块,用于接收所述主控组件发送的测试用例;所述测试用例包括测试名称、存储位置和测试文件;以及,A test case receiving module, configured to receive a test case sent by the main control component; the test case includes a test name, a storage location and a test file; and,
保存模块,用于将所述测试名称和所述测试文件相对应的保存在所述存储位置中。The saving module is used for saving the corresponding test name and the test file in the storage location.
进一步地,所述云平台的测试系统还包括数据库进程级容器,所述检测进程级容器还包括测试结果保存模块;Further, the test system of the cloud platform also includes a database process-level container, and the detection process-level container also includes a test result preservation module;
所述测试结果保存模块用于将所述测试结果保存在所述数据库进程级容器中。The test result saving module is used for saving the test result in the database process level container.
优选地,所述测试文件包括云平台组件测试文件、功能冒烟测试文件、HA测试文件和云平台服务功能测试文件中的至少一个。Preferably, the test files include at least one of cloud platform component test files, functional smoke test files, HA test files, and cloud platform service function test files.
优选地,所述IaaS平台采用可视化构建方法进行部署;所述可视化构建方法具体包括:Preferably, the IaaS platform is deployed using a visual construction method; the visual construction method specifically includes:
所述主控组件接收用户发送的网络环境配置指令;The main control component receives the network environment configuration instruction sent by the user;
所述主控组件根据所述网络环境配置指令配置IaaS网络环境,并对所述IaaS网络环境的网络连通性进行验证;The main control component configures the IaaS network environment according to the network environment configuration instruction, and verifies the network connectivity of the IaaS network environment;
若验证成功,则所述主控组件接收用户发送的组件配置指令;If the verification is successful, the main control component receives the component configuration instruction sent by the user;
所述主控组件根据所述组件配置指令,向第一物理机和第二物理机发送安装列表,使所述第一物理机安装配置控制服务所需的第一安装文件,部署为控制组件,并使所述第二物理机安装配置计算服务所需的第二安装文件,部署为计算组件;The main control component sends an installation list to the first physical machine and the second physical machine according to the component configuration instruction, so that the first physical machine installs the first installation file required by the configuration control service and deploys it as a control component, and make the second physical machine install and configure the second installation file required by the computing service, and deploy it as a computing component;
所述主控组件完成IaaS平台的构建。The main control component completes the construction of the IaaS platform.
实施本发明实施例,具有如下有益效果:Implementing the embodiment of the present invention has the following beneficial effects:
本发明实施例提供的云平台的测试方法及系统,能够通过检测进程级容器将云平台的测试文件保存在指定的存储位置,测试人员直接通过主控组件发送具有测试名称的测试请求到检测进程级容器,检测进程级容器从指定存储位置获取相应测试文件即可实现对云平台的测试,而无需测试人员编写测试脚本来测试云平台,有效提高云平台的测试效率;将云平台的测试结果保存在数据库中,可以供测试人员随时查看测试结果;检测进程级容器中保存有多个测试文件,测试人员可以同时对云平台进行多种类型的测试,进一步提高云平台的测试效率。The testing method and system of the cloud platform provided by the embodiment of the present invention can save the test file of the cloud platform in a designated storage location through the detection process-level container, and the tester directly sends a test request with a test name to the detection process through the main control component Level container, the detection process level container can obtain the corresponding test file from the specified storage location to realize the test of the cloud platform, without the need for testers to write test scripts to test the cloud platform, effectively improving the test efficiency of the cloud platform; the test results of the cloud platform Stored in the database, testers can view the test results at any time; multiple test files are stored in the detection process-level container, and testers can perform multiple types of tests on the cloud platform at the same time, further improving the test efficiency of the cloud platform.
附图说明Description of drawings
图1是本发明提供的云平台的测试方法的一个实施例的流程示意图;Fig. 1 is the schematic flow chart of an embodiment of the testing method of cloud platform provided by the present invention;
图2是IaaS平台部署方法的一个实施例的流程示意图;Fig. 2 is a schematic flow diagram of an embodiment of an IaaS platform deployment method;
图3是本发明提供的云平台的测试系统的一个实施例的结构示意图;Fig. 3 is the structural representation of an embodiment of the testing system of cloud platform provided by the present invention;
图4是部署IaaS平台的一个实施例的结构示意图。Fig. 4 is a schematic structural diagram of an embodiment for deploying an IaaS platform.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
参见图1,是本发明提供的云平台的测试方法的一个实施例的流程示意图,包括:Referring to Fig. 1, it is a schematic flow chart of an embodiment of the testing method of the cloud platform provided by the present invention, including:
S1、检测进程级容器接收主控组件发送的测试请求;所述测试请求包括测试名称和测试文件的存储位置;S1. The detection process level container receives the test request sent by the main control component; the test request includes the test name and the storage location of the test file;
S2、所述检测进程级容器扫描所述存储位置,获取所述测试名称相应的测试文件;S2. The detection process-level container scans the storage location, and obtains a test file corresponding to the test name;
S3、所述检测进程级容器根据所述测试文件对IaaS平台进行测试;S3. The detection process-level container tests the IaaS platform according to the test file;
S4、所述检测进程级容器将测试结果反馈给所述主控组件。S4. The detection process-level container feeds back the test result to the main control component.
需要说明的是,管理人员在主控组件上安装检测进程级容器,即在进程级容器docker中配置检测服务器,测试人员通过在主控组件的界面上选择待测试选项,主控组件根据待测试选项向检测进程级容器发送测试请求。检测进程级容器在接收请求后,扫描请求中的存储位置即可获得在所述存储位置存储的测试文件,再根据请求中的测试名称即可获取该测试名称相应的测试文件,从而根据该测试文件实现对IaaS平台的测试。由于在主控组件上安装检测进程级容器,通过检测进程级容器来对IaaS平台进行测试,使得测试人员无需在主控组件编写测试脚本,通过测试脚本来进行测试,从而提高云平台的测试效率。It should be noted that the administrator installs the detection process-level container on the main control component, that is, configures the detection server in the process-level container docker, and the tester selects the option to be tested on the interface of the main control component. option to send a test request to the instrumentation process-level container. After receiving the request, the detection process-level container scans the storage location in the request to obtain the test file stored in the storage location, and then obtains the test file corresponding to the test name according to the test name in the request, so that according to the test The file implements the test of the IaaS platform. Since the detection process-level container is installed on the main control component, the IaaS platform is tested by detecting the process-level container, so that testers do not need to write test scripts in the main control component, and test through the test script, thereby improving the testing efficiency of the cloud platform .
进一步地,在所述检测进程级容器接收主控组件发送的测试请求之前,还包括:Further, before the detection process-level container receives the test request sent by the main control component, it also includes:
所述检测进程级容器接收所述主控组件发送的测试用例;所述测试用例包括测试名称、存储位置和测试文件;The detection process level container receives the test case sent by the main control component; the test case includes a test name, a storage location and a test file;
所述检测进程级容器将所述测试名称和所述测试文件相对应的保存在所述存储位置中。The detection process-level container stores the corresponding test name and the test file in the storage location.
需要说明的是,在测试之前,先将云平台所有的测试文件保存到检测进程级容器中,使检测进程级容器在接收到测试请求后,直接获取相应的测试文件即可实现测试。另外,也可将所有测试文件进行排列,检测进程级容器在接收到主控组件的一键测试请求时,获取所有测试文件,并根据测试文件的顺序对IaaS平台进行测试。It should be noted that before the test, all the test files of the cloud platform are saved in the detection process-level container, so that the detection process-level container can directly obtain the corresponding test file after receiving the test request to realize the test. In addition, all test files can also be arranged, and when the detection process-level container receives the one-click test request of the main control component, all test files are obtained, and the IaaS platform is tested according to the order of the test files.
测试用例为测试人员预先进行编写,包含测试名称、存储位置和测试文件。其中,测试文件包括测试类别、测试方法描述、测试步骤和返回结果等。Test cases are pre-written for testers, including test names, storage locations, and test files. Among them, the test file includes test category, test method description, test steps and return results, etc.
进一步地,在所述检测进程级容器将测试结果反馈给所述主控组件之后,还包括:Further, after the detection process-level container feeds back the test result to the main control component, it further includes:
所述检测进程级容器将所述测试结果保存在数据库进程级容器里。The detection process-level container stores the test results in the database process-level container.
需要说明的是,在主控组件上还安装有数据库进程级容器,即在进程级容器docker中配置数据库。其中,数据库一般采用开源数据库MySQL。在对IaaS平台进行测试后,将测试结果反馈给主控组件,同时会将测试结果保存到数据库进程级容器里,供测试人员随时查询。其中,测试结果一般包含测试是否成功、测试所花时间等。It should be noted that a database process-level container is also installed on the main control component, that is, the database is configured in the process-level container docker. Among them, the database generally adopts the open source database MySQL. After testing the IaaS platform, the test results are fed back to the main control component, and the test results are saved in the database process-level container for testers to query at any time. Wherein, the test result generally includes whether the test is successful, the time spent on the test, and the like.
优选地,所述测试文件包括云平台组件测试文件、功能冒烟测试文件、HA测试文件和云平台服务功能测试文件中的至少一个。Preferably, the test files include at least one of cloud platform component test files, functional smoke test files, HA test files, and cloud platform service function test files.
其中,云平台组件测试主要包括用户测试、镜像测试、实例测试等,功能冒烟测试主要包括创建卷、创建虚拟机、创建安全组、创建网络等测试,HA测试包括数据库HA测试、消息队列HA测试等,平台服务功能测试包括栈测试、资料扩展伸缩性测试、回滚测试等。所有测试文件均是独立的,可以单独进行测试,也可任意组合进行测试。Among them, cloud platform component testing mainly includes user testing, mirroring testing, instance testing, etc. Functional smoke testing mainly includes creating volumes, creating virtual machines, creating security groups, creating networks, etc., and HA testing includes database HA testing, message queue HA testing Testing, etc. Platform service function testing includes stack testing, data expansion and scalability testing, rollback testing, etc. All test files are self-contained and can be tested individually or in any combination.
优选地,所述IaaS平台采用可视化构建方法进行部署;所述可视化构建方法具体包括:Preferably, the IaaS platform is deployed using a visual construction method; the visual construction method specifically includes:
所述主控组件接收用户发送的网络环境配置指令;The main control component receives the network environment configuration instruction sent by the user;
所述主控组件根据所述网络环境配置指令配置IaaS网络环境,并对所述IaaS网络环境的网络连通性进行验证;The main control component configures the IaaS network environment according to the network environment configuration instruction, and verifies the network connectivity of the IaaS network environment;
若验证成功,则所述主控组件接收用户发送的组件配置指令;If the verification is successful, the main control component receives the component configuration instruction sent by the user;
所述主控组件根据所述组件配置指令,向第一物理机和第二物理机发送安装列表,使所述第一物理机安装配置控制服务所需的第一安装文件,部署为控制组件,并使所述第二物理机安装配置计算服务所需的第二安装文件,部署为计算组件;The main control component sends an installation list to the first physical machine and the second physical machine according to the component configuration instruction, so that the first physical machine installs the first installation file required by the configuration control service and deploys it as a control component, and make the second physical machine install and configure the second installation file required by the computing service, and deploy it as a computing component;
所述主控组件完成IaaS平台的构建。The main control component completes the construction of the IaaS platform.
需要说明的是,IaaS平台可通过在主控组件的WEB界面上的可视化操作来快速进行部署。先创建IaaS部署平台,包括:选取release版本的CentOS或者Ubuntu,将节点模式配置为多节点部署模式(Muti-node),将中间软件层(Hypervisor,一种运行在基础物理服务器和操作系统之间的中间软件层)模式配置为虚拟操作系统模拟器(QEMU);其中,CentOS或者Ubuntu为操作系统。It should be noted that the IaaS platform can be quickly deployed through visual operations on the WEB interface of the main control component. First create an IaaS deployment platform, including: select the release version of CentOS or Ubuntu, configure the node mode as a multi-node deployment mode (Muti-node), and set the middle software layer (Hypervisor, a kind of software that runs between the basic physical server and the operating system) The middle software layer) mode is configured as a virtual operating system emulator (QEMU); among them, CentOS or Ubuntu is the operating system.
然后,用户在主控组件的WEB界面中配置IaaS网络环境,包括:在所述WEB界面中将IaaS网络环境配置为FlatDHCP管理、公共IP区间(PublicIPrange),浮动IP区间(FloatIPrange),管理无类域间路由(CIDR),储存无类域间路由(CIDR),无类域间路由(CIDR)以及DNS服务器(DNSServers),并对主控组件的网络连通性进行验证,若验证成功,则可进一步对第一物理机和第二物理机进行配置。Then, the user configures the IaaS network environment in the WEB interface of the main control component, including: configuring the IaaS network environment as FlatDHCP management, public IP range (PublicIPrange), floating IP range (FloatIPrange) in the WEB interface, and management without class Inter-domain routing (CIDR), store classless inter-domain routing (CIDR), classless inter-domain routing (CIDR) and DNS servers (DNSServers), and verify the network connectivity of the main control component. If the verification is successful, you can Further configure the first physical machine and the second physical machine.
用户在主控组件的WEB界面中配置第一物理机为控制组件,则主控组件向第一物理机发送安装列表,使第一物理机从安装列表中获取相应的第一安装文件自行进行安装,部署为控制组件。用户在主控组件的WEB界面中配置第二物理机为计算组件,则主控组件向第二物理机发送安装列表,使第二物理机从安装列表中获取第二安装文件进行安装,部署为计算组件。同时,第三物理机、第四物理机等还可被部署为存储组件等其他组件。组件部署完成即完成IaaS平台的构建,用户可以登录IaaS的控制台面板(Dashboard),可以在主控组件中查看部署日志,并且可以进行系统功能健康状况检查(SystemHealthCheck)等功能操作。The user configures the first physical machine as the control component in the WEB interface of the main control component, then the main control component sends the installation list to the first physical machine, so that the first physical machine obtains the corresponding first installation file from the installation list and installs itself , deployed as a control component. The user configures the second physical machine as the computing component in the WEB interface of the main control component, then the main control component sends the installation list to the second physical machine, so that the second physical machine obtains the second installation file from the installation list for installation, and the deployment is Compute components. Meanwhile, the third physical machine, the fourth physical machine, etc. may also be deployed as other components such as storage components. After the component deployment is completed, the construction of the IaaS platform is completed. Users can log in to the IaaS console panel (Dashboard), view the deployment log in the main control component, and perform functional operations such as system health check (SystemHealthCheck).
本发明实施例提供的云平台的测试方法,能够通过检测进程级容器将云平台的测试文件保存在指定的存储位置,测试人员直接通过主控组件发送具有测试名称的测试请求到检测进程级容器,检测进程级容器从指定存储位置获取相应测试文件即可实现对云平台的测试,而无需测试人员编写测试脚本来测试云平台,有效提高云平台的测试效率;将云平台的测试结果保存在数据库中,可以供测试人员随时查看测试结果;检测进程级容器中保存有多个测试文件,测试人员可以同时对云平台进行多种类型的测试,进一步提高云平台的测试效率。The test method of the cloud platform provided by the embodiment of the present invention can save the test file of the cloud platform in a designated storage location by detecting the process-level container, and the tester directly sends a test request with a test name to the detection process-level container through the main control component , the detection process-level container can obtain the corresponding test file from the specified storage location to realize the test of the cloud platform, without the need for testers to write test scripts to test the cloud platform, which effectively improves the test efficiency of the cloud platform; the test results of the cloud platform are saved in In the database, testers can view test results at any time; multiple test files are stored in the detection process-level container, and testers can perform multiple types of tests on the cloud platform at the same time, further improving the test efficiency of the cloud platform.
相应的,本发明还提供一种云平台的测试系统,能够实现上述实施例中的云平台的测试方法的所有流程。Correspondingly, the present invention also provides a cloud platform testing system capable of realizing all the processes of the cloud platform testing method in the above-mentioned embodiments.
参见图3,是本发明提供的云平台的测试系统的一个实施例的结构示意图,包括主控组件1、检测进程级容器2和IaaS平台3;所述检测进程级容器具体包括:Referring to FIG. 3 , it is a schematic structural diagram of an embodiment of a test system of a cloud platform provided by the present invention, including a main control component 1, a detection process-level container 2 and an IaaS platform 3; the detection process-level container specifically includes:
测试请求接收模块21,用于接收所述主控组件发送的测试请求;所述测试请求包括测试名称和测试文件的存储位置;The test request receiving module 21 is configured to receive the test request sent by the main control component; the test request includes a test name and a storage location of a test file;
扫描模块22,用于扫描所述存储位置,获取所述测试名称相应的测试文件;A scanning module 22, configured to scan the storage location to obtain a test file corresponding to the test name;
测试模块23,用于根据所述测试文件对云平台进行测试;以及,A testing module 23, configured to test the cloud platform according to the test file; and,
反馈模块24,用于将测试结果反馈给所述主控组件。The feedback module 24 is used to feed back the test result to the main control component.
进一步地,所述检测进程级容器还包括:Further, the detecting process-level container also includes:
测试用例接收模块,用于接收所述主控组件发送的测试用例;所述测试用例包括测试名称、存储位置和测试文件;以及,A test case receiving module, configured to receive a test case sent by the main control component; the test case includes a test name, a storage location and a test file; and,
保存模块,用于将所述测试名称和所述测试文件相对应的保存在所述存储位置中。The saving module is used for saving the corresponding test name and the test file in the storage location.
进一步地,所述云平台的测试系统还包括数据库进程级容器,所述检测进程级容器还包括测试结果保存模块;Further, the test system of the cloud platform also includes a database process-level container, and the detection process-level container also includes a test result preservation module;
所述测试结果保存模块用于将所述测试结果保存在所述数据库进程级容器中。The test result saving module is used for saving the test result in the database process level container.
优选地,所述测试文件包括云平台组件测试文件、功能冒烟测试文件、HA测试文件和云平台服务功能测试文件中的至少一个。Preferably, the test files include at least one of cloud platform component test files, functional smoke test files, HA test files, and cloud platform service function test files.
优选地,所述IaaS平台采用可视化构建方法进行部署;所述可视化构建方法具体包括:Preferably, the IaaS platform is deployed using a visual construction method; the visual construction method specifically includes:
所述主控组件接收用户发送的网络环境配置指令;The main control component receives the network environment configuration instruction sent by the user;
所述主控组件根据所述网络环境配置指令配置IaaS网络环境,并对所述IaaS网络环境的网络连通性进行验证;The main control component configures the IaaS network environment according to the network environment configuration instruction, and verifies the network connectivity of the IaaS network environment;
若验证成功,则所述主控组件接收用户发送的组件配置指令;If the verification is successful, the main control component receives the component configuration instruction sent by the user;
所述主控组件根据所述组件配置指令,向第一物理机和第二物理机发送安装列表,使所述第一物理机安装配置控制服务所需的第一安装文件,部署为控制组件,并使所述第二物理机安装配置计算服务所需的第二安装文件,部署为计算组件;The main control component sends an installation list to the first physical machine and the second physical machine according to the component configuration instruction, so that the first physical machine installs the first installation file required by the configuration control service and deploys it as a control component, and make the second physical machine install and configure the second installation file required by the computing service, and deploy it as a computing component;
所述主控组件完成IaaS平台的构建。The main control component completes the construction of the IaaS platform.
参见图4,是本发明提供的部署IaaS平台的一个实施例的结构示意图。Referring to FIG. 4 , it is a schematic structural diagram of an embodiment of deploying an IaaS platform provided by the present invention.
IaaS平台42是通过主控组件41来进行部署的。其中,IaaS平台42包括被部署为控制组件的第一物理机43、被部署为第一计算组件的第二物理机44、被部署为第二计算组件的第三物理机45、被部署为存储组件的第四物理机46等等。用户在主控组件41的WEB界面配置各个物理机的部署角色,主控组件41将配置各个角色所需的安装列表分别发送给每个物理机,每个物理机根据用户部署的不同角色选择安装列表中的安装文件进行安装以实现自身部署。其中,第一物理机43从安装列表中获取配置控制服务所需的第一安装文件,并安装第一安装文件,实现控制组件的部署;第二物理机44和第三物理机45分别从安装列表中获取配置计算服务所需的第二安装文件,并分别安装第二安装文件,实现计算组件的部署;第四物理机46从安装列表中获取配置存储服务所需的第三安装文件,并安装第三安装文件,实现存储组件的部署。The IaaS platform 42 is deployed through the main control component 41 . Wherein, the IaaS platform 42 includes a first physical machine 43 deployed as a control component, a second physical machine 44 deployed as a first computing component, a third physical machine 45 deployed as a second computing component, and a third physical machine 45 deployed as a storage The fourth physical machine 46 of the component and so on. The user configures the deployment roles of each physical machine on the WEB interface of the main control component 41, and the main control component 41 sends the installation lists required for configuring each role to each physical machine, and each physical machine selects and installs according to the different roles deployed by the user. The installation files in the list are installed for self-deployment. Among them, the first physical machine 43 obtains the first installation file required for configuring the control service from the installation list, and installs the first installation file to realize the deployment of the control component; the second physical machine 44 and the third physical machine 45 respectively install Obtain the second installation file required for configuring the computing service from the list, and install the second installation file respectively to realize the deployment of the computing component; the fourth physical machine 46 obtains the third installation file required for configuring the storage service from the installation list, and The third installation file is installed to implement the deployment of the storage component.
需要说明的是,本发明实施例仅以IaaS平台具有一个控制组件、两个计算组件和一个存储组件为例进行描述,但在具体实施当中,IaaS平台可以一个或多个计算组件、一个或多个存储组件、一个或多个其他组件,其各个组件的数量可以根据实际应用来配置。It should be noted that the embodiment of the present invention is only described by taking the IaaS platform as an example with one control component, two computing components and one storage component, but in specific implementation, the IaaS platform can have one or more computing components, one or more storage components, one or more other components, the number of each component can be configured according to the actual application.
本发明实施例提供的云平台的测试系统,能够通过检测进程级容器将云平台的测试文件保存在指定的存储位置,测试人员直接通过主控组件发送具有测试名称的测试请求到检测进程级容器,检测进程级容器从指定存储位置获取相应测试文件即可实现对云平台的测试,而无需测试人员编写测试脚本来测试云平台,有效提高云平台的测试效率;将云平台的测试结果保存在数据库中,可以供测试人员随时查看测试结果;检测进程级容器中保存有多个测试文件,测试人员可以同时对云平台进行多种类型的测试,进一步提高云平台的测试效率。The test system of the cloud platform provided by the embodiment of the present invention can save the test file of the cloud platform in a designated storage location by detecting the process-level container, and the tester directly sends a test request with a test name to the detection process-level container through the main control component , the detection process-level container can obtain the corresponding test file from the specified storage location to realize the test of the cloud platform, without the need for testers to write test scripts to test the cloud platform, which effectively improves the test efficiency of the cloud platform; the test results of the cloud platform are saved in In the database, testers can view test results at any time; multiple test files are stored in the detection process-level container, and testers can perform multiple types of tests on the cloud platform at the same time, further improving the test efficiency of the cloud platform.
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也视为本发明的保护范围。The above description is a preferred embodiment of the present invention, and it should be pointed out that for those skilled in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications are also considered Be the protection scope of the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510665768.5A CN105357067A (en) | 2015-10-14 | 2015-10-14 | Test method and system for cloud platform |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510665768.5A CN105357067A (en) | 2015-10-14 | 2015-10-14 | Test method and system for cloud platform |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN105357067A true CN105357067A (en) | 2016-02-24 |
Family
ID=55332943
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510665768.5A Pending CN105357067A (en) | 2015-10-14 | 2015-10-14 | Test method and system for cloud platform |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN105357067A (en) |
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107766248A (en) * | 2017-10-20 | 2018-03-06 | 国云科技股份有限公司 | A method for quickly verifying the construction of cloud computing IAAS platform |
| CN107957712A (en) * | 2016-10-17 | 2018-04-24 | 横河电机株式会社 | The improved test manager for industrial automatic controller |
| CN109542791A (en) * | 2018-11-27 | 2019-03-29 | 长沙智擎信息技术有限公司 | A kind of program large-scale concurrent evaluating method based on container technique |
| CN111290936A (en) * | 2018-12-07 | 2020-06-16 | 北京奇虎科技有限公司 | Interface testing method and device |
| CN111427768A (en) * | 2020-02-26 | 2020-07-17 | 平安科技(深圳)有限公司 | Mirror image testing method and device, computer equipment and storage medium |
| CN112162927A (en) * | 2020-10-13 | 2021-01-01 | 网易(杭州)网络有限公司 | Test method, medium and device of cloud computing platform and computing equipment |
| CN112346977A (en) * | 2020-11-10 | 2021-02-09 | 中国信息通信研究院 | Quantum cloud computing platform software function evaluation method and device |
| CN113051169A (en) * | 2021-03-31 | 2021-06-29 | 公安部第三研究所 | Method and system for testing functions and interfaces of cloud computing big data platform |
| CN113760672A (en) * | 2020-11-17 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Performance testing method, equipment and storage medium for multi-cloud platform resources |
Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101615159A (en) * | 2009-07-31 | 2009-12-30 | 中兴通讯股份有限公司 | Off-line test system and local data management method thereof and corresponding device thereof |
| CN102594617A (en) * | 2012-01-12 | 2012-07-18 | 易云捷讯科技(北京)有限公司 | System and method for evaluating cloud computing service |
| CN102880542A (en) * | 2011-07-14 | 2013-01-16 | 易云捷讯科技(北京)有限公司 | Cloud computing service evaluation system and evaluation method |
| CN103399496A (en) * | 2013-08-20 | 2013-11-20 | 中国能源建设集团广东省电力设计研究院 | Massive real-time data load simulation testing cloud platform for smart power grid, and testing method of cloud platform |
| CN104298604A (en) * | 2014-11-06 | 2015-01-21 | 哈尔滨工业大学 | Testing system and testing method for robustness of cloud service |
| CN104333488A (en) * | 2014-11-04 | 2015-02-04 | 哈尔滨工业大学 | Cloud service platform performance test method |
| CN104375252A (en) * | 2013-08-12 | 2015-02-25 | 株式会社浜制作所 | Lens unit assembling apparatus and method |
| CN104461856A (en) * | 2013-09-22 | 2015-03-25 | 阿里巴巴集团控股有限公司 | Performance test method, device and system based on cloud computing platform |
| CN104468791A (en) * | 2014-12-09 | 2015-03-25 | 广州杰赛科技股份有限公司 | Private cloud IaaS platform construction method |
| US20150120780A1 (en) * | 2013-10-30 | 2015-04-30 | Oracle International Corporation | System and method for integrating a database with a service deployed on a cloud platform |
-
2015
- 2015-10-14 CN CN201510665768.5A patent/CN105357067A/en active Pending
Patent Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101615159A (en) * | 2009-07-31 | 2009-12-30 | 中兴通讯股份有限公司 | Off-line test system and local data management method thereof and corresponding device thereof |
| CN102880542A (en) * | 2011-07-14 | 2013-01-16 | 易云捷讯科技(北京)有限公司 | Cloud computing service evaluation system and evaluation method |
| CN102594617A (en) * | 2012-01-12 | 2012-07-18 | 易云捷讯科技(北京)有限公司 | System and method for evaluating cloud computing service |
| CN104375252A (en) * | 2013-08-12 | 2015-02-25 | 株式会社浜制作所 | Lens unit assembling apparatus and method |
| CN103399496A (en) * | 2013-08-20 | 2013-11-20 | 中国能源建设集团广东省电力设计研究院 | Massive real-time data load simulation testing cloud platform for smart power grid, and testing method of cloud platform |
| CN104461856A (en) * | 2013-09-22 | 2015-03-25 | 阿里巴巴集团控股有限公司 | Performance test method, device and system based on cloud computing platform |
| US20150120780A1 (en) * | 2013-10-30 | 2015-04-30 | Oracle International Corporation | System and method for integrating a database with a service deployed on a cloud platform |
| CN104333488A (en) * | 2014-11-04 | 2015-02-04 | 哈尔滨工业大学 | Cloud service platform performance test method |
| CN104298604A (en) * | 2014-11-06 | 2015-01-21 | 哈尔滨工业大学 | Testing system and testing method for robustness of cloud service |
| CN104468791A (en) * | 2014-12-09 | 2015-03-25 | 广州杰赛科技股份有限公司 | Private cloud IaaS platform construction method |
Cited By (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107957712B (en) * | 2016-10-17 | 2022-05-31 | 横河电机株式会社 | Engineering tool and method for testing process control system |
| CN107957712A (en) * | 2016-10-17 | 2018-04-24 | 横河电机株式会社 | The improved test manager for industrial automatic controller |
| CN107766248A (en) * | 2017-10-20 | 2018-03-06 | 国云科技股份有限公司 | A method for quickly verifying the construction of cloud computing IAAS platform |
| CN109542791A (en) * | 2018-11-27 | 2019-03-29 | 长沙智擎信息技术有限公司 | A kind of program large-scale concurrent evaluating method based on container technique |
| CN109542791B (en) * | 2018-11-27 | 2019-11-29 | 湖南智擎科技有限公司 | A kind of program large-scale concurrent evaluating method based on container technique |
| CN111290936A (en) * | 2018-12-07 | 2020-06-16 | 北京奇虎科技有限公司 | Interface testing method and device |
| CN111427768A (en) * | 2020-02-26 | 2020-07-17 | 平安科技(深圳)有限公司 | Mirror image testing method and device, computer equipment and storage medium |
| CN111427768B (en) * | 2020-02-26 | 2024-11-26 | 平安科技(深圳)有限公司 | Mirror test method, device, computer equipment and storage medium |
| 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 for cloud computing platform |
| CN112346977A (en) * | 2020-11-10 | 2021-02-09 | 中国信息通信研究院 | Quantum cloud computing platform software function evaluation method and device |
| CN113760672A (en) * | 2020-11-17 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Performance testing method, equipment and storage medium for multi-cloud platform resources |
| CN113051169A (en) * | 2021-03-31 | 2021-06-29 | 公安部第三研究所 | Method and system for testing functions and interfaces of cloud computing big data platform |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105357067A (en) | Test method and system for cloud platform | |
| Peinl et al. | Docker cluster management for the cloud-survey results and own solution | |
| Cappos et al. | Seattle: a platform for educational cloud computing | |
| CN104536899B (en) | A kind of software deployment and its maintaining method based on Intelligent cluster | |
| Cotroneo et al. | Network function virtualization: Challenges and directions for reliability assurance | |
| US9971622B2 (en) | Technologies for application migration using lightweight virtualization | |
| US11206253B2 (en) | Domain pass-through authentication in a hybrid cloud environment | |
| US8806015B2 (en) | Workload-aware placement in private heterogeneous clouds | |
| US20170134278A1 (en) | Independent network interfaces for virtual network environments | |
| CN110622129A (en) | Method, system, and portal for accelerating aspects of data analysis application development and deployment using software containers | |
| JP2021518018A (en) | Function portability for service hubs with function checkpoints | |
| US20150326448A1 (en) | Network-as-a-service product director | |
| CA3142413A1 (en) | Systems and methods for blueprint-based cloud management | |
| US20120066681A1 (en) | System and method for management of a virtual machine environment | |
| CN104468791B (en) | The construction method of private clound IaaS platforms | |
| US11829278B2 (en) | Secure debugging in multitenant cloud environment | |
| CN104539487A (en) | Method for testing system based on cloud platform and evaluating reliability | |
| US11196547B2 (en) | Scalable multi-framework multi-tenant lifecycle management of deep learning applications | |
| US11269728B2 (en) | Scalable multi-framework multi-tenant lifecycle management of deep learning applications | |
| CN112162927A (en) | Test method, medium and device of cloud computing platform and computing equipment | |
| US20230161871A1 (en) | System and method for detecting excessive permissions in identity and access management | |
| US10649768B1 (en) | Development code execution using a service proxy | |
| CN105843725B (en) | A kind of monitoring method and device of IaaS platforms | |
| CN104991826B (en) | A kind of virtual machine deployment method and device | |
| Irvine et al. | Live lesson: Labtainers: A docker-based framework for cybersecurity labs |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160224 |
|
| RJ01 | Rejection of invention patent application after publication |