Example #1
0
# -*- coding:utf-8 -*-
from utils.baseBrowser import BaseBrowser
from webapp.comlogin import test_comLogin
from selenium.webdriver.support.select import Select
from utils.baseDB import ConfigDB
from utils.baseUtils import *
import time, unittest, datetime
from service.myglobal import get_value
from utils.baseLog import MyLog as Log

log = Log.get_log()
logger = log.logger
#数据库连接信息
sqldb = ConfigDB()
'''
第六步,签约管理-签约管理菜单,admin,管理员
'''


class test_signmanage(unittest.TestCase):
    @classmethod
    def setUpClass(self):
        # 必须使用@classmethod 装饰器,所有test运行前运行一次
        #time.sleep(300)
        # 得到driver实例
        self.driver = BaseBrowser.getDriver()
        logger.info(
            "第六步************************signmanage.py,签约管理-签约管理,amdin,管理员")

    '''
	打开签约管理-签约管理菜单及页面
Example #2
0
 def setUp(self):
     self.log = MyLog.get_log()
     self.logger = self.log.logger
     self.log.build_start_line(interfaceNo + name + "CASE " + self.No)
     print(interfaceNo + name + "CASE " + self.No)
Example #3
0
 def __init__(self):
     self.dbname = None
     self.log = Log.get_log()
     self.logger = self.log.logger
     self.db = None
     self.cursor = None