[英]How to test a jsp based web application?
What sort of a framework can be used to test a jsp web application? 什么样的框架可以用来测试jsp Web应用程序? All java classes and the servrlets needs to be tested too.
所有的Java类和servrlet也需要进行测试。 What would be the best approach and related frameworks that can be used in this regard?
在这方面可以使用的最佳方法和相关框架是什么?
Update 更新资料
Any other suggestions? 还有其他建议吗?
For the Java part I still recommend JUnit as Unit-Test-Framework. 对于Java部分,我仍然建议将JUnit作为单元测试框架。
For the test of the web part one can think about using a web test framework like Selenium. 对于Web部分的测试,可以考虑使用诸如Selenium之类的Web测试框架。 However, this part is more difficult to automate during (for example) a nightly build.
但是,此部分在(例如)每晚构建期间更难以自动化。
You can test your application front end with selinium webdriver automation testing. 您可以使用selinium webdriver自动化测试来测试您的应用程序前端。
you can test your java code with junit framework or testNg now a days becoming more popular in the market 您可以使用junit框架或testNg测试Java代码,如今在市场上越来越流行
JUnit was selected as the testing framework for java components. JUnit被选作Java组件的测试框架。 Still looking for a method to test application front end?
还在寻找测试应用程序前端的方法吗?
There is a tool called JspTester ( http://jsptester.com ) which integrates as a servlet to your webapp, and allows to inject values directly to beans, model objects, request parameters and session variables. 有一个名为JspTester( http://jsptester.com )的工具,该工具作为Servlet集成到您的Web应用程序,并允许将值直接注入到bean,模型对象,请求参数和会话变量中。 Useful when there is a need to test the JSPs in isolation from business logic or MVC controllers.
当需要与业务逻辑或MVC控制器隔离地测试JSP时很有用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.