You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Vazzolla-Popa Cristian-George (JIRA)" <ji...@apache.org> on 2012/09/06 13:51:07 UTC

[jira] [Created] (SLING-2593) Improvement for the Sling performance tools

Vazzolla-Popa Cristian-George created SLING-2593:
----------------------------------------------------

             Summary: Improvement for the Sling performance tools 
                 Key: SLING-2593
                 URL: https://issues.apache.org/jira/browse/SLING-2593
             Project: Sling
          Issue Type: Improvement
          Components: Testing
            Reporter: Vazzolla-Popa Cristian-George
            Priority: Minor
         Attachments: sling_performance_modification.patch

Added a few improvements to the Sling performance testing tools:
1. Added the possibility to run each test method in a class as a performance test; until now a test was represented by a class (for each new test you had to add a new java class)
2. Added a PerformanceTest annotation that is used to discover the test methods in a java class
3. Added the possibility to provide with the PerformanceTest annotation a few configuration parameters for the test like the warmup time, run time , warm up invocations or run invocations; by default the warmuptime and runtime are used but a user can choose not to count on the time but to prefer setting the number of test invocations that he wants to be made during the test run
4. Created a new maven project that contains only the sling performance tests and left the framework(tool) related part in the base project as we would like to use the framework for performance testing in other projects also

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (SLING-2593) Improvement for the Sling performance tools

Posted by "Justin Edelson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-2593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13466734#comment-13466734 ] 

Justin Edelson commented on SLING-2593:
---------------------------------------

A few comments on the changes committed thus far:
* Please fix formatting - Sling uses 4 spaces for indentation.
* Is it appropriate for the tests (e.g. ResolveNonExistingWith1000AliasTest) to be annotated with @RunWith? AFAIK, they are not runnable tests.
* Is the class AbstractPerformanceTest used anymore? It seems like no. If not, why does it exist?
* Why is System.getenv() used in ReportLogger rather than System.getProperty() ?
* Why is there an XML ReportType enum value if it isn't supported?
                
> Improvement for the Sling performance tools 
> --------------------------------------------
>
>                 Key: SLING-2593
>                 URL: https://issues.apache.org/jira/browse/SLING-2593
>             Project: Sling
>          Issue Type: Improvement
>          Components: Testing
>            Reporter: Vazzolla-Popa Cristian-George
>            Assignee: Antonio Sanso
>            Priority: Minor
>         Attachments: performance_patch_2.patch, sling_performance_framework_refactoring.patch
>
>
> Added a few improvements to the Sling performance testing tools:
> 1. Added the possibility to run each test method in a class as a performance test; until now a test was represented by a class (for each new test you had to add a new java class)
> 2. Added a PerformanceTest annotation that is used to discover the test methods in a java class
> 3. Added the possibility to provide with the PerformanceTest annotation a few configuration parameters for the test like the warmup time, run time , warm up invocations or run invocations; by default the warmuptime and runtime are used but a user can choose not to count on the time but to prefer setting the number of test invocations that he wants to be made during the test run
> 4. Created a new maven project that contains only the sling performance tests and left the framework(tool) related part in the base project as we would like to use the framework for performance testing in other projects also
> 5. Added the possibility to have parameters sent to test suite object, added a before suite and after suite method

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (SLING-2593) Improvement for the Sling performance tools

Posted by "Antonio Sanso (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-2593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13466679#comment-13466679 ] 

Antonio Sanso commented on SLING-2593:
--------------------------------------

Hi Cristian,

the method name is still passed to the ReportLogger. 
It seems there is an issue though with it. The method passed seems to be always the same.
If we solve the issue with the method name I believe we can still come out with some mechanism to have two kind of report formats: one simple and one verbose.
                
> Improvement for the Sling performance tools 
> --------------------------------------------
>
>                 Key: SLING-2593
>                 URL: https://issues.apache.org/jira/browse/SLING-2593
>             Project: Sling
>          Issue Type: Improvement
>          Components: Testing
>            Reporter: Vazzolla-Popa Cristian-George
>            Assignee: Antonio Sanso
>            Priority: Minor
>         Attachments: sling_performance_framework_refactoring.patch
>
>
> Added a few improvements to the Sling performance testing tools:
> 1. Added the possibility to run each test method in a class as a performance test; until now a test was represented by a class (for each new test you had to add a new java class)
> 2. Added a PerformanceTest annotation that is used to discover the test methods in a java class
> 3. Added the possibility to provide with the PerformanceTest annotation a few configuration parameters for the test like the warmup time, run time , warm up invocations or run invocations; by default the warmuptime and runtime are used but a user can choose not to count on the time but to prefer setting the number of test invocations that he wants to be made during the test run
> 4. Created a new maven project that contains only the sling performance tests and left the framework(tool) related part in the base project as we would like to use the framework for performance testing in other projects also
> 5. Added the possibility to have parameters sent to test suite object, added a before suite and after suite method

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (SLING-2593) Improvement for the Sling performance tools

Posted by "Antonio Sanso (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-2593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13476009#comment-13476009 ] 

Antonio Sanso commented on SLING-2593:
--------------------------------------

thanks for your patch Christian. I have applied it in revision r1398205.
                
> Improvement for the Sling performance tools 
> --------------------------------------------
>
>                 Key: SLING-2593
>                 URL: https://issues.apache.org/jira/browse/SLING-2593
>             Project: Sling
>          Issue Type: Improvement
>          Components: Testing
>            Reporter: Vazzolla-Popa Cristian-George
>            Assignee: Antonio Sanso
>            Priority: Minor
>         Attachments: performance_patch_2.patch, report_level_patch.patch, sling_performance_framework_refactoring.patch
>
>
> Added a few improvements to the Sling performance testing tools:
> 1. Added the possibility to run each test method in a class as a performance test; until now a test was represented by a class (for each new test you had to add a new java class)
> 2. Added a PerformanceTest annotation that is used to discover the test methods in a java class
> 3. Added the possibility to provide with the PerformanceTest annotation a few configuration parameters for the test like the warmup time, run time , warm up invocations or run invocations; by default the warmuptime and runtime are used but a user can choose not to count on the time but to prefer setting the number of test invocations that he wants to be made during the test run
> 4. Created a new maven project that contains only the sling performance tests and left the framework(tool) related part in the base project as we would like to use the framework for performance testing in other projects also
> 5. Added the possibility to have parameters sent to test suite object, added a before suite and after suite method

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (SLING-2593) Improvement for the Sling performance tools

