Skip to content

Commit

Permalink
"remote_url" and "remote_browser" parameters for "./go test_remote".
Browse files Browse the repository at this point in the history
E.g.
./go test_remote remote_url=http://1.2.3.4:1234/wd/hub remote_browser=ie

I found no way to make this work without a change.
Including
./go test_foo jvmargs="-Da=a -Db=b"
which doesn't set both properties a=a and b=b and doesn't work at all: a space in jvmargs messes everything up.

Signed-off-by: Jason Leyba <[email protected]>
  • Loading branch information
sevaseva authored and jleyba committed Apr 5, 2014
1 parent 26cc094 commit a459010
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions rake-tasks/crazy_fun/mappings/java.rb
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,14 @@ def handle(fun, dir, args)
ant.sysproperty :key => 'webdriver.firefox.bin', :value => firefox
end

if remote_url
ant.sysproperty :key => 'selenium.external.serverUrl', :value => remote_url
ant.sysproperty :key => 'selenium.browser.remote', :value => 'true'
if remote_browser
ant.sysproperty :key => 'selenium.browser', :value => remote_browser
end
end

if marionette?
ant.sysproperty :key => 'webdriver.firefox.marionette', :value => 'true'
end
Expand Down Expand Up @@ -616,6 +624,14 @@ def firefox
return ENV['firefox']
end

def remote_url
return ENV['remote_url']
end

def remote_browser
return ENV['remote_browser']
end

def jvm_args
return ENV['jvmargs']
end
Expand Down

0 comments on commit a459010

Please sign in to comment.