mirror of
https://github.com/appium/appium.git
synced 2026-01-14 22:30:14 -06:00
* Sample code stub (#9887) * WD tests * WD sample code (#9918) * WebdriverIO sample code (#10166) * Ruby sample code (#10331) * PHP Sample Code (#10209) * Basic Android java test * Java sample code (#10427) * Sample code (#10834) * Sample code stub (#9887) * WD tests * WD sample code (#9918) * WebdriverIO sample code (#10166) * Ruby sample code (#10331) * PHP Sample Code (#10209) * Basic Android java test * Java sample code (#10427) * fixed WDIO test * Update .npmignore
28 lines
619 B
Java
28 lines
619 B
Java
import io.appium.java_client.service.local.AppiumDriverLocalService;
|
|
import org.testng.annotations.AfterSuite;
|
|
import org.testng.annotations.BeforeSuite;
|
|
|
|
import java.io.IOException;
|
|
import java.net.URL;
|
|
|
|
public abstract class BaseTest {
|
|
|
|
private static AppiumDriverLocalService service;
|
|
|
|
@BeforeSuite
|
|
public void globalSetup () throws IOException {
|
|
service = AppiumDriverLocalService.buildDefaultService();
|
|
service.start();
|
|
}
|
|
|
|
@AfterSuite
|
|
public void globalTearDown () {
|
|
service.stop();
|
|
}
|
|
|
|
public URL getServiceUrl () {
|
|
return service.getUrl();
|
|
}
|
|
|
|
}
|