程序说明

2016-10-17  本文已影响0人  只想注册成功

输入数据

1.在文本框输入想要添加的数据,数据格式为

yyyy-MM-dd HH:mm~HH:mm number

依次解释:

yyyy-MM-dd: 为活动的日期.
HH:mm~HH:mm: 为活动的具体时间.
number: 为参加活动的人数.

2.录入数据
当输入完数据后点击submit按钮进行提交

显示结果

点击按钮后结果将在网页中显示

单元测试

1.测试空值

文本框输入空值,点击提交,程序弹出对话框,显示"Please input the data."
2.测试错误格式数据
填写非正式的数据格式,比如填写aaaaaaaa,点击提交,显示,"Please make sure the format of the data."
填写时间格式错误数据,比如填写2016-06-32 20:00~22:00 7,点击提交,显示,"Please make sure the format of the data."
3.测试与问题不符的数据
填写时间跨度不符数据,比如填写2016-06-30 10:00~22:00 7,点击提交,显示,"Please check your input of time."
填写时间起始和终止与题不符的数据,比如填写2016-06-30 08:00~10:00 7,点击提交,显示,"Please check your input of time."
4.填写正确的数据,比如填写2016-06-07 15:00~17:00 12,点击提交,显示出想要的结果:


11.PNG
上一篇 下一篇

猜你喜欢

热点阅读