Created
October 2, 2013 17:13
-
-
Save willis7/6797058 to your computer and use it in GitHub Desktop.
This is a better implementation of the selenium test task which can now take any browser we wish.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tasks.addRule('Rule Usage: intTest<Browser>') { String taskName -> | |
| if(taskName.startsWith('intTest')) { | |
| task(taskName, type: Test) { | |
| ext.browser = taskName - 'intTest' | |
| systemProperties['LOCAL_DRIVER'] = false | |
| systemProperties['REMOTE_DRIVER'] = true | |
| systemProperties['SAUCE_DRIVER'] = false | |
| systemProperties['BROWSER'] = ext.browser | |
| systemProperties['GRID_HOST'] = 'localhost' | |
| systemProperties['GRID_PORT'] = '4444' | |
| systemProperties['PLATFORM'] = 'WINDOWS' | |
| systemProperties['BASE_TEST_RESULTS_PATH'] = "$buildDir/Screenshots/$version" | |
| systemProperties['APPLICATION_URL'] = 'http://someurl' | |
| maxParallelForks = 2 | |
| testClassesDir = sourceSets.inttest.output.classesDir | |
| classpath = sourceSets.inttest.runtimeClasspath | |
| useTestNG() | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment