@@ -0,0 +1,1448 @@
+package com.seleniumtests.it.browserfactory;%0A%0Aimport org.openqa.selenium.WebDriver;%0Aimport org.testng.Reporter;%0Aimport org.testng.annotations.Test;%0A%0Aimport com.seleniumtests.GenericTest;%0Aimport com.seleniumtests.core.SeleniumTestsContextManager;%0Aimport com.seleniumtests.driver.CustomEventFiringWebDriver;%0Aimport com.seleniumtests.driver.TestType;%0Aimport com.seleniumtests.driver.WebUIDriver;%0A%0Apublic class TestSauceLabsDriverFactory extends GenericTest %7B%0A%0A%09/**%0A%09 * For this test to run, you must add the following JVM parameters%0A%09 * -Dapp=%3Capplication.apk%3E%0A%09 * -DappPackage=%3Cpackage%3E%0A%09 * -DappActivity=%3Cactivity%3E%0A%09 * -DappWaitActivity=%3CwaitActivity%3E # if any%0A%09 * -DwebDriverGrid=https://%3Cuser%3E:%3Ckey%3E@ondemand.eu-central-1.saucelabs.com:443/wd/hub%0A%09 * -Dhttps.proxyHost=%3Cproxy_host%3E -Dhttps.proxyPort=%3Cproxy_port%3E%0A%09 */%0A%09@Test(groups=%22no-test%22)%0A%09public void testSauceLabs() %7B%0A%09%09%0A%09%09SeleniumTestsContextManager.getThreadContext().setTestType(TestType.APPIUM_APP_ANDROID);%0A%0A%0A%09%09SeleniumTestsContextManager.getThreadContext().setPlatform(%22android 11%22);%0A%09%09SeleniumTestsContextManager.getThreadContext().setDeviceName(%22.*google.*%22);%0A%09%09%0A%09%09SeleniumTestsContextManager.getThreadContext().setRunMode(%22saucelabs%22);%0A%09%09SeleniumTestsContextManager.getThreadContext().configureContext(Reporter.getCurrentTestResult());%0A%09%09%0A%09%09WebDriver driver = WebUIDriver.getWebDriver(true);%0A%09%09WebDriver realDriver = ((CustomEventFiringWebDriver)driver).getWebDriver();%0A%0A%09%09%0A%09%09%0A%09%7D%0A%7D%0A

add IT for example