Posted by "Cristian Vazzolla (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-2593?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Cristian Vazzolla updated SLING-2593:
-------------------------------------

    Attachment: sling_performance_framework_refactoring.patch

The tests have been deleted from the base project as I have moved them in a separate project. Also the AbstractTest and AbstractPerformance classes have been deleted as after the refactoring they were not needed anymore.
                
> Improvement for the Sling performance tools 
> --------------------------------------------
>
>                 Key: SLING-2593
>                 URL: https://issues.apache.org/jira/browse/SLING-2593
>             Project: Sling
>          Issue Type: Improvement
>          Components: Testing
>            Reporter: Vazzolla-Popa Cristian-George
>            Priority: Minor
>         Attachments: sling_performance_framework_refactoring.patch, sling_performance_modification.patch
>
>
> Added a few improvements to the Sling performance testing tools:
> 1. Added the possibility to run each test method in a class as a performance test; until now a test was represented by a class (for each new test you had to add a new java class)
> 2. Added a PerformanceTest annotation that is used to discover the test methods in a java class
> 3. Added the possibility to provide with the PerformanceTest annotation a few configuration parameters for the test like the warmup time, run time , warm up invocations or run invocations; by default the warmuptime and runtime are used but a user can choose not to count on the time but to prefer setting the number of test invocations that he wants to be made during the test run
> 4. Created a new maven project that contains only the sling performance tests and left the framework(tool) related part in the base project as we would like to use the framework for performance testing in other projects also

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (SLING-2593) Improvement for the Sling performance tools

Posted by "Vazzolla-Popa Cristian-George (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-2593?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vazzolla-Popa Cristian-George updated SLING-2593:
-------------------------------------------------

    Attachment: sling_performance_modification.patch

Added the SVN patch for the modification
                
> Improvement for the Sling performance tools 
> --------------------------------------------
>
>                 Key: SLING-2593
>                 URL: https://issues.apache.org/jira/browse/SLING-2593
>             Project: Sling
>          Issue Type: Improvement
>          Components: Testing
>            Reporter: Vazzolla-Popa Cristian-George
>            Priority: Minor
>         Attachments: sling_performance_modification.patch
>
>
> Added a few improvements to the Sling performance testing tools:
> 1. Added the possibility to run each test method in a class as a performance test; until now a test was represented by a class (for each new test you had to add a new java class)
> 2. Added a PerformanceTest annotation that is used to discover the test methods in a java class
> 3. Added the possibility to provide with the PerformanceTest annotation a few configuration parameters for the test like the warmup time, run time , warm up invocations or run invocations; by default the warmuptime and runtime are used but a user can choose not to count on the time but to prefer setting the number of test invocations that he wants to be made during the test run
> 4. Created a new maven project that contains only the sling performance tests and left the framework(tool) related part in the base project as we would like to use the framework for performance testing in other projects also

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (SLING-2593) Improvement for the Sling performance tools

Posted by "Vazzolla-Popa Cristian-George (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-2593?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vazzolla-Popa Cristian-George updated SLING-2593:
-------------------------------------------------

    Attachment:     (was: sling_performance_modification.patch)
    
> Improvement for the Sling performance tools 
> --------------------------------------------
>
>                 Key: SLING-2593
>                 URL: https://issues.apache.org/jira/browse/SLING-2593
>             Project: Sling
>          Issue Type: Improvement
>          Components: Testing
>            Reporter: Vazzolla-Popa Cristian-George
>            Priority: Minor
>         Attachments: sling_performance_framework_refactoring.patch
>
>
> Added a few improvements to the Sling performance testing tools:
> 1. Added the possibility to run each test method in a class as a performance test; until now a test was represented by a class (for each new test you had to add a new java class)
> 2. Added a PerformanceTest annotation that is used to discover the test methods in a java class
> 3. Added the possibility to provide with the PerformanceTest annotation a few configuration parameters for the test like the warmup time, run time , warm up invocations or run invocations; by default the warmuptime and runtime are used but a user can choose not to count on the time but to prefer setting the number of test invocations that he wants to be made during the test run
> 4. Created a new maven project that contains only the sling performance tests and left the framework(tool) related part in the base project as we would like to use the framework for performance testing in other projects also

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (SLING-2593) Improvement for the Sling performance tools

Posted by "Vazzolla-Popa Cristian-George (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-2593?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vazzolla-Popa Cristian-George updated SLING-2593:
-------------------------------------------------

    Attachment: report_level_patch.patch

Report level parameter at the PerformanceRunner level
                
> Improvement for the Sling performance tools 
> --------------------------------------------
>
>                 Key: SLING-2593
>                 URL: https://issues.apache.org/jira/browse/SLING-2593
>             Project: Sling
>          Issue Type: Improvement
>          Components: Testing
>            Reporter: Vazzolla-Popa Cristian-George
>            Assignee: Antonio Sanso
>            Priority: Minor
>         Attachments: performance_patch_2.patch, report_level_patch.patch, sling_performance_framework_refactoring.patch
>
>
> Added a few improvements to the Sling performance testing tools:
> 1. Added the possibility to run each test method in a class as a performance test; until now a test was represented by a class (for each new test you had to add a new java class)
> 2. Added a PerformanceTest annotation that is used to discover the test methods in a java class
> 3. Added the possibility to provide with the PerformanceTest annotation a few configuration parameters for the test like the warmup time, run time , warm up invocations or run invocations; by default the warmuptime and runtime are used but a user can choose not to count on the time but to prefer setting the number of test invocations that he wants to be made during the test run
> 4. Created a new maven project that contains only the sling performance tests and left the framework(tool) related part in the base project as we would like to use the framework for performance testing in other projects also
> 5. Added the possibility to have parameters sent to test suite object, added a before suite and after suite method

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (SLING-2593) Improvement for the Sling performance tools

Posted by "Vazzolla-Popa Cristian-George (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-2593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13467582#comment-13467582 ] 

Vazzolla-Popa Cristian-George commented on SLING-2593:
------------------------------------------------------

Hi Justin,

You were right I will use System.getProperty instead of getEnv and pass the testsuitename from the Maven command line; thanks for this.

Regarding the use case, here is how I want to use the Sling performance framework for our product performance tests.

- from the maven command line I set the testsuite name, I just download (not build) a specific product release (for example version 1.0.0) and run all the performance tests against it
- after that I store the performance results
- do this for different versions of the product(1.1.0, 1.2.0 and so on) that are released during a time interval for ex. during the last 1 year (so the product is not the same - similar case as with Sling jcr tests); 
so be doing this I will be able to observe the performance results from the version 1.0.0 to version 1.9.0 for example
- the only difference that I see comparing with the Sling jcr performance tests is that by using the option to just download a specific version of the product  
instead of building them, I do not need a new project for each test suite like in the Sling tests where there is a project for jcr.resource-2.0.10, another one for jcr.resource-2.1.0
- one more thing the performance tests that we are using are not unit tests, are tests that will be run by having http requests so we can easily use the same tests for different versions;
we will have some network latency but the team is ok with this approach and they want us to have these kind of tests; also because of these variables I would like to be 
able to run the tests at a specific moment on various product releases

Regards,
Cristian
                
> Improvement for the Sling performance tools 
> --------------------------------------------
>
>                 Key: SLING-2593
>                 URL: https://issues.apache.org/jira/browse/SLING-2593
>             Project: Sling
>          Issue Type: Improvement
>          Components: Testing
>            Reporter: Vazzolla-Popa Cristian-George
>            Assignee: Antonio Sanso
>            Priority: Minor
>         Attachments: performance_patch_2.patch, sling_performance_framework_refactoring.patch
>
>
> Added a few improvements to the Sling performance testing tools:
> 1. Added the possibility to run each test method in a class as a performance test; until now a test was represented by a class (for each new test you had to add a new java class)
> 2. Added a PerformanceTest annotation that is used to discover the test methods in a java class
> 3. Added the possibility to provide with the PerformanceTest annotation a few configuration parameters for the test like the warmup time, run time , warm up invocations or run invocations; by default the warmuptime and runtime are used but a user can choose not to count on the time but to prefer setting the number of test invocations that he wants to be made during the test run
> 4. Created a new maven project that contains only the sling performance tests and left the framework(tool) related part in the base project as we would like to use the framework for performance testing in other projects also
> 5. Added the possibility to have parameters sent to test suite object, added a before suite and after suite method

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (SLING-2593) Improvement for the Sling performance tools

Posted by "Antonio Sanso (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-2593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13466696#comment-13466696 ] 

Antonio Sanso commented on SLING-2593:
--------------------------------------

solved method name issue in revision 1392229.
                
> Improvement for the Sling performance tools 
> --------------------------------------------
>
>                 Key: SLING-2593
>                 URL: https://issues.apache.org/jira/browse/SLING-2593
>             Project: Sling
>          Issue Type: Improvement
>          Components: Testing
>            Reporter: Vazzolla-Popa Cristian-George
>            Assignee: Antonio Sanso
>            Priority: Minor
>         Attachments: sling_performance_framework_refactoring.patch
>
>
> Added a few improvements to the Sling performance testing tools:
> 1. Added the possibility to run each test method in a class as a performance test; until now a test was represented by a class (for each new test you had to add a new java class)
> 2. Added a PerformanceTest annotation that is used to discover the test methods in a java class
> 3. Added the possibility to provide with the PerformanceTest annotation a few configuration parameters for the test like the warmup time, run time , warm up invocations or run invocations; by default the warmuptime and runtime are used but a user can choose not to count on the time but to prefer setting the number of test invocations that he wants to be made during the test run
> 4. Created a new maven project that contains only the sling performance tests and left the framework(tool) related part in the base project as we would like to use the framework for performance testing in other projects also
> 5. Added the possibility to have parameters sent to test suite object, added a before suite and after suite method

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Assigned] (SLING-2593) Improvement for the Sling performance tools

Posted by "Antonio Sanso (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-2593?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antonio Sanso reassigned SLING-2593:
------------------------------------

    Assignee: Antonio Sanso
    
> Improvement for the Sling performance tools 
> --------------------------------------------
>
>                 Key: SLING-2593
>                 URL: https://issues.apache.org/jira/browse/SLING-2593
>             Project: Sling
>          Issue Type: Improvement
>          Components: Testing
>            Reporter: Vazzolla-Popa Cristian-George
>            Assignee: Antonio Sanso
>            Priority: Minor
>         Attachments: sling_performance_framework_refactoring.patch
>
>
> Added a few improvements to the Sling performance testing tools:
> 1. Added the possibility to run each test method in a class as a performance test; until now a test was represented by a class (for each new test you had to add a new java class)
> 2. Added a PerformanceTest annotation that is used to discover the test methods in a java class
> 3. Added the possibility to provide with the PerformanceTest annotation a few configuration parameters for the test like the warmup time, run time , warm up invocations or run invocations; by default the warmuptime and runtime are used but a user can choose not to count on the time but to prefer setting the number of test invocations that he wants to be made during the test run
> 4. Created a new maven project that contains only the sling performance tests and left the framework(tool) related part in the base project as we would like to use the framework for performance testing in other projects also
> 4. Added the possibility to have parameters sent to test suite object, added a before suite and after suite method

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (SLING-2593) Improvement for the Sling performance tools

