Skip to content

Commit

Permalink
[SHIBUI-922]
Browse files Browse the repository at this point in the history
added Selenium IDE file support
  • Loading branch information
jj committed Nov 28, 2018
1 parent cec8e0b commit 09804c1
Show file tree
Hide file tree
Showing 4 changed files with 1,214 additions and 0 deletions.
9 changes: 9 additions & 0 deletions backend/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ repositories {
configurations.all {
resolutionStrategy {
force 'org.cryptacular:cryptacular:1.1.3'

eachDependency { details ->
if (details.requested.group == 'org.seleniumhq.selenium' && details.requested.name != 'htmlunit-driver') {
details.useVersion '3.141.59'
}
}
}
}

Expand Down Expand Up @@ -154,6 +160,7 @@ dependencies {
compile 'org.sharegov:mjson:1.4.1'

integrationTestCompile 'com.saucelabs:sebuilder-interpreter:1.0.6'
integrationTestCompile 'jp.vmi:selenese-runner-java:3.19.2'
}

def generatedSrcDir = new File(buildDir, 'generated/src/main/java')
Expand All @@ -180,6 +187,8 @@ sourceSets {
}

task integrationTest(type: Test) {
group = 'verification'
description = 'Run various integration tests'
dependsOn 'dockerRun', 'runChecker'
finalizedBy 'dockerStop'
testClassesDirs = sourceSets.integrationTest.output.classesDirs
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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 spock.lang.Specification
import spock.lang.Unroll

class SeleniumSIDETest extends Specification {
@Unroll
def "#name"() {
expect:
def main = new Main()
def config = new DefaultConfig([] as String[])
def runner = new Runner()
main.setupRunner(runner, config, [] as String[])

def result = runner.run(file, this.class.getResourceAsStream(file))
runner.finish()
assert result.level.exitCode == 0

where:
name | file
'Create Dynamic HTTP Metadata Resolver' | '/dhmr.side'
}
}
Loading

0 comments on commit 09804c1

Please sign in to comment.