This repository contains a mobile automation testing framework using Appium, Cucumber, and TestNG. The goal is to create a robust, easy-to-maintain, and scalable test suite for mobile applications.
Appium_Cucumber_MobileAutomationTesting/
├── .idea/
├── src/
│ ├── main/
│ └── test/
│ └── java/
│ ├── featureFiles/
│ │ ├── _01_Login.feature
│ │ ├── _02_Swipe.feature
│ │ ├── _03_Forms.feature
│ │ └── _04_DragFeatures.feature
│ ├── pages/
│ │ ├── DragPage.java
│ │ ├── FormsPage.java
│ │ ├── LoginPage.java
│ │ └── SwipePage.java
│ ├── runners/
│ │ └── TestRunner.java
│ ├── stepDefinitions/
│ │ ├── _01_LoginSteps.java
│ │ ├── _02_SwipeSteps.java
│ │ ├── _03_FormsSteps.java
│ │ ├── _04_DragSteps.java
│ │ └── Hooks.java
│ ├── tests/
│ │ └── Tests.java
│ └── utilities/
│ ├── DriverManager.java
│ └── PageActionsHelper.java
├── target/
├── .gitignore
├── LICENSE
├── pom.xml
└── README.md
- Integration with Appium for mobile test automation
- Cucumber for behavior-driven development (BDD)
- TestNG for testing framework
- Support for Android platforms
- Extensible and modular architecture
- Java 11 or higher
- Maven 3.6 or higher
- Appium server
- Android SDK
-
Clone the repository:
git clone https://github.com/ChatGTHB/Appium_Cucumber_MobileAutomationTesting.git cd Appium_Cucumber_MobileAutomationTesting
-
Java Installation
- Install Java JDK 11 or later.
- Set JAVA_HOME and PATH environment variables.
-
Maven Installation
- Download and install Maven from here.
- Set MAVEN_HOME and PATH environment variables.
-
Android SDK Installation
- Install Android Studio and configure the Android SDK.
- Set ANDROID_HOME and PATH environment variables.
-
Appium Server Installation
- Download and install Appium Desktop from here.
- Start Appium.
-
Loading Project Dependencies
- Navigate to the root directory of your project in the terminal or command line.
- Run the following command to load the Maven dependencies:
mvn clean install
-
Starting Appium Server
- Start the Appium server using Appium Desktop or via terminal.
-
Starting Android Emulator or Real Device
- Start an Android emulator or connect a real device via USB.
-
To execute the tests, use the following command:
mvn test
Contributions are welcome! Please fork the repository and create a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
For any questions or suggestions, please open an issue or contact the repository owner.