Posted by "Antonio Sanso (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-2593?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antonio Sanso resolved SLING-2593.
----------------------------------

    Resolution: Fixed
    
> Improvement for the Sling performance tools 
> --------------------------------------------
>
>                 Key: SLING-2593
>                 URL: https://issues.apache.org/jira/browse/SLING-2593
>             Project: Sling
>          Issue Type: Improvement
>          Components: Testing
>            Reporter: Vazzolla-Popa Cristian-George
>            Assignee: Antonio Sanso
>            Priority: Minor
>         Attachments: performance_patch_2.patch, report_level_patch.patch, sling_performance_framework_refactoring.patch
>
>
> Added a few improvements to the Sling performance testing tools:
> 1. Added the possibility to run each test method in a class as a performance test; until now a test was represented by a class (for each new test you had to add a new java class)
> 2. Added a PerformanceTest annotation that is used to discover the test methods in a java class
> 3. Added the possibility to provide with the PerformanceTest annotation a few configuration parameters for the test like the warmup time, run time , warm up invocations or run invocations; by default the warmuptime and runtime are used but a user can choose not to count on the time but to prefer setting the number of test invocations that he wants to be made during the test run
> 4. Created a new maven project that contains only the sling performance tests and left the framework(tool) related part in the base project as we would like to use the framework for performance testing in other projects also
> 5. Added the possibility to have parameters sent to test suite object, added a before suite and after suite method

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (SLING-2593) Improvement for the Sling performance tools

Posted by "Antonio Sanso (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-2593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13461357#comment-13461357 ] 

Antonio Sanso commented on SLING-2593:
--------------------------------------

I have commit the first patch of the patch 

4. Created a new maven project that contains only the sling performance tests and left the framework(tool) related part in the base project as we would like to use the framework for performance testing in other projects also

in revision 1388992. Thanks Christian!
                
> Improvement for the Sling performance tools 
> --------------------------------------------
>
>                 Key: SLING-2593
>                 URL: https://issues.apache.org/jira/browse/SLING-2593
>             Project: Sling
>          Issue Type: Improvement
>          Components: Testing
>            Reporter: Vazzolla-Popa Cristian-George
>            Assignee: Antonio Sanso
>            Priority: Minor
>         Attachments: sling_performance_framework_refactoring.patch
>
>
> Added a few improvements to the Sling performance testing tools:
> 1. Added the possibility to run each test method in a class as a performance test; until now a test was represented by a class (for each new test you had to add a new java class)
> 2. Added a PerformanceTest annotation that is used to discover the test methods in a java class
> 3. Added the possibility to provide with the PerformanceTest annotation a few configuration parameters for the test like the warmup time, run time , warm up invocations or run invocations; by default the warmuptime and runtime are used but a user can choose not to count on the time but to prefer setting the number of test invocations that he wants to be made during the test run
> 4. Created a new maven project that contains only the sling performance tests and left the framework(tool) related part in the base project as we would like to use the framework for performance testing in other projects also
> 5. Added the possibility to have parameters sent to test suite object, added a before suite and after suite method

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Comment Edited] (SLING-2593) Improvement for the Sling performance tools

Posted by "Vazzolla-Popa Cristian-George (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-2593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13466733#comment-13466733 ] 

Vazzolla-Popa Cristian-George edited comment on SLING-2593 at 10/1/12 10:12 PM:
--------------------------------------------------------------------------------

Added another parameter to the PerformanceTest annotation which tells the reporter how to write the results (class based as the legacy reporter or method based); modified the sling performance tests a little to make them run correctly with maven; added the part with method based reporting
Please check performance_patch_2 applied over the last version
                
      was (Author: vazzolla.cristian):
    Added another parameter to the PerformanceTest annotation which tells the reporter how to write the results (class based as the legacy reporter or method based); modified the sling performance tests a little to make them run correctly with maven; added the part with method based reporting
                  
> Improvement for the Sling performance tools 
> --------------------------------------------
>
>                 Key: SLING-2593
>                 URL: https://issues.apache.org/jira/browse/SLING-2593
>             Project: Sling
>          Issue Type: Improvement
>          Components: Testing
>            Reporter: Vazzolla-Popa Cristian-George
>            Assignee: Antonio Sanso
>            Priority: Minor
>         Attachments: performance_patch_2.patch, sling_performance_framework_refactoring.patch
>
>
> Added a few improvements to the Sling performance testing tools:
> 1. Added the possibility to run each test method in a class as a performance test; until now a test was represented by a class (for each new test you had to add a new java class)
> 2. Added a PerformanceTest annotation that is used to discover the test methods in a java class
> 3. Added the possibility to provide with the PerformanceTest annotation a few configuration parameters for the test like the warmup time, run time , warm up invocations or run invocations; by default the warmuptime and runtime are used but a user can choose not to count on the time but to prefer setting the number of test invocations that he wants to be made during the test run
> 4. Created a new maven project that contains only the sling performance tests and left the framework(tool) related part in the base project as we would like to use the framework for performance testing in other projects also
> 5. Added the possibility to have parameters sent to test suite object, added a before suite and after suite method

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (SLING-2593) Improvement for the Sling performance tools

Posted by "Vazzolla-Popa Cristian-George (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-2593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13474853#comment-13474853 ] 

Vazzolla-Popa Cristian-George commented on SLING-2593:
------------------------------------------------------

[~asanso]

I think that your idea to inject the report level in the PerformanceRunner makes sense as is the only common point.
I've created a patch based on this idea. Please have a look when you have the time. 
                
