appium无线wifi直接连接手机测试

Pre-condition: 手机与电脑wifi在同一局域网

1. 数据线连接手机并允许调试 cmd命令行执行:adb devices

List of devices attached
axxxxx20        device

2. 执行以下命令分配ip port(5558未被占用):adb -s axxxxx20 tcpip 5558
restarting in TCP mode port: 5558

3. 执行使用端口连接手机(192.168.xx.xx手机的ip地址):adb connect 192.168.xx.xx:5558
connected to 192.168.xx.xx:5558

4. 拔掉数据线,查看已用wifi连接的设备:adb devices
List of devices attached
192.168.xx.xx:5558    device
 

 

你可能感兴趣的:(Appium)