airtest.core.ios.instruct_cmd module

class InstructHelper(uuid=None)[source]

Bases: object

ForwardHelper class or help run other Instruction

static builtin_iproxy_path()[source]
usb_device

Whether the current iOS uses the local USB interface, if so, return the wda.usbmux.Device object 当前iOS是否使用了本地USB接口,如果是,返回wda.usbmux.Device对象 Returns: wda.usbmux.Device or None

tear_down()[source]
setup_proxy(**kwargs)
remove_proxy(local_port)[source]
do_proxy(port, device_port)[source]

Start do proxy of ios device and self device 目前只支持本地USB连接的手机进行端口转发,远程手机暂时不支持 :returns: None

do_proxy_usbmux(lport, rport)[source]

Mapping ports of local USB devices using python multithreading 使用python多线程对本地USB设备的端口进行映射(当前仅使用USB连接一台iOS时才可用)

Parameters:
  • lport – local port
  • rport – remote port

Returns: