Python+unittest作UI自動化測試時用例執行失敗自動截圖,建立以時間命名的文件夾和圖片

from selenium import webdriver import os import time def test_currentDate(): '''生成當前日期字符串''' currentDate = time.localtime() return '-'.join([str(currentDate.tm_year), str(currentDate.tm_m
相關文章
相關標籤/搜索