Expand my Community achievements bar.

SOLVED

How to create and author components using Hobbes?

Avatar

Level 3

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)

1 Accepted Solution

Avatar

Correct answer by
Level 10
7 Replies

Avatar

Level 10

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

Avatar

Level 3

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.

Avatar

Level 10

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).

Avatar

Correct answer by
Level 10

Avatar

Level 2

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

Avatar

Level 1

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!