[jboss-dev] Re: Pass @Parameter value to a TestNG test from Eclipse?

Galder Zamarreno galder.zamarreno at redhat.com
Thu Jun 18 09:00:44 EDT 2009


According to this message:
http://markmail.org/message/n2gh4tjzzg5vozxy

This is not doable :( but wanted to check whether anyone got it to work.

Galder Zamarreno wrote:
> Hi,
> 
> I've got a question regarding TestNG and Eclipse. Does anyone know how 
> to pass the value of a @Parameter to a test from Eclipse? I've got a 
> test that has:
> 
> @Parameters({"basedir"})
> protected void setUpTempDir(String basedir) {
> ...
> 
> But I can't execute it from Eclipse cos it didn't get the basedir 
> parameter. So, I was wondering if there's any way to pass such parameter 
> from Eclipse.
> 
> Cheers,

-- 
Galder Zamarreño
Sr. Software Engineer
Infinispan, JBoss Cache



More information about the jboss-development mailing list