【複習】pytest基本使用

一、基礎認識
【複習】pytest基本使用
【複習】pytest基本使用

二、報告
【複習】pytest基本使用

三、fixture

【複習】pytest基本使用
【複習】pytest基本使用

但是fixture作爲環境的準備清理工作的話,一般不放在某個用例文件裏,而是單獨提取出來作爲公共模塊。這時就用到了conftest.py文件
【複習】pytest基本使用
定義完成後,接下來看看在用例裏怎麼使用它吧~
【複習】pytest基本使用
【複習】pytest基本使用
四、運行
【複習】pytest基本使用

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