Skip to content

Instantly share code, notes, and snippets.

@SarahElson
Created September 13, 2024 12:50
Show Gist options
  • Save SarahElson/4f5ffc88a335f4032a46452f7361c838 to your computer and use it in GitHub Desktop.
Save SarahElson/4f5ffc88a335f4032a46452f7361c838 to your computer and use it in GitHub Desktop.
How to Test Biometric Authentication With Appium
public class BaseTest {
protected AndroidDriverManager androidDriverManager;
@Parameters({"deviceType"})
@BeforeClass(alwaysRun = true)
public void setup(final String deviceType) {
this.androidDriverManager = new AndroidDriverManager();
if (deviceType.equalsIgnoreCase("LOCAL")) {
this.androidDriverManager.createAndroidDriver();
} else if (deviceType.equalsIgnoreCase("CLOUD")) {
this.androidDriverManager.createAndroidDriverInCloud();
} else {
throw new Error("Device Type param is not defined!");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment