Skip to content

Commit

Permalink
[NOJIRA]
Browse files Browse the repository at this point in the history
update test configuration
  • Loading branch information
jj committed Mar 12, 2019
1 parent 5ee6e52 commit 7042689
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ package edu.internet2.tier.shibboleth.admin.ui
import jp.vmi.selenium.selenese.Main
import jp.vmi.selenium.selenese.Runner
import jp.vmi.selenium.selenese.config.DefaultConfig
import org.openqa.selenium.remote.DesiredCapabilities
import org.openqa.selenium.remote.RemoteWebDriver
import org.springframework.beans.factory.annotation.Value
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.test.annotation.DirtiesContext
Expand Down Expand Up @@ -32,10 +30,10 @@ class SeleniumSIDETest extends Specification {
it.driver = System.properties.getProperty('webdriver.driver')
} else {
it.driver = 'remote'
it.remoteUrl = 'http://localhost:4444/wd/hub'
it.remoteUrl = 'http://selenium-hub:4444/wd/hub'
it.remoteBrowser = 'firefox'
}
it.baseurl = "http://localhost:${this.randomPort}"
it.baseurl = "http://jenkins:${this.randomPort}"
it
}
def runner = new Runner()
Expand All @@ -56,8 +54,12 @@ class SeleniumSIDETest extends Specification {
def config = new DefaultConfig([] as String[]).with {
if (System.properties.getProperty('webdriver.driver')) {
it.driver = System.properties.getProperty('webdriver.driver')
} else {
it.driver = 'remote'
it.remoteUrl = 'http://selenium-hub:4444/wd/hub'
it.remoteBrowser = 'firefox'
}
it.baseurl = "http://localhost:${this.randomPort}"
it.baseurl = "http://jenkins:${this.randomPort}"
it
}
def runner = new Runner()
Expand Down

0 comments on commit 7042689

Please sign in to comment.