> Improvement for the Sling performance tools 
> --------------------------------------------
>
>                 Key: SLING-2593
>                 URL: https://issues.apache.org/jira/browse/SLING-2593
>             Project: Sling
>          Issue Type: Improvement
>          Components: Testing
>            Reporter: Vazzolla-Popa Cristian-George
>            Assignee: Antonio Sanso
>            Priority: Minor
>         Attachments: performance_patch_2.patch, report_level_patch.patch, sling_performance_framework_refactoring.patch
>
>
> Added a few improvements to the Sling performance testing tools:
> 1. Added the possibility to run each test method in a class as a performance test; until now a test was represented by a class (for each new test you had to add a new java class)
> 2. Added a PerformanceTest annotation that is used to discover the test methods in a java class
> 3. Added the possibility to provide with the PerformanceTest annotation a few configuration parameters for the test like the warmup time, run time , warm up invocations or run invocations; by default the warmuptime and runtime are used but a user can choose not to count on the time but to prefer setting the number of test invocations that he wants to be made during the test run
> 4. Created a new maven project that contains only the sling performance tests and left the framework(tool) related part in the base project as we would like to use the framework for performance testing in other projects also
> 5. Added the possibility to have parameters sent to test suite object, added a before suite and after suite method

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (SLING-2593) Improvement for the Sling performance tools

Posted by "Vazzolla-Popa Cristian-George (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-2593?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vazzolla-Popa Cristian-George updated SLING-2593:
-------------------------------------------------

    Attachment: performance_patch_2.patch

Added another parameter to the PerformanceTest annotation which tells the reporter how to write the results (class based as the legacy reporter or method based); modified the sling performance tests a little to make them run correctly with maven; added the part with method based reporting
                
> Improvement for the Sling performance tools 
> --------------------------------------------
>
>                 Key: SLING-2593
>                 URL: https://issues.apache.org/jira/browse/SLING-2593
>             Project: Sling
>          Issue Type: Improvement
>          Components: Testing
>            Reporter: Vazzolla-Popa Cristian-George
>            Assignee: Antonio Sanso
>            Priority: Minor
>         Attachments: performance_patch_2.patch, sling_performance_framework_refactoring.patch
>
>
> Added a few improvements to the Sling performance testing tools:
> 1. Added the possibility to run each test method in a class as a performance test; until now a test was represented by a class (for each new test you had to add a new java class)
> 2. Added a PerformanceTest annotation that is used to discover the test methods in a java class
> 3. Added the possibility to provide with the PerformanceTest annotation a few configuration parameters for the test like the warmup time, run time , warm up invocations or run invocations; by default the warmuptime and runtime are used but a user can choose not to count on the time but to prefer setting the number of test invocations that he wants to be made during the test run
> 4. Created a new maven project that contains only the sling performance tests and left the framework(tool) related part in the base project as we would like to use the framework for performance testing in other projects also
> 5. Added the possibility to have parameters sent to test suite object, added a before suite and after suite method

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (SLING-2593) Improvement for the Sling performance tools

Posted by "Antonio Sanso (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-2593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13466739#comment-13466739 ] 

Antonio Sanso commented on SLING-2593:
--------------------------------------

fixed formatting in revision 1392281. Thanks Justin.
                
> Improvement for the Sling performance tools 
> --------------------------------------------
>
>                 Key: SLING-2593
>                 URL: https://issues.apache.org/jira/browse/SLING-2593
>             Project: Sling
>          Issue Type: Improvement
>          Components: Testing
>            Reporter: Vazzolla-Popa Cristian-George
>            Assignee: Antonio Sanso
>            Priority: Minor
>         Attachments: performance_patch_2.patch, sling_performance_framework_refactoring.patch
>
>
> Added a few improvements to the Sling performance testing tools:
> 1. Added the possibility to run each test method in a class as a performance test; until now a test was represented by a class (for each new test you had to add a new java class)
> 2. Added a PerformanceTest annotation that is used to discover the test methods in a java class
> 3. Added the possibility to provide with the PerformanceTest annotation a few configuration parameters for the test like the warmup time, run time , warm up invocations or run invocations; by default the warmuptime and runtime are used but a user can choose not to count on the time but to prefer setting the number of test invocations that he wants to be made during the test run
> 4. Created a new maven project that contains only the sling performance tests and left the framework(tool) related part in the base project as we would like to use the framework for performance testing in other projects also
> 5. Added the possibility to have parameters sent to test suite object, added a before suite and after suite method

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (SLING-2593) Improvement for the Sling performance tools

Posted by "Vazzolla-Popa Cristian-George (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-2593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13466538#comment-13466538 ] 

Vazzolla-Popa Cristian-George commented on SLING-2593:
------------------------------------------------------

Hi Antonio,

If we keep the old format which was class oriented we will have a log report per class, so what happens in the new approach in the case we have 
more than one test method in a class ? I think we need to add at least the method name in the test report even if we keep the report in some way similar 
to the one that was used before or maybe come with some type of report that would be between the two .
Also I'm not sure that a user would expect the performance framework to correctly report the results just when using the verbose flag for the case in which he 
has multiple test methods in a class, what do you think ? 

Regards,
Cristian

                
> Improvement for the Sling performance tools 
> --------------------------------------------
>
>                 Key: SLING-2593
>                 URL: https://issues.apache.org/jira/browse/SLING-2593
>             Project: Sling
>          Issue Type: Improvement
>          Components: Testing
>            Reporter: Vazzolla-Popa Cristian-George
>            Assignee: Antonio Sanso
>            Priority: Minor
>         Attachments: sling_performance_framework_refactoring.patch
>
>
> Added a few improvements to the Sling performance testing tools:
> 1. Added the possibility to run each test method in a class as a performance test; until now a test was represented by a class (for each new test you had to add a new java class)
> 2. Added a PerformanceTest annotation that is used to discover the test methods in a java class
> 3. Added the possibility to provide with the PerformanceTest annotation a few configuration parameters for the test like the warmup time, run time , warm up invocations or run invocations; by default the warmuptime and runtime are used but a user can choose not to count on the time but to prefer setting the number of test invocations that he wants to be made during the test run
> 4. Created a new maven project that contains only the sling performance tests and left the framework(tool) related part in the base project as we would like to use the framework for performance testing in other projects also
> 5. Added the possibility to have parameters sent to test suite object, added a before suite and after suite method

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (SLING-2593) Improvement for the Sling performance tools

