[go: up one dir, main page]

CN108959082A - A kind of the hardware compatibility test method and system of Openstack - Google Patents

A kind of the hardware compatibility test method and system of Openstack Download PDF

Info

Publication number
CN108959082A
CN108959082A CN201810679867.2A CN201810679867A CN108959082A CN 108959082 A CN108959082 A CN 108959082A CN 201810679867 A CN201810679867 A CN 201810679867A CN 108959082 A CN108959082 A CN 108959082A
Authority
CN
China
Prior art keywords
test
node
openstack
compatibility
item
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
CN201810679867.2A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810679867.2A priority Critical patent/CN108959082A/en
Publication of CN108959082A publication Critical patent/CN108959082A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

本发明提供一种Openstack的硬件兼容性测试方法及系统,获取每个测试节点的硬件设备信息,并将每个测试节点的硬件设备信息配置成硬件设备信息列表;遍历所述硬件设备列表,获取与所述硬件设备列表中各硬件设备对应的测试项,基于每个测试项配置相应测试用例;获取硬件兼容性测试控制指令,将测试用例分别连接各个测试节点,对各个测试节点进行运行测试,以判断其对Openstack的兼容性,并生成测试结果。这样能够对各个节点的存储器,处理器,网络端口,内存等元件Openstack的兼容性进行测试,减少测试人员的工作量和测试时间,提高便利性。The present invention provides a hardware compatibility testing method and system of Openstack, acquires the hardware device information of each test node, and configures the hardware device information of each test node into a hardware device information list; traverses the hardware device list, obtains With the test item corresponding to each hardware device in the hardware device list, configure the corresponding test case based on each test item; obtain the hardware compatibility test control instruction, connect the test case to each test node respectively, and perform an operation test on each test node, To judge its compatibility with Openstack and generate test results. In this way, the compatibility of Openstack components such as memory, processor, network port, and memory of each node can be tested, reducing the workload and testing time of testers, and improving convenience.

Description

一种Openstack的硬件兼容性测试方法及系统A hardware compatibility testing method and system for Openstack

技术领域technical field

本发明涉及软件测试技术领域,特别是涉及一种Openstack的硬件兼容性测试方法及系统。The invention relates to the technical field of software testing, in particular to an Openstack hardware compatibility testing method and system.

背景技术Background technique

随着计算机技术的发展,各个厂家的服务器、存储、网络、IO板卡等都在不断发展进步,每个数据中心都有诸多硬件设备需要云计算管理平台进行管理,Openstack作为一个开源的云计算管理平台得到了越来越多的使用。With the development of computer technology, servers, storage, networks, and IO boards of various manufacturers are constantly developing and progressing. Each data center has many hardware devices that need to be managed by a cloud computing management platform. Openstack, as an open source cloud computing Management platforms are being used more and more.

Openstack想要用来管理多个硬件设备使其在统一调度下协调工作发挥性能互不排斥,则需要对其进行测试,使硬件在该平台上得以正常运行。目前的测试方式是由测试人员针对某个节点的硬件设备进行部署Openstack管理系统,之后测试人员进行操作来监测,如果出现多个节点基于Openstack硬件兼容性测试,则需要测试人员逐个进行测试,这样使得测试人员的工作量大、测试时间长、便利性差。因此,如何提供一种能够减小测试工作量、降低测试时间的Openstack硬件兼容性测试则成了需要解决的问题。Openstack wants to be used to manage multiple hardware devices so that they can coordinate and work under unified scheduling to achieve mutually exclusive performance, so it needs to be tested so that the hardware can run normally on this platform. The current test method is that the tester deploys the Openstack management system for the hardware device of a certain node, and then the tester performs the operation to monitor. If there are multiple nodes based on the Openstack hardware compatibility test, the tester needs to test one by one. In this way This makes the workload of the testers heavy, the test time is long, and the convenience is poor. Therefore, how to provide an Openstack hardware compatibility test that can reduce the test workload and test time has become a problem that needs to be solved.

而且由于测试节点较多,测试项也多,无法对各个测试节点进行统一调配控制,需要测试人员逐个配置测试脚本,并逐个控制启动来实现测试,更增加了测试人员的工作量。Moreover, due to the large number of test nodes and many test items, it is impossible to uniformly deploy and control each test node. It is necessary for testers to configure test scripts one by one and control the startup one by one to realize the test, which increases the workload of testers.

发明内容Contents of the invention

为了克服上述现有技术中的不足,本发明提供一种Openstack的硬件兼容性测试方法,方法包括:In order to overcome above-mentioned deficiencies in the prior art, the present invention provides a kind of hardware compatibility testing method of Openstack, method comprises:

S1,获取集群内测试节点数量及测试节点地址,获取每个测试节点的硬件设备,并在每个测试节点的硬件设备上安装OS系统,部署Openstack管理平台;S1, obtain the number of test nodes in the cluster and the address of the test nodes, obtain the hardware device of each test node, install the OS system on the hardware device of each test node, and deploy the Openstack management platform;

S2,获取每个测试节点的硬件设备信息,并将每个测试节点的硬件设备信息配置成硬件设备信息列表;S2, acquiring the hardware device information of each test node, and configuring the hardware device information of each test node into a hardware device information list;

S3,遍历所述硬件设备列表,获取与所述硬件设备列表中各硬件设备对应的测试项,基于每个测试项配置相应测试用例;S3, traversing the list of hardware devices, obtaining test items corresponding to each hardware device in the list of hardware devices, and configuring corresponding test cases based on each test item;

S4,获取硬件兼容性测试控制指令,将测试用例分别连接各个测试节点,对各个测试节点进行运行测试,以判断其对Openstack的兼容性,并生成测试结果。S4. Obtain a hardware compatibility test control instruction, connect the test cases to each test node, and run a test on each test node to determine its compatibility with Openstack, and generate a test result.

优选地,步骤S4之后还包括:Preferably, after step S4, it also includes:

将测试结果和预期结果做对比,输出测试结果为测试通过或者测试未通过;对于测试未通过的测试节点,将测试用例内部的测试参数与所述测试节点的待测试参数进行一一比对,形成比对表,标示不符合测试参数的部分;Compare the test result with the expected result, and output the test result as the test passed or the test failed; for the test node that failed the test, compare the test parameters inside the test case with the parameters to be tested of the test node one by one, Form a comparison table to mark the parts that do not meet the test parameters;

将通过的测试用例数量和用例总量进行对比,给出测试通过率;Compare the number of passed test cases with the total number of test cases, and give the test pass rate;

将测试结果生成测试报告储存在数据库。The test results are generated and the test reports are stored in the database.

优选地,步骤S3还包括:Preferably, step S3 also includes:

将硬件设备对应的测试项配置成测试计划列表;Configure the test items corresponding to the hardware devices as a list of test plans;

基于预设的排列方式对测试计划列表进行次序排列;Sort the test plan list in order based on the preset arrangement method;

按照排列次序对测试计划列表中的每个测试项进行测试。Test each test item in the test plan list in the sorted order.

优选地,步骤S4还包括:Preferably, step S4 also includes:

对测试节点的每种硬件设备对应的测试用例配置启动标识符,配置测试控制指令接入端口,测试控制指令接入端口接收启动测试硬件设备测试项启动标识符;Configure the start identifier for the test case corresponding to each hardware device of the test node, configure the test control instruction access port, and the test control instruction access port receives the start identifier of the start test hardware device test item;

将测试控制指令接入端口接收的测试硬件设备测试项启动标识符作为硬件兼容性测试控制指令,根据测试控制指令接入端口接收的测试硬件设备测试项启动标识符启动对应测试项的测试用例,将测试用例分别连接各个测试节点,对各个测试节点进行运行测试,以判断其对Openstack的兼容性,并生成测试结果。The test hardware device test item startup identifier received by the test control command access port is used as the hardware compatibility test control command, and the test case of the corresponding test item is started according to the test hardware device test item startup identifier received by the test control command access port. Connect the test cases to each test node respectively, run the test on each test node to judge its compatibility with Openstack, and generate test results.

优选地,步骤S4还包括:Preferably, step S4 also includes:

对每个测试项配置相应多个相应的测试用例;Configure multiple corresponding test cases for each test item;

将测试节点的待测硬件设备配置为准备状态;Configure the hardware device under test of the test node to a ready state;

根据测试控制指令接入端口接收的测试硬件设备测试项启动标识符启动对应测试项的测试用例,将测试用例分别连接各个测试节点,对各个测试节点进行运行测试,测试结束后,如果某一测试节点测试用例运行成功,将所述测试节点的测试项设为具有Openstack兼容性;输出测试报告;According to the test hardware device test item startup identifier received by the test control instruction access port, start the test case of the corresponding test item, connect the test case to each test node, and perform a running test on each test node. After the test is over, if a certain test Node test case runs successfully, and the test item of described test node is set as having Openstack compatibility; Output test report;

如果某一测试节点测试用例运行失败,则将所述测试节点的测试项设为不具有Openstack兼容性;If a test node test case operation fails, the test item of the test node is set as not having Openstack compatibility;

调取不具有Openstack兼容性的测试项,将不具有Openstack兼容性的测试项赋予准备状态,将测试用例分别连接至不具有Openstack兼容性测试项的各个测试节点,进行测试;Call the test items that do not have Openstack compatibility, assign the test items that do not have Openstack compatibility to the ready state, and connect the test cases to each test node that does not have Openstack compatibility test items for testing;

测试结束后,如果测试用例运行成功,将所述测试节点的测试项设为具有Openstack兼容性;输出测试报告;After the test is over, if the test case runs successfully, the test item of the test node is set to have Openstack compatibility; output test report;

如果某一测试节点测试用例运行失败,则将所述测试节点的测试项仍设为不具有Openstack兼容性;If a certain test node test case operation fails, the test item of the test node is still set as not having Openstack compatibility;

再次调取不具有Openstack兼容性的测试项,将不具有Openstack兼容性的测试项赋予准备状态,将测试用例分别连接至不具有Openstack兼容性测试项的各个测试节点,进行测试,直至到达预设测试次数;Recall the test items that do not have Openstack compatibility, assign the test items that do not have Openstack compatibility to the ready state, connect the test cases to each test node that does not have Openstack compatibility test items, and test until reaching the preset Testing frequency;

输出最终测试报告。Output final test report.

一种Openstack的硬件兼容性测试系统,包括:节点信息获取模块,管理平台部署模块,硬件设备信息处理模块,测试用例配置模块以及测试执行模块;A hardware compatibility testing system of Openstack, comprising: a node information acquisition module, a management platform deployment module, a hardware device information processing module, a test case configuration module and a test execution module;

节点信息获取模块用于获取集群内测试节点数量及测试节点地址,获取每个测试节点的硬件设备;The node information acquisition module is used to obtain the number of test nodes and addresses of test nodes in the cluster, and obtain the hardware equipment of each test node;

管理平台部署模块用于在每个测试节点的硬件设备上安装OS系统,部署Openstack管理平台;The management platform deployment module is used to install the OS system on the hardware device of each test node and deploy the Openstack management platform;

硬件设备信息处理模块用于获取每个测试节点的硬件设备信息,并将每个测试节点的硬件设备信息配置成硬件设备信息列表;The hardware device information processing module is used to obtain the hardware device information of each test node, and configure the hardware device information of each test node into a hardware device information list;

测试用例配置模块用于遍历所述硬件设备列表,获取与所述硬件设备列表中各硬件设备对应的测试项,基于每个测试项配置相应测试用例;The test case configuration module is used to traverse the list of hardware devices, obtain test items corresponding to each hardware device in the list of hardware devices, and configure corresponding test cases based on each test item;

测试执行模块用于获取硬件兼容性测试控制指令,将测试用例分别连接各个测试节点,对各个测试节点进行运行测试,以判断其对Openstack的兼容性,并生成测试结果。The test execution module is used to obtain hardware compatibility test control instructions, connect test cases to each test node, and run tests on each test node to judge its compatibility with Openstack and generate test results.

优选地,还包括:测试报告管理模块;Preferably, it also includes: a test report management module;

测试报告管理模块用于将测试结果和预期结果做对比,输出测试结果为测试通过或者测试未通过;对于测试未通过的测试节点,将测试用例内部的测试参数与所述测试节点的待测试参数进行一一比对,形成比对表,标示不符合测试参数的部分;将通过的测试用例数量和用例总量进行对比,给出测试通过率;将测试结果生成测试报告储存在数据库。The test report management module is used to compare the test result with the expected result, and output the test result as the test passed or the test failed; Perform one-to-one comparison to form a comparison table to mark the parts that do not meet the test parameters; compare the number of passed test cases with the total number of test cases to give the test pass rate; generate test reports from test results and store them in the database.

优选地,还包括:测试排序模块;Preferably, it also includes: a test sorting module;

测试排序模块用于将硬件设备对应的测试项配置成测试计划列表;基于预设的排列方式对测试计划列表进行次序排列;按照排列次序对测试计划列表中的每个测试项进行测试;The test sorting module is used to configure the test items corresponding to the hardware device into a test plan list; arrange the test plan list in order based on the preset arrangement method; test each test item in the test plan list according to the order of arrangement;

每个测试节点的硬件设备信息包括:存储器的容量信息,存储器的IO性能信息,测试节点处理器的IO性能信息,测试节点网络端口的通信性能信息,测试节点的内存读写信息,测试节点的BIOS信息,测试节点的BMC信息。The hardware device information of each test node includes: memory capacity information, memory IO performance information, test node processor IO performance information, test node network port communication performance information, test node memory read and write information, test node BIOS information, BMC information of the test node.

优选地,还包括:测试启动配置模块;Preferably, it also includes: a test startup configuration module;

