资源描述:
《NextDate测试报告》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、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月的特殊性可以专门针对二月设计测试用例:三、测试
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.16Mou
3、th超出边界14151617181920212001200120012001200120012001200166666666-101229303132Day超出边界Day超出边界2001.6.22001.6.32001.6.302001.7.1Day超出边界Day超出边界2223242526272820002000200020012001200120012222222282930272829302000.2.292000.3.1Day超出边界2001.2.282001.3.1Day超出边界Day超
4、出边界四、测试结果:测试用例编号输出结果结果分析1Pleaseinputdate(yearmonthday):1911615Nextdayis:1911.6.16Pressanykeytocontinue与预期结果一致2Pleaseinputdate(yearmonthday):1912615Nextdayis:1912.6.16Pressanykeytocontinue与预期结果一致3Pleaseinputdate(yearmonthday):1913615Nextdayis:1913.6.16
5、Pressanykeytocontinue与预期结果一致4Pleaseinputdate(yearmonthday):2049615Nextdayis:2049.6.16Pressanykeytocontinue与预期结果一致5Pleaseinputdate(yearmonthday):2050615Nextdayis:2050.6.16Pressanykeytocontinue与预期结果一致6Pleaseinputdate(yearmonthday):2051615Nextdayis:2051.
6、6.16Pressanykeytocontinue与预期结果一致7Pleaseinputdate(yearmonthday):2001-115Nosuchayearhas-1months.Pressanykeytocontinue与预期结果一致8Pleaseinputdate(yearmonthday):2001015Nosuchayearhasmonths.Pressanykeytocontinue与预期结果一致9Pleaseinputdate(yearmonthday):2001115Next
7、dayis:2001.1.16Pressanykeytocontinue与预期结果一致10Pleaseinputdate(yearmonthday):2001215Nextdayis:2001.2.16Pressanykeytocontinue与预期结果一致11Pleaseinputdate(yearmonthday):20011115Nextdayis:2001.11.16Pressanykeytocontinue与预期结果一致12Pleaseinputdate(yearmonthday):20
8、011215Nextdayis:2001.12.16Pressanykeytocontinue与预期结果一致13Pleaseinputdate(yearmonthday):20011315Nosuchayearhas13months.Pressanykeytocontinue与预期结果一致14Pleaseinputdate(yearmonthday):20016-1Themonth2001.6haveno-1days.与预期结果一致Pressanykeytocontinue15Pl