To overwrite the browser that is specified in the application configuration, use the silktest.configurationName environment variable or the browser command-line parameter.
If you execute a test from Silk Central, create a configuration suite with a configuration for each browser that you want to test. Then specify the appropriate configuration name. For additional information, refer to the Silk Central Help.
SET silktest.configurationName=InternetExplorer
STW.exe –script MyScript
SET silktest.configurationName=Edge
STW.exe –script MyScript
SET silktest.configurationName=Firefox
STW.exe –script MyScript
SET silktest.configurationName=GoogleChrome
STW.exe –script MyScript
SET silktest.configurationName=host=10.0.0.1 - Safari
STW.exe –script MyScript
In this example, the
host is the Mac, on which you want to test
Apple Safari. The host needs to be connected as a remote location to the machine on which
Silk Test Workbench is running. For additional information, see
Editing Remote Locations.
SET silktest.configurationName="platformName=Android;deviceName=MotoG3;deviceId=11111111;host=10.0.0.1 - Chrome"
STW.exe –script MyScript
SET silktest.configurationName="platformName=iOS;deviceName=iPad mini;deviceId=11111111;host=10.0.0.1"
STW.exe –script MyScript
Additionally, you have to specify the browser in the application configuration.
-Dsilktest.configurationName=host=10.0.0.1 - Safari
STW.exe –script MyScript
STW.exe –browser InternetExplorer –script MyScript
STW.exe –browser Edge –script MyScript
STW.exe –browser Firefox –script MyScript
STW.exe –browser GoogleChrome –script MyScript
STW.exe -connectionstring host=10.0.0.1 - Safari –script MyScriptIn this example, the host is the Mac, on which you want to test Apple Safari. The host needs to be connected as a remote location to the machine on which Silk Test Workbench is running. For additional information, see Editing Remote Locations.
STW.exe -connectionstring "platformName=Android;deviceName=MotoG3;host=10.0.0.1 - Chrome" –script MyScript
STW.exe -connectionstring "platformName=iOS;deviceName=iPad mini;host=10.0.0.1" –script MyScriptAdditionally, you have to specify the browser in the application configuration.