pyautoTest icon indicating copy to clipboard operation
pyautoTest copied to clipboard

发现错误,conftest.py中new_report_time()路径错误

Open Juan-Chen-BNUZ opened this issue 5 years ago • 1 comments

new_report_time() 方法中路径错误,return files[-1],当存在日志的时候,倒数第一个文件是__init__.py,所以save_screenshot方法中的路径就会错误,应该改成 return files[-2],才能正确获取到第一个日志文件夹

Juan-Chen-BNUZ avatar Jun 22 '20 02:06 Juan-Chen-BNUZ

已经解决,不再使用这种方式获取最新的测试报告!

defnngj avatar Jul 19 '20 15:07 defnngj