测试启动配置模块用于对测试节点的每种硬件设备对应的测试用例配置启动标识符,配置测试控制指令接入端口,测试控制指令接入端口接收启动测试硬件设备测试项启动标识符;The test start configuration module is used to configure the start identifier for the test case corresponding to each hardware device of the test node, configure the test control command access port, and the test control command access port receives the start test hardware device test item start identifier;

测试执行模块还用于将测试控制指令接入端口接收的测试硬件设备测试项启动标识符作为硬件兼容性测试控制指令,根据测试控制指令接入端口接收的测试硬件设备测试项启动标识符启动对应测试项的测试用例,将测试用例分别连接各个测试节点,对各个测试节点进行运行测试,以判断其对Openstack的兼容性,并生成测试结果。The test execution module is also used to use the test hardware device test item startup identifier received by the test control instruction access port as the hardware compatibility test control instruction, and start the corresponding test hardware device test item startup identifier received by the test control instruction access port. The test case of the test item connects the test case to each test node and runs the test on each test node to judge its compatibility with Openstack and generate test results.

优选地,还包括:测试连接模块;Preferably, it also includes: a test connection module;

测试连接模块用于使测试用例调用Openstack接口,基于Openstack接口与各个测试节点之间通信连接;The test connection module is used to make the test case call the Openstack interface, and communicate with each test node based on the Openstack interface;

测试用例配置模块还用于对每个测试项配置相应多个相应的测试用例;The test case configuration module is also used to configure corresponding multiple corresponding test cases for each test item;

硬件设备信息处理模块还用于将测试节点的待测硬件设备配置为准备状态;The hardware device information processing module is also used to configure the hardware device under test of the test node to be in a ready state;

测试执行模块还用于根据测试控制指令接入端口接收的测试硬件设备测试项启动标识符启动对应测试项的测试用例,将测试用例分别连接各个测试节点,对各个测试节点进行运行测试,测试结束后,如果某一测试节点测试用例运行成功,将所述测试节点的测试项设为具有Openstack兼容性;输出测试报告;The test execution module is also used to start the test case of the corresponding test item according to the test hardware device test item startup identifier received by the test control instruction access port, connect the test case to each test node respectively, and perform a running test on each test node, and the test ends Afterwards, if a certain test node test case runs successfully, the test item of the test node is set as having Openstack compatibility; output test report;

如果某一测试节点测试用例运行失败,则将所述测试节点的测试项设为不具有Openstack兼容性;If a test node test case operation fails, the test item of the test node is set as not having Openstack compatibility;

调取不具有Openstack兼容性的测试项,将不具有Openstack兼容性的测试项赋予准备状态,将测试用例分别连接至不具有Openstack兼容性测试项的各个测试节点,进行测试;Call the test items that do not have Openstack compatibility, assign the test items that do not have Openstack compatibility to the ready state, and connect the test cases to each test node that does not have Openstack compatibility test items for testing;

测试结束后,如果测试用例运行成功,将所述测试节点的测试项设为具有Openstack兼容性;输出测试报告;After the test is over, if the test case runs successfully, the test item of the test node is set to have Openstack compatibility; output test report;

如果某一测试节点测试用例运行失败,则将所述测试节点的测试项仍设为不具有Openstack兼容性;If a certain test node test case operation fails, the test item of the test node is still set as not having Openstack compatibility;

再次调取不具有Openstack兼容性的测试项,将不具有Openstack兼容性的测试项赋予准备状态,将测试用例分别连接至不具有Openstack兼容性测试项的各个测试节点,进行测试,直至到达预设测试次数;Recall the test items that do not have Openstack compatibility, assign the test items that do not have Openstack compatibility to the ready state, connect the test cases to each test node that does not have Openstack compatibility test items, and test until reaching the preset Testing frequency;

输出最终测试报告。Output final test report.

从以上技术方案可以看出,本发明具有以下优点:As can be seen from the above technical solutions, the present invention has the following advantages:

本发明中获取集群内测试节点数量及测试节点地址,获取每个测试节点的硬件设备,并在每个测试节点的硬件设备上安装OS系统,部署Openstack管理平台;获取每个测试节点的硬件设备信息,并将每个测试节点的硬件设备信息配置成硬件设备信息列表;遍历所述硬件设备列表,获取与所述硬件设备列表中各硬件设备对应的测试项,基于每个测试项配置相应测试用例;获取硬件兼容性测试控制指令,将测试用例分别连接各个测试节点,对各个测试节点进行运行测试,以判断其对Openstack的兼容性,并生成测试结果。这样能够对各个节点的存储器,处理器,网络端口,内存等元件进行测试,减少测试人员的工作量和测试时间,提高便利性。In the present invention, obtain the test node quantity and the test node address in the cluster, obtain the hardware equipment of each test node, and install the OS system on the hardware equipment of each test node, deploy the Openstack management platform; obtain the hardware equipment of each test node information, and configure the hardware device information of each test node into a hardware device information list; traverse the hardware device list, obtain the test items corresponding to each hardware device in the hardware device list, and configure the corresponding test based on each test item Use case: Obtain hardware compatibility test control instructions, connect test cases to each test node, and run tests on each test node to judge its compatibility with Openstack and generate test results. In this way, the memory, processor, network port, memory and other components of each node can be tested, reducing the workload and testing time of testers, and improving convenience.

而且可以对测试项进行次序排列,根据测试项的运行相互次序排列,可以根据系统中的需要由测试人员自行配置次序。这样便于基于不同的测试目的,设置测试次序以提高测试效率。Moreover, the test items can be arranged in order, and the order can be arranged according to the mutual order of the test items, and the order can be configured by the tester according to the needs of the system. In this way, it is convenient to set the test sequence based on different test purposes to improve test efficiency.

由于测试节点较多,测试项也多,为了能够统一执行测试配置了测试控制指令接入端口,测试控制指令接入端口接收启动测试硬件设备测试项启动标识符;这样测试人员可以统一输入需要测试的启动标识符,在测试控制指令接入端口输入,这样相当于系统获取硬件兼容性测试控制指令,执行测试人员需要测试的测试项。使得测试更有针对性。Since there are many test nodes and many test items, in order to uniformly execute the test, a test control command access port is configured, and the test control command access port receives the start-up identifier of the test hardware device test item; in this way, testers can uniformly input the test items that need to be tested. The start-up identifier is input at the test control command access port, which is equivalent to the system obtaining the hardware compatibility test control command and executing the test items that the tester needs to test. Make the test more targeted.

本发明采用多节点同时运行测试用例,与现有的多线程运行脚本的方式相比,大大节省了运行脚本的时间,提高了测试效率。采用多节点动态运行测试用例的方式,减少了测试用例运行时长,节省了测试运行时间。The present invention uses multiple nodes to run test cases at the same time, and compared with the existing multi-thread running script mode, the time for running scripts is greatly saved and test efficiency is improved. The method of running test cases dynamically by multiple nodes reduces the running time of test cases and saves test running time.

