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']
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()
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()
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)