首页> 外国专利> UNIT TEST METHOD, UNIT TEST DEVICE, PROGRAM AND STORAGE MEDIUM

UNIT TEST METHOD, UNIT TEST DEVICE, PROGRAM AND STORAGE MEDIUM

机译:单元测试方法,单元测试设备,程序和存储介质

摘要

PPROBLEM TO BE SOLVED: To solve the problem that the mismatch of a database for development with a database for use in actual operation is generated, and a unit test is not made available, or it is necessary to rewrite a test code. PSOLUTION: An application 203 of a WEB application server 201 of a shopping system 101 is provided with a factory, OrderTest class 350, and Order class 360 or the like. At the time of operating the unit test of an ordering function by using the OrderTest class 350, a test() method 351 of the OrderTest class 350 integrates a factory into an instance, and acquires test data corresponding to store ID411. Also, test data corresponding to a Product table 440 being merchandise information unique to a store are acquired, and test data corresponding to an OrderRecord table 430 are acquired. Then, order processing is executed by an OrderRegister() method 361 of the Order class 360 being a unit test object. At last, whether or not the order processing using the Order class 360 has been normally executed is checked. PCOPYRIGHT: (C)2005,JPO&NCIPI
机译:

要解决的问题:解决以下问题:要开发的数据库与实际操作中使用的数据库不匹配,并且单元测试不可用,或者必须重写测试代码。

解决方案:购物系统101的WEB应用程序服务器201的应用程序203带有工厂,OrderTest类350和Order类360等。在通过使用OrderTest类350操作订购功能的单元测试时,OrderTest类350的test()方法351将工厂集成到实例中,并获取与商店ID411相对应的测试数据。另外,获取与产品表440相对应的测试数据,该产品表440是商店唯一的商品信息,并且获取与OrderRecord表430相对应的测试数据。然后,通过作为单元测试对象的订单类360的OrderRegister()方法361执行订单处理。最后,检查是否已经正常执行使用订单类360的订单处理。

版权:(C)2005,JPO&NCIPI

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号