Test network problems in simulator launched by Appium XCUITest

I have set of hardware devices in the test network(no internet connection) and have an iOS App that detects all the devices in the test network. Those devices can be seen in the App in iPhone or iPad after connecting to test network only.

I have developed a appium automation code in java and that launches the app in Simulators and displays the all hardware devices that are in test network. But whenever I run my code, Appium able to launch the App simulator but no hardware devices in the App are being displayed. Network settings showing ‘NO wifi connection’. My Mac is connected to test network so simulator has to automatically connect to test network and show the hardware devices in the network.

Could any help me to get rid of this would be appreciated.


DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(“deviceName”, “iPhone 6 Plus”);
capabilities.setCapability(“automationName”, “XCUITest”);
capabilities.setCapability(“platformName”, “iOS”);
capabilities.setCapability(“platformVersion”, “10.0”);
File app = new File(“/Users/Shiva/Desktop/*****IAP.app”);
capabilities.setCapability(“app”, app.getAbsolutePath());
capabilities.setCapability(“sendKeyStrategy”, “grouped”);
capabilities.setCapability(“realDeviceLogger”, “/usr/local/lib/node_modules/deviceconsole/deviceconsole”);
IOSDriver driver = new IOSDriver(new URL(“”),capabilities);

try minimize capabilities like in example: https://github.com/appium/java-client/blob/master/src/test/java/io/appium/java_client/ios/AppXCUITTest.java

It doesn’t help to get rid of the issue. Could you please suggest me any other approach.

when you starting simulator manually does it show that WiFi Connection is correct?

try manually install app on Simulator. start it in Simulator. See that everything is fine.

Facing same issue when i instal and launch the App manually. So Simulator may work only when there is internet available. Is this how it suppose to work? I am not sure. Do you have any solution for this?

i do not understand you. you application shows devices in your network. why you can\t connect your mac to tested network?