I had been defining the systemProperties inside useTestNG() closure,
when I was supposed to be inside test. I discovered my own mistake.
So the correct way is:
test {
systemProperties['selenium-port'] = '4444'
useTestNG() {
suites 'src/test/resources/testng.xml'
}
}
-Asmita
On Fri, Apr 22, 2011 at 5:19 PM, Asmita Vaidya <[email protected]> wrote:
> I am using Gradle 0.9.2
>
> I am a Gradle newbie and am trying to run selenium + testng using
> gradle. I could successfully run the suites using
>
> useTestNG() {
> suites 'src/test/resources/testng.xml'
> }
>
> I have specified all the parameters(e.g. selenium-host, port etc)
> required for testng.xml in testng file itself. And it works fine like
> that.
>
> However, there are more than one testng suite files and I need to be
> able to pass the parameters from build.gradle to testng.xml as some
> properties. How can I do that?
>
> Thanks,
> Asmita
>
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email