quality@glassfish.java.net

Re: testng question

From: Lidia Marchioni <lidia_at_sun.com>
Date: Tue, 26 May 2009 18:20:40 -0700

Yes, this works like a charm. It avoids using testng @Parameters
annotation altogether...

thanks!
lidia


Dies Koper wrote:
> Hi Lidia,
>
> I always specify them in the testng target in the ant file I invoke
> TestNG from:
>
> <testng verbose="2"
> classpathref="testdriver.path">
> <sysproperty key="appHost" value="${host}" />
> [...]
> </testng>
>
> Would that work for you?
>
> Regards,
> Dies
>
>
> lidia wrote:
>> 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
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>