Python3.6+RobotFramework自动化测试-实战

Python配置
C:\Python36-32\Lib下的
subprocess.py修改594行为

        #_cleanup()

将PC与设备(IPTV)连接于同一局域网内,配置好固定IP
PC:192.168.98.110
板子:192.168.98.112
Python3.6+RobotFramework自动化测试-实战

创建一个系统变量ANDROID_ADB_SERVER_PORT,值是5555

IPTV串口界面下输入以下指令

su;
ifconfig;
ifconfig eth0 up;
ifconfig eth0 192.168.98.112;
stop adbd;
start adbd;

在PC端的cmd窗口运行

adb connect 192.168.98.112

出现连接失败

C:\Users\Carlson>adb connect 192.168.98.112
missing port in specification: tcp:192.168.98.112

相关文章: