Execute TestCases on a remote machine

To execute a XBrowser TestCase on a remote machine, you have to set test configuration parameters on the level of the TestCase. Depending whether you want to execute a TestCase via WebDriver or on BrowserStack, different configurations are necessary.

Before you can execute a TestCase on a remote machine, you have first to open the website in your browser.

You can only use TBox Standard Modules which are machine independent (e.g. TBox Wait, TBox Set Buffer) in a remote execution. Machine dependent Standard Modules (e.g. TBox Start Program) are executed on the local machine.

Execute TestCase on BrowserStack

To execute a XBrowser TestCase on BrowserStack you have to create test configuration parameters on the level of the TestCase you want to execute.

To execute a XBrowser TestCase on BrowserStack, follow the steps below:

  1. Create the test configuration parameters Browser, BrowserVersion, HubAddress and OperatingSystemon the level of the TestCase you want to execute.

  2. In the Value column of the test configuration parameters, enter the according information:

    • HubAddress: enter BrowserStack to execute your TestCase on BrowserStack.

    • Browser: enter the browser on which you want to execute the TestCase.

    • BrowserVersion: enter the version of the browser on which you want to execute the TestCase.

    • OperatingSystem: enter the operating system on which you want to execute the TestCase.

Specifying test configuration parameters for execution on BrowserStack

Tricentis recommends to close the browser after executing your TestCase on BrowserStack.

For further details on how to continue with the execution of a TestCase, refer to chapter "Run ExecutionLists".

Ensure that you specified the Access Key and the Username of the BrowserStack account and the Hub Address, which should be used for BrowserStack in the Settings dialog.

Execute TestCase via WebDriver

To execute a XBrowser TestCase via WebDriver, follow the steps below:

  1. Create the test configuration parameter HubAddress on the level of the TestCase you want to execute.

  2. In the Value column of the test configuration parameter HubAddress enter the IP address to the grid hub, you defined during scanning. For more information about the connected nodes, open the URL http://<IP:portnumber>/grid/console in your browser.

  3. Optionally, you can use the test configuration parameters Browser, BrowserVersion and OperatingSystem to further specify your test configuration.

Specifying test configuration parameters for execution on WebDriver

For further details on how to continue with the execution of a TestCase, refer to chapter "Run ExecutionLists".

Use WebDriver capabilities

In addition to the test configuration parameters Browser, BrowserVersion, HubAddress and OperatingSystem you can use all other capabilities provided by WebDriver to specify your test configuration. To view a list of possible WebDriver capabilities, click here , or here in particular for BrowserStack.

To use one of the capabilities, you first have to create a test configuration parameter. The name of the test configuration parameter must start with Webdriver_ and continue with the name of the capability. If you would like to define a capability name with a dot "." in its name, you have to use double underscore "__" instead of the dots.

Specifying WebDriver capabilities

Open a website

In order to open a website on a remote machine, you can use the Module OpenUrl. For further details on how to open a website, refer to see chapter "Open website".

Close a browser

In order to close a website on a remote machine, you can use the Module CloseBrowser. For further details on how to open a website, refer to see chapter "Close browser".