Exemplo n.º 1
0
def setup_module():
    # 必须使用@classmethod 装饰器,所有test运行前运行一次
    global operation, driver
    # 调用get_driver
    base_driver = BaseDriver()
    driver = base_driver.android_driver()
    # 实例化Operation
    operation = Operation(driver)
    print('[MyLog]--------OPERATION is inited NOW')
Exemplo n.º 2
0
def setup_module():
    # 必须使用@classmethod 装饰器,所有test运行前运行一次
    global operation, driver, read
    # 调用get_driver
    read = ReadIni(conftest.userinfo_dir)
    base_driver = BaseDriver()
    driver = base_driver.android_driver()
    # 实例化Operation
    operation = Operation(driver)
    print('[MyLog]--------OPERATION is inited NOW')
Exemplo n.º 3
0
 def setUpClass(cls):
     # 必须使用@classmethod 装饰器,所有test运行前运行一次
     global operation, driver, read
     # 调用get_driver
     read = ReadIni(conftest.userinfo_dir)
     server = Server()
     server.main('android')
     base_driver = BaseDriver()
     driver = base_driver.android_driver()
     # 实例化Operation
     operation = Operation(driver)