After successfully creating a solution, Ranorex configures the default test suite with the following files:
- OpenBrowser
- Recording1
- CloseBrowser
Follow these steps to set up a WebDriver endpoint for Selenium Grid on BrowserStack:
- First, let’s add the BrowserStack endpoint. Click View from the menu bar, and select Endpoints.
- In the Endpoints window, click Add Endpoint.
- In the Endpoints tab on the right, configure the following:
- Select endpoint type: Choose WebDriver
- Specify Webdriver endpoint: Enter a Name for your endpoint and the Address (Hub URL)
- Click Test Connection, to verify the setup, once connected, click Add endpoint
You have successfully set up a WebDriver endpoint for BrowserStack Selenium Grid Hub URL.
Executing Ranorex tests on BrowserStack Automate
To execute Ranorex tests, follow these steps:
- In the Endpoints dialog, click and select View details
- In the details section, click Add new configuration
- Enter the required details of your Endpoint configuration:
- Name
- Description
- Capabilities JSON, for more information on how to create Capabilities JSON, go to Create your own JSON with our capabilities configurator.
Example
{
"platform": "Windows 10",
"browserName": "chrome",
"version": "58.0",
"browserStack.user": "PLEASE PUT YOUR USERNAME HERE",
"browserStack.key": "PLEASE PUT YOUR ACCESSKEY HERE"
}To access internal test infrastructure add “local”: “true”. This enables local testing using the BrowserStack Local binary.
- Expand the Active Configuration drop-down to select the configuration you added previously.
- In the test suite, select Recording1, click Record and add new actions.
- Once the configuration is completed, go to the test suite and make sure that the WebDriver is set as an Endpoint to run the test on BrowserStack.
- Run the test with the previously recorded steps and the BrowserStack configurations.
- The test is executed successfully, and the results are displayed in the BrowserStack Automate dashboard. A Ranorex report is generated.
Your Ranorex tests are now running successfully on BrowserStack Automate.