基于cactus的jsp页面测试及代码自动生成器-计算机科学与技术专业论文.docxVIP

  • 2
  • 0
  • 约5.41万字
  • 约 78页
  • 2019-01-09 发布于上海
  • 举报

基于cactus的jsp页面测试及代码自动生成器-计算机科学与技术专业论文.docx

基于cactus的jsp页面测试及代码自动生成器-计算机科学与技术专业论文

基于Cactus的JSP页面测试及代码自动生成器摘要 基于Cactus的JSP页面测试及代码自动生成器 摘要 Web应用系统中存在大量JSP页面需要进行服务器端测试,但是 手工编写页面测试类不仅需要掌握服务器端测试相关技术,而且会 产生大量重复性机械劳动。所以设计了基于Cactus的JSP页面测试 类代码生成器,能够自动生成页面测试类,实现JSP页面的服务器 端测试。在传统的功能测试中,每一个步骤都需要大量的人力手工完 成而且有些测试还需要经验丰富的人员以保证结果的可靠性。举例来 说,在测试阶段,如果测试人员经验不够,就可能使某些页面测试不 充分或被忽略,这将给后续的开发造成很多修改工作和重复性劳动, 势必会增加开发周期。而应用了页面测试类代码生成器后,提高了工 作效率,加快了项目的进度并且提高了产品的质量。应用了页面测试 类代码生成器的模块比采用传统测试方式的模块在测试阶段所花的 人力和时间少了很多,同时产生的缺陷也大大减少了。这说明页面测 试类代码生成器在提高测试阶段工作效率,加快项目的进度和提高产 品的质量上起了较大的作用。与传统的页面测试流程比较,页面测试 类代码生成器是一种很好的替代品。它能够将测试类的编写自动化, 因而使开发工作量大幅度减少,软件错误降至最低,测试覆盖面更为 广泛。 关键词:Cactus JSP测试代码生成器 CODE CODE GENERATOR FOR JSP TESTING CLASS BASED ON CACTUS Abstract Therc arc a lot of JSP pages need to be tested at server-si(1e in Wreb appliCations.Ⅱthe testing da鼹is t0 be∞mposed manuallyit calls for not only∞rver side testing technolo百esbut also a lot of repetitiVe mechanicm labor.A code generator for JSP testing class based on CaCt_惦 is desigIled in this paper,which Can卸tomatically generate pages testing class to test JSP at∞rver side.In the traditional funCtionaltestiIlg,eVe碍 step requir岱a large amount of man唧r to C0mplete manually锄d some tests al∞need experienCed expens t0 e啮u陀the rcliability of the re跚lts.For example,in the testing stagc,if the teste娼have not enougIl experiencc,they may ne舀ect some of the pages or some steps,which could cau∞a lot of rcVision and repetitiVe work for the subsequent development.The appliCation 0f the Code generator for JSP“瑟ting cl弱s helps to improVe work effiCiency,speed up the progre豁of the pr两ect锄d enhancc the quali哆of the product.When the module tested with JSP testing class by code generator is adopted instead of the traditionaJ method,it spends much less human resourCe and time in the testing phase and the defects has been greatly reduced.Compared with the traditional test approach,the code generator for JSP testing cla豁is obViously a better substitute. It can automate testing class generation, thus significantly reduce the worldoad of deVelopment.’I’

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档