use of com.seleniumtests.browserfactory.AndroidCapabilitiesFactory in project seleniumRobot by bhecquet.
the class TestAndroidCapabilitiesFactory method testCreateCapabilitiesWithApplicationOverrideFullReset.
/**
* Check mobile test with app
*/
@Test(groups = { "ut" })
public void testCreateCapabilitiesWithApplicationOverrideFullReset() {
SeleniumTestsContext context = new SeleniumTestsContext(SeleniumTestsContextManager.getThreadContext());
context.setMobilePlatformVersion("8.0");
context.setPlatform("android");
context.setDeviceName("Samsung Galasy S8");
context.setAppPackage("appPackage");
context.setAppActivity("appActivity");
context.setFullReset(false);
context.setApp("com.covea.mobileapp");
DriverConfig config = new DriverConfig(context);
AndroidCapabilitiesFactory capaFactory = new AndroidCapabilitiesFactory(config);
MutableCapabilities capa = capaFactory.createCapabilities();
Assert.assertEquals(capa.getCapability(MobileCapabilityType.FULL_RESET), false);
}
Aggregations