This is a sample project to demonstrate page object model in appium
testngis used as test framework. Sample android used for automation is BitbarSampleApp.apk given by @bitbar.
- Java
- Maven
###libraries used
- Appium
- Testng
- log4j
git clone https://github.com/reachbharathan/appium-android-movies.git
cd appium-android-movies
mvn clean compile
mvn clean test
Before executing the steps, few installations and setup needs to be completed.
-
Install android sdk and configure the android corresponding to the OS you have. refer 'https://developer.android.com/studio/install.html' .
-
Create a android device of you choice, I would recommend to use android studio for creating device which takes care of most of settings.
-
Once the Android stimulator is created, open the app in stimulator using appium inorder to test the configs.
-
Start the app using the command line
emulator -avd <Android device Name>
-
Now configure the deviceName field in startAppium.sh accourding the your device name.
-
Now the its all set to execute the test,execute
mvn clean test
command in command line (Note for windows users the settings and commands might slighly vary)from root folder, index.html report will be generated in target folder -
The entire test suite can be executed from a single test runner file "TestRunner"
- The configuration of android sdk and setting of stimulator will take tie for first times, be patient and refer lots of blog to know and own it
- Will increase the test as and when i find time
This project use bitbar ('https://github.com/bitbar') sample android app for testing purpose, thanks you @bitbar for providing the app.