Created
April 12, 2024 06:52
-
-
Save SarahElson/6ec5f22d75345a4de114170c3ac72ee0 to your computer and use it in GitHub Desktop.
How To Perform React Native Testing Using 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({"buildName", "testName", "app", "platformName", "platformVersion", "deviceName"}) | |
@BeforeClass | |
public void setupTest(final String buildName, final String testName, @Optional("app") final String app, final String platformName, final String platformVersion, | |
final String deviceName) { | |
this.androidDriverManager = AndroidDriverManager.builder() | |
.buildName(buildName) | |
.testName(testName) | |
.app(app) | |
.platformName(platformName) | |
.platformVersion(platformVersion) | |
.deviceName(deviceName) | |
.build() | |
.createAndroidDriver(); | |
} | |
@AfterClass | |
public void tearDown() { | |
this.androidDriverManager.quitDriver(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment