摘要: 方法一: # 创建测试运行程序 runner = unittest.TextTestRunner() runner.run(suite) 方法二: # 使用BeautifulReport来执行测试套件中的用例,并生成报告 from BeautifulReport import BeautifulRe 阅读全文
posted @ 2020-03-27 09:54 小断盒丶印记 阅读(609) 评论(0) 推荐(0) 编辑
摘要: # 第一步:创建测试套件 suite = unittest.TestSuite() # 第二步:加载测试用例到测试套件 # 第一种:通过测试用例类去加载 from py27_14day.testcases import LoginTestCase loader = unittest.TestLoad 阅读全文
posted @ 2020-03-27 09:40 小断盒丶印记 阅读(503) 评论(0) 推荐(0) 编辑