Running Test cases for Flipkart Android Mobile App (Flipkart is India's Largest ecommerce)
We need to have install these below
-
Appium
-
Android studio
-
maven
-
jdk1.8
-
To install flipkart app (App is present in code directory itself) Please find below steps
a) Start emualator using andorid studio b) Do adb devices to see list of devices c) Do adb adb -s $Device udid install $Flipkart app
- Once emulator Android virtual device is up and appium server is up please run below command to start test
mvn clean test
Note:- If you want to run test on other devices Go to this class src/test/java/FlipkartTest/BaseTest.java and change udid to your device udid
dc.setCapability("udid","emulator-5556");
- Once test are run report are present in below path in project
/target/surefire-reports/index.html
- Appium - The mobile testing framework used
- Maven - Dependency Management
- testng - testing framework
- Selenium-UI testing framework
-
Verify Login is successful to flipkart app and user navigate to Home Page for Valid User
-
Verify Login is unsuccessful to flipkart app and user not navigate to Home Page if user enters wrong creditianls
-
Verify Successful logged in User is able to search for product and able to see product details once he/she navigate to Product Detail page by clicking on product in search page
-
Verify Successful logged in User is able to search for product in search page by entering search keyword
Steps
-
Connect your device to Laptop/Pc
-
Enable USB debugging. To enable USB Debugging please find below steps a) Navigate to Settings app on phone b) Scroll down and click on the Developer Options c) Turn on the Developer Options and click the USB Debugging.
-
Run command adb devices and make sure you are seeing your connected devices. adb devices will show your devices connected with udid
-
Go to this class src/test/java/FlipkartTest/BaseTest.java and change udid to your device udid For ex:- dc.setCapability("udid","emulator-5556");
-
Run mvn clean test to run tests.