Skip to content

SoapUI Runner Gradle Plugin v5.3.0-3

Compare
Choose a tag to compare
@daggerok daggerok released this 04 Aug 21:03
· 36 commits to v5.3.0 since this release

changelog

  • fixed #1 issue: Cannot add task ':extDir' as a task with that name already exists
  • adopted plugin for multi-project gradle build configuration

apply plugin

buildscript snippet for use in all gradle versions:

buildscript {
  repositories {
    maven { url 'https://plugins.gradle.org/m2/' }
    maven { url 'http://smartbearsoftware.com/repository/maven2' }
  }
  dependencies {
    classpath 'gradle.plugin.io.github.daggerok:soapui-runner:5.3.0-3'
  }
}

apply plugin: 'io.github.daggerok.soapui-runner'

buildscript snippet for new, incubating, plugin mechanism introduced in gradle 2.1:

buildscript {
  repositories {
    maven { url 'https://plugins.gradle.org/m2/' }
    maven { url 'http://smartbearsoftware.com/repository/maven2' }
  }
}

plugins {
  id 'io.github.daggerok.soapui-runner' version '5.3.0-3'
}

configure tasks

details

testrunner {
  // ...
}

loadtestrunner {
  // ...
}

usage

gradle testrunner
gradle loadtestrunner

soapui.ext.libraries

choose external libraries (jdbc driver, etc)

repositories { jcenter() }
dependencies { extDir "org.postgresql:postgresql:9.4.1212.jre7" }

prepare ext dir to copy inside $SOAPUI_HOME/bin/ext

gradle extDir
cp -Rf build/soapui/ext $SOAPUI_HOME/bin/ext

add new / override existed properties

parent build.gradle:

allprojects {
  testrunner {
    projectProperties = [
        'prop=base',
    ]
  }
}

child build.gradle:

testrunner {
  projectProperties = [
      'newProp=new', // add
      'prop=overriden', // override
  ]
}

have fun! :)