Skip to content

Commit

Permalink
[NOISSUE]
Browse files Browse the repository at this point in the history
WIP
  • Loading branch information
jj committed Feb 21, 2019
1 parent 1986eda commit 060259e
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,16 @@ 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.springframework.beans.factory.annotation.Value
import org.springframework.boot.test.context.SpringBootTest
import spock.lang.Specification
import spock.lang.Unroll

@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, classes = [ShibbolethUiApplication])
class SeleniumSIDETest extends Specification {
@Value('${local.server.port}')
int randomPort

@Unroll
def "#name"() {
setup:
Expand All @@ -16,7 +22,7 @@ class SeleniumSIDETest extends Specification {
if (System.properties.getProperty('webdriver.driver')) {
it.driver = System.properties.getProperty('webdriver.driver')
}
it.baseurl = 'http://localhost:10101'
it.baseurl = "http://localhost:${this.randomPort}"
it
}
def runner = new Runner()
Expand Down

0 comments on commit 060259e

Please sign in to comment.