alaska1131

Reference from : http://test1.anyp.com/ujohn/12773-106446.aspx

 

二、边界值分析法
NextDate函数的边界值分析
测试用例
在NextDate函数中,隐含规定了变量mouth和变量day的取值范围为1≤mouth≤12和1≤day≤31,并设定变量year的取值范围为1912≤year≤2050 。

mouth
day
year
预期输出
Test1
Test2
Test3
Test4
Test5
Test6
Test7
6
6
6
6
6
6
6
15
15
15
15
15
15
15
1911
1912
1913
1975
2049
2050
2051
1911.6.16
1912.6.16
1913.6.16
1975.6.16
2049.6.16
2050.6.16
2051.6.16
Test8
Test9
Test10
Test11
Test12
Test13
6
6
6
6
6
6
-1
1
2
30
31
32
2001
2001
2001
2001
2001
2001
day超出[1…31]
2001.6.2
2001.6.3
2001.7.1
输入日期超界
day超出[1…31]
Test14
Test15
Test16
Test17
Test18
Test19
-1
1
2
11
12
13
15
15
15
15
15
15
2001
2001
2001
2001
2001
2001
Mouth超出[1…12]
2001.1.16
2001.2.16
2001.11.16
2001.12.16
Mouth超出[1…12]

分类:

技术点:

相关文章:

  • 2021-10-16
  • 2022-01-07
  • 2022-12-23
  • 2021-11-17
  • 2021-11-17
  • 2022-02-03
  • 2021-11-17
猜你喜欢
  • 2021-11-05
  • 2021-11-23
  • 2021-10-19
  • 2022-12-23
  • 2021-11-17
  • 2021-11-17
  • 2021-08-08
相关资源
相似解决方案