'''
Code description:unittest framwork
Create time:
Developer:
'''
from selenium import webdriver

from framfriend.test_case.models.driver import WDriver
import logging
import unittest
from framfriend.test_case.page_obj.login_page import LoginPage
from framfriend.test_case.models.log import Logger

log = Logger(__name__, CmdLevel=logging.INFO, FileLevel=logging.INFO)


class MyunitTest(unittest.TestCase):
    """

    """
    @classmethod
    def setUpClass(cls):  # 一个测试类(文件)执行一次打开浏览器, 节约每个用例打开一次浏览器的时间

        cls.driver = WDriver().chromeDriver()
        cls.driver.maximize_window()
        log.logger.info('opened the browser successed!')

    # ----------------------------

    def setUp(self):
        """
'''
Code description:send email
Create time:
Developer:
'''

import smtplib
from email.mime.text import MIMEText
from email.header import Header
import os
from framfriend.config import conf
from framfriend.test_case.models.log import Logger

log = Logger(__name__)
#   邮件发送接口
class SendMail(object):
    '''
    邮件配置信息
    '''
    def __init__(self,
                 receiver,
                 subject='framfriend 系统测试报告',
                 server='smtp.qq.com',
                 fromuser='******',
                 frompassword='******',
                 sender='******@qq.com'):
        """

        :param receiver:
        :param subject:
        :param server: