Skip to main content

Usage

Usage options

Any of the following options can be used to start working with the framework.

A. Maven Dependency

The framework can be used directly by adding dependency in the pom.xml file as shown below:

<dependency>
<groupId>com.github.wasiqb.coteafs</groupId>
<artifactId>appium</artifactId>
<version>4.0.0</version>
</dependency>
note

Sometimes it is observed that due to some conflicting dependencies for SnakeYaml and Google's Guava, you need to make sure you add exclusion in other library dependencies (which is internally using an old version of the above mentioned library) which you may use in your pom along with this framework. This is how you do this:

<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>7.3.0</version>
<exclusions>
<exclusion>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</exclusion>
</exclusions>
</dependency>

If this won't solve the issue, than you need to remove old versions from your .m2 repository from your local machine for both SnakeYaml and Google's Guava.

B. Build path reference

In order to use it from build path, you need to clone the framework project to your local machine by executing the below command:

$ git clone git@github.com:WasiqB/coteafs-appium.git

Once project is cloned, build the project by executing the below command.

$ mvn clean install -DskipTests=true

After build is completed successfully, refer the JAR's created in target folder in build path of your project.

C. Download the JAR's from the Release Tab

You can download the latest release JAR's from GitHub and add the reference in your project classpath.