def set_proxy(): """ Set Ifeng video request host to local proxy server. """ host = get_local_ip() data_interface = RemoteObject.from_class_name(data_interface_class_name) call_static(data_interface, "setHost", host + ':8080/proxy')
def set_proxy(): """ Set Ifeng video request host to local proxy server. """ host = get_local_ip() data_interface = RemoteObject.from_class_name(data_interface_class_name) call_static(data_interface, "setHost", host+':8080/proxy')
def get_instance(cls, instrumentation): instrumentation.class_name = instrumentation_class_name ui_device_class = RemoteObject.from_class_name(ui_device_class_name) return UIDevice.from_object(call_static(ui_device_class, "getInstance", instrumentation))
def get_instrumentation(): instrument_registry_class = RemoteObject.from_class_name(instrument_registry) remote_obj = call_static(instrument_registry_class, "getInstrumentation") return Instrumentation.from_object(remote_obj)
def set_proxy(): host = get_local_ip() data_interface = RemoteObject.from_class_name(data_interface_class_name) call_static(data_interface, "setHost", host + ':8080/proxy')
def get_instance(cls, instrumentation): instrumentation.class_name = instrumentation_class_name ui_device_class = RemoteObject.from_class_name(ui_device_class_name) return UIDevice.from_object( call_static(ui_device_class, "getInstance", instrumentation))
def get_instrumentation(): instrument_registry_class = RemoteObject.from_class_name( instrument_registry) remote_obj = call_static(instrument_registry_class, "getInstrumentation") return Instrumentation.from_object(remote_obj)