Use Existing Tests with webmate
Integrating your existing Appium tests with the webmate infrastructure is easy.
You only need to add some webmate-specific capabilities and define the webmate Appium URL when creating the Android/iOS driver.
Android
1
2
3
4
5
6
7
8
9
10
11
12
13
| DesiredCapabilities caps = new DesiredCapabilities();
caps.setCapability("wm:email", "xxx@xxx.com");
caps.setCapability("wm:apikey", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=");
caps.setCapability("wm:project", "7c4f09fd-xxx-xxx-xxx-xxx");
caps.setCapability("platformName", "Android_11");
caps.setCapability("wm:model", "Pixel 4");
caps.setCapability("browserName", "APPIUM");
caps.setCapability("appium:appPackage", "com.xxx.xxx");
caps.setCapability("appium:appActivity", "com.xxx.xxx.MainActivity");
AndroidDriver driver = new AndroidDriver(new URL("https://selenium.webmate.io/wd/hub"), caps);
|
This feature is not implemented in the TypeScript SDK yet!
iOS
1
2
3
4
5
6
7
8
9
10
11
12
| DesiredCapabilities caps = new DesiredCapabilities();
caps.setCapability("wm:email", "xxx@xxx.com");
caps.setCapability("wm:apikey", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=");
caps.setCapability("wm:project", "7c4f09fd-xxx-xxx-xxx-xxx");
caps.setCapability("platformName", "iOS_14.2");
caps.setCapability("wm:model", "iPhone XR");
caps.setCapability("browserName", "APPIUM");
caps.setCapability("appium:bundleId", "com.testfabrik.XXX");
IOSDriver driver = new IOSDriver[WebElement](new URL("https://selenium.webmate.io/wd/hub"), caps);
|
This feature is not implemented in the TypeScript SDK yet!
You can find more details on how to obtain the right values for those capabilities on Getting Started
.