The invention discloses a openstack testing method, which comprises the following steps: locking the openstack test environment to visit; test plan to generate openstack test module to test order; add test cases for functional testing of the openstack module; according to the test plan called test cases to test the openstack. The automated testing method of the invention is more convenient for testing the continuous management of assets, so that the test assets can be reused in the whole test life cycle. Page capture method based on Selenium encapsulation is not too high to the level of testers, and it has higher adaptability. After the completion of the test, print logs and generate test reports, save the summary results and track the problem time, more conducive to product problem positioning.
【技术实现步骤摘要】
一种openstack测试方法
本专利技术涉及测试
,尤其是一种基于Webdriver的openstack测试方法。
技术介绍
OpenStack是一个基础设施及服务(IaaS)的云计算平台,通过将整个数据中心里的资源池化来提供计算、网络、存储等基础服务,而这些基础服务都可通过OpenStack的操作界面Horizon进行分配和创建。由于OpenStack功能复杂,进行一次完整功能测试需要花费大量时间。
技术实现思路
本专利技术的目的是提供一种openstack测试方法,能够完成对openstack进行自动测试,提高了测试效率。为实现上述目的,本专利技术采用下述技术方案:一种openstack测试方法,包括以下步骤:锁定待访问的openstack测试环境;生成对openstack待测试模块进行测试顺序的测试计划;添加对openstack模块进行功能测试的测试用例;按照测试计划调用测试用例对openstack进行测试。进一步地,所述锁定待访问的openstack测试环境,包括:客户端通过Webdriver驱动浏览器;启动成功后浏览器被绑定到特定端口上,并作为Web ...
【技术保护点】
一种openstack测试方法,其特征是,包括以下步骤:锁定待访问的openstack测试环境;生成对openstack待测试模块进行测试顺序的测试计划;添加对openstack模块进行功能测试的测试用例;按照测试计划调用测试用例对openstack进行测试。
【技术特征摘要】
1.一种openstack测试方法,其特征是,包括以下步骤:锁定待访问的openstack测试环境;生成对openstack待测试模块进行测试顺序的测试计划;添加对openstack模块进行功能测试的测试用例;按照测试计划调用测试用例对openstack进行测试。2.如权利要求1所述的一种openstack测试方法,其特征是,所述锁定待访问的openstack测试环境,包括:客户端通过Webdriver驱动浏览器;启动成功后浏览器被绑定到特定端口上,并作为Webdriver的服务端,形成客户端/服务端测试架构进行数据收发;服务端获取被测试openstack的访问地址以及访问权限。3.如权利要求2所述的一种openstack测试方法,其特征是,所述生成对openstack待测试模块进行测试顺序的测试计划,包括:客户端完成对openstack界面模块进行测试与否的注释;服务端完成对openstack待测试模块的测试用例路径的添加。4.如权利要求2所述的一种openstack测试方法,其特征是,所述添加对...
【专利技术属性】
技术研发人员:李凤娟,
申请(专利权)人:郑州云海信息技术有限公司,
类型:发明
国别省市:河南,41
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。