摘要:我认为许多学生可以编写测试脚本,但是我不知道如何为测试脚本编写测试报告。没关系。分享介绍框架的第一步和介绍此框架的第二步。我该如何介绍?您可以通过输入界面来查看它。然后按键完成并运行所需的用例,并生成自动化格式测试报告。使用默认测试
我认为许多学生可以编写硒测试脚本,但是我不知道如何为测试脚本编写测试报告。没关系,让我与您分享~~
步骤1:从htmltestrunner htmltestrunner #introduce htmltesterunnerstep 2:####我应该介绍这个吗? 当您将电子邮件输入到Python界面时,如果__ -Name__ ==“ __ -main __”,请按TAB键完成。 If you need to run all the test cases in this directory, you will need to add *(*.py)# #/cloudage directory suite=unittest.defaulttestloader.discover("e:/cloudage/testcase", "test_login.py")#geneate html report _ile This shows the test cases running the test cases in the test case file in Report_file__file. 打开(“ e:/cloudage/report/reports.html”,“ WB”)”
怎么样,这并不那么容易! 呢 呢
评论前必须登录!
注册