Test Automation on Android Apps using Java Maven
Sample Android App Test Automation
Test Automation on Android Apps using Java Maven

Image Credit to Karolina Grabowska
Ready to try Test Automation on Android Apps using Java Maven? 😄
Continuing my previous articles about Test Automation on Web using Selenium and Playwright, here I’ll show the similar approach, on Android Apps.
Here is my GitHub Repository for it : https://github.com/ahmadazerichandrabhuana/javamavenandroid
As usual, before you download / clone it, here are the requirements need to be fulfilled first.
Requirements
Requirement 1 : Install Java, setup JAVA_HOME, and setup MAVEN_HOME
For setting up JAVA_HOME manually, you can refer to my article here:
[embed]Setting up JAVA_HOME Guideline for Windows, MacOS, and Ubuntumedium.com
For setting up MAVEN_HOME manually, you can refer to my article here:
[embed]Install Maven by setting up MAVEN_HOME Guideline for Windows, MacOS, and Ubuntumedium.com
But, I’ll personally suggest to use SDKMAN! since it would be much easier for handling anything Java-related using this single tool. Check the reference for SDKMAN! on my article here:
Requirement 2 : IDE or Code Editor
Install any IDE or Code Editor you’re most comfort with. For IDE, I’ll suggest to use IntelliJ IDEA since this is a Java-based project. If you prefer to use Code Editor, I’ll suggest to use VS Code.
Requirement 3 : Install Appium and all of its dependencies
I already create one specific article of guideline for installing Appium, please check it out :
Or, you can also google it yourself. There are plenty of tutorials and other guidelines out there related with Appium Installation. It’s a bit of journey and might quite challenging, but you’ll find it’ll be so satisfying once it is completed 😃!
Note : You need to install appium 2.x for this project. If your local machine only have Appium 1.x, please refer to below article to migrate it.
[embed]Upgrade from Appium 1.x to Appium 2.x A Quick Guidelinemedium.com
Requirement 4: Install Allure Report
Check Allure Report’s Official Website. There are already instructions for Windows, MacOS, and Linux.
Verify if the Allure Report is installed correctly by run this command :
allure --version

Requirement 5 : Install Demo Apps
Download and install this Demo Apps into your Android Device (credit to Wim Selles). Open the Apps on your Android Device, just make sure it can be opened normally.
Device Connection
Connect your Android Device into your Local Machine. Then on your IDE / Code Editor’s terminal, run this command :
adb devices
Put the udid from those command into the first line of file config.yaml. For example :

Run Test
On your IDE / Code Editor’s terminal, run the test using command :
mvn clean test -DtestSuites=testsuites/test.xml
It will execute all of the test cases mentioned on test.xml file inside folder testsuites. You can comment line 6/7/8 to exclude any test cases from being executed.

When the test execution is finished, you will see the result on the terminal.

and you’ll notice there is a new folder allure-results created as well.
Open Report File
I use Allure Report as per mentioned on the section Requirements above. So, to open the Report File, run these command :
allure serve
or this command also OK :
allure generate --clean && allure open

It will automatically open Allure Report on your default browser :

And that’s it. Pretty easy, isn’t it? 😄
Now, as usual, if you’re curious why there is a Failed Test Case up there, you can always bounce back to my other articles for references 😉
Or, if you’re also interested on Test Automation on Android Apps using Robot Framework, you can check this one :
[embed]Test Automation on Android App using Robot Framework Sample Android App Test Automationmedium.com
Or, if you’re interested on using wdio, you can check my article below :
Or, if you think Appium is too far complicated for being configured, you can try using Maestro by mobile.dev, here is my article about it :
Thank you for reading this far, and see you on different article 👋
메타데이터
- post_id
- f119eb1547d2
- slug
- test-automation-on-android-apps-using-java-maven-f119eb1547d2
- url
- https://medium.com/@zorozeri/test-automation-on-android-apps-using-java-maven-f119eb1547d2
- canonical_url
- https://medium.com/@zorozeri/test-automation-on-android-apps-using-java-maven-f119eb1547d2
- author_url
- https://medium.com/@zorozeri
- status
- ok
- fetched_at
- 2026-07-21 03:54:55