Expand my Community achievements bar.

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

Better organization for the Hobbes test cases

Avatar

Level 3

Hi guys,

We've been assessing the use of Hobbes.js as the tool to do our UI testing, and we have reached to a problem regarding to the way the testcases are organized.

We are using one Adobe AEM server/instance to host many websites.

The problem is that when we access the main Hobbes.js screen (http://localhost:4502/libs/granite/testing/hobbes.html​ ), we don't have a way to filter or categorize the testcases. We would like to have a way to show only the testcases of a certain website, but all the testcases are getting mixed now.

Also, I can not work in a scenario in which all the tests will be written inside of a single testcase. It will get big and unmanageable very rapidly.

Is it possible to organize by website or to do some kind of filtering of testcases?

1 Accepted Solution

Avatar

Correct answer by
Level 10

You could use filter criteria, it works fine -

http://localhost:4502/libs/granite/testing/hobbes.html?filter=granite.testing.hobbes.tests.we-retail  (filtering works on additional category added to clientlibs along with granite.testing.hobbes.tests)

https://helpx.adobe.com/experience-manager/6-3/sites/developing/using/reference-materials/test-api/index.html

1676076_pastedImage_9.png

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

You could use filter criteria, it works fine -

http://localhost:4502/libs/granite/testing/hobbes.html?filter=granite.testing.hobbes.tests.we-retail  (filtering works on additional category added to clientlibs along with granite.testing.hobbes.tests)

https://helpx.adobe.com/experience-manager/6-3/sites/developing/using/reference-materials/test-api/index.html

1676076_pastedImage_9.png