appium webdriver time yaml os tomorrow threads (portbootstrapudid): a = os.popen(% port) time.sleep() t1 = a.read() t1: (% t1) : os.system(% (portbootstrapudid)) (): os.system() (devices_name): curpath = os.path.dirname(os.path.realpath(__file__)) (+curpath) yamlpath = os.path.join(curpath) (% yamlpath) f = (yamlpath=) a = f.read() f.close() d = yaml.load(a) (d) ii d: (ii) devices_name ii[]: devicesname = ii[][] (% devicesname) (%ii[]) (% ii[]) (% ii[][]) start_appium(=ii[]=ii[]=ii[][]) ii[]ii[] () (devices_name): desired_caps = get_desired_caps(devices_name) = webdriver.Remote(% desired_caps[]desired_caps[]) __name__ == : devices = [] i devices: run_app(=i) stop_appium()
联系客服