ADB for mobile quality analysts.

As we (QA) are growing more towards automation, we have now started exploring tools which developers are using for their development. Not just for developing our own testing framework but also for capturing logs, checking code smells, etc we can use adb.

And I think this is very cool and good to start exploring in this direction, as learning is never ending and shall never stop. Mobile testing is very dynamic and in this blog I will share some experience over adb for android testing and debugging.

In this post I will share some overview of ADB – Android Debug Bridge. It is a command-line utility which can be use to check, view and perform various commands in android.

To install adb on windows machine, you need to have Java on your local machine. You can check whether java is installed on your system by typing java -version in command prompt.

java_version_local

And check whether appropriate environment variable is set.

java_home

If yes, then we can proceed with adb. ADB can be downloaded from below URL :-

https://developer.android.com/studio/index.html#downloads

Here you need to check for the latest android sdk version for windows for eg:-

android-sdk_r24.4.1-windows.zip

android_sdk_download.PNG

Once you have this downloaded, you shall see a folder having structure like this:-

sdk_path

Now, you have to set environment variable so that adb can be accessible from anywhere in your system.Set ANDROID_HOME and PATH variable like this:-

sdk_path_environment_variable

path_variable

path_enviroment_variable

If all these steps are done, now you are ready to work with adb. Open command line and type adb, you shall see something like this:-

adb_command

In the coming posts, I will be sharing some common adb commands which we as a QA can use android testing.

Advertisements

One thought on “ADB for mobile quality analysts.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s