还实现了对不具有Openstack兼容性的测试项多次测试,减少或避免单次,或有限次测试时由于外界干扰而影响测试结果。基于多次反复测试可以得出测试兼容率。而且基于多个不同的测试用例与测试节点的测试项交替测试,避免因测试用例的问题而影响测试结果。It also implements multiple tests for test items that do not have Openstack compatibility, reducing or avoiding the impact of test results due to external interference during single or limited tests. The test compatibility rate can be obtained based on repeated tests. Moreover, the test items based on multiple different test cases and test nodes are alternately tested to avoid affecting the test results due to problems in the test cases.

附图说明Description of drawings

为了更清楚地说明本发明的技术方案,下面将对描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solution of the present invention more clearly, the accompanying drawings that need to be used in the description will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. As far as people are concerned, other drawings can also be obtained based on these drawings on the premise of not paying creative work.

图1为Openstack的硬件兼容性测试方法流程图;Fig. 1 is the flow chart of the hardware compatibility testing method of Openstack;

图2为Openstack的硬件兼容性测试方法实施例流程图;Fig. 2 is the flow chart of the hardware compatibility test method embodiment embodiment of Openstack;

图3为Openstack的硬件兼容性测试系统示意图;Fig. 3 is the schematic diagram of the hardware compatibility testing system of Openstack;

图4为Openstack的硬件兼容性测试系统实施例示意图。FIG. 4 is a schematic diagram of an embodiment of a hardware compatibility testing system of Openstack.

具体实施方式Detailed ways

本发明提供一种Openstack的硬件兼容性测试方法,如图1所示,方法包括:The present invention provides a kind of hardware compatibility test method of Openstack, as shown in Figure 1, method comprises:

S1,获取集群内测试节点数量及测试节点地址,获取每个测试节点的硬件设备,并在每个测试节点的硬件设备上安装OS系统,部署Openstack管理平台;S1, obtain the number of test nodes in the cluster and the address of the test nodes, obtain the hardware device of each test node, install the OS system on the hardware device of each test node, and deploy the Openstack management platform;

S2,获取每个测试节点的硬件设备信息,并将每个测试节点的硬件设备信息配置成硬件设备信息列表;S2, acquiring the hardware device information of each test node, and configuring the hardware device information of each test node into a hardware device information list;

S3,遍历所述硬件设备列表,获取与所述硬件设备列表中各硬件设备对应的测试项,基于每个测试项配置相应测试用例;S3, traversing the list of hardware devices, obtaining test items corresponding to each hardware device in the list of hardware devices, and configuring corresponding test cases based on each test item;

S4,获取硬件兼容性测试控制指令,将测试用例分别连接各个测试节点,对各个测试节点进行运行测试,以判断其对Openstack的兼容性,并生成测试结果。S4. Obtain a hardware compatibility test control instruction, connect the test cases to each test node, and run a test on each test node to determine its compatibility with Openstack, and generate a test result.

为使得本发明的发明目的、特征、优点能够更加的明显和易懂,下面将运用具体的实施例及附图,对本发明保护的技术方案进行清楚、完整地描述,显然,下面所描述的实施例仅仅是本发明一部分实施例,而非全部的实施例。基于本专利中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本专利保护的范围。In order to make the purpose, features and advantages of the present invention more obvious and understandable, the technical solutions protected by the present invention will be clearly and completely described below using specific embodiments and accompanying drawings. Obviously, the implementation described below Examples are only some embodiments of the present invention, but not all embodiments. Based on the embodiments in this patent, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this patent.

本发明提供的一种实施例中,如图2所示,In an embodiment provided by the present invention, as shown in FIG. 2,

S11,获取集群内测试节点数量及测试节点地址,获取每个测试节点的硬件设备,并在每个测试节点的硬件设备上安装OS系统,部署Openstack管理平台;S11, obtaining the number of test nodes in the cluster and the address of the test nodes, obtaining the hardware device of each test node, installing an OS system on the hardware device of each test node, and deploying the Openstack management platform;

S12,获取每个测试节点的硬件设备信息,并将每个测试节点的硬件设备信息配置成硬件设备信息列表;S12, acquiring the hardware device information of each test node, and configuring the hardware device information of each test node into a hardware device information list;

S13,遍历所述硬件设备列表,获取与所述硬件设备列表中各硬件设备对应的测试项,基于每个测试项配置相应测试用例;S13, traversing the hardware device list, acquiring test items corresponding to each hardware device in the hardware device list, and configuring a corresponding test case based on each test item;

S14,获取硬件兼容性测试控制指令,将测试用例分别连接各个测试节点,对各个测试节点进行运行测试,以判断其对Openstack的兼容性,并生成测试结果。S14. Obtain a hardware compatibility test control instruction, connect the test case to each test node, and run a test on each test node to determine its compatibility with Openstack, and generate a test result.

S15,将测试结果和预期结果做对比,输出测试结果为测试通过或者测试未通过;对于测试未通过的测试节点,将测试用例内部的测试参数与所述测试节点的待测试参数进行一一比对,形成比对表,标示不符合测试参数的部分;将通过的测试用例数量和用例总量进行对比,给出测试通过率;将测试结果生成测试报告储存在数据库。S15, compare the test result with the expected result, and output the test result as the test passed or the test failed; for the test node that failed the test, compare the test parameters inside the test case with the parameters to be tested of the test node Yes, form a comparison table to mark the parts that do not meet the test parameters; compare the number of passed test cases with the total number of test cases, and give the test pass rate; generate a test report from the test results and store it in the database.

这里是基于测试结果和预期结果做对比,主要比较的是测试参数是否为一一对应,当然在测试时可以不仅仅比较测试参数,可以比较测试项中其他要素,具体比较的要素,可以根据测试需要预设配置。Here is a comparison based on the test results and the expected results. The main comparison is whether the test parameters are one-to-one correspondence. Of course, not only the test parameters can be compared during the test, but other elements in the test items can be compared. The specific elements of the comparison can be based on the test Requires preset configuration.

本发明提供的另一种实施例中,In another embodiment provided by the present invention,

获取集群内测试节点数量及测试节点地址,获取每个测试节点的硬件设备,并在每个测试节点的硬件设备上安装OS系统,部署Openstack管理平台;Obtain the number of test nodes and addresses of test nodes in the cluster, obtain the hardware device of each test node, install the OS system on the hardware device of each test node, and deploy the Openstack management platform;

获取每个测试节点的硬件设备信息,并将每个测试节点的硬件设备信息配置成硬件设备信息列表;Obtain the hardware device information of each test node, and configure the hardware device information of each test node into a list of hardware device information;

遍历所述硬件设备列表,获取与所述硬件设备列表中各硬件设备对应的测试项,基于每个测试项配置相应测试用例;Traversing the list of hardware devices, obtaining test items corresponding to each hardware device in the list of hardware devices, and configuring corresponding test cases based on each test item;

将硬件设备对应的测试项配置成测试计划列表;Configure the test items corresponding to the hardware devices as a list of test plans;

基于预设的排列方式对测试计划列表进行次序排列;Sort the test plan list in order based on the preset arrangement method;

按照排列次序对测试计划列表中的每个测试项进行测试。Test each test item in the test plan list in the sorted order.

