Hi Azeez, If we are adding test cases to the build that uses this method, I guess they have to run after products has been bult. Am I right?
IMO, we should define a place within svn repository to put this code and put our integration tests and test automation work to be run as a part of the build. Also, server startup take time, and test cases should try to test many things with the same server to keep the time spend on tests in control. Also, should we ask user to give a folder, not the zip file for the carbon distribution? Because the latter need to extract, and can slow down the tests considerably. --Srinath On Sun, Mar 13, 2011 at 11:18 AM, Chamara Silva <[email protected]> wrote: > Great.This is very useful for test automation. thanks, > regards, > Chamara > > On Sun, Mar 13, 2011 at 8:01 AM, Charitha Kankanamge <[email protected]> > wrote: >> >> Great work Azeez. Thanks! >> >> Charitha >> >> >> On Sun, Mar 13, 2011 at 7:25 AM, Afkham Azeez <[email protected]> wrote: >>> >>> Folks, >>> This is something I've been thinking about for sometime, and finally >>> found some time this weekend to make this work. Now you can start any Carbon >>> instance from your JUnit test code, and test your components. >>> Your test case needs to >>> extend org.wso2.carbon.integration.core.CarbonIntegrationTestCase [1] >>> I have included a simple test which tests whether a Carbon core server >>> starts up properly [2] >>> For further details see the integration/core module [3] >>> >>> 1. https://wso2.org/repos/wso2/trunk/carbon/core/integration/core/src/test/java/org.wso2.carbon.integration.core/CarbonIntegrationTestCase.java >>> >>> 2. https://wso2.org/repos/wso2/trunk/carbon/core/integration/core/src/test/java/org.wso2.carbon.integration.core/StartCarbonServerTest.java >>> 3. https://wso2.org/repos/wso2/trunk/carbon/core/integration/core >>> Please try this out and let me know if we can make any improvements or if >>> there are any shortcomings. Also, henceforth, it is a component author's >>> responsibility to write unit tests & integration tests. Now, even admin >>> services can be easily tested using this framework. Also, now it should be >>> easy to write a test case when we create patches. >>> -- >>> Afkham Azeez >>> Senior Software Architect & Senior Manager; WSO2, Inc.; http://wso2.com, >>> >>> Member; Apache Software Foundation; http://www.apache.org/ >>> email: [email protected] cell: +94 77 3320919 >>> blog: http://blog.afkham.org >>> twitter: http://twitter.com/afkham_azeez >>> linked-in: http://lk.linkedin.com/in/afkhamazeez >>> >>> Lean . Enterprise . Middleware >>> >>> _______________________________________________ >>> Carbon-dev mailing list >>> [email protected] >>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >>> >> >> >> _______________________________________________ >> Carbon-dev mailing list >> [email protected] >> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >> > > > > -- > Suminda Chamara Silva > WSO2 Inc. > Mobile: +94 718 302858 > blog: http://chamaras.blogspot.com > > _______________________________________________ > Carbon-dev mailing list > [email protected] > http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > -- ============================ Srinath Perera, Ph.D. Senior Software Architect, WSO2 Inc. Visiting Faculty, University of Moratuwa Member, Apache Software Foundation Research Scientist, Lanka Software Foundation Blog: http://srinathsview.blogspot.com/ _______________________________________________ Carbon-dev mailing list [email protected] http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
