Testing OSGi-based Applications with DA-TestingValery Abu-EidDynamicJava.org
OutlineThe need for testing Dynamic ApplicationsThe main difficulties of testing OSGi ApplicationsDA-Testing – a framework for testing Dynamic OSGi-based ApplicationsExample: Testing “Dynamic Store” application with DA-Testing
Why Testing Dynamic Applications?To verify application’s dynamicityApplications should not be considered dynamic unless they have tests which verify their dynamicityTo validate patches and updates prior to installing them in the production environment
OSGi Application Testing Difficulties?Too much of required maintaining codeReadability of the Testing CodeReusability of already available Testing CodeClass Casting problems
How DA-Testing solves these problems?Provides a Dynamic Oriented Tests StructureMore suitable structure for testing Dynamic ApplicationsIncreases Testing Code reusabilityProvides an OSGi-friendly API for testersIncreases coding efficiency by reducing testing code size and handling common OSGi testing aspectsRuns all tests in the OSGi EnvironmentNo Class Casting problems
DA-Testing Concepts: Test ScenariosReflect Dynamicity Scenarios that we expect the application to haveExamples: Runtime substitution of domain services, installation of patch bundles, etc.DA-Testing executes Test Scenarios to emulate changes in the OSGi Environment
DA-Testing Concepts: Test CasesTest Cases are executed as reactions to changes in the OSGi EnvironmentThey contain assertions that validate the behavior of the application
Testing “Dynamic Store” applicationDemo
Final NotesDA-Testing is a Testing Framework which is optimized for testing Dynamic OSGi-based applicationsIt increases the quality of Dynamic OSGi-based applications by providing common guidelines for testing dynamic applicationsIt increases the efficiency of the testing process by handling most common problems that testers of OSGi-based applications have
Further InformationDA-Testing Homepage: http://www.dynamicjava.org/projects/da-testingDynamicJava.org Homepage: http://www.dynamicjava.org/

Testing OSGi-based Applications with DA-Testing

  • 1.
    Testing OSGi-based Applicationswith DA-TestingValery Abu-EidDynamicJava.org
  • 2.
    OutlineThe need fortesting Dynamic ApplicationsThe main difficulties of testing OSGi ApplicationsDA-Testing – a framework for testing Dynamic OSGi-based ApplicationsExample: Testing “Dynamic Store” application with DA-Testing
  • 3.
    Why Testing DynamicApplications?To verify application’s dynamicityApplications should not be considered dynamic unless they have tests which verify their dynamicityTo validate patches and updates prior to installing them in the production environment
  • 4.
    OSGi Application TestingDifficulties?Too much of required maintaining codeReadability of the Testing CodeReusability of already available Testing CodeClass Casting problems
  • 5.
    How DA-Testing solvesthese problems?Provides a Dynamic Oriented Tests StructureMore suitable structure for testing Dynamic ApplicationsIncreases Testing Code reusabilityProvides an OSGi-friendly API for testersIncreases coding efficiency by reducing testing code size and handling common OSGi testing aspectsRuns all tests in the OSGi EnvironmentNo Class Casting problems
  • 6.
    DA-Testing Concepts: TestScenariosReflect Dynamicity Scenarios that we expect the application to haveExamples: 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: TestCasesTest Cases are executed as reactions to changes in the OSGi EnvironmentThey contain assertions that validate the behavior of the application
  • 8.
  • 9.
    Final NotesDA-Testing isa Testing Framework which is optimized for testing Dynamic OSGi-based applicationsIt increases the quality of Dynamic OSGi-based applications by providing common guidelines for testing dynamic applicationsIt increases the efficiency of the testing process by handling most common problems that testers of OSGi-based applications have
  • 10.
    Further InformationDA-Testing Homepage:http://www.dynamicjava.org/projects/da-testingDynamicJava.org Homepage: http://www.dynamicjava.org/