Recent Posts

Site Creator

Automated Testing In Android Studio With Appium

Posted on

Dear Friends

My team member was actually having a hard time in figuring out how to execute Appium Test case in Android Studio. As a team leader and his mentor I have moral responsibility to lead from the front and I decided to give it a shot. Now when I was successful in my experiement , I thought to share this knowledge via Blog. After RELSELL LABS ( Relsell Global) is all about that.

Installation

1. Download appium tool for your relevant operation System.
2. Remember Appium tool requires Java 8 to work properly , nowadays.
3. Set few Environment Variables like JAVA_HOME, ANDROID_HOME and install appium tool. I have tested and done my experiment in Mac OS . setting environment vars for other OSs might differ a bit.

After that try to run appium tool application.

There are lot of good tutorials on Internet to do the above.

After you started your appium tool now its a time to connect tool to real device.
[ Remember you need to do some boilerplate configuration].

After your tool gets connected to real device now its a time to execute your first test case. But before that we first need to write our first test case.

Create a Java Class in test folder inside src folder for your android application, in android studio. If test folder is already present there’s no need to recreate. directly create java class.

Now you have a java class.

Execute your testcases file and see the results of testcases in Android Studio window .

 

Thanks







Disclaimer: The aforesaid writeup by Relsell Global writer is for the general understanding of the readers. It does not render any professional advice or opinion.

SHARE THIS PAGE!