编写pytest测试样例非常简单,只需要按照下面的规则:
# 1.运行后生成测试报告(htmlReport) pip install -U pytest-html pytest --html=report.html