Created
September 13, 2024 12:50
-
-
Save SarahElson/4f5ffc88a335f4032a46452f7361c838 to your computer and use it in GitHub Desktop.
How to Test Biometric Authentication With Appium
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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