Version 31

    Running the JBoss AS Integration Testsuite


    Note: the steps described in this document refer to JBoss AS 5.0. In future, the document will be extended to include JBoss 4.x too.


    This document assumes that the location of your JBoss 5 head workarea is given by the value of the $JBOSS_WORKAREA environment variable. The location of the runnable JBoss instance resulted from compilation is referred as $JBOSS_HOME. Its value is $JBOSS_WORKAREA/build/output/jboss-5.0.0.Beta2 at the time of the writing.


    1. Update JBoss 5.0 head from repository and build it


    If you want to run the integration test suite with a specific tag/branch, update the corresponding tag/branch workarea instead of the head.


    Note: You must compile with Java 5.


          cd $JBOSS_WORKAREA
          ./build/ clean
          rm -rf thirdparty
          svn update


    This should create a default JBoss 5.0 installation, with JBoss Messaging pre-installed as default JMS provider.


    2. Adjust JBoss Messaging configuration for the integration testsuite


    2.1 Configure destinations


    Edit $JBOSS_HOME/server/default/deploy/messaging/destinations-service.xml and remove all destination declarations, except DLQ.


    2.2 Configure security


    Edit $JBOSS_HOME/server/default/conf/props/ and add a new john/needle test user:


    # user=password


    Edit $JBOSS_HOME/server/default/conf/props/ and give john new roles:


    # user=role1,role2,...



    3. Start the test JBoss instance


    Note: In case your JBOSS_HOME environment variable points towards something else than $JBOSS_WORKAREA/build/output/jboss-5.0.0.Beta2, unset it, otherwise you won't start the correct JBoss instance.


          cd $JBOSS_WORKAREA/build/output/jboss-5.0.0.Beta2/bin



    Note: you could optionally bind to specific addresses, such in:


          ./ -b -u


    4. Build the integration testsuite



    Note: You must use Java 5 to build the integration testsuite.


          cd $JBOSS_WORKAREA/testsuite





    5. Run messaging integration tests


          cd $JBOSS_WORKAREA/testsuite
          ./ -Dnojars=true tests-jbossmessaging


    Note: you could optionally use to specific addresses when running the testsuite, such in:


          ./ -Dnode0= -Dnode1= -DudpGroup= -Dnojars=true tests-jbossmessaging



    6. Generate the HTML report


           ./ tests-report


    The HTML report will be available in $JBOSS_WORKAREA/testsuite/output/report/html/index.html





    • We need to define default clientIDs (user based I guess) or define it on the ConnectionFactory.