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

Galder Zamarreno galder.zamarreno at redhat.com
Thu Jun 18 08:59:34 EDT 2009


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