if name == 'main':
search_suite = unittest.TestSuite()
search_suite.addTest(TestLable('test_cancel'))
now = time.strftime("%Y-%m-%d %H_%M_%S", time.localtime())
filename = "/Users/liyaoyao/Documents/iOSAppiumTest/iOSTest/TestReport/" + now + "_test.html"
fw = open(filename, 'wb')
runner = HTMLTestRunner.HTMLTestRunner(stream=fw, title='Testing', description=u'用例执行情况')
runner.run(search_suite)
fw.close()
有没有大神帮忙看一下,分享一下这个问题是怎么解决的呢?