Device Configuration

Let us configure Android real device and Android Emulator for TestAutomation for Appium.

Before configuring make sure you have installed and setup the environmental variables for(SDK path, tools ,platform-tools).

  • Android Real Device
  • Android Emulator.

Android Real Device

  • Connect the device with USB cable
  • Launch the setting App
  • Tap on build number 7 times
  • After tapping on build number 7 times, Now it will enable you as a developer
  • In system setting it will enable “Developer options” after tapping on build number
  • Click on the Developer options and enable the toggle of developer options
  • Scroll down and enable USB debugging as well.
  • Now type ‘adb devices’ in the command prompt it will show a list of connected devices.
  • Need to accept the popup which is shown on the device. If you don't accept the popup it will show as unauthorized when you type adb devices.



Android Emulator

  • Launch the Android Studio
  • Go to AVD Manager
    • MAC : In Mac directly we can see the AVD manager after launching the Android studio after clicking on Configure button.
    • Windows : In Windows after launching android studio go to tools and click on AVD Manager.
  • Click on “Create Virtual Device”
  • Select the Hardware as “Phone” and click on Next
  • It will redirect to the System image. Here we need to download the required Android version first and Select the downloaded android version and click on Next.
  • Update the name for your Virtual device and click on Finish.
  • Now you can see the list of Virtual devices which are configured and click on the Action play button to launch the Virtual device.
  • Now , As shown in the picture below, a virtual device will be launched.
  • Check whether the emulator is showing in devices by typing ‘adb devices’ in command prompt.