This project is an example of using Katalon Studio with Android Espresso driver.
- Install Gradle 7
- Install JDK 8 (not JRE)
- Add
automationName: Espresso
in Project Settings/Desired Capabilities/Mobile/Android - Open
New Test Case
and changejdkLocation
with your JDK 8 location and application file path
//Update your jdk location
String jdkLocation = '/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre'
SystemUtil.setEnv('JAVA_HOME', jdkLocation)
println System.getenv("JAVA_HOME")
//Update your app location
Mobile.startApplication('/Users/duyanhluong/Downloads/TheApp-v1.5.0 (3).apk', false)
Mobile.closeApplication()
- Run
New Test Case
- Now you can start spy/record and run the test normally with Espresso driver
- Copy and paster
Include
folder of this project to your project - Follow step #1 to #5 of How to use