with open(report_abspath,"wb") as fp: OSError: [Errno 22] Invalid argument:報錯


report_path = os.path.join(os.getcwd(),"report1")


now = time.strftime("%Y-%m-%d %H:%M:%S",time.localtime(time.time()))

report_abspath = os.path.join(report_path,"result_"+ now +".html")

fp = open("report_abspath","wb")

runner =HTMLTestRunner(stream = fp,
title = "login test cwp",
description="cwp vod test report")

runner.run(testsuite)
fp.close()


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM