コミュニティアチーブメントバーを展開する。

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
解決済み

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 受け入れられたソリューション

Avatar

正解者
Level 10
7 返信

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

正解者
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!

Avatar

Level 2

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

Hope that links help you.

Regards