

Check whether it is running as background process or not. It will display all list of all the connected devices.īut, prior to this we should check that ADB server. Then in above command prompt type command- 'adb devices' & press Enter To connect use the device USB cable connector to the system. Now, prior to check the device, user have to connect an external Android device (mobile phone). Step 4) Connect an external Android device

This command window will directly open the folder in command prompt window. Note– you can also open the folder path directly from the Run command in command prompt. It will open the folder using command prompt. Inside folder hold Shift + Right click menu > Select ‘Open command window here’ option. Open the local folder where Android SDK files has been saved ‘Android SDK > Platform-tools’ eg: C:\android-sdk\platform-tools Now, connect your Android device to the computer using USB cable. Step 1) Enable USB Debugging on your deviceĮnable USB debugging option from ‘Developer Option’ in Android phone. How to Connect Android Device with ADB (Android Debug Bridge) Step 3) From the list of all packages select Tools and mark the checkbox for ADB in Android is packaged with Google’s Android SDK (Software Development Kit). Pre-Requisite- SDK (Software Development Kit) should be installed on the machine. See steps below for connecting to an emulator. Here we will see both, connecting to emulator as well as with real device for testing.

Using any real device for mobile automation Testing has always been a challenge for testers. It helps you perform different actions like installing or debugging a device and run various commands on a device by providing access to a Unix shell. It is used to bridge communication between an emulator instance (Android device) and the background running daemon process (server). Android Debug Bridge (ADB) is a command-line tool that allows you to communicate with a device.
