quality@glassfish.java.net

testng question

From: lidia <lidia_at_sun.com>
Date: Tue, 26 May 2009 16:45:48 -0700

Hi all

Hope we have some TestNG gurus on this alias...

I'm trying to pass some variables to testng, such as host, port, etc.
These are defined in ant build.properties, e.g.:

host=localhost

However, the following code in testng.xml is not resolved:

<parameter name="appHost" value="${host}">

Instead the string ${host} is assigned to parameter appHost... If
anyone knows the best way to pass parameters that are variables to
testng, please let me know.

thanks
lidia