Thanks for the tip Josh,

I created my own base class like TapestryCoreTestCase that stayed in one of
the tapestry core apps.



2010/7/25 Josh Canfield <joshcanfi...@gmail.com>

> Take a look at
> http://tapestry.apache.org/tapestry5.2-dev/apidocs/org/apache/tapestry5/test/SeleniumLauncher.html
>
> I've run into the same problem. It makes running your test cases from your
> IDE very inconvenient.
>
> You could create your own base class that calls the launcher methods
> without having to include them in the testng configuration.
>
> That doesn't help if your trying to run tapestry core tests though.
>
>
> -- Josh
>
> On Jul 24, 2010, at 2:31 PM, Pablo dos Reis <pablodosr...@gmail.com>
> wrote:
>
> > When I run my test class that extends SeleniumTestCase
> > in the following method all calls to context.getAttribute return nul.
> >
> >
> > It's necessary any configuration to work well?
> >
> >
> > @BeforeClass
> >    public void setup(ITestContext context)
> >    {
> >        this.testContext = context;
> >
> >        delegate = (Selenium)
> > context.getAttribute(TapestryTestConstants.SELENIUM_ATTRIBUTE);
> >        baseURL = (String)
> > context.getAttribute(TapestryTestConstants.BASE_URL_ATTRIBUTE);
> >        errorReporter = (ErrorReporter)
> > context.getAttribute(TapestryTestConstants.ERROR_REPORTER_ATTRIBUTE);
> >    }
> >
> >
> >
> > --
> > Pablo Henrique dos Reis
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
Pablo Henrique dos Reis

Reply via email to