Skip to content

Commit

Permalink
[NOJIRA]
Browse files Browse the repository at this point in the history
Added selenium grid docker-compose configuration. Need to figure out
the networking issues.
  • Loading branch information
Bill Smith committed Mar 12, 2019
1 parent 1875a00 commit 15483e5
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ 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 All @@ -28,6 +30,10 @@ 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://localhost:4444/wd/hub'
it.remoteBrowser = 'firefox'
}
it.baseurl = "http://localhost:${this.randomPort}"
it
Expand Down
26 changes: 26 additions & 0 deletions misc/selenium/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
version: "3.7"

services:
selenium-hub:
image: selenium/hub:3.141.59-krypton
container_name: selenium-hub
ports:
- "4444:4444"
chrome:
image: selenium/node-chrome:3.141.59-krypton
volumes:
- /dev/shm:/dev/shm
depends_on:
- selenium-hub
environment:
- HUB_HOST=selenium-hub
- HUB_PORT=4444
firefox:
image: selenium/node-firefox:3.141.59-krypton
volumes:
- /dev/shm:/dev/shm
depends_on:
- selenium-hub
environment:
- HUB_HOST=selenium-hub
- HUB_PORT=4444

0 comments on commit 15483e5

Please sign in to comment.