The problem
During my test execution, I wanted to execute few adb commands which appium doesn't provide out of the box. For example, I would like to retrieve the model name of the device, filter the logcat by tag names and so on. So I use System command to execute the required adb commands and get the required output. This works well enough if I have single device connected, since adb doesn't expect the -s parameter with the device id.
However, if I have multiple devices connected to my machine, appium takes any one of the device if I don't pass UDID and executes on it. The deviceName capability in my test is set to Android. I would like to retrieve the device id on which appium is running.
Environment
- Appium version (or git revision) that exhibits the issue: 1.4.16
- Last Appium version that did not exhibit the issue (if applicable):
- Desktop OS/version used to run Appium: MacOSX El Captain
- Node.js version (unless using Appium.app|exe): v6.0.0
- Mobile platform/version under test: Android M / Android L
- Real device or emulator/simulator: Real Device
- Appium CLI or Appium.app|exe: CLI
Details
I believe my problem statement itself in very detail. Let me know in case more details required.
Code To Reproduce Issue [ Good To Have ]
adb command with device id argument.
The problem
During my test execution, I wanted to execute few adb commands which appium doesn't provide out of the box. For example, I would like to retrieve the model name of the device, filter the logcat by tag names and so on. So I use System command to execute the required adb commands and get the required output. This works well enough if I have single device connected, since adb doesn't expect the -s parameter with the device id.
However, if I have multiple devices connected to my machine, appium takes any one of the device if I don't pass UDID and executes on it. The deviceName capability in my test is set to Android. I would like to retrieve the device id on which appium is running.
Environment
Details
I believe my problem statement itself in very detail. Let me know in case more details required.
Code To Reproduce Issue [ Good To Have ]
adb command with device id argument.