def __init__(self): self.system = platform.system() self.find_type = None if self.system is "Windows": self.find_type = "findstr" else: self.find_type = "grep" self.command = "adb" self.__serialno = "" self.crash_log_path = FilePathUtil().get_crash_log_path() self.screenshot_path = FilePathUtil().get_screenshot_path() self.dt = DateTimeManager().getCurrentDateTime() self.log4py = LoggingController() self.xml_path = FilePathUtil().get_xml_path() self.parm = ParamCheckUtil() self.yml_path = FilePathUtil().get_yml_path() self.anr_path = FilePathUtil().get_anr_path()
def __init__(self): self.system = platform.system() self.find_type = None if self.system is "Windows": self.find_type = "findstr" else: self.find_type = "grep" self.command = "adb shell am broadcast -a" self.__serialno = "" self.yaml_path = FilePathUtil().get_broadcast_path()
def __init__(self): self.log4py = LoggingController() self.clear = shutil self.report_path = FilePathUtil().get_report_path() self.script_log = FilePathUtil().get_scripts_log_path() self.logcat_path = FilePathUtil().get_logcat_path() self.crash_log_path = FilePathUtil().get_crash_log_path() self.screeshot_path = FilePathUtil().get_screenshot_path() self.anr_path = FilePathUtil().get_anr_path()
def __init__(self): self.log4py = LoggingController() self.run_config = InitConfiger() self.cmd = Cmd() self.service_path = FilePathUtil().get_service_path() self.config = ConfigController(self.service_path)
def __init__(self): self.cmd = Cmd() self.path = FilePathUtil().get_config_run_path() self.config = ConfigController(self.path) self.log4py = LoggingController() self.dev_info = DeviceInfo().get_infos_as_dict()
def __init__(self): self.xml_path = FilePathUtil().get_xml_path() self.yml_path = FilePathUtil().get_yml_path()
from page.page_obj import page_obj from page_intel.share_page_obj import share_page_obj from page_ddox.set_ll_obj import set_ll_page_obj from common.utils.LoggingUtil import LoggingController from poco.drivers.android.uiautomation import AndroidUiautomationPoco from common.utils.DateTimeUtil import DateTimeManager from common.baseapi.BaseAppiumApi import BaseAppiumApi from common.base.BroadcastCommand import BroadcastCommand DATE_FORMAT = '%Y-%m-%d %H:%M:%S' driver = None cmd = Cmd() bccmd = BroadcastCommand() fc = FileClearUtil() fp = FilePathUtil() dt = DateTimeManager() log = LoggingController() def pytest_addoption(parser): parser.addoption("--cmdopt", action="store", default="device_info", help=None) @pytest.fixture def cmdopt(pytestconfig): #两种写法 return pytestconfig.getoption("--cmdopt")
def __init__(self): self.filepath = FilePathUtil().get_yaml_path() self.yamlcheck = ParamCheckUtil().load_yaml_data(self.filepath)