获取硬件兼容性测试控制指令,将测试用例分别连接各个测试节点,对各个测试节点进行运行测试,以判断其对Openstack的兼容性,并生成测试结果。Obtain hardware compatibility test control instructions, connect test cases to each test node, and run tests on each test node to judge its compatibility with Openstack and generate test results.

这里的次序排列可以根据测试项的运行相互次序排列,可以根据系统中的需要由测试人员自行配置次序。这样便于基于不同的测试目的,设置测试次序以提高测试效率。The order here can be arranged according to the mutual order of the test items, and the order can be configured by the tester according to the needs of the system. In this way, it is convenient to set the test sequence based on different test purposes to improve test efficiency.

本发明提供的另一种实施例中,获取集群内测试节点数量及测试节点地址,获取每个测试节点的硬件设备,并在每个测试节点的硬件设备上安装OS系统,部署Openstack管理平台;In another embodiment provided by the present invention, the number of test nodes and the address of the test nodes in the cluster are obtained, the hardware device of each test node is obtained, and the OS system is installed on the hardware device of each test node, and the Openstack management platform is deployed;

获取每个测试节点的硬件设备信息,并将每个测试节点的硬件设备信息配置成硬件设备信息列表;Obtain the hardware device information of each test node, and configure the hardware device information of each test node into a list of hardware device information;

遍历所述硬件设备列表,获取与所述硬件设备列表中各硬件设备对应的测试项,基于每个测试项配置相应测试用例;Traversing the list of hardware devices, obtaining test items corresponding to each hardware device in the list of hardware devices, and configuring corresponding test cases based on each test item;

对测试节点的每种硬件设备对应的测试用例配置启动标识符,配置测试控制指令接入端口,测试控制指令接入端口接收启动测试硬件设备测试项启动标识符;Configure the start identifier for the test case corresponding to each hardware device of the test node, configure the test control instruction access port, and the test control instruction access port receives the start identifier of the start test hardware device test item;

将测试控制指令接入端口接收的测试硬件设备测试项启动标识符作为硬件兼容性测试控制指令,根据测试控制指令接入端口接收的测试硬件设备测试项启动标识符启动对应测试项的测试用例,将测试用例分别连接各个测试节点,对各个测试节点进行运行测试,以判断其对Openstack的兼容性,并生成测试结果。The test hardware device test item startup identifier received by the test control command access port is used as the hardware compatibility test control command, and the test case of the corresponding test item is started according to the test hardware device test item startup identifier received by the test control command access port. Connect the test cases to each test node respectively, run the test on each test node to judge its compatibility with Openstack, and generate test results.

这里由于测试节点较多,测试项也多,为了能够统一执行测试配置了测试控制指令接入端口,测试控制指令接入端口接收启动测试硬件设备测试项启动标识符;这样测试人员可以统一输入需要测试的启动标识符,在测试控制指令接入端口输入,这样相当于系统获取硬件兼容性测试控制指令,执行测试人员需要测试的测试项。使得测试更有针对性。Since there are many test nodes and many test items, in order to uniformly execute the test, the test control command access port is configured, and the test control command access port receives the start-up identifier of the test hardware device test item; in this way, the tester can input the required The start identifier of the test is input at the test control command access port, which is equivalent to the system obtaining the hardware compatibility test control command and executing the test items that the tester needs to test. Make the test more targeted.

本发明提供的另一种实施例中,获取集群内测试节点数量及测试节点地址,获取每个测试节点的硬件设备,并在每个测试节点的硬件设备上安装OS系统,部署Openstack管理平台;In another embodiment provided by the present invention, the number of test nodes and the address of the test nodes in the cluster are obtained, the hardware device of each test node is obtained, and the OS system is installed on the hardware device of each test node, and the Openstack management platform is deployed;

获取每个测试节点的硬件设备信息,并将每个测试节点的硬件设备信息配置成硬件设备信息列表;Obtain the hardware device information of each test node, and configure the hardware device information of each test node into a list of hardware device information;

遍历所述硬件设备列表,获取与所述硬件设备列表中各硬件设备对应的测试项,基于每个测试项配置相应测试用例;具体的,对每个测试项配置相应多个相应的测试用例;Traverse the list of hardware devices, obtain test items corresponding to each hardware device in the list of hardware devices, and configure corresponding test cases based on each test item; specifically, configure corresponding multiple corresponding test cases for each test item;

将测试节点的待测硬件设备配置为准备状态;Configure the hardware device under test of the test node to a ready state;

根据测试控制指令接入端口接收的测试硬件设备测试项启动标识符启动对应测试项的测试用例,将测试用例分别连接各个测试节点,对各个测试节点进行运行测试,测试结束后,如果某一测试节点测试用例运行成功,将所述测试节点的测试项设为具有Openstack兼容性;输出测试报告;According to the test hardware device test item startup identifier received by the test control instruction access port, start the test case of the corresponding test item, connect the test case to each test node, and perform a running test on each test node. After the test is over, if a certain test The node test case runs successfully, and the test item of the test node is set as having Openstack compatibility; output test report;

如果某一测试节点测试用例运行失败,则将所述测试节点的测试项设为不具有Openstack兼容性;If a test node test case operation fails, the test item of the test node is set as not having Openstack compatibility;

调取不具有Openstack兼容性的测试项,将不具有Openstack兼容性的测试项赋予准备状态,将测试用例分别连接至不具有Openstack兼容性测试项的各个测试节点,进行测试;Call the test items that do not have Openstack compatibility, assign the test items that do not have Openstack compatibility to the ready state, and connect the test cases to each test node that does not have Openstack compatibility test items for testing;

测试结束后,如果测试用例运行成功,将所述测试节点的测试项设为具有Openstack兼容性;输出测试报告;After the test is over, if the test case runs successfully, the test item of the test node is set to have Openstack compatibility; output test report;

如果某一测试节点测试用例运行失败,则将所述测试节点的测试项仍设为不具有Openstack兼容性;If a certain test node test case operation fails, the test item of the test node is still set as not having Openstack compatibility;

再次调取不具有Openstack兼容性的测试项,将不具有Openstack兼容性的测试项赋予准备状态,将测试用例分别连接至不具有Openstack兼容性测试项的各个测试节点,进行测试,直至到达预设测试次数;输出最终测试报告。Recall the test items that do not have Openstack compatibility, assign the test items that do not have Openstack compatibility to the ready state, connect the test cases to each test node that does not have Openstack compatibility test items, and test until reaching the preset Number of tests; output final test report.

