Hi Prasad,
 @Before and @After annotations come with the JUnit.  The test framework
works with TestNg. So you can not get worked JUint annotations with test
framework. Please use  @BeforeClass and @AfterClass annotations to get the
same work done and refer [1] for all annotation support with testNg.

[1] http://testng.org/doc/documentation-main.html#annotations

Thanks,
Nuwanw


On Fri, Jun 27, 2014 at 11:22 AM, Prasad Tissera <pras...@wso2.com> wrote:

> Hi,
>
> I tried to use @Before and @After annotations in IS Integration tests
> which uses Test framework 4.2.8 but those were not working as expected. I
> also tried setUp() and tearDown() methods, but that also didn't work.
>
> Can't we use those annotations with the test framework?
>
> Thanks.
> --
> Prasad Tissera
> Software Engineer.
> Mobile : +94777223444
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Nuwan Wimalasekara
Senior Software Engineer - Test Automation
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

phone: +94 71 668 4620
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to