<<Previous Post <<Complete Tutorial>> Next Post>>
In order to execute our Appium Test Automation scripts on the desired Android Emulator or Android device, we need to enable the debugging mode in these emulators/devices before hand.
In simple words, Appium Test Automation scripts won’t be executed on the android devices or emulators who’s debugging mode is in disabled mode.
In this article, I am going to explain the step by step process for enabling the debugging mode in Android devices or emulators.
Let’s get started.
Appium – Enabling debugging mode in Android devices or emulators
Follow the below steps for enabling the debugging mode in Android devices / Android emulators:
1) Launch Android Emulator from Command Prompt (Refer this article to launch the Emulator)
2) Tap on ‘Settings’ option in the Emulator as shown below:
Note: We say Tapping instead of Clicking in mobile terminology
3) Tap on ‘System’ option, on the Settings screen as shown below:
4) In the displayed ‘System’ screen, Tap on ‘About Emulated device’ as shown below:
Note: In real device, this option will be shown as ‘About device’.
5) In the displayed ‘About emulated device’ screen, scroll down to the end and Tap on ‘Build number’ option as shown below:
Note: The below option won’t be opened in any separate screen, but you will see some messages which will be explained after this step.
You will see a message like ‘You are now 2/4 steps away from being a developer’.
Keep on tapping the same ‘Build number’ option, until you see the message ‘You are now a developer’.
This message means that the Debugging mode got enabled on your Android device.
Hence you can run your Appium Test Automation scripts on your device.
6) You can confirm in other way too. Go back to ‘System’ screen and Tap on ‘Advanced’ option to expand it:
Observe that ‘Developer Options’ option will be displayed as shown below:
7) In the displayed ‘Developer options’ screen, observe that ‘USB debugging’ is in enabled state as shown below (i.e. Debugging mode is enabled):
In future, when you want to disable this debugging option, simply come to this ‘Developer Options’ screen and Tap on ‘On’ to turn it off as shown below:
Note: Don’t turn it off now. As we will be using this emulator for executing Appium Test Automation Scripts.
Here concludes this article.
Next Steps:
- > To learn more about Appium, continue to the next post (Click on Next Post Link Below)
- > Check complete Appium Tutorial Contents here (Click here)
Please leave your questions/comments/feedback below.
Happy Learning ?
Connect to me on Linked In (Click here)
On a mission to contribute to the Software Testing Community in all possible ways.
<<Previous Post <<Complete Tutorial>> Next Post>>