Open the solution file BrowserStack/BrowserStack.sln in Visual Studio. The projects are Visual Studio 2015 compatible.
You will need to resolve the references from the Solution Explorer. Visual Studio with automatically download the references from NuGet.
new Local(): creates an instance of Local
start(options): starts Local instance with options. The options available are detailed below.stop(): stops the Local instanceisRunning(): checks if Local instance is running and returns a corresponding boolean value
key: BrowserStack Access Keyv: Provides verbose loggingf: If you want to test local folder rather internal server, provide path to folder as value of this optionforce: Kill other running Browserstack Localonly: Restricts Local Testing access to specified local servers and/or foldersforcelocal: Route all traffic via local machineonlyAutomate: Disable Live Testing and Screenshots, just test AutomateproxyHost: Hostname/IP of proxy, remaining proxy options are ignored if this option is absentproxyPort: Port for the proxy, defaults to 3128 when -proxyHost is usedproxyUser: Username for connecting to proxy (Basic Auth Only)proxyPass: Password for USERNAME, will be ignored if USERNAME is empty or not specifiedlocalIdentifier: If doing simultaneous multiple local testing connections, set this uniquely for different processeshosts: List of hosts and ports where Local must be enabled for eg. localhost,3000,1,localhost,3001,0logfile: Path to file where Local logs be saved tobinarypath: Optional path to Local binary
To run the example,
- open the solution file
BrowserStackExample/BrowserStackExample.sln - resolve the references (Will need to resolve the reference to BrowserStack.dll [built from the main project])
- change the
BROWSERSTACK_USERNAMEandBROWSERSTACK_ACCESS_KEYstring variables to your BrowserStack username and key mentioned here