Expand my Community achievements bar.

SOLVED

how to do Unit testing for .jsp files in cq5?

Avatar

Former Community Member

Pls share any idea about above q?

1 Accepted Solution

Avatar

Correct answer by
Level 10

Normally, JSPs are unit tested for the view/display part of it. So you can use something like selenium or AEM testing framework which uses hobbes [1]

[1] https://docs.adobe.com/docs/en/aem/6-0/develop/components/hobbes.html

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Normally, JSPs are unit tested for the view/display part of it. So you can use something like selenium or AEM testing framework which uses hobbes [1]

[1] https://docs.adobe.com/docs/en/aem/6-0/develop/components/hobbes.html

Avatar

Employee Advisor

Hi,

if you want to do proper unittesting for JSP, drop them in favor of Sling models and Sightly. It's easier to unittest Sling models, and Sightly ... well, then it's time for some frontend testing technology like Selenium or Hobbes.

kind regards,
Jörg