我曾离你这么近500字:帮帮忙!!

来源:百度文库 编辑:高校问答 时间:2024/05/08 19:57:14
This chapter covered automated testing in Struts. We started by testing our model with JUnit. Then we covered
using StrutsTestCase to test the Action from our controller. Lastly, we used jWebUnit to test our JSP views.
StrutsTestCase is a testing framework that is specific to Struts. jWebUnit is a testing framework that tests web
applications through the HTTP interface. StrutsTestCase and jWebUnit both build on top of JUnit. StrutsTest-
Case allows you to easily test Actions and other code that depends on Struts and Servlets. JWebUnit allows you
to test JSPs. Testing is an important part of the development process that often gets overlooked, but this chapter
should help you understand its importance and offer some effective ways to implement proper testing procedures.

本章包括自动测试架子. 我们开始我们的试验示范与JUnit. 我们的行动包括使用strutstestcase测试我们的控制. 最后,我们用我们的测试JSPjwebunit意见. Strutstestcase是一个测试框架,具体架子. jwebunit是一个测试框架,通过HTTP接口测试网络应用. 并建立了strutstestcasejwebunitJUnit之上. strutstest情况让你和其他活动代码易于测试,并依赖servlets架子. jwebunit让你JSPs测试. 试验的一个重要组成部分,是发展过程中,也往往忽略了,但是本章要帮助您了解其重要性,并提出一些有效的方法来执行适当的测试程序.