Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Testing OSGi-based Applications with DA-Testing


Published on

Explains how to test Dynamic OSGi-based applications using DA-Testing.

Published in: Technology, Business
  • Be the first to comment

Testing OSGi-based Applications with DA-Testing

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