GPT Driver + TestNG

Add dependencies to pom.xml

<project ...>

    ...
    
    <dependencies>
    
        ...
        
        <!-- GPT Driver Java SDK -->
        <dependency>
            <groupId>io.mobileboost.gptdriver</groupId>
            <artifactId>gptdriver-client</artifactId>
            <version>1.3.1</version>
        </dependency>
        
        <!-- TestNG for testing -->
        <dependency>
            <groupId>org.testng</groupId>
            <artifactId>testng</artifactId>
            <version>7.7.0</version>
            <scope>test</scope>
        </dependency>
        
    </dependencies>
</project>

In you pom.xml add the necessary build entries incl. the Surefire Plugin:

Create a testng.xml file to define your Test Suites:

Create the test classes

The actual test class extending our AppiumTest class:

The AppiumTest class to create the appium driver being utilized by GPT Driver:

Last updated