Android Application Test Automation with MomentumSuite
Requirements:
Appium Desktop Installation -> https://github.com/appium/appium-desktop
Java JRE or JDK Installation -> https://www.oracle.com/tr/java/technologies/javase-downloads.html
Android Studio Installation -> https://developer.android.com/studio
Android SDK platforms & SDK tools -> https://developer.android.com/studio/intro/update
NodeJS Installation -> https://nodejs.org/en/download/
Mocha Installation -> https://mochajs.org/#installation
VS Code IDE installation -> https://code.visualstudio.com/
VS Code Mocha, Mocha Test Explorer Plugin -> https://marketplace.visualstudio.com/search?term=mocha&target=VSCode&category=All%20categories&sortBy=Relevance
Demo APK address: https://apkpure.com/tr/tripadvisor-hotels-activities-restaurants/com.tripadvisor.tripadvisor
Appium capabilities: https://appium.io/docs/en/writing-running-appium/caps/
Appium Documentation: http://appium.io/docs/en/commands/element/find-element/
Selenium Documentation: https://www.selenium.dev/documentation/
How to use ?
- Open Project folder with VS Code
- Terminal -> New Terminal on VS Code
- Run this command on the root of the project to download dependencies -> npm install
- Start Appium Server
- Start your Android Virtual Device (simulator) or connect your real device with USB debugging enabled real device via USB
- Run this command on the terminal and learn your device name / UDID number -> ADB devices
- Update your device / UDID on the local/local-driver.js file
- Download the Tripadvisor APK file to your computer and update your app path on the local/local-driver.js file
- Run this command on the root of the project to start test -> mocha testcases/search-hotel-text.js
Youtube Webinar Video
GitHub Project: