Skip to content

Commit aacc24c

Browse files
committed
Added highlighting
1 parent a4d81ea commit aacc24c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Add this dependency to your project's POM:
1717

1818
## Example
1919

20-
```
20+
```java
2121
import com.browserstack.local.Local;
2222

2323
# creates an instance of Local
@@ -43,31 +43,31 @@ Apart from the key, all other BrowserStack Local modifiers are optional. For the
4343

4444
#### Verbose Logging
4545
To enable verbose logging -
46-
```
46+
```java
4747
bsLocalArgs.put("v", "true");
4848
```
4949

5050
#### Folder Testing
5151
To test local folder rather internal server, provide path to folder as value of this option -
52-
```
52+
```java
5353
bsLocalArgs.put("f", "/my/awesome/folder");
5454
```
5555

5656
#### Force Start
5757
To kill other running Browserstack Local instances -
58-
```
58+
```java
5959
bsLocalArgs.put("force", "true");
6060
```
6161

6262
#### Only Automate
6363
To disable local testing for Live and Screenshots, and enable only Automate -
64-
```
64+
```java
6565
bsLocalArgs.put("onlyAutomate", "true");
6666
```
6767

6868
#### Force Local
6969
To route all traffic via local(your) machine -
70-
```
70+
```java
7171
bsLocalArgs.put("forcelocal", "true");
7272
```
7373

@@ -79,7 +79,7 @@ To use a proxy for local testing -
7979
* proxyUser: Username for connecting to proxy (Basic Auth Only)
8080
* proxyPass: Password for USERNAME, will be ignored if USERNAME is empty or not specified
8181

82-
```
82+
```java
8383
bsLocalArgs.put("proxyHost", "127.0.0.1");
8484
bsLocalArgs.put("proxyPort", "8000");
8585
bsLocalArgs.put("proxyUser", "user");
@@ -88,7 +88,7 @@ bsLocalArgs.put("proxyPass", "password");
8888

8989
#### Local Identifier
9090
If doing simultaneous multiple local testing connections, set this uniquely for different processes -
91-
```
91+
```java
9292
bsLocalArgs.put("localIdentifier", "randomstring");
9393
```
9494

@@ -98,14 +98,14 @@ bsLocalArgs.put("localIdentifier", "randomstring");
9898

9999
By default, BrowserStack local wrappers try downloading and executing the latest version of BrowserStack binary in ~/.browserstack or the present working directory or the tmp folder by order. But you can override these by passing the -binarypath argument.
100100
Path to specify local Binary path -
101-
```
101+
```java
102102
bsLocalArgs.put("binarypath", "/browserstack/BrowserStackLocal");
103103
```
104104

105105
#### Logfile
106106
To save the logs to the file while running with the '-v' argument, you can specify the path of the file. By default the logs are saved in the local.log file in the present woring directory.
107107
To specify the path to file where the logs will be saved -
108-
```
108+
```java
109109
bsLocalArgs.put("v", "true");
110110
bsLocalArgs.put("logfile", "/browserstack/logs.txt");
111111
```

0 commit comments

Comments
 (0)