Running Test cases for Yahoo Weather App
We need to have install these below
-
Appium
-
Android studio
-
maven
-
jdk1.8
- Once emulator Android virtual device is up and appium server is up please run below command to start test
mvn clean test -DdeviceId=emulator-5556
Note:- If you want to run test on other devices just pass devicedid us -DdevicedId parameter.It will set uuid in desired capability like below
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
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
4)If you want to run test on other devices just pass devicedid us -DdevicedId parameter.It will set uuid in desired capability like below
dc.setCapability("udid","emulator-5556");
- Run mvn clean test to run tests.