2. Outline The need for testing Dynamic Applications The main difficulties of testing OSGi Applications DA-Testing â a framework for testing Dynamic OSGi-based Applications Example: Testing âDynamic Storeâ application with DA-Testing
3. Why Testing Dynamic Applications? To verify applicationâs dynamicity Applications should not be considered dynamic unless they have tests which verify their dynamicity To validate patches and updates prior to installing them in the production environment
4. OSGi Application Testing Difficulties? Too much of required maintaining code Readability of the Testing Code Reusability of already available Testing Code Class Casting problems
5. How DA-Testing solves these problems? Provides a Dynamic Oriented Tests Structure More suitable structure for testing Dynamic Applications Increases Testing Code reusability Provides an OSGi-friendly API for testers Increases coding efficiency by reducing testing code size and handling common OSGi testing aspects Runs all tests in the OSGi Environment No Class Casting problems
6. DA-Testing Concepts: Test Scenarios Reflect Dynamicity Scenarios that we expect the application to have Examples: Runtime substitution of domain services, installation of patch bundles, etc. DA-Testing executes Test Scenarios to emulate changes in the OSGi Environment
7. DA-Testing Concepts: Test Cases Test Cases are executed as reactions to changes in the OSGi Environment They contain assertions that validate the behavior of the application
9. Final Notes DA-Testing is a Testing Framework which is optimized for testing Dynamic OSGi-based applications It increases the quality of Dynamic OSGi-based applications by providing common guidelines for testing dynamic applications It increases the efficiency of the testing process by handling most common problems that testers of OSGi-based applications have
10. Further Information DA-Testing Homepage: http://www.dynamicjava.org/projects/da-testing DynamicJava.org Homepage: http://www.dynamicjava.org/