Giter Site home page Giter Site logo

adamcin / aem-test-samples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adobe/aem-test-samples

0.0 0.0 0.0 2.08 MB

Adobe Experience Manager Test Samples

License: Apache License 2.0

Shell 0.84% JavaScript 5.42% Java 92.51% Dockerfile 1.23%

aem-test-samples's Introduction

AEM Test Samples

This is a collection of test modules that can be run to validate an AEM cloud-based deployment. Tests are written according to Best practices.

Modules

  • smoke - generic smoke tests

How to use

Clone the repository and use maven for running each of the test modules.

The build also produces a jar-with-dependencies that can be run as a self-contained test module (using java directly or a small maven pom with failsafe configured).

Run the tests against localhost

mvn clean verify -Ptest-all

Run the test against your AEM Cloud Service author and publish tiers

The eaas-local profile has been added for convenience to allow to run the test locally against an AEM Cloud Service. The same test client configuration is used when the test module is executed in the Cloud Service

mvn -Peaas-local clean verify \
-Dcloud.author.url=<your-aem-author-url> \
-Dcloud.author.user=admin \
-Dcloud.author.password=<your-admin-password> \
-Dcloud.publish.url=<your-aem-publish-url \
-Dcloud.publish.user=admin \
-Dcloud.publish.password=<your-admin-password> \

Requirements

User

The test modules require the admin user or an admin-like user with enough privileges to create content, new users, groups and replicate content.

Replication

The tests also verify author-publish replication therefore for them to work correctly replication needs be be configured correctly.

Note that ReplicationIT will create and delete a randomized page in path like: /content/test-site/testpage_632460d4-361c-4b9b-9eef-d2446f79ec9c

Sling properties

The eaas-local profile facilitates the definition of sling properties expected by the aem-testing-clients (and the underlying Sling Testing Clients) in a convenient way.

The system properties are as follows:

  • sling.it.instances - should be set to 2
  • sling.it.instance.url.1 - should be set to the author URL, for example, http://localhost:4502
  • sling.it.instance.runmode.1 - should be set to author
  • sling.it.instance.adminUser.1 - should be set to the author admin user, e.g. admin
  • sling.it.instance.adminPassword.1 - should be set to the author admin password
  • sling.it.instance.url.2 - should be set to the author URL, for example, http://localhost:4503
  • sling.it.instance.runmode.2 - should be set to publish
  • sling.it.instance.adminUser.2 - should be set to the publish admin user, for example, admin
  • sling.it.instance.adminPassword.2 - should be set to the publish admin password
  • sling.it.configure.default.replication.agents - should be set to false

UI Tests

Custom UI testing is an optional feature that enables you to create and automatically run UI tests for your applications. The UI Testing section of the documentation provides in-depth information of their structure and usage.

  • /ui-cypress provides a sample Custom UI test module driven by Cypress.
  • /ui-selenium-webdriver provides a sample Custom UI test module driven by Selenium WebDriver.
  • The aem-project-archetype can be used as reference for Custom UI test modules driven by Selenium + WebdriverIO

Notable Examples

aem-test-samples's People

Contributors

volteanu avatar dulvac avatar marcpf avatar andresbott avatar francescomari avatar andreituicu avatar bisswanger avatar kronnox avatar amit-jain avatar bogdananton avatar cschneider avatar chibulcu avatar raducotescu avatar adobre90 avatar akrainiouk avatar absarasw avatar rbartl-pv avatar balasoiuroxana avatar igmarcu avatar etugarev avatar cristianbrande avatar alexrrr avatar dobretony avatar coatpont avatar catalan-adobe avatar joerghoh avatar lucianfelix avatar mtarantino avatar pat-lego avatar stefanseifert avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.