delegateCommandSystemProperties in programmatic API

27 views
Skip to first unread message

edwolb

unread,
Feb 12, 2013, 1:53:20 PM2/12/13
to testng...@googlegroups.com
We have long used XML suites to run our test and have relied on the delegateCommandSystemProperties attribute to pass some system properties from Ant to our test framework.  Recently we have begun experimenting with programmatically selecting tests and creating suites dynamically, but the delegateCommandSystemProperties seems to be a missing option.

For example, on http://testng.org/doc/ant.html, configFailurePolicy is an attribute which you can emulate using:

XmlSuite suite = new XmlSuite();
suite.setConfigFailurePolicy("continue");


However there doesn't seem to be a setDelegateCommandSystemProperties() function.  I assume this might have to do with the fact that we're already in Java by this point and there's no way to reach back and pull the variables in from Ant at this point.  Or is there a way to do this?

Thanks

--
Chris
Reply all
Reply to author
Forward
0 new messages