Posted by "Antonio Sanso (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-2593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13466283#comment-13466283 ] 

Antonio Sanso commented on SLING-2593:
--------------------------------------

adding second part of the patch from Christian Vazzolla in revision r1391855. Thanks a lot Christian.
The only thing I change from your patch is keeping the old report format. 
We can still introduce the format you came with having a verbose mode. 

WDYT?
                
> Improvement for the Sling performance tools 
> --------------------------------------------
>
>                 Key: SLING-2593
>                 URL: https://issues.apache.org/jira/browse/SLING-2593
>             Project: Sling
>          Issue Type: Improvement
>          Components: Testing
>            Reporter: Vazzolla-Popa Cristian-George
>            Assignee: Antonio Sanso
>            Priority: Minor
>         Attachments: sling_performance_framework_refactoring.patch
>
>
> Added a few improvements to the Sling performance testing tools:
> 1. Added the possibility to run each test method in a class as a performance test; until now a test was represented by a class (for each new test you had to add a new java class)
> 2. Added a PerformanceTest annotation that is used to discover the test methods in a java class
> 3. Added the possibility to provide with the PerformanceTest annotation a few configuration parameters for the test like the warmup time, run time , warm up invocations or run invocations; by default the warmuptime and runtime are used but a user can choose not to count on the time but to prefer setting the number of test invocations that he wants to be made during the test run
> 4. Created a new maven project that contains only the sling performance tests and left the framework(tool) related part in the base project as we would like to use the framework for performance testing in other projects also
> 5. Added the possibility to have parameters sent to test suite object, added a before suite and after suite method

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (SLING-2593) Improvement for the Sling performance tools

Posted by "Vazzolla-Popa Cristian-George (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-2593?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vazzolla-Popa Cristian-George updated SLING-2593:
-------------------------------------------------

    Description: 
Added a few improvements to the Sling performance testing tools:
1. Added the possibility to run each test method in a class as a performance test; until now a test was represented by a class (for each new test you had to add a new java class)
2. Added a PerformanceTest annotation that is used to discover the test methods in a java class
3. Added the possibility to provide with the PerformanceTest annotation a few configuration parameters for the test like the warmup time, run time , warm up invocations or run invocations; by default the warmuptime and runtime are used but a user can choose not to count on the time but to prefer setting the number of test invocations that he wants to be made during the test run
4. Created a new maven project that contains only the sling performance tests and left the framework(tool) related part in the base project as we would like to use the framework for performance testing in other projects also
4. Added the possibility to have parameters sent to test suite object, added a before suite and after suite method

  was:
Added a few improvements to the Sling performance testing tools:
1. Added the possibility to run each test method in a class as a performance test; until now a test was represented by a class (for each new test you had to add a new java class)
2. Added a PerformanceTest annotation that is used to discover the test methods in a java class
3. Added the possibility to provide with the PerformanceTest annotation a few configuration parameters for the test like the warmup time, run time , warm up invocations or run invocations; by default the warmuptime and runtime are used but a user can choose not to count on the time but to prefer setting the number of test invocations that he wants to be made during the test run
4. Created a new maven project that contains only the sling performance tests and left the framework(tool) related part in the base project as we would like to use the framework for performance testing in other projects also

    
> Improvement for the Sling performance tools 
> --------------------------------------------
>
>                 Key: SLING-2593
>                 URL: https://issues.apache.org/jira/browse/SLING-2593
>             Project: Sling
>          Issue Type: Improvement
>          Components: Testing
>            Reporter: Vazzolla-Popa Cristian-George
>            Priority: Minor
>         Attachments: sling_performance_framework_refactoring.patch
>
>
> Added a few improvements to the Sling performance testing tools:
> 1. Added the possibility to run each test method in a class as a performance test; until now a test was represented by a class (for each new test you had to add a new java class)
> 2. Added a PerformanceTest annotation that is used to discover the test methods in a java class
> 3. Added the possibility to provide with the PerformanceTest annotation a few configuration parameters for the test like the warmup time, run time , warm up invocations or run invocations; by default the warmuptime and runtime are used but a user can choose not to count on the time but to prefer setting the number of test invocations that he wants to be made during the test run
> 4. Created a new maven project that contains only the sling performance tests and left the framework(tool) related part in the base project as we would like to use the framework for performance testing in other projects also
> 4. Added the possibility to have parameters sent to test suite object, added a before suite and after suite method

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (SLING-2593) Improvement for the Sling performance tools

Posted by "Antonio Sanso (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-2593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13474059#comment-13474059 ] 

Antonio Sanso commented on SLING-2593:
--------------------------------------

[~vazzolla]

looking at the report level patch I really thing that should be associated with the PerformanceTestSuite rather than with the PerformanceTest.
Your point might be that somebody can still run a PerformanceTest without a suite.
So how about injecting this report level in the  PerformanceRunner? That would be a common point...

WDYT?
                