在这个实施例中,同样,对测试节点的每种硬件设备对应的测试用例配置启动标识符,配置测试控制指令接入端口,测试控制指令接入端口接收启动测试硬件设备测试项启动标识符;将测试控制指令接入端口接收的测试硬件设备测试项启动标识符作为硬件兼容性测试控制指令,根据测试控制指令接入端口接收的测试硬件设备测试项启动标识符启动对应测试项的测试用例,将测试用例分别连接各个测试节点,对各个测试节点进行运行测试,以判断其对Openstack的兼容性,并生成测试结果。In this embodiment, similarly, configure the start identifier for the test case corresponding to each hardware device of the test node, configure the test control instruction access port, and the test control instruction access port receives the start identifier of the start test hardware device test item; The test hardware device test item startup identifier received by the test control command access port is used as the hardware compatibility test control command, and the test case of the corresponding test item is started according to the test hardware device test item startup identifier received by the test control command access port. Connect the test cases to each test node respectively, run the test on each test node to judge its compatibility with Openstack, and generate test results.

本发明还提供一种Openstack的硬件兼容性测试系统,如图3和图4所示,包括:节点信息获取模块1,管理平台部署模块2,硬件设备信息处理模块3,测试用例配置模块4以及测试执行模块5;The present invention also provides a hardware compatibility testing system of Openstack, as shown in Figure 3 and Figure 4, comprising: node information acquisition module 1, management platform deployment module 2, hardware device information processing module 3, test case configuration module 4 and Test execution module 5;

节点信息获取模块1用于获取集群内测试节点数量及测试节点地址,获取每个测试节点的硬件设备;管理平台部署模块2用于在每个测试节点的硬件设备上安装OS系统,部署Openstack管理平台;硬件设备信息处理模块3用于获取每个测试节点的硬件设备信息,并将每个测试节点的硬件设备信息配置成硬件设备信息列表;测试用例配置模块4用于遍历所述硬件设备列表,获取与所述硬件设备列表中各硬件设备对应的测试项,基于每个测试项配置相应测试用例;测试执行模块5用于获取硬件兼容性测试控制指令,将测试用例分别连接各个测试节点,对各个测试节点进行运行测试,以判断其对Openstack的兼容性,并生成测试结果。Node information acquisition module 1 is used to obtain the number of test nodes and addresses of test nodes in the cluster, and obtain the hardware device of each test node; the management platform deployment module 2 is used to install the OS system on the hardware device of each test node, and deploy Openstack management Platform; hardware device information processing module 3 is used to obtain the hardware device information of each test node, and configures the hardware device information of each test node into a list of hardware device information; test case configuration module 4 is used to traverse the list of hardware devices , obtaining test items corresponding to each hardware device in the list of hardware devices, and configuring corresponding test cases based on each test item; the test execution module 5 is used to obtain hardware compatibility test control instructions, and connect the test cases to each test node respectively, Run tests on each test node to judge its compatibility with Openstack and generate test results.

本发明提供的一种实施例中,系统还包括:测试报告管理模块6;测试报告管理模块6用于将测试结果和预期结果做对比,输出测试结果为测试通过或者测试未通过;对于测试未通过的测试节点,将测试用例内部的测试参数与所述测试节点的待测试参数进行一一比对,形成比对表,标示不符合测试参数的部分;将通过的测试用例数量和用例总量进行对比,给出测试通过率;将测试结果生成测试报告储存在数据库。In an embodiment provided by the present invention, the system also includes: a test report management module 6; the test report management module 6 is used to compare the test result with the expected result, and the output test result is that the test passes or the test fails; For the passed test node, compare the test parameters inside the test case with the parameters to be tested of the test node one by one, form a comparison table, and mark the parts that do not meet the test parameters; the number of test cases and the total amount of use cases that will pass Make a comparison and give the test pass rate; generate a test report from the test result and store it in the database.

本发明提供的另一种实施例中,系统还包括:测试排序模块;In another embodiment provided by the present invention, the system further includes: a test ordering module;

测试排序模块用于将硬件设备对应的测试项配置成测试计划列表;基于预设的排列方式对测试计划列表进行次序排列;按照排列次序对测试计划列表中的每个测试项进行测试;The test sorting module is used to configure the test items corresponding to the hardware device into a test plan list; arrange the test plan list in order based on the preset arrangement method; test each test item in the test plan list according to the order of arrangement;

其中,每个测试节点的硬件设备信息包括:存储器的容量信息,存储器的IO性能信息,测试节点处理器的IO性能信息,测试节点网络端口的通信性能信息,测试节点的内存读写信息,测试节点的BIOS信息,测试节点的BMC信息。Among them, the hardware device information of each test node includes: memory capacity information, memory IO performance information, test node processor IO performance information, test node network port communication performance information, test node memory read and write information, test The BIOS information of the node, and the BMC information of the test node.

本发明提供的另一种实施例中,系统还包括:测试启动配置模块;In another embodiment provided by the present invention, the system further includes: a test startup configuration module;

测试启动配置模块用于对测试节点的每种硬件设备对应的测试用例配置启动标识符,配置测试控制指令接入端口,测试控制指令接入端口接收启动测试硬件设备测试项启动标识符;The test start configuration module is used to configure the start identifier for the test case corresponding to each hardware device of the test node, configure the test control command access port, and the test control command access port receives the start test hardware device test item start identifier;

测试执行模块5还用于将测试控制指令接入端口接收的测试硬件设备测试项启动标识符作为硬件兼容性测试控制指令,根据测试控制指令接入端口接收的测试硬件设备测试项启动标识符启动对应测试项的测试用例,将测试用例分别连接各个测试节点,对各个测试节点进行运行测试,以判断其对Openstack的兼容性,并生成测试结果。The test execution module 5 is also used to use the test hardware device test item startup identifier received by the test control instruction access port as the hardware compatibility test control instruction, and start the test hardware device test item startup identifier received by the test control instruction access port. Corresponding to the test case of the test item, the test case is connected to each test node, and each test node is run and tested to judge its compatibility with Openstack and generate test results.

系统还包括:测试连接模块;The system also includes: a test connection module;

测试连接模块用于使测试用例调用Openstack接口,基于Openstack接口与各个测试节点之间通信连接;测试用例配置模块4还用于对每个测试项配置相应多个相应的测试用例;硬件设备信息处理模块3还用于将测试节点的待测硬件设备配置为准备状态;测试执行模块5还用于根据测试控制指令接入端口接收的测试硬件设备测试项启动标识符启动对应测试项的测试用例,将测试用例分别连接各个测试节点,对各个测试节点进行运行测试,测试结束后,如果某一测试节点测试用例运行成功,将所述测试节点的测试项设为具有Openstack兼容性;输出测试报告;如果某一测试节点测试用例运行失败,则将所述测试节点的测试项设为不具有Openstack兼容性;调取不具有Openstack兼容性的测试项,将不具有Openstack兼容性的测试项赋予准备状态,将测试用例分别连接至不具有Openstack兼容性测试项的各个测试节点,进行测试;测试结束后,如果测试用例运行成功,将所述测试节点的测试项设为具有Openstack兼容性;输出测试报告;如果某一测试节点测试用例运行失败,则将所述测试节点的测试项仍设为不具有Openstack兼容性;再次调取不具有Openstack兼容性的测试项,将不具有Openstack兼容性的测试项赋予准备状态,将测试用例分别连接至不具有Openstack兼容性测试项的各个测试节点,进行测试,直至到达预设测试次数;输出最终测试报告。The test connection module is used to make the test case call the Openstack interface, and communicates with each test node based on the Openstack interface; the test case configuration module 4 is also used to configure a corresponding number of corresponding test cases for each test item; hardware device information processing Module 3 is also used to configure the hardware device under test of the test node to a ready state; the test execution module 5 is also used to start the test case of the corresponding test item according to the test hardware device test item startup identifier received by the test control instruction access port, The test cases are respectively connected to each test node, and each test node is tested for operation. After the test is over, if a certain test node test case runs successfully, the test item of the test node is set as having Openstack compatibility; output test report; If a certain test node test case operation fails, then the test item of the test node is set as not having Openstack compatibility; the test item not having Openstack compatibility is called, and the test item not having Openstack compatibility is given a ready state Connect the test case to each test node that does not have the Openstack compatibility test item for testing; after the test is over, if the test case runs successfully, set the test item of the test node to have Openstack compatibility; output the test report ; If a certain test node test case operation fails, the test item of the test node is still set as not having Openstack compatibility; calling the test item not having Openstack compatibility again will not have the test item of Openstack compatibility Give the ready state, connect the test cases to each test node that does not have Openstack compatibility test items, and test until the preset number of tests is reached; output the final test report.

