Which Testing framework will suit for Adobe CQ5 Project?

风流意气都作罢 提交于 2019-12-11 14:14:32

问题


Which testing framework will suit for a Adobe CQ5 Project which is having some part of code in Java and some part of code in JSP for the CQ5 components?


回答1:


There are some details of testing of apache sling components on the Sling Testing page, which will suit components within a CQ5 project

There are remote tests that can be deployed to a running CQ5 server and executed remotely (using curl for example)

There are also integration tests that create a sling launchpad instance and test against sling in-process.

Also, Testing Sling Based Applications discusses approaches to testing the various types of components such as OSGI and provides the links to mocks for common Sling classes (e.g. MockNode, MockProperty, MockResourceResolver).

Finally, if your components are just POJOs then you can just use plain old JUnit tests. For testing the interaction with the web interface of your site/application you could use something like Selenium



来源:https://stackoverflow.com/questions/18336303/which-testing-framework-will-suit-for-adobe-cq5-project

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!