import unittest
import os
import time
from BeautifulReport import BeautifulReport
from common.email_utils import EmailUtils
current = os.path.dirname(__file__)
report_path = os.path.join(current, 'report')
suite = unittest.defaultTestLoader.discover(start_dir='testcase', pattern=
    '*_case.py', top_level_dir='testcase')
main_suite = unittest.TestSuite()
main_suite.addTest(suite)
now = time.strftime('%Y_%m_%d_%H_%M_%S')
filename = 'report' + now
runner = BeautifulReport(main_suite)
runner.report(filename=filename, description='禅道UI自动化测试', report_dir=
    report_path, theme='theme_default')
html_path = os.path.dirname(__file__) + '/../report/report2021.html'
EmailUtils('<h3 align="center">自动测试报告</h3>', html_path).send_mail()

7b0f11b3e1c6645f1ffd19549e8dbe6b19d65ee4
<mask token>

<mask token>
main_suite.addTest(suite)
<mask token>
runner.report(filename=filename, description='禅道UI自动化测试', report_dir=
    report_path, theme='theme_default')
<mask token>
EmailUtils('<h3 align="center">自动测试报告</h3>', html_path).send_mail()

<mask token>
current = os.path.dirname(__file__)
report_path = os.path.join(current, 'report')
suite = unittest.defaultTestLoader.discover(start_dir='testcase', pattern=
    '*_case.py', top_level_dir='testcase')
main_suite = unittest.TestSuite()
main_suite.addTest(suite)
now = time.strftime('%Y_%m_%d_%H_%M_%S')
filename = 'report' + now
runner = BeautifulReport(main_suite)
runner.report(filename=filename, description='禅道UI自动化测试', report_dir=
    report_path, theme='theme_default')
html_path = os.path.dirname(__file__) + '/../report/report2021.html'
EmailUtils('<h3 align="center">自动测试报告</h3>', html_path).send_mail()

import unittest
import os
import time
from BeautifulReport import BeautifulReport
from common.email_utils import EmailUtils
current = os.path.dirname(__file__)
report_path = os.path.join(current, 'report')
suite = unittest.defaultTestLoader.discover(start_dir='testcase', pattern=
    '*_case.py', top_level_dir='testcase')
main_suite = unittest.TestSuite()
main_suite.addTest(suite)
now = time.strftime('%Y_%m_%d_%H_%M_%S')
filename = 'report' + now
runner = BeautifulReport(main_suite)
runner.report(filename=filename, description='禅道UI自动化测试', report_dir=
    report_path, theme='theme_default')
html_path = os.path.dirname(__file__) + '/../report/report2021.html'
EmailUtils('<h3 align="center">自动测试报告</h3>', html_path).send_mail()
