NextDate测试报告

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

NextDate函数测试报告一、根据边界值法进行黑盒测试:在NextDate函数中,隐含规定了变量mouth和变量day的取值范围为1≤mouth≤12和1≤day≤31,并设定变量year的取值范围为1912≤year≤2050。二、测试用例的边界值mouth的取值可选取:-1,0,1,2,11,12,13day的取值可选取:-1,0,1,2,29,30,31,32year的值可选取:1911,1912,1913,2049,2050,2051由于2月的特殊性可以专门针对二月设计测试用例:三、测试用例设计测试用例编号YearMonthDay预期输出1234561911191219132049205020516666661515151515151911.6.161912.6.161913.6.162049.6.162050.6.162051.6.16789101112132001200120012001200120012001-101211121315151515151515Mouth超出边界Mouth超出边界2001.1.162001.2.162001.11.162001.12.16Mouth超出边界14151617181920212001200120012001200120012001200166666666-101229303132Day超出边界Day超出边界2001.6.22001.6.32001.6.302001.7.1Day超出边界Day超出边界2223242526272820002000200020012001200120012222222282930272829302000.2.292000.3.1Day超出边界2001.2.282001.3.1Day超出边界Day超出边界四、测试结果:测试用例编号输出结果结果分析1Pleaseinputdate(yearmonthday):1911615Nextdayis:1911.6.16Pressanykeytocontinue与预期结果一致2Pleaseinputdate(yearmonthday):1912615Nextdayis:1912.6.16Pressanykeytocontinue与预期结果一致3Pleaseinputdate(yearmonthday):1913615Nextdayis:1913.6.16Pressanykeytocontinue与预期结果一致4Pleaseinputdate(yearmonthday):2049615Nextdayis:2049.6.16Pressanykeytocontinue与预期结果一致5Pleaseinputdate(yearmonthday):2050615Nextdayis:2050.6.16Pressanykeytocontinue与预期结果一致6Pleaseinputdate(yearmonthday):2051615Nextdayis:2051.6.16Pressanykeytocontinue与预期结果一致7Pleaseinputdate(yearmonthday):2001-115Nosuchayearhas-1months.Pressanykeytocontinue与预期结果一致8Pleaseinputdate(yearmonthday):2001015Nosuchayearhasmonths.Pressanykeytocontinue与预期结果一致9Pleaseinputdate(yearmonthday):2001115Nextdayis:2001.1.16Pressanykeytocontinue与预期结果一致10Pleaseinputdate(yearmonthday):2001215Nextdayis:2001.2.16Pressanykeytocontinue与预期结果一致11Pleaseinputdate(yearmonthday):20011115Nextdayis:2001.11.16Pressanykeytocontinue与预期结果一致12Pleaseinputdate(yearmonthday):20011215Nextdayis:2001.12.16Pressanykeytocontinue与预期结果一致13Pleaseinputdate(yearmonthday):20011315Nosuchayearhas13months.Pressanykeytocontinue与预期结果一致14Pleaseinputdate(yearmonthday):20016-1Themonth2001.6haveno-1days.与预期结果一致Pressanykeytocontinue15Pleaseinputdate(yearmonthday):200160Themonth2001.6havenodays.Pressanykeytocontinue与预期结果一致16Pleaseinputdate(yearmonthday):200161Nextdayis:2001.6.2Pressanykeytocontinue与预期结果一致17Pleaseinputdate(yearmonthday):200162Nextdayis:2001.6.3Pressanykeytocontinue与预期结果一致18Pleaseinputdate(yearmonthday):2001629Nextdayis:2001.6.30Pressanykeytocontinue与预期结果一致19Pleaseinputdate(yearmonthday):2001630Nextdayis:2001.7.1Pressanykeytocontinue与预期结果一致20Pleaseinputdate(yearmonthday):2001631Themonth2001.6haveno31days.Pressanykeytocontinue与预期结果一致21Pleaseinputdate(yearmonthday):2001632Themonth2001.6haveno32days.Pressanykeytocontinue与预期结果一致22Pleaseinputdate(yearmonthday):2000228Nextdayis:2000.2.29Pressanykeytocontinue与预期结果一致23Pleaseinputdate(yearmonthday):2000229Nextdayis:2000.3.1Pressanykeytocontinue与预期结果一致24Pleaseinputdate(yearmonthday):2000230Themonth2000.2haveno30days.Pressanykeytocontinue与预期结果一致25Pleaseinputdate(yearmonthday):2001227Nextdayis:2001.2.28Pressanykeytocontinue与预期结果一致26Pleaseinputdate(yearmonthday):2001228Nextdayis:2001.3.1Pressanykeytocontinue与预期结果一致27Pleaseinputdate(yearmonthday):2001229Themonth2001.2haveno29days.Pressanykeytocontinue与预期结果一致28Pleaseinputdate(yearmonthday):2001230Themonth2001.2haveno30days.Pressanykeytocontinue与预期结果一致

1 / 3
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功