对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. the hardware compatibility test method of Openstack a kind of, which is characterized in that method includes:
S1 obtains test node quantity and test node address in cluster, obtains the hardware device of each test node, and every OS system is installed, deployment Openstack manages platform on the hardware device of a test node;
S2 obtains the hardware equipment information of each test node, and the hardware equipment information of each test node is configured to firmly Part facility information list;
S3 traverses the hardware device list, obtains test item corresponding with hardware device each in the hardware device list, base Corresponding test case is configured in each test item;
S4 obtains the instruction of hardware compatibility testing and control, test case is separately connected each test node, saves to each test Point carries out operation test, to judge its compatibility to Openstack, and generates test result.
2. the hardware compatibility test method of Openstack according to claim 1, which is characterized in that after step S4 Further include:
Test result and expected results are compared, outputing test result to pass through or test for test does not pass through;For test Unsanctioned test node is compared the parameter to be tested of test parameter and the test node inside test case one by one It is right, deck watch is formed, mark does not meet the part of test parameter;
The test case quantity passed through and use-case total amount are compared, test percent of pass is provided;
Generating test results as test report to be stored in database.
3. the hardware compatibility test method of Openstack according to claim 1, which is characterized in that step S3 is also wrapped It includes:
The corresponding test item of hardware device is configured to test plan list;
Sequential arrangement is carried out to test plan list based on preset arrangement mode;
Each test item in test plan list is tested according to arrangement order.
4. the hardware compatibility test method of Openstack according to claim 1, which is characterized in that step S4 is also wrapped It includes:
Starting identifier, configuration testing and control instruction access are configured to the corresponding test case of every kind of hardware device of test node Port, testing and control instruct access interface to receive starting test hardware device test item starting identifier;
It is surveyed using the received test hardware device test item starting identifier of testing and control instruction access interface as hardware compatibility Control instruction is tried, instructs the received test hardware device test item starting identifier starting of access interface to correspond to according to testing and control The test case of test item, is separately connected each test node for test case, carries out operation test to each test node, with Judge its compatibility to Openstack, and generates test result.
5. the hardware compatibility test method of Openstack according to claim 1, which is characterized in that step S4 is also wrapped It includes:
Corresponding multiple corresponding test cases are configured to each test item;
Preparation state is configured by the hardware device to be measured of test node;
The received test hardware device test item starting identifier of access interface is instructed to start corresponding test item according to testing and control Test case, test case is separately connected each test node, operation test is carried out to each test node, test terminates Afterwards, if a certain test node test case is run successfully, the test item of the test node is set as simultaneous with Openstack Capacitive;Export test report;
If a certain test node test case operation failure, the test item of the test node is set as not having Openstack compatibility;
The test item without Openstack compatibility is transferred, the test item for not having Openstack compatibility is assigned and is prepared Test case is respectively connected to be tested without each test node of Openstack compatibility test item by state;
After test, if test case is run successfully, the test item of the test node is set as simultaneous with Openstack Capacitive;Export test report;
If a certain test node test case operation failure, the test item of the test node is still set as not having Openstack compatibility;
The test item without Openstack compatibility is transferred again, and the test item for not having Openstack compatibility is assigned Test case is respectively connected to be surveyed without each test node of Openstack compatibility test item by preparation state Examination, until reaching default testing time;
Export final test report.
6. the hardware compatibility test macro of Openstack a kind of characterized by comprising nodal information obtains module, management Platform deployment module, hardware equipment information processing module, test case configuration module and testing execution module;
Nodal information obtains module for obtaining test node quantity and test node address in cluster, obtains each test node Hardware device;
It manages Platform deployment module and is used to install OS system, deployment Openstack pipe on the hardware device of each test node Platform;
Hardware equipment information processing module is used to obtain the hardware equipment information of each test node, and by each test node Hardware equipment information is configured to hardware equipment information list;
Test case configuration module is set for traversing the hardware device list, acquisition with each hardware in the hardware device list Standby corresponding test item configures corresponding test case based on each test item;
Test case is separately connected each test and saved by testing execution module for obtaining the instruction of hardware compatibility testing and control Point carries out operation test to each test node, to judge its compatibility to Openstack, and generates test result.
7. the hardware compatibility test macro of Openstack according to claim 6, which is characterized in that
Further include: test report management module;
Test report management module for test result and expected results to be compared, output test result pass through for test or Test does not pass through;For testing unsanctioned test node, by the test parameter and the test node inside test case Parameter to be tested is compared one by one, forms deck watch, and mark does not meet the part of test parameter;The test case number that will pass through Amount and use-case total amount compare, and provide test percent of pass;Generating test results as test report to be stored in database.
8. the hardware compatibility test macro of Openstack according to claim 6, which is characterized in that further include: test Sorting module;
Test sequencing module is used to the corresponding test item of hardware device being configured to test plan list;Based on preset arrangement side Formula carries out sequential arrangement to test plan list;Each test item in test plan list is surveyed according to arrangement order Examination;
The hardware equipment information of each test node includes: the capacity information of memory, the IO performance information of memory, test section The IO performance information of point processor, the communication performance information of the test node network port, the memory read-write information of test node are surveyed Try the BIOS information of node, the BMC information of test node.
9. the hardware compatibility test macro of Openstack according to claim 6, which is characterized in that further include: test Starting configuration module;
Test starting configuration module is used to configure every kind of hardware device of test node corresponding test case starting identifier, It configures testing and control and instructs access interface, testing and control instructs access interface to receive starting test hardware device test item starting mark Know symbol;
Testing execution module is also used to instructing testing and control into the received test hardware device test item starting mark of access interface Symbol is instructed as hardware compatibility testing and control, instructs the received test hardware device test item of access interface according to testing and control Start the test case that identifier starts corresponding test item, test case is separately connected each test node, to each test Node carries out operation test, to judge its compatibility to Openstack, and generates test result.
10. the hardware compatibility test macro of Openstack according to claim 9, which is characterized in that further include: it surveys Try link block;
Test link block is saved for making test case call Openstack interface based on Openstack interface and each test It is communicated to connect between point;
Test case configuration module is also used to configure each test item corresponding multiple corresponding test cases;
Hardware equipment information processing module is also used to configure preparation state for the hardware device to be measured of test node;
Testing execution module is also used to instruct the received test hardware device test item starting mark of access interface according to testing and control Know the test case that symbol starts corresponding test item, test case be separately connected each test node, to each test node into Row operation test, after test, if a certain test node test case is run successfully, by the test item of the test node It is set as with Openstack compatibility;Export test report;
If a certain test node test case operation failure, the test item of the test node is set as not having Openstack compatibility;
The test item without Openstack compatibility is transferred, the test item for not having Openstack compatibility is assigned and is prepared Test case is respectively connected to be tested without each test node of Openstack compatibility test item by state;
After test, if test case is run successfully, the test item of the test node is set as simultaneous with Openstack Capacitive;Export test report;
If a certain test node test case operation failure, the test item of the test node is still set as not having Openstack compatibility;
The test item without Openstack compatibility is transferred again, and the test item for not having Openstack compatibility is assigned Test case is respectively connected to be surveyed without each test node of Openstack compatibility test item by preparation state Examination, until reaching default testing time;
Export final test report.
CN201810679867.2A 2018-06-27 2018-06-27 A kind of the hardware compatibility test method and system of Openstack Pending CN108959082A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810679867.2A CN108959082A (en) 2018-06-27 2018-06-27 A kind of the hardware compatibility test method and system of Openstack

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810679867.2A CN108959082A (en) 2018-06-27 2018-06-27 A kind of the hardware compatibility test method and system of Openstack

