This repository contains a test automation framework built using Appium, Java, TestNG, Log4j2, Extent Reports, JSON for data, and Maven. The framework is designed to automate mobile application testing, providing a scalable and maintainable solution for Android and iOS platforms.
-
Appium: The framework utilizes Appium as the mobile automation tool, supporting both Android and iOS platforms.
-
Java: The programming language used for writing test scripts and implementing the automation logic.
-
TestNG: TestNG is used as the testing framework to organize and execute test cases efficiently.
-
Log4j2: Logging is implemented using Log4j2 to capture detailed logs for debugging and analysis.
-
Extent Reports: HTML-based Extent Reports are integrated to generate detailed and visually appealing test listeners.
-
JSON for Data: JSON files are used for storing test data, making it easy to manage and update test data separately from the test scripts.
-
Maven: Maven is employed as the build and dependency management tool for the project.
-
Make sure you have Java installed. You can download it here.
-
Install Maven by following the instructions here.
-
Clone the repository:
git clone https://github.com/RVijaywargiya/AppiumFramework.git
-
Appium Server:
- Install Appium Server by following the instructions on the official Appium documentation.
-
Mobile Emulators or Devices:
- Ensure that you have the necessary emulators or physical devices set up for testing. Refer to the Appium documentation for configuring emulators or connecting physical devices.
-
Project Configuration:
- Open the
src/main/resources/config
directory and review the configuration files. - Adjust the settings in
config.properties
to match your Appium server configuration, such as server URL, platform name, device name, etc.
- Open the
-
Test Data Configuration:
- Navigate to the
src/test/resources/data
directory and update the JSON files with relevant test data. - Modify the data in these files according to the requirements of your test scenarios.
- Navigate to the
-
Environment Variables:
- Check if there are any environment-specific configurations required and set up corresponding environment variables if necessary.
-
Build Project:
- Build the project using Maven:
mvn clean install
- Build the project using Maven:
Now, your environment should be set up for running tests with the Appium test automation framework.
Now that the framework is set up, you can execute the test suite using Maven:
mvn test