> Improvement for the Sling performance tools 
> --------------------------------------------
>
>                 Key: SLING-2593
>                 URL: https://issues.apache.org/jira/browse/SLING-2593
>             Project: Sling
>          Issue Type: Improvement
>          Components: Testing
>            Reporter: Vazzolla-Popa Cristian-George
>            Assignee: Antonio Sanso
>            Priority: Minor
>         Attachments: performance_patch_2.patch, sling_performance_framework_refactoring.patch
>
>
> Added a few improvements to the Sling performance testing tools:
> 1. Added the possibility to run each test method in a class as a performance test; until now a test was represented by a class (for each new test you had to add a new java class)
> 2. Added a PerformanceTest annotation that is used to discover the test methods in a java class
> 3. Added the possibility to provide with the PerformanceTest annotation a few configuration parameters for the test like the warmup time, run time , warm up invocations or run invocations; by default the warmuptime and runtime are used but a user can choose not to count on the time but to prefer setting the number of test invocations that he wants to be made during the test run
> 4. Created a new maven project that contains only the sling performance tests and left the framework(tool) related part in the base project as we would like to use the framework for performance testing in other projects also
> 5. Added the possibility to have parameters sent to test suite object, added a before suite and after suite method

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (SLING-2593) Improvement for the Sling performance tools

Posted by "Antonio Sanso (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-2593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13468491#comment-13468491 ] 

Antonio Sanso commented on SLING-2593:
--------------------------------------

Removed XML Report type since is not implemented. Changed getenv with getProperty. Removed 2 unused classes (AbstractPerformanceTest, AbstractTest) in revision 1393426
                
> Improvement for the Sling performance tools 
> --------------------------------------------
>
>                 Key: SLING-2593
>                 URL: https://issues.apache.org/jira/browse/SLING-2593
>             Project: Sling
>          Issue Type: Improvement
>          Components: Testing
>            Reporter: Vazzolla-Popa Cristian-George
>            Assignee: Antonio Sanso
>            Priority: Minor
>         Attachments: performance_patch_2.patch, sling_performance_framework_refactoring.patch
>
>
> Added a few improvements to the Sling performance testing tools:
> 1. Added the possibility to run each test method in a class as a performance test; until now a test was represented by a class (for each new test you had to add a new java class)
> 2. Added a PerformanceTest annotation that is used to discover the test methods in a java class
> 3. Added the possibility to provide with the PerformanceTest annotation a few configuration parameters for the test like the warmup time, run time , warm up invocations or run invocations; by default the warmuptime and runtime are used but a user can choose not to count on the time but to prefer setting the number of test invocations that he wants to be made during the test run
> 4. Created a new maven project that contains only the sling performance tests and left the framework(tool) related part in the base project as we would like to use the framework for performance testing in other projects also
> 5. Added the possibility to have parameters sent to test suite object, added a before suite and after suite method

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (SLING-2593) Improvement for the Sling performance tools

Posted by "Vazzolla-Popa Cristian-George (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-2593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13466750#comment-13466750 ] 

Vazzolla-Popa Cristian-George commented on SLING-2593:
------------------------------------------------------

Hi Justin,

1. Regarding the AbstractPerformanceTest and also AbstractTest classes, was my mistake that they did not appear in the initial patch file I've sent.
So the two classes should be removed as they are not used anymore in the sling performance tests. I'm not aware of other tests that were using 
these  classes before, but if they are they will need to be modified not to use them anymore.

2. The System.getenv() is used instead of System.getProperty() because if someone wants to set the test suite name from outside the 
test itself it would not be able to do that.

The use case I want to be able to achieve is :
- set suite name (maybe equal to product version)
- download a specified product version by using maven command line and run the performance tests
- copy the result reports for that build
- delete the environment variable

and do this for several product builds/versions from a bat/sh file (or from a Jenkins job) like below:

set testsuitename=build1
call mvn -PdownloadSpecificBuild -PrunTests clean verify test
xcopy "target/performance-reports" "performance-reports/%testsuitename%" /D /E /C /R /I /K /Y
set "testsuitename="
set testsuitename=build2
call mvn -PdownloadSpecificCQ -PrunTests clean verify test
xcopy "target/performance-reports" "performance-reports/%testsuitename%" /D /E /C /R /I /K /Y

3. Regarding the RunWith and XML ReportType I've talked with Antonio and he will do the modification:
 - remove @RunWith for the tests as they are not runnable
 - remove XML ReportType until will be supported

I can create a new patch if you think is necessary.

Regards,
Cristian
 
                
> Improvement for the Sling performance tools 
> --------------------------------------------
>
>                 Key: SLING-2593
>                 URL: https://issues.apache.org/jira/browse/SLING-2593
>             Project: Sling
>          Issue Type: Improvement
>          Components: Testing
>            Reporter: Vazzolla-Popa Cristian-George
>            Assignee: Antonio Sanso
>            Priority: Minor
>         Attachments: performance_patch_2.patch, sling_performance_framework_refactoring.patch
>
>
> Added a few improvements to the Sling performance testing tools:
> 1. Added the possibility to run each test method in a class as a performance test; until now a test was represented by a class (for each new test you had to add a new java class)
> 2. Added a PerformanceTest annotation that is used to discover the test methods in a java class
> 3. Added the possibility to provide with the PerformanceTest annotation a few configuration parameters for the test like the warmup time, run time , warm up invocations or run invocations; by default the warmuptime and runtime are used but a user can choose not to count on the time but to prefer setting the number of test invocations that he wants to be made during the test run
> 4. Created a new maven project that contains only the sling performance tests and left the framework(tool) related part in the base project as we would like to use the framework for performance testing in other projects also
> 5. Added the possibility to have parameters sent to test suite object, added a before suite and after suite method

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (SLING-2593) Improvement for the Sling performance tools

Posted by "Justin Edelson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-2593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13466781#comment-13466781 ] 

Justin Edelson commented on SLING-2593:
---------------------------------------

bq. The System.getenv() is used instead of System.getProperty() because if someone wants to set the test suite name from outside the
test itself it would not be able to do that.

Hmmm. I don't see that there's anything about the example which means this couldn't be done with system properties.

