哪种测试框架适合Adobe CQ5项目? [英] Which Testing framework will suit for Adobe CQ5 Project?

查看:97
本文介绍了哪种测试框架适合Adobe CQ5项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

哪个测试框架适合Adobe CQ5项目,该项目具有Java的一部分代码和JSP的CQ5组件的某些代码?

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?

推荐答案

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.

此外,测试基于Sling的应用程序讨论了测试各种类型的组件(例如OSGI)的方法,并提供了

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

最后,如果您的组件只是POJO,则可以使用普通的 JUnit 测试.要测试与站点/应用程序的Web界面的交互,您可以使用

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

这篇关于哪种测试框架适合Adobe CQ5项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