OPS4J
  Pax Drone
Added by Toni Menzel, last edited by Alin Dreghiciu on Jul 15, 2008  (view change)

Labels

 
Overview


Pax Drone is an extensible integration testing framework for OSGi.
It supports a large amount of osgi framework configurations out of the box to provide painless integration testing experience.

If any of the following is true

  • You want have a simple to setup integration testframework for OSGi
  • You want to run your tests on a remote OSGi framework
  • You want to safely run your tests on a local OSGi framework
  • You want millions of supported OSGi framework configurations (ok, at least some..)
  • You want to execute and debug a chunk of code inside your osgi based application
  • Want to use urls like mvn:org.ops4j.pax.logging/pax-logging-api to setup your test environment
  • You don't know why you need integration testing for OSGi but want to spend some minutes checking it out..

.. Pax Drone is for you!


Usage

System Requirements

  1. Java 5 virtual machine running on a supported operating system.

Installation

1. Use the following dependencies to get started: (or look at the sample sub project)

<dependency>
  <groupId>org.ops4j.pax.drone</groupId>
  <artifactId>pax-drone-spi</artifactId>
  <version>0.1.2</version>
</dependency>
<dependency>
  <groupId>org.ops4j.pax.drone</groupId>
  <artifactId>pax-drone-spi-junit</artifactId>
  <version>0.1.2</version>
</dependency>
<dependency>
  <groupId>org.ops4j.pax.drone</groupId>
  <artifactId>pax-drone-connector-paxrunner</artifactId>
  <version>0.1.2</version>
</dependency>

2. Write your first drone test:

public class SimpleTest extends org.ops4j.pax.drone.spi.junit.DroneTestCase {
  public ConnectorConfiguration configure() {
    return ConnectorConfigurationFactory.create(this)
       .setPlatform(Platforms.FELIX)
       .addBundle("mvn:org.ops4j.pax.logging/pax-logging-service")
       .addBundle("mvn:org.ops4j.pax.logging/pax-logging-api");
  }

  public void testBundles() {
    // an droneContext instance is injected at runtime.
    assertNotNull(droneContext.getBundleContext());
  }
}
Latest News
Labels: pax, pax-drone, release, news

Pax Drone 0.1.2 has been released.
This is a bugfix release that introduced paxdrone's paxrunner to choose a free port if default is occupied.
And issues when running in multi user environments.

Checkout release notes for details.

Posted at Jul 12, 2008 by Toni Menzel | 0 comments
Labels: pax-drone, pax, news, release

Pax Drone 0.1.1 has been released.
This release features

  • compatibility to Pax Wickets Integration Tests (which now uses Pax Drone for that).
  • enhanced reporting of problems and its cause.
  • among others.

Checkout release notes for details.

Special thanks to Alin for doing the release deployment work for 0.1.0 and 0.1.1.

Posted at Jul 11, 2008 by Toni Menzel | 0 comments
Labels: pax-drone, pax

Since today, we provide cutting edge builds (snapshots) on any svn change on the OPS4J Snapshot Repository

Posted at Jul 10, 2008 by Toni Menzel | 0 comments

Pax Drone 0.1.0 has been released.
This is the initial developer release.

Checkout release notes for details.

Posted at Jul 04, 2008 by Toni Menzel | 0 comments
Labels: pax-drone

A new child of the pax stack has been moved from the laboratory to the projects section

The code is now hosted here: https://scm.ops4j.org/repos/ops4j/projects/pax/drone FishEye

Documentation can be found here: http://wiki.ops4j.org/confluence/display/ops4j/Pax+Drone

Release 0.1.0 is in the works. If nothing bad happens i just have to find a windows-machine to test it (PAXDRONE-1, the last outstanding issue)..

Posted at Jun 18, 2008 by Toni Menzel | 0 comments