How to create and author components using Hobbes?

murilod74686477

22-10-2015

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)

Answers (6)

Answers (6)

aryab58916048

08-01-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!

edubey

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

murilod74686477

22-10-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

22-10-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