上一章介绍了rally的部署和使用的时候(http://evawalle.blog.51cto.com/9555145/1785080),已经部署了一套完整的openstack环境和rally环境,这章继续使用它。
tempest的部署
部署在B.local.test.net
$ rally verify install --deployment test-rally
tempest的使用
开始使用tempest做功能测试
1.做某一类测试,如smoke测试,
$ rally verify start --deployment <deployment_name> --set smoke
2.做正则匹配的用例
$ rally verify start --deployment <deployment_name> --regex tempest.api.identity.admin.v2.test_roles
3.做指定的用例列表
$ rally verify start --deployment <deployment_name> --tests-file <path of tests file>
tempest生成report
tempest跑完测试用例后,会生成一个uuid,我们用这个uuid可以产生html格式的report
$ rally verify results <result_uuid> --html --output-file <file_name>.html
好了,可以在你的浏览器上直观的查看你的集群测试report了