JBoss Community Archive (Read Only)

JBoss AS 7.2

AS 7 Testsuite Overview

This document will detail the implementation of the testsuite Integration submodule as it guides you on adding your own test cases.

The JBoss Application Server 7 integration test suite has been designed with the following goals:

In addition, these requirements were considered:

Test Suite Organization

The testsuite module has a small number of submodules:

  • benchmark - holds all benchmark tests intended to assess relative performance of specific feature

  • domain - holds all domain management tests

  • integration - holds all integration tests

  • stress - holds all stress tests

It is expected that  test contributions fit into one of these categories.

The pom.xml file located in the testsuite module is inherited by all submodules and is used to do the following:

  • set defaults for common testsuite system properties (which can then be overridden on the command line)

  • define dependencies common to all tests (Arquillian, junit or testng, and container type)

  • provide a workaround for @Resource(lookup=...) which requires libraries in jbossas/endorsed

It should not:

  • define module-specific server configuration build steps

  • define module-specific surefire executions

These elements should be defined in logical profiles associated with each logical grouping of tests; e.g., in the pom for the module which contains the tests.  The submodule poms contain additional details of their function and purpose as well as expanded information as shown in this document.

Profiles

You should not activate the abovementioned profiles by -P, because that disables other profiles which are activated by default.

Instead, you should always use activating properties, which are in parenthesis in the lists below.

Testsuite profiles are used to group tests into logical groups.

  • all-modules.module.profile  (all-modules)

  • integration.module.profile   (integration.module)

  • compat.module.profile       (compat.module)

  • domain.module.profile       (domain.module)

  • benchmark.module.profile  (benchmark.module)

  • stress.module.profile         (stress.module)

They also pprepare JBoss AS instances and resources for respective testsuite submodules.

  • jpda.profile - sets surefire.jpda.args    (debug)

  • ds.profile  -sets database properties and prepares the datasource  (ds=<db id>)

    • Has related database-specific profiles, like mysql51.profile etc.

Integration testsuite profiles configure surefire executions.

  • smoke.integration.tests.profile

  • basic.integration.tests.profile

  • clustering.integration.tests.profile

JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-13 13:29:28 UTC, last content change 2012-01-25 15:56:00 UTC.