Publications (1)

Publication Number Publication Date
CN108959082A true CN108959082A (en) 2018-12-07

Family

ID=64487139

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810679867.2A Pending CN108959082A (en) 2018-06-27 2018-06-27 A kind of the hardware compatibility test method and system of Openstack

Country Status (1)

Country Link
CN (1) CN108959082A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111611148A (en) * 2019-02-22 2020-09-01 上海哔哩哔哩科技有限公司 Compatibility concurrent testing method and system for iOS system application software
CN112051469A (en) * 2020-09-11 2020-12-08 上海博泰悦臻网络技术服务有限公司 Relay switch-based equipment testing method, medium, testing equipment and system
WO2024193195A1 (en) * 2023-03-21 2024-09-26 华为云计算技术有限公司 Hardware compatibility test method and apparatus, computing device cluster, and program product

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077114A (en) * 2012-12-27 2013-05-01 武汉烽火富华电气有限责任公司 Automatic testing method based on communication protocol of temperature measuring device
CN105677571A (en) * 2016-01-29 2016-06-15 努比亚技术有限公司 Device and method for testing software compatibility of mobile terminal
CN106411633A (en) * 2016-08-23 2017-02-15 国家电网公司 Web application compatibility testing method based on openstack and system thereof
US20170060713A1 (en) * 2015-08-27 2017-03-02 Google Inc. Systems and methods for device compatibility testing and reporting
US20170091058A1 (en) * 2014-02-11 2017-03-30 Tencent Technology (Shenzhen) Company Limited Method and apparatus for testing compatibility of 3D engine
CN107943702A (en) * 2017-11-28 2018-04-20 中标软件有限公司 Hardware compatibility test method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077114A (en) * 2012-12-27 2013-05-01 武汉烽火富华电气有限责任公司 Automatic testing method based on communication protocol of temperature measuring device
US20170091058A1 (en) * 2014-02-11 2017-03-30 Tencent Technology (Shenzhen) Company Limited Method and apparatus for testing compatibility of 3D engine
US20170060713A1 (en) * 2015-08-27 2017-03-02 Google Inc. Systems and methods for device compatibility testing and reporting
CN105677571A (en) * 2016-01-29 2016-06-15 努比亚技术有限公司 Device and method for testing software compatibility of mobile terminal
CN106411633A (en) * 2016-08-23 2017-02-15 国家电网公司 Web application compatibility testing method based on openstack and system thereof
CN107943702A (en) * 2017-11-28 2018-04-20 中标软件有限公司 Hardware compatibility test method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘亮等: "分布式软件系统兼容性自动测试用例的研究与开发", 《计算机应用研究》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111611148A (en) * 2019-02-22 2020-09-01 上海哔哩哔哩科技有限公司 Compatibility concurrent testing method and system for iOS system application software
CN111611148B (en) * 2019-02-22 2023-08-29 上海哔哩哔哩科技有限公司 Compatibility concurrent test method and system for iOS system application software
CN112051469A (en) * 2020-09-11 2020-12-08 上海博泰悦臻网络技术服务有限公司 Relay switch-based equipment testing method, medium, testing equipment and system
WO2024193195A1 (en) * 2023-03-21 2024-09-26 华为云计算技术有限公司 Hardware compatibility test method and apparatus, computing device cluster, and program product

Similar Documents

Publication Publication Date Title
US11070444B2 (en) SDN control plane performance testing
CN109739744B (en) Test system and method
CN110765026B (en) Automatic test method, device, storage medium and equipment
CN102567203B (en) A kind of method and system of test distributed file system performance
CN102622298B (en) Software testing system and method
CN110071822B (en) Testing device and testing method for 5G core network infrastructure
CN108959082A (en) A kind of the hardware compatibility test method and system of Openstack
CN111142878B (en) SDN operation and maintenance method, device, equipment and readable storage medium
CN114884838B (en) Monitoring method and server of Kubernetes component
CN108809683B (en) Method and device for deploying cloud application system
CN105487859A (en) Template based WEB deployment method for big data components
CN111897697B (en) Server hardware fault repairing method and device
CN109186666A (en) Detection method, device, computer equipment and the storage medium of equipment
CN104125504A (en) Deployment method, device and system based on continuous integration
CN110011877A (en) A kind of switch test method and apparatus
CN109815070A (en) A HOST-BOX server stability testing method, device, terminal and storage medium
Nussbaum Towards trustworthy testbeds thanks to throughout testing
CN112256588A (en) Resource allocation method for application program test, computer readable storage medium and tester
CN104796304B (en) Cloud platform test method and system
CN102264089A (en) Method and device for remotely upgrading logic device of base station system
CN113986714A (en) Automatic continuous testing method and device based on containerization
CN111277463B (en) Method, system, terminal and storage medium for testing accuracy of gateway address acquisition by BMC
CN116401102A (en) Database backup method, device, equipment and medium based on mirror image
CN116185740A (en) Scheme testing method, device, computer equipment and storage medium
CN115391207A (en) Method, device, equipment and medium for establishing monitoring ecosystem in test

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181207

RJ01 Rejection of invention patent application after publication