Espresso/Kotlin
Before launching / test setup
Add gptdriver-client into the libraries inside libs.versions.toml file:
Add gptdriver-client into the dependencies array inside build.gradle.kts (:app) file:
If needed, add packaging exclude rules in the android section of the build.gradle.kts (:app) file
To resolve build failures caused by duplicate metadata files from dependencies, exclude them from the packaging process.
If not already present, add internet permissions to the AndroidManifest.xml file
GPT Driver testing setup requires Appium to interact with the emulator. Since Appium operates via HTTP, ensure explicit network access is available.
Before launching the tests, start appium locally
Inside the test file
Import necessary dependencies
Create the GPT Driver instance and start the session
Use execute method to perform AI-driven steps:
Simple test example:
Last updated