用python插件pytest-repeat重複執行多條或單條測試用例

1、在cmd裏安裝重複執行用例的插件,命令爲:pip install pytest-repeat 2、切換到circular.py目錄下,再執行重複用例的命令: pytest --count 100 -x repetition.py(-x表示一旦發生錯誤立即停止,可刪除),重複執行完一條用例後再重複執行下一條` 3、–repeat-scope,以class爲用例集合單位,重複執行class裏面的用
相關文章
相關標籤/搜索