Skip to content

Instantly share code, notes, and snippets.

@stevez
Created March 20, 2015 03:58
Show Gist options
  • Select an option

  • Save stevez/4ad40e28261569da15dc to your computer and use it in GitHub Desktop.

Select an option

Save stevez/4ad40e28261569da15dc to your computer and use it in GitHub Desktop.
gradle srcript to run robotframework test cases
apply plugin: 'java'
repositories {
mavenCentral()
}
dependencies {
runtime group: 'org.robotframework', name: 'robotframework', version: '2.8.7'
runtime group: 'com.github.markusbernhardt', name:'robotframework-selenium2library-java', version:'1.4.0.7'
}
clean{
delete 'target'
}
task(run, type: JavaExec) {
main = 'org.robotframework.RobotFramework'
classpath = sourceSets.main.runtimeClasspath
args '--variable', 'BROWSER:gc'
args '--outputdir', 'target'
args 'tests'
}
defaultTasks 'run'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment