web自动化全套(四:生成测试报告并发送邮箱)
源码:from BeautifulReport import BeautifulReport#一个测试报告生成的第三方库,之前用过HTMLTestRunner库生成测试报告,但是效果不怎么好,这个库看着更舒服一些import unittestimport osimport sysimport time#下面的都是自己封装的一些类,方法,在这里调用from public.emailx import new_file,send_email#new_file:查询最近更新的测试报告,send_e
原创
2021-01-27 22:02:43 ·
514 阅读 ·
3 评论