Pytest+Allure+Selenuim+異常截屏+Allure日誌

環境構建 環境構建參照html 異常截屏 須要使用conftest.py文件,conftest.py須要存在在測試目錄中,文件名不能變動,能夠根據模塊建立層級嵌套。具體參照pytest的官方文檔。python 截屏代碼 from selenium.webdriver.remote.webdriver import WebDriver import allure def _capture_scr
相關文章
相關標籤/搜索