This project has been developed to automate Amazon application testing on Android platform using Java, Appium, TestNG, Log4j and Maven.Test Data has been fetched externally from Excel Sheet using Apache POI. The driver configuration and Product Name can be changed/modified from the Global.properties file.
-
Install Appium Server (CLI). Follow instructions on Appium Installation Help. Appium Server need not be started externally, it is handled in the code itself.
-
Install Android SDK (Command line tools). Follow instructions on Android Installation Help
-
Connect your android device and verify connectivity using "adb devices" command in command prompt
-
Run the below command on Command Prompt.
mvn clean install
-
Testcases can be found here
-
Code for application framework can be found here
-
Test data is read from external source file
-
Extent Reports is used for reporting functionality.
-
Log4j has been used for logging functionality.
-
signInTest- Logging in to the app with a set of credentials.
-
searchProductTest- Searching for "65 inch TV" from the homepage.
-
selectRandomProductTest- Selecting a random product from the search result and grab the details of the product
-
addProductToCartTest- Adding the randomly selected product to cart and move to cart view.
-
validateProductDetailsTest- Validate the details of the selected product from cart.
-
signOutTest- Signing Out from the app.