Expand my Community achievements bar.

Join us in celebrating the outstanding achievement of our AEM Community Member of the Year!
SOLVED

Hobbes automated test framework

Avatar

Level 4

I've started exploring the Hobbes automated test framework used in AEM 6.0 and was disappointed to find out that there isn't a lot of documentation on the internet on this. The Adobe docs helped me to get started and I've also spent sometime exploring the tests that are included in the sample content.

I was wondering if Adobe has some more detailed documentation on this topic, I am particularly looking for something like an API documentation that sheds light on the different kind of methods that can be used in a test case and ofcourse lots of examples.

Any help is appreciated.

1 Accepted Solution

Avatar

Correct answer by
Employee
3 Replies

Avatar

Correct answer by
Employee

Avatar

Level 5

The Hobbes test framework, used for automated UI testing in AEM, indeed has limited official documentation, but you can find some resources and examples to get you started.

Here are some ways to explore more about Hobbes:

1. Adobe Documentation

  • The official Adobe documentation does provide basic information on getting started with Hobbes and its integration with AEM. Although detailed API documentation is scarce, the foundational concepts are covered.
  • Refer to the AEM Automated Testing documentation for an overview of the Hobbes framework, the basic setup, and examples.

2. Hobbes GitHub Repository

  • You may want to explore the Hobbes GitHub repository where you can find the source code, test cases, and possibly some comments or documentation. This is one of the best ways to understand the methods and structure of Hobbes.
  • Link: Hobbes GitHub Repository

3. Community Resources and Forums

  • As you’ve already found, community forums like the AEM Community often discuss various frameworks and troubleshooting, including Hobbes. You can look for discussions or ask specific questions about the API and method use cases.
  • Adobe’s DayCare forums might have user-generated examples and queries related to Hobbes.

4. Examples and Sample Tests

  • The sample content included with Hobbes provides a good starting point. Explore the test files within the AEM instance you are working on, specifically under the /content/dam or /tests directories (depending on your setup).
  • You can also check out example tests to get an understanding of the different methods and how they are structured.

5. API Exploration

  • While there is no official API doc, you can explore the source code of the Hobbes framework to better understand the available methods.
  • Hobbes uses Selenium for driving the UI, so familiarizing yourself with Selenium’s API can be beneficial as it integrates well with Hobbes for browser automation.

6. Further Learning

  • If you are looking for more detailed examples, you can check out blog posts or video tutorials by other AEM professionals or consult the wider AEM development community. Many blogs go in-depth into automated testing for AEM and how to set up various test cases.