我是appium的新手,想知道某些基本代码的含义。任何人都可以打电话给我下面的代码行指示什么? 如果你提到这个网址指示的内容会很好:" http://172.16.1.34:80" 特别是" 80"如果可以更改哪个其他可能的端口号可以。
driver = new AndroidDriver(新网址(" http://172.16.1.34:80"),功能);
答案 0 :(得分:1)
第一个参数是
remoteAddress - is the address of remotely/locally started Appium server
中
172.16.1.34 - IP of appium server
80 - Port on which appium is running
答案 1 :(得分:0)
driver = new AndroidDriver(new URL("http://172.16.1.34:80"), capabilities);
上面一行表示android驱动程序定位在ip地址http://172.16.1.34:80
哪个appium运行脚本。
功能:这些功能是测试脚本的配置,您希望在哪个环境中运行脚本。