How to create and author components using Hobbes? | Community
Skip to main content
Level 3
Oct 22, 2015 9:49 AM UTC
Solved

How to create and author components using Hobbes?

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.
smacdonald2008
smacdonald2008Accepted solution
Level 10
Oct 22, 2015 5:58 PM UTC

7 replies

Pablo_Larrosa-R
Level 2
Jan 8, 2018 12:49 PM UTC

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

Translate
New Participant
Jan 8, 2018 9:07 AM UTC

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!

Translate
Pablo_Larrosa-R
Level 2
Mar 31, 2017 12:12 PM UTC

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

Translate
smacdonald2008
smacdonald2008Accepted solution
Level 10
Oct 22, 2015 5:58 PM UTC
edubey
Level 10
Oct 22, 2015 5:00 PM UTC

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

Translate
Level 3
Oct 22, 2015 4:38 PM UTC

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.
Translate
edubey
Level 10
Oct 22, 2015 4:08 PM UTC

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

Translate