--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To post to this group, send email to testng...@googlegroups.com.
To unsubscribe from this group, send email to testng-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.
Hi cedric
I am using hudson to perform an ant job. The ant job defined an testng task in build.xml and specifying some testng.xml to be contain.
I want to override some parameters under suite node in testng.xml. How can I achieve this?
Thank you.
ant -Dfoo=bar -f build-tests.xml run:single
[testng] SKIPPED: a1[testng] org.testng.TestNGException:[testng] Parameter 'foo' is required by @Test on method a1[testng] but has not been marked @Optional or defined in /Users/cbeust/java/testng/src/test/resources/testng-single.xml
Ram
The example Cedric shared basically leverages a JVM arg way of passing values. So you should definitely be able to access it via System.getProperty()
What are you seeing ? Can you please share more info around the code you used and error info if any.
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users...@googlegroups.com.
To post to this group, send email to testng...@googlegroups.com.
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.