Also I think you need to have some startup/teardown impl in
CarbonTestRunner so that common init/cleanup work can be done in there. For
an example inserting a database entry at the beginning and deleting at the
end.

On Tue, Dec 13, 2011 at 10:44 AM, Afkham Azeez <[email protected]> wrote:

>
>
> On Tue, Dec 13, 2011 at 6:28 AM, Srinath Perera <[email protected]> wrote:
>
>> +1 .. Azeez talked to Krishantha as well, and we did some related work
>> for automation framework
>>
>
> The plan is to come up with a single framework which will reside in
> org.wso2.carbon.integration.core, which will be used by all the integration
> tests in the products as well as the automation tests. Something like the
> following.
>
>
> public class CarbonTestRunner extends TestSuite {
>
>     public static Test suite() throws Exception {
> //        copyArtifacts();
>
>         TestSuite testSuite = new TestSuite();
>
>         testSuite.addTestSuite(StartCarbonServerTest.class);
>         testSuite.addTestSuite(LoginTest.class);
>         testSuite.addTestSuite(SecurityVerificationTest.class);
>
>         return testSuite;
>     }
>
>     public void copyArtifacts(){
>
>     }
>
>     public void startServers(){
>
>     }
>
>     public void runTests(){
>
>     }
>
>     public void shutdownServers(){
>
>     }
> }
>
>
>> --Srinath
>>
>> On Tue, Dec 13, 2011 at 12:11 AM, Charith Wickramarachchi
>> <[email protected]> wrote:
>> >
>> >
>> > On Mon, Dec 12, 2011 at 11:41 PM, Afkham Azeez <[email protected]> wrote:
>> >>
>> >> Folks,
>> >> I would like to review & make changes to the current Carbon integration
>> >> test framework we have in carbon core. It is a bit of a mess now with
>> people
>> >> doing artifact copying in various ways. I would like to introduce a
>> >> CarbonTestRunner. A server will be started per CarbonTestRunner
>> instance.
>> >> CarbonTestRunner is a TestSuite. In your Carbon test cases you will
>> >> implement the copyArtifacts method. CarbonTestRunner will first call
>> >> copyArtifacts on all test cases, start the server, and run the tests.
>> >> Different product teams are doing this in various hacky ways now, but
>> we
>> >> need to have a proper way of doing this.
>> >>
>> >> In addition, we have also think about starting up multiple Carbon
>> servers
>> >> per CarbonTestRunner.
>> >>
>> >> Can we have a short design discussion about this tomorrow at 10AM?
>> >
>> >
>> >
>> > +1
>> >
>> > For come up with a Unified  Framework.
>> >
>> > cheers,
>> > Charith
>> >
>> >
>> >>
>> >>
>> >>
>> >> --
>> >> Afkham Azeez
>> >> Director of Architecture; 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
>> >>
>> >
>> >
>> >
>> > --
>> > Charith Dhanushka Wickramarachchi
>> > Software Engineer
>> > WSO2 Inc
>> > http://wso2.com/
>> > http://wso2.org/
>> >
>> > blog
>> > http://charithwiki.blogspot.com/
>> >
>> > twitter
>> > http://twitter.com/charithwiki
>> >
>> > Mobile : 0776706568
>> >
>> >
>>
>>
>>
>> --
>> ============================
>> 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/
>>   Photos: http://www.flickr.com/photos/hemapani/
>>
>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * <http://www.apache.org/>**
> email: **[email protected]* <[email protected]>* cell: +94 77 3320919
> blog: **http://blog.afkham.org* <http://blog.afkham.org>*
> twitter: **http://twitter.com/afkham_azeez*<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

Reply via email to