Thanks for answer. I will implement it in way you suggest.
On Jun 3, 5:11 pm, Cédric Beust ♔ <
ced...@beust.com> wrote:
> Hi Ivan,
>
> This is not supported at the moment but TestNG does see system properties as
> parameters, so you can achieve a similar result as follows:
>
> java -Dpath=$PATH org.testng.TestNG testng.xml
>
> and in your code:
>
> @Parameters("path")
> @Test
> public void f(String path) {
> ...
>
> }
>
> --
> Cédric
>
> On Thu, Jun 3, 2010 at 6:51 AM, Ivan Delibashev
>
>
>
>
>
> > Hi,
>
> > I am trying to use testng to execute tests automation server. Because
> > my test environment is dynamic i prefer not to hard-code it in
> > testng.xml.
> > For example i will execute tests against a server install on some
> > remote machine which can change.
> > Is there a way testng to be notified by testng.xml to look for system
> > environmet variables? In ant scripts this is done via "env.PATH"
>
> > Regards
> > Ivan
>
> > --
> > 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