How-to: AI Using Appium
In this demo, we will try using the Test.ai classifier plugin with Appium.
Install all Dependencies
This demo currently only supports macOS operating systems.
Open a terminal, and execute the following:
Add the following to ~/.zshrc or your desired shell configuration file:
Next, execute the following:
Start Appium Server
Start Test.ai Classifier Server
Appium Pro Sample Project
Open the java
folder inside of your favorite Java IDE (IntelliJ recommended) and use the Gradle IDE features to install dependencies. IntelliJ does this automatically.
Open the Edition039_AI_For_Appium.java
file and replace the contents with the file below.
Next, look for the following line of code, and replace 13.4
with the correct iOS version for the iPhone 8
simulator installed on your machine. You may use idb list-targets
to find this information.
Finally, execute the test case. If everything executes as expected:
The Photos app will launch on an iOS simulator.
The
Albums
icon will be tapped using a standard Appium selector.The
Search
icon will be tapped using AI-based selection via Test.ai's classifier.
Last updated
Was this helpful?