Dependencies for appium Notes By ShariqSP

Dependencies for Automation Framework

To set up a robust automation framework, include the following dependencies in your project:

  • Appium Java Client (Version: 8.6.0)

    The Appium Java Client is essential for writing automated tests for mobile applications. It provides classes and methods to interact with mobile app elements on both Android and iOS.

    
                  <dependency>
                    <groupId>io.appium</groupId>
                    <artifactId>java-client</artifactId>
                    <version>8.6.0</version>
                  </dependency>
                        
  • Selenium (Version: 4.13.0)

    Selenium is a popular tool for automating web browsers. Version 4.13.0 includes advanced features like W3C compliance, native Chrome DevTools Protocol integration, and support for relative locators.

    
                  <dependency>
                    <groupId>org.seleniumhq.selenium</groupId>
                    <artifactId>selenium-java</artifactId>
                    <version>4.13.0</version>
                  </dependency>
                        
  • TestNG (Version: 7.8.0 or 7.9.0)

    TestNG is a testing framework that supports parallel testing, data-driven testing, and easy-to-understand test results.

    
                  <dependency>
                    <groupId>org.testng</groupId>
                    <artifactId>testng</artifactId>
                    <version>7.9.0</version>
                    <scope>test</scope>
                  </dependency>
                        
  • Apache Maven (3.8.8 or later)

    Maven is used for project management and build automation. Include the latest version to manage dependencies.

  • JUnit (Version: 5.10.0)

    JUnit complements TestNG for unit tests and smaller, isolated test cases.

    
                  <dependency>
                    <groupId>org.junit.jupiter</groupId>
                    <artifactId>junit-jupiter</artifactId>
                    <version>5.10.0</version>
                  </dependency>
                        
  • Apache Commons Lang (Version: 3.12.0)

    This library provides utility methods for Java development, such as string manipulation and object comparison.

    
                  <dependency>
                    <groupId>org.apache.commons</groupId>
                    <artifactId>commons-lang3</artifactId>
                    <version>3.12.0</version>
                  </dependency>
                        
  • SLF4J (Version: 1.7.36)

    SLF4J provides an abstraction for logging frameworks and is typically paired with Logback.

    
                  <dependency>
                    <groupId>org.slf4j</groupId>
                    <artifactId>slf4j-api</artifactId>
                    <version>1.7.36</version>
                  </dependency>
                        
  • Jackson (Version: 2.15.0)

    Jackson is used for JSON parsing and serialization/deserialization in Java.

    
                  <dependency>
                    <groupId>com.fasterxml.jackson.core</groupId>
                    <artifactId>jackson-databind</artifactId>
                    <version>2.15.0</version>
                  </dependency>
                        

Add these dependencies to your pom.xml file for Maven or the corresponding build.gradle file for Gradle to enable proper integration and resolve transitive dependencies.