Automating AEM as a Cloud Service author tests with Cloud Manager pipelines
This article describes how to automate authoring regression tests in Adobe Experience Manager as a Cloud Service and integrate them with Cloud Manager pipelines to ensure business-critical workflows are validated during frequent product updates.
Description description
Environment
Adobe Experience Manager as a Cloud Service (all versions)
Issue/Symptoms
- Organizations using AEM as a Cloud Service require automated authoring regression and validation tests to keep up with frequent product updates.
- Manual execution of author test cases is time-consuming and does not scale with regular updates.
- Automating these tests and integrating them with Cloud Manager pipelines helps ensure that key authoring functionality and business-critical workflows are validated before changes are deployed to production.
- Manual author test cases are slow and do not scale with frequent updates.
- Authoring workflows, such as page creation, editing, asset management, workflows, permissions, and publishing, need automatic validation during deployments and product updates.
Cause
Frequent AEM Cloud Service updates require automated regression testing to prevent disruptions to critical business workflows.
Resolution resolution
Follow these steps to resolve the issue:
-
Design a layered testing strategy:
- Implement custom functional tests for API and HTTP-based validation of core workflows.
- Implement custom UI tests for business-critical authoring journeys such as page creation/editing, asset upload, workflow execution, permissions, and publishing.
- Focus Cloud Manager test suites on smoke and regression scenarios, not the entire manual test library.
-
Choose supported frameworks and tools:
- For functional tests, use Java, JUnit, Maven, and the official AEM Testing Clients. The
it.testsmodule from the AEM Project Archetype is recommended as a starting point. - For UI tests, package tests as a Docker image. Supported tools include Cypress (recommended), Selenium, JavaScript/WebdriverIO, and Java/WebDriver.
- For functional tests, use Java, JUnit, Maven, and the official AEM Testing Clients. The
-
Integrate automated tests with Cloud Manager pipelines:
- Configure custom functional and UI tests as quality gates in Cloud Manager. These can be set as blocking steps in production pipelines and optionally in non-production pipelines.
- Ensure functional tests complete within approximately 60 minutes and UI tests within approximately 30 minutes, as per Cloud Manager execution limits.
-
Execute tests during deployments and product updates:
- Enable automated tests to run during both application deployments and AEM product updates to detect regressions before changes reach production.
-
Use the recommended execution patterns:
- Run the full automated suite in your organization’s CI/CD or development environment.
- Enable focused custom tests in the AEM Cloud Manager non-production pipeline.
- Run critical smoke/regression tests against the Stage environment.
- Use production pipeline quality gates before deploying to production.
- Execute longer or broader regression suites outside Cloud Manager if they exceed time limits.
-
Use the reference implementation:
- Use the
it.tests(Java functional tests) andui.tests(UI tests) modules from the AEM Project Archetype as starting points for your test automation. See the AEM Project Archetype documentation for details.
- Use the
-
After integrating your tests, verify that they execute successfully as part of your Cloud Manager pipeline and that failures are reported as expected.