import unittest
from API_2.test_cases.test_cases import TestCases
from API_2.common import project_path
import HTMLTestRunnerNew

#测试套件实例化
suite=unittest.TestSuite()
#加载测试用例
loader=unittest.TestLoader()
#添加测试用例
suite.addTest(loader.loadTestsFromTestCase(TestCases))
with open(project_path.report_path,'wb') as file:
    runner=HTMLTestRunnerNew.HTMLTestRunner(stream=file,
                                            verbosity=2,
                                            title='2019年3月测试报告',
                                            description='2019年的第三份报告',
                                            tester='xiaoqi')
    runner.run(suite)


447da2802332789f9523f568562fd7c15338c18a
<mask token>

<mask token>
suite.addTest(loader.loadTestsFromTestCase(TestCases))
with open(project_path.report_path, 'wb') as file:
    runner = HTMLTestRunnerNew.HTMLTestRunner(stream=file, verbosity=2,
        title='2019年3月测试报告', description='2019年的第三份报告', tester='xiaoqi')
    runner.run(suite)

<mask token>
suite = unittest.TestSuite()
loader = unittest.TestLoader()
suite.addTest(loader.loadTestsFromTestCase(TestCases))
with open(project_path.report_path, 'wb') as file:
    runner = HTMLTestRunnerNew.HTMLTestRunner(stream=file, verbosity=2,
        title='2019年3月测试报告', description='2019年的第三份报告', tester='xiaoqi')
    runner.run(suite)

import unittest
from API_2.test_cases.test_cases import TestCases
from API_2.common import project_path
import HTMLTestRunnerNew
suite = unittest.TestSuite()
loader = unittest.TestLoader()
suite.addTest(loader.loadTestsFromTestCase(TestCases))
with open(project_path.report_path, 'wb') as file:
    runner = HTMLTestRunnerNew.HTMLTestRunner(stream=file, verbosity=2,
        title='2019年3月测试报告', description='2019年的第三份报告', tester='xiaoqi')
    runner.run(suite)

import unittest
from API_2.test_cases.test_cases import TestCases
from API_2.common import project_path
import HTMLTestRunnerNew

#测试套件实例化
suite=unittest.TestSuite()
#加载测试用例
loader=unittest.TestLoader()
#添加测试用例
suite.addTest(loader.loadTestsFromTestCase(TestCases))
with open(project_path.report_path,'wb') as file:
    runner=HTMLTestRunnerNew.HTMLTestRunner(stream=file,
                                            verbosity=2,
                                            title='2019年3月测试报告',
                                            description='2019年的第三份报告',
                                            tester='xiaoqi')
    runner.run(suite)

