how to do Unit testing for .jsp files in cq5? | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Lokesh_Shivalingaiah

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

2 replies

Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
October 16, 2015

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

joerghoh
Adobe Employee
Adobe Employee
October 16, 2015

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