Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] [GSOC 2012]OSGi Remote Services Testing framework

 
According to the Harshan's comment I have little bit changed the milestone plane. Updated the plane will be posted here ASAP
/Jasintha
 

On Fri, Jun 8, 2012 at 8:18 AM, Jasintha Dasanayaka <jasinthad@xxxxxxxxx> wrote:

Hi Harshana/All

Milestone 1 (POC for how to introduce the new annotation types and process those annotations)

Goal :- Introduce a new annotation type and process that in the compile time


With the @Retention we can specify the new annotation types

@Retention(RetentionPolicy.SOURCE)
public @interface PrintTest {
}

we can use the java AbstractProcessor to process the annotations

@SupportedAnnotationTypes({"org.eclipse.ecf.testframework.PrintMe"})
public class AnnotationProcessor extends AbstractProcessor {   


The complete project  can be download[1]

Steps to test this code

1 build the project (result should be ecf-testframework-1.0-SNAPSHOT.jar)

2 create a sample test project (java project)

2 import that jar file (ecf-testframework-1.0-SNAPSHOT.jar) into your test project

3 Now you able to use PrintTest annotation in your project

ex:

    @printTest
    public void testMethod(){

 }


5 Finally compile the code as follows
javac -cp target/ecf-testframework-1.0-SNAPSHOT.jar Test.java (you will see the annotated method name in the console


I will include the real annotion types which i am going to use in this framework in the next milestone
 

[1] - https://github.com/Jasintha/ecf-RSTF


Thanks and Regards
/Jasitnha



On Sat, May 26, 2012 at 2:28 PM, Harshana Eranga Martin <harshana05@xxxxxxxxx> wrote:
Hi Jasintha,

Thanks for the update and the plan looks good.

Please see the comments inline.

On 26 May 2012 11:55, Jasintha Dasanayaka <jasinthad@xxxxxxxxx> wrote:
 Hi  Harshana/Markus/Scott/All 

Here is the  my plane for this project 

This  Test Framework  Contain the 3 basic layers


 1 Core 


 2 Annotation processing layer 


 2 API layer 



Core - This layer contain the common functionalities of a test framework  as an example test result handling assertion….etc  to develop this layer i am thinking  to wrap the TestNG  and Junit test bundles 


Annotation processing layer - This layer which is used to introduces new annotations types  as well as the read those new  annotations types . Basically here I am going to use Javax.annotation* libries to process and introduces  those new annotations 



API layer - Actually this layer is combined with above layer here I am trying to provide and API  which can be used to  introduce new annotation types easily. this layer help to make this framework extensible 



here is the  millstone plane for the develop above layers



1- develop the Annotation processing layer  -4  weeks (form May 22 to june 22)

                    

Millstone  1 -  Developed to read new annotation (Release date : May 28th)


  Millstone  2 -   Process that annotated method  (Release  date :- june 4th) 


  Millstone  3 -   develop all the new annotations which are  using  in the  framework  (Release date  june 22nd )


Spending  4th to 22nd on this is ok but I would suggest you to do it couple of milestones. A set of new annotations for each milestone based. This way we can track the progress better.



2 - develop the core layer  - 3 weeks (from june 22 to july 16)

 

    Millstone 4 -  wrapped the TestNG bundles   (Release date 30 june)


    Millstone 5 - wrapped the Junit  (Release date 7th july) 


   Millstone 6 - Integrate both Core layer and Processing layer  (Release date 14 july)



I will decide the API layer millstone plane after finishing above two layer since that implementation  depended on the above layers implementation  


Now I am working for M1 and will send the update on 28th 


 

Suggestions are Welcome 


General comments: 

1. It is always a good idea to keep a sufficient buffer time for each milestone
2. Create Bugzilla Ticket for your milestone and add mentors to it.
3. Update the Eclipse G-Soc wiki page with milestone plan (Please look at previous years pages for more info)
4. You need to allocate some time to think about integrating the framework with ECF



Thanks and Regards

/Jasintha


--
Thanks & Regards

Jasintha Dasanayake
MSc  Student , SHU Uk 

mobile +94 772 916 596 ,





--
Thanks and Regards,
Harshana Martin
--
Harshana Eranga Martin
Senior Software Engineer,
WSO2 Inc.
           http://wso2.org





--
Thanks & Regards

Jasintha Dasanayake
MSc  Student , SHU Uk 

mobile +94 772 916 596 ,





--
Thanks & Regards

Jasintha Dasanayake
MSc  Student , SHU Uk 

mobile +94 772 916 596 ,



Back to the top