Mobile Automation project based on Java + Appium + Cucumber.
- Java 1.8
- Appium
- Cucumber
- Android Emulator
For more information about how to set up the environment to use Appium for functional test automation on mobile devices, plus how to emulate an Android device using Android Studio, please check this awesome documentation https://github.com/clarabez/appium-en from my friend 👩🏫 @clarabez.
📦 src
┣ 📂 main
┃ ┣ 📂 java
┃ ┗ 📂 resources
┃ ┃ ┣ 📂 apk
┃ ┃ ┃ ┗ 📜 Resultados.apk
┃ ┃ ┗ 📂 features
┃ ┃ ┃ ┗ 📜 Resultados.feature
┗ 📂 test
┃ ┣ 📂 java
┃ ┃ ┣ 📂 manager
┃ ┃ ┃ ┗ 📜 AppiumDriverManager.java
┃ ┃ ┣ 📂 pages
┃ ┃ ┃ ┣ 📜 InitialSetupPage.java
┃ ┃ ┃ ┣ 📜 MainPage.java
┃ ┃ ┃ ┗ 📜 SearchPage.java
┃ ┃ ┣ 📂 runner
┃ ┃ ┃ ┗ 📜 CucumberTestRunner.java
┃ ┃ ┗ 📂 stepDefinition
┃ ┃ ┃ ┣ 📜 Hooks.java
┃ ┃ ┃ ┣ 📜 InitialSetupSteps.java
┃ ┃ ┃ ┗ 📜 MainSteps.java
┃ ┗ 📂 resources
┃ ┃ ┗ 📜 cucumber.properties
- Launch the Android Emulator;
- Launch the Appium Server;
Then execute the tests according to your preference:
- via CLI:
./gradlew runFeatures
- via IDE: right click on
CucumberTestRunner.java
class > and select the optionRun 'CucumberTestRunner'