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]
property 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(device_port)[source]

Map a port number on an iOS device to a random port number on the machine 映射iOS设备上某个端口号到本机的随机端口号

Parameters:

device_port – The port number to be mapped on the ios device

Returns:

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: