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() {
34
34
parameters .put ("proxyPort" , "-proxyPort" );
35
35
parameters .put ("proxyUser" , "-proxyUser" );
36
36
parameters .put ("proxyPass" , "-proxyPass" );
37
+ parameters .put ("forceproxy" , "-forceproxy" );
37
38
parameters .put ("hosts" , "-hosts" );
38
39
}
39
40
Original file line number Diff line number Diff line change @@ -89,6 +89,14 @@ public void testEnableForceLocal() throws Exception {
89
89
assertTrue (l .command .contains ("-forcelocal" ));
90
90
}
91
91
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
+
92
100
@ Test
93
101
public void testSetLocalIdentifier () throws Exception {
94
102
options .put ("localIdentifier" , "abcdef" );
You can’t perform that action at this time.
0 commit comments