File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
main/java/com/browserstack/local
test/java/com/browserstack/local Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ public Local() {
3434 parameters .put ("proxyPort" , "-proxyPort" );
3535 parameters .put ("proxyUser" , "-proxyUser" );
3636 parameters .put ("proxyPass" , "-proxyPass" );
37+ parameters .put ("forceproxy" , "-forceproxy" );
3738 parameters .put ("hosts" , "-hosts" );
3839 }
3940
Original file line number Diff line number Diff line change @@ -89,6 +89,14 @@ public void testEnableForceLocal() throws Exception {
8989 assertTrue (l .command .contains ("-forcelocal" ));
9090 }
9191
92+ @ Test
93+ public void testEnableForceProxy () throws Exception {
94+ options .put ("forceproxy" , "" );
95+ options .put ("onlyCommand" , "true" );
96+ l .start (options );
97+ assertTrue (l .command .contains ("-forceproxy" ));
98+ }
99+
92100 @ Test
93101 public void testSetLocalIdentifier () throws Exception {
94102 options .put ("localIdentifier" , "abcdef" );
You can’t perform that action at this time.
0 commit comments