コード例 #1
0
 def __init__(self):
     self.sheet_index = 1
     _file_name = '/test_saas.xlsx'
     _file_path = get_current_path.get_cur_path()
     self.filename = _file_path + _file_name
     self.excel_facade = excel_case_facade.GetExcelCaseDate()
     self.host = ENVIRONMENT_CONFIG["test"]['queryTransNum']
コード例 #2
0
ファイル: pytest_02.py プロジェクト: zerolugithub/pytest
 def setup_class(cls):
     _file_name = 'test_saas'
     cls.filename = "../data/%s.xlsx" % _file_name
     cls.promotionUtils = promotion_utils.PromotionUtils()
     cls.excel_facade = excel_case_facade.GetExcelCaseDate()
     cls.str_util = str_utils.StrUtils()
     global coo, sheet_index
     sheet_index = 15
     coo = cls.promotionUtils._login()
     global startDate
     startDate = Module_Pass().get_currentDate()
コード例 #3
0
 def setup_class(cls):
     _file_name = '/test_saas.xlsx'
     _file_path = get_current_path.get_cur_path()
     cls.filename = _file_path + _file_name
     print _file_path
     cls.promotionUtils = promotion_utils.PromotionUtils()
     cls.excel_facade = excel_case_facade.GetExcelCaseDate()
     cls.str_util = str_utils.StrUtils()
     global coo
     coo = cls.promotionUtils._login()
     global startDate
     startDate = Module_Pass().get_currentDate()
コード例 #4
0
ファイル: firstTest.py プロジェクト: lele1120/BCGTFA1
    def setUpClass(cls):
        cls.excel_facade = ecf.GetExcelCaseDate()
        desired_caps = {
            'platformName': 'Android',
            'platformVersion': '7.1.1',
            'deviceName': 'Android Emulator',
            'appPackage': 'com.bs.finance',
            'appActivity': 'ui.common.WelcomeActivity',
            'unicodeKeyboard': True,
            'resetKeyboard': True,

            # 'automationName': 'uiautomator2',
            "noReset": True
        }
        global driver

        driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps)
        logging.info("*** 启动app *** \n")
        time.sleep(5)