How to create and author components using Hobbes? | Community
Skip to main content
Level 3
October 22, 2015
Solved

How to create and author components using Hobbes?

  • October 22, 2015
  • 7 replies
  • 2947 views

My team is starting to use Hobbes to test the components developed.

We would like to create a page, add components and change the properties, but Hobbes does not seems to recognize the parsys element.

P.S.: We don't have the pages with components (content)

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

Here is a good community article on testing:

http://aempodcast.com/2014/testing/aem-6-0-functional-testing-framework-overview/#.Viki2H6rRaQ

7 replies

edubey
Level 10
October 22, 2015

Hi, 

Could you please explain what do you mean by Change the properties, Some default test cases have been present, you can take a look.

One more, make sure you are switching to developer mode in order to run test case.

Take a look at default one: Testing Site Navigation Features

Level 3
October 22, 2015

smacdonald2008, I read that article, but there isn't any example about how to create new components in the page.

edubey, I tried the test cases, but there don't cover what I want to do.

We don't have any page/components in our code.

What we need to accomplish is:

  1. dynamically create a new page,
  2. insert a new component,
  3. open the dialog,
  4. add the configuration,
  5. close the dialog,
  6. test our component,
  7. delete the page.
edubey
Level 10
October 22, 2015

Hi,

I guess you are taking a wrong path then reason being Hobbes.js is UI Testing framework but what you want is testing AEM functionality.

You should probably take a look at some Unit Testing Framework like JUNIT.

If you are  too interested, take a look at Selenium ( Its a browser automation testing framework).

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 22, 2015
Pablo_Larrosa-R
Level 2
March 31, 2017

Hi Murilo,

I know this is an old post but better late than never :),

We are using Bobcat framework to do this types of testing https://github.com/Cognifide/bobcat

Hope that helps.

Regards

January 8, 2018

Hi Pablo,

I read the above Cognifide article but i am not understanding how it actually works for AEM, can u please share a sample video or any video link on how bobcat works in authoring any one component in author mode and how it verifies the authored content in publish mode. This will be a great help for me in automating our project.

Also, can you please help me how to get bobcat in PC Pablo.Larrosa

Thank you!

Pablo_Larrosa-R
Level 2
January 8, 2018

Hi,

There's a couple examples using Geometrixx site in https://github.com/Cognifide/bobcat/wiki/Getting-Started

Getting Started · Cognifide/bobcat Wiki · GitHub with Classic UI

You should start from there. You can download all the code from .

GitHub - Cognifide/bobcat-archetype-aem: Maven archetype for Bobcat using JUnit tests with support for AEM

Hope that links help you.

Regards