Hello,
I am unable to launch the application with two Android devices.
Steps:
- In Windows Machine, i have installed Appium.exe.
- Opened two Appium session with different port numbers.
- Set the capabilities using Java Code.
- Create two threads and call the created capabilities method with different port.
- Some time the application launch in a both the devices or some time only in one . Ratio of the device running in both device to one device is 30 : 70.
Details of the devices connected with port are mentioned below :
- Maximum it working with port 4723(90%).
- I have used the port number 4720.its maximum fail.
-
When Appium fails to launch the application in multiple devices then Appium gets hangs . The error received in Appium is mentioned below:
info: Starting App
debug: Attempting to kill all ‘uiautomator’ processes
debug: Getting all processes with ‘uiautomator’
debug: executing: “C:\android-sdk\platform-tools\adb.exe” -s b0132538 shell “ps ‘uiautomator’”
debug: No matching processes found
debug: Running bootstrap
debug: spawning: C:\android-sdk\platform-tools\adb.exe -s b0132538 shell uiautomator runtest AppiumBootstrap.jar -c
io.appium.android.bootstrap.Bootstrap
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=
debug: [UIAUTOMATOR STDOUT] io.appium.android.bootstrap.Bootstrap:
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1
debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 1
debug: [BOOTSTRAP] [debug] Socket opened on port 4724
debug: [BOOTSTRAP] [debug] Appium Socket Server Ready
debug: [BOOTSTRAP] [debug] Loading json…
debug: Waking up device if it’s not alive
debug: Pushing command to appium work queue: [“wake”,{}]
debug: [BOOTSTRAP] [debug] json loading complete.
debug: [BOOTSTRAP] [debug] Registered crash watchers.
Note: If i execute one by one, its working fine.
Thanks & Regards,
Paras Jain