How to pass paramters to Remote Browser in test cases recorded using Selenium Builder

Document ID : KB000011833
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

A test case was created by using Selenium builder on local machine. This test case was being configured to run on a browser in remote machine. 

The choice of browser and the remote server url are being passed to the test case by defining the below properties in config file: 

selenium.browser.type 
selenium.remote.url 

Question:

The remote browser expects a web driver capability, browserstack.local to be set to true.

How to pass this parameter through the test case in DevTest at run time? 

Answer:

(1) Create a text file and add the line below in it 
browserstack.local=true 

(2) Then add the below key/pair as a property in config file: 

Key = selenium.WebDriver.DesiredCapabilities.filePath 
Value = Path to the text file