But more importantly - the pattern used in the example build script above is different than how these tools are used within Sling - namely that in the example script, the same test project is built repeatedly against (I'm guessing) different target environments. Whereas in the Sling tests contain a distinct project per target environment (aka bundle set). Am I understanding that correctly? 


                
> Improvement for the Sling performance tools 
> --------------------------------------------
>
>                 Key: SLING-2593
>                 URL: https://issues.apache.org/jira/browse/SLING-2593
>             Project: Sling
>          Issue Type: Improvement
>          Components: Testing
>            Reporter: Vazzolla-Popa Cristian-George
>            Assignee: Antonio Sanso
>            Priority: Minor
>         Attachments: performance_patch_2.patch, sling_performance_framework_refactoring.patch
>
>
> Added a few improvements to the Sling performance testing tools:
> 1. Added the possibility to run each test method in a class as a performance test; until now a test was represented by a class (for each new test you had to add a new java class)
> 2. Added a PerformanceTest annotation that is used to discover the test methods in a java class
> 3. Added the possibility to provide with the PerformanceTest annotation a few configuration parameters for the test like the warmup time, run time , warm up invocations or run invocations; by default the warmuptime and runtime are used but a user can choose not to count on the time but to prefer setting the number of test invocations that he wants to be made during the test run
> 4. Created a new maven project that contains only the sling performance tests and left the framework(tool) related part in the base project as we would like to use the framework for performance testing in other projects also
> 5. Added the possibility to have parameters sent to test suite object, added a before suite and after suite method

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (SLING-2593) Improvement for the Sling performance tools

Posted by "Antonio Sanso (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-2593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13466743#comment-13466743 ] 

Antonio Sanso commented on SLING-2593:
--------------------------------------

.bq Is it appropriate for the tests (e.g. ResolveNonExistingWith1000AliasTest) to be annotated with @RunWith? AFAIK, they are not runnable tests.

fixed (Removed unused @RunWith) in revision 1392291
                
> Improvement for the Sling performance tools 
> --------------------------------------------
>
>                 Key: SLING-2593
>                 URL: https://issues.apache.org/jira/browse/SLING-2593
>             Project: Sling
>          Issue Type: Improvement
>          Components: Testing
>            Reporter: Vazzolla-Popa Cristian-George
>            Assignee: Antonio Sanso
>            Priority: Minor
>         Attachments: performance_patch_2.patch, sling_performance_framework_refactoring.patch
>
>
> Added a few improvements to the Sling performance testing tools:
> 1. Added the possibility to run each test method in a class as a performance test; until now a test was represented by a class (for each new test you had to add a new java class)
> 2. Added a PerformanceTest annotation that is used to discover the test methods in a java class
> 3. Added the possibility to provide with the PerformanceTest annotation a few configuration parameters for the test like the warmup time, run time , warm up invocations or run invocations; by default the warmuptime and runtime are used but a user can choose not to count on the time but to prefer setting the number of test invocations that he wants to be made during the test run
> 4. Created a new maven project that contains only the sling performance tests and left the framework(tool) related part in the base project as we would like to use the framework for performance testing in other projects also
> 5. Added the possibility to have parameters sent to test suite object, added a before suite and after suite method

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (SLING-2593) Improvement for the Sling performance tools

Posted by "Antonio Sanso (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-2593?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antonio Sanso updated SLING-2593:
---------------------------------

    Description: 
Added a few improvements to the Sling performance testing tools:
1. Added the possibility to run each test method in a class as a performance test; until now a test was represented by a class (for each new test you had to add a new java class)
2. Added a PerformanceTest annotation that is used to discover the test methods in a java class
3. Added the possibility to provide with the PerformanceTest annotation a few configuration parameters for the test like the warmup time, run time , warm up invocations or run invocations; by default the warmuptime and runtime are used but a user can choose not to count on the time but to prefer setting the number of test invocations that he wants to be made during the test run
4. Created a new maven project that contains only the sling performance tests and left the framework(tool) related part in the base project as we would like to use the framework for performance testing in other projects also
5. Added the possibility to have parameters sent to test suite object, added a before suite and after suite method

  was:
Added a few improvements to the Sling performance testing tools:
1. Added the possibility to run each test method in a class as a performance test; until now a test was represented by a class (for each new test you had to add a new java class)
2. Added a PerformanceTest annotation that is used to discover the test methods in a java class
3. Added the possibility to provide with the PerformanceTest annotation a few configuration parameters for the test like the warmup time, run time , warm up invocations or run invocations; by default the warmuptime and runtime are used but a user can choose not to count on the time but to prefer setting the number of test invocations that he wants to be made during the test run
4. Created a new maven project that contains only the sling performance tests and left the framework(tool) related part in the base project as we would like to use the framework for performance testing in other projects also
4. Added the possibility to have parameters sent to test suite object, added a before suite and after suite method

    
> Improvement for the Sling performance tools 
> --------------------------------------------
>
>                 Key: SLING-2593
>                 URL: https://issues.apache.org/jira/browse/SLING-2593
>             Project: Sling
>          Issue Type: Improvement
>          Components: Testing
>            Reporter: Vazzolla-Popa Cristian-George
>            Assignee: Antonio Sanso
>            Priority: Minor
>         Attachments: sling_performance_framework_refactoring.patch
>
>
> Added a few improvements to the Sling performance testing tools:
> 1. Added the possibility to run each test method in a class as a performance test; until now a test was represented by a class (for each new test you had to add a new java class)
> 2. Added a PerformanceTest annotation that is used to discover the test methods in a java class
> 3. Added the possibility to provide with the PerformanceTest annotation a few configuration parameters for the test like the warmup time, run time , warm up invocations or run invocations; by default the warmuptime and runtime are used but a user can choose not to count on the time but to prefer setting the number of test invocations that he wants to be made during the test run
> 4. Created a new maven project that contains only the sling performance tests and left the framework(tool) related part in the base project as we would like to use the framework for performance testing in other projects also
> 5. Added the possibility to have parameters sent to test suite object, added a before suite and after suite method

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira