Is it possible to set system properties from testng.xml

1,652 views
Skip to first unread message

Alexander Poulikakos

unread,
May 2, 2013, 3:23:22 PM5/2/13
to testng...@googlegroups.com

Hi

 

Is it possible to provide system-properties (as read by System.getProperty(String)) from within a testng.xml file? To avoid adding them as VM arguments to my run-configurations in Eclipse?

 

Something like:

 

<suite name=”my-suite”>

  <system-properties>

    <property name=”foo” value=”fooValue”>

  </system-properties>

 

<test>…</test>

</suite>

 

Thanks,

Alex

Cédric Beust ♔

unread,
May 2, 2013, 5:33:33 PM5/2/13
to testng...@googlegroups.com
No, by design: system properties can only be specified on the command line.


-- 
Cédric



--
You received this message because you are subscribed to the Google Groups "testng-users" group.
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 http://groups.google.com/group/testng-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Alexander Poulikakos

unread,
May 2, 2013, 5:37:43 PM5/2/13
to testng...@googlegroups.com

Ok, thanks.

 

/Alex

Reply all
Reply to author
Forward
0 new messages