UI Tests with Hobbes and Integration with Jenkins

Avatar

Avatar

FernandoUchiyam

Avatar

FernandoUchiyam

FernandoUchiyam

03-10-2018

Hello guys,

We want to starting writing UI tests for our Adobe AEM site. We are considering Hobbes, but also Selenium. We want to be able to run the tests with Jenkins or similar tool.

The idea is to run the tests right after a developer commits something to GIT. We know that it is possible with Selenium.

Is it possible with Hobbes too?

Replies

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

03-10-2018

See this AEM Doc topic - it may help guide you with testing: Testing Your UI

Here is a related GEMS session too -- Adobe Experience Manager Help | Tools to use for testing Adobe Experience Manager applications

Avatar

Avatar

Lavanya_Malyala

Avatar

Lavanya_Malyala

Lavanya_Malyala

03-10-2018

Hi,

Additionally to what Scott has mentioned, you can also refer to the articles below:

Testing Your UI

What's New in AEM 6.2

Front End Testing with Hobbes.js - Perficient Blogs

http://keysandstrokes.info/aem-automating-front-end-testing-using-hobbes/

NOTE: Refer "Main Advantages and key concepts" section of What's New in AEM 6.2

It says that it's easily integrable in continuous integration environment (i.e. Jenkins) as test outputs are regular jUnit.xml report files.

Regards,

Lavanya Malyala

Avatar

Avatar

FernandoUchiyam

Avatar

FernandoUchiyam

FernandoUchiyam

03-10-2018

Thank you guys,

Good to know that it is possible to integrate Hobbes with Jenkins.

But I couldn't find any examples.

Avatar

Avatar

kautuk_sahni

Community Manager

Total Posts

5.8K

Likes

1.0K

Correct Reply

1.1K

Avatar

kautuk_sahni

Community Manager

Total Posts

5.8K

Likes

1.0K

Correct Reply

1.1K
kautuk_sahni
Community Manager

04-10-2018

Avatar

Avatar

FernandoUchiyam

Avatar

FernandoUchiyam

FernandoUchiyam

04-10-2018

Hi,

Can you provide an installation & command execution example?

I tested installing it with either:
- npm install -g hobbes-runner
- npm install hobbes-runner

But couldn't execute it running any of the following commands:


- hobbes-runner
- npm run hobbes-runner
- npm run ./node_modules/.bin/hobbes-runner
- ./node_modules/.bin/hobbes-runner

Am I doing anything wrong?