Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

Executing tests on different environments

Mikołaj Mański edited this page Jul 12, 2016 · 2 revisions

Executing tests on different environments

Each environment (e.g. develop, stable, staging) should be supported by separate instances.properties file. Environment selection should be handled on maven profile level

Bobcat configuration with Maven profiles

Project generated from archetype comes with one predefined profile:

<profiles>
    <profile>
        <id>integration</id>
        <properties>
            <configuration.paths>src/main/config/common;src/main/config/integration</configuration.paths>
        </properties>
    </profile>
</profiles>

To active profile in maven build add -Pintegration parameter.

mvn clean test -Pintegration

Overriding properties via command line -D option

You can also override properties by passing -D option to maven.

mvn clean test -Dconfiguration.paths=src/main/experimental-config -Dwebdriver.type=chrome

Each environment (e.g. develop, stable, staging) should be supported by separate maven profile.

Getting started with Bobcat

  1. Getting started

AEM Related Features

  1. Authoring tutorial - Classic
  1. AEM Classic Authoring Advanced usage
  1. Authoring tutorial - Touch UI
Clone this wiki locally