unit test

该博客为转载内容,转载自https://www.cnblogs.com/liushmh/archive/2005/03/15/119319.html ,涉及数据库相关知识。
 


Unit Test #: 1


Purpose: To test data type “DATE” in BEA’s Liquid Data database server.


Configuration


Platform:

Windows XP

Database Server:

BEA Liquid Data

Test Data Source:

Test tables have been already set up based on Crystal’s test data. The correctness of the data in the data source has been verified.


Input Data


Automated:

\\shared_drive\unit_test\data_type_tests\testNo1\input.xml

Manually Entered:

(The following information will be typically stored in an xml configuration file if we had this automated).

Input Data Category:

What kind of input data are you going to use test? It should include valid data cases, boundary cases, and negative test cases.

Database Connection String:

User ID:

Password:

Catalog/Schema/Table:

./…./….

Valid data used for DATE type:

January 1, 2003

December 31, 2003

Boundary data used for DATE type:

January 1, 0999

December 31, 2099

Negative data used for DATE type:

February 31, 2003

88/88/88


Expected Output Condition


Comparison criteria for valid and boundary case data:

The generated report is identical to the same report based on DB2 (or based on ODBC driver to Liquid Data), or the test result xml file is identical to the test result xml based on DB2 (or based on ODBC driver to Liquid Data)


Visual inspection of DATE on Crystal report preview.

Pass/Fail criteria for negative case data:

What is the system supposed to with invalid/negative data? Is your code handling the exception properly?

Test Passed/Failed:


Reporting Test Results:



转载于:https://www.cnblogs.com/liushmh/archive/2005/03/15/119319.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值