By default you can use the Select Browser dialog box to select the browser during replay.
If you execute a script from the command line or from a Continuous Integration (CI) server, you can specify the connection string in the application configuration of the script. To overwrite the browser that is specified in the application configuration, use the silktest.configurationName environment variable.
You can also use the property browsertype of the BrowserApplication class to set the type of the browser that is used during replay. However, the browsertype does not include an explicit value for Chrome for Android.
To specify that you want to use Chrome for Android as the browser, on which a test is replayed, set the browsertype to GoogleChrome and specify Android as the platform. When Android is specified, Silk4J uses Chrome for Android instead of Google Chrome on a desktop machine to execute the test.
SET silktest.configurationName="platformName=Android;deviceName=Nexus 7;host=10.0.0.1 - Chrome"
BrowserBaseState baseState = new BrowserBaseState(BrowserType.GoogleChrome, "demo.borland.com/InsuranceWebExtJS/"); baseState.setConnectionString("platformName=Android"); baseState.execute(desktop);