11 2020 档案
摘要:写脚本过程中发现,需要设置pytest的日志输出级别,在pytest-html测试报告上才会显示铺捉到并显示相应的日志内容,具体方法如下 参考地址:https://docs.pytest.org/en/stable/logging.html pytest --log-format="%(asctim
阅读全文
摘要:from datetime import datetime from py.xml import html import pytest import time import pytest from py.xml import html def pytest_html_report_title(rep
阅读全文
摘要:本机已安装了支持 SMTP 的服务,可以直接smtplib.SMTP('localhost')。如果我们本机没有 sendmail 访问,也可以使用其他邮件服务商的 SMTP 访问(QQ、网易、Google等)。 import smtplib from email.mime.text import
阅读全文
摘要:IE6\IE7\firefox\safari 现在问题来了,在同一台电脑上,如果安装IE7,会卸掉IE6,而且对于像我这种网吧用户来说,根本无法安装,因为安装后需要重启电脑,而重启电脑 后网吧的还原系统会把系统还原。 而install-ietester 这个软件,包含IE5.5、IE6、IE7、IE
阅读全文