openstack測試工具使用二 --- tempest 的部署和使用

    上一章介紹了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了

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章