Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[URGENT] anyDeviceConnected() is returning an IOException while it should have returned a Boolean value #17

Open
paruladhikari-helpshift opened this issue Jun 16, 2023 · 0 comments

Comments

@paruladhikari-helpshift

Hi,

I have been trying to connect multiple devices to my machine and getting information about each. The catch here is that these devices can be any of IOSSIMULATOR, IOS or ANDROID.
I have put the following if condition to check that if a device type is connected, then I should pull in all info related to it:

deviceInfo1 = new DeviceInfoImpl(DeviceType.IOSSIMULATOR); deviceInfo2 = new DeviceInfoImpl(DeviceType.IOS); System.out.println("Number of ios devices: " + deviceInfo2.anyDeviceConnected()); System.out.println("Number of android devices: " + deviceInfo3.anyDeviceConnected());

While I only have 2 iOS simulators connected, the code fails here: deviceInfo2.anyDeviceConnected() with the following error where I was expecting it to return a Boolean value

java.io.IOException: Cannot run program "idevice_id": error=2, No such file or directory at helpshift.sdkxautomation.tests.CheckNewIosUi.testCase13(CheckNewIosUi.java:135) Caused by: java.io.IOException: error=2, No such file or directory at helpshift.sdkxautomation.tests.CheckNewIosUi.testCase13(CheckNewIosUi.java:135)

I will need your help with this please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant