标签:
一般的测试只需求设置以下几个参数即可:
1 public void setup() throws Exception{ 2 DesiredCapabilities capabilities = new DesiredCapabilities(); 3 capabilities.setCapability("platformName", "Android"); 4 capabilities.setCapability("platformVersion", "4.4"); 5 capabilities.setCapability("deviceName","Android Emulator"); 6 capabilities.setCapability("appPackage", "io.appium.unlock"); 7 capabilities.setCapability("appActivity", ".Unlock"); 8 driver = new AndroidDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities); 9 }
iOS
, Android
, orFirefoxOS?
iPhone Simulator
, iPad Simulator
, iPhone Retina 4-inch
, Android Emulator
, Galaxy S4
, etc...java-appium自动化测试之DesiredCapabilities
标签:
原文地址:http://www.cnblogs.com/penghong2014/p/4269539.html