I have 3 PC as windows OS
PC:1
I have the Appium server.
PC:2
I have the code like
public static void startApplication() throws Exception{
System.out.println("application has started...................");
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(CapabilityType.BROWSER_NAME, "");
capabilities.setCapability("deviceName","emulator-5556");
capabilities.setCapability("platformVersion","4.3");
capabilities.setCapability("platformName","Android");
capabilities.setCapability("app","D:/Apks/autoInsurance2.apk");
driver = new RemoteWebDriver(new URL("http://172.16.10.249:4723/wd/hub"),capabilities);
System.out.println("Appium SetUp for Android is successful and Appium Driver is launched successfully");
}
PC: 3
I have the same code like
public static void startApplication() throws Exception{
System.out.println("application has started...................");
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(CapabilityType.BROWSER_NAME, "");
capabilities.setCapability("deviceName","emulator-5554");
capabilities.setCapability("platformVersion","4.3");
capabilities.setCapability("platformName","Android");
capabilities.setCapability("app","D:/Apks/QuickSales.apk");
driver = new RemoteWebDriver(new URL("http://172.16.10.249:4723/wd/hub"),capabilities);
System.out.println("Appium SetUp for Android is successful and Appium Driver is launched successfully");
}
I have the 2 emulators and 2 apks. When I run the programs from PC 2 and PC 3 it should hit the PC 1 and the server should handle both the sessions. Also the different apps should open in the two different emulators. This is my expectation.
Whether this can be possible.
If so what could be the changes I need to do?
Because when I run now, either PC2/PC3 which ever is started first is running. the other one says “session exist”.
172.16.10.249 is PC1 IP address