use of com.testsigma.automator.drivers.DriversUpdateService in project testsigma by testsigmahq.
the class DeviceContainer method syncBrowserDrivers.
public void syncBrowserDrivers(MobileDevice mobileDevice) {
log.info("Syncing Browser Drivers For Mobile Devices - " + mobileDevice);
List<AgentBrowser> browserList = mobileDevice.getBrowserList();
if (browserList == null) {
return;
}
for (AgentBrowser browserObj : browserList) {
try {
log.info("Trying to sync driver for mobile browser - " + browserObj);
OsBrowserType browserType = browserObj.getName();
String browserVersion = browserObj.getMajorVersion() + "";
Browsers browser = OsBrowserType.getBrowserType(browserType);
String driverPath = AutomatorConfig.getInstance().getAppBridge().getDriverExecutablePath(browser.getKey(), browserVersion);
new DriversUpdateService().syncBrowserDriver(browserType, browserVersion, driverPath);
} catch (AutomatorException e) {
log.error(e.getMessage(), e);
}
}
}
use of com.testsigma.automator.drivers.DriversUpdateService in project testsigma by testsigmahq.
the class EnvironmentRunner method beforeExecute.
protected void beforeExecute() throws AutomatorException {
checkForEmptyEnvironment();
new ScreenCaptureUtil().createScreenshotsFolder();
new ErrorUtil().checkError(testDeviceEntity.getErrorCode(), null);
new DriversUpdateService().syncBrowserDriver(testDeviceEntity);
}
Aggregations