This is a simple Appium test project using Java and Maven.
The project follows a standard Maven structure:
src/main/java
: Contains the main application codesrc/test/java
: Contains the test codepom.xml
: Maven configuration file
This project uses the following main dependencies:
- JUnit: For unit testing
- Appium Java Client: For Appium test automation
For the full list of dependencies and their versions, please refer to the pom.xml
file:
- Ensure you have Java and Maven installed on your system.
- Clone this repository:
git clone https://github.com/tooniez/appium-framework.git
- Navigate to the project directory:
cd appium-maven
- Install the dependencies:
mvn clean install
To run the tests, use the following command:
mvn clean test -X
This will execute all test classes in the src/test/java
directory.
This is a basic unit test class that comes with the Maven archetype.
This class contains an example Appium test for Android:
java:appium-maven/src/test/java/com/example/XCUITest.java
This test sets up an Android driver, interacts with an element, and performs a basic assertion.
The project uses Maven for build configuration. Key settings can be found in the pom.xml
file:
maven-compiler-plugin
: Configures the Java compiler to use Java 8.appium-maven-plugin
: Configures the Appium server and test execution.