我无法使用unittest.TestLoader()。discover()加载测试套件...下面是我的代码

时间:2019-04-30 08:57:57

标签: python-3.x selenium-webdriver

import unittest
import HtmlTestRunner
loader=unittest.TestLoader()
start_dir = 'D:/Selenium/Tests/'
suite = loader.discover(start_dir)

test_runner=HtmlTestRunner.HTMLTestRunner(output='D:/Selenium/reports/',descriptions="Test Results",report_title='Sample Results')
test_runner.run(suite)'

0 个答案:

没有答案