1、测试用例包括:
(1)测试输入(Test Input):测试数据
(2)测试预言(Test Oracle):预期输出
(3)其他设置:环境
2、Testing vs Debugging:
(1)测试:为了执行程序并测试失效,即测试和预期不一样的地方。
(2)调试:找出bug所在位置并进行修正。
3、Verification vs Validation:
(1)Validation:确认规格文档是否满足用户的需求,是用户最终想要的
(2)Verification:确认规格文档和最终的实现是否一致,测试就是这一类。
4、静态测试 vs 动态测试:
(1)Static Testing:不需要运行程序
(2)Dynamic Testing:需要运行程序
5、黑盒测试 vs 白盒测试:
(1)black-box Testing:不需要源代码
(2)white-box Testing:需要源代码
(3)gray-box Testing:通过其他软件制品或者反编译手段获得了部分软件结构信息进而进行测试。
【notice】白盒测试+黑盒测试≠灰盒测试
6、测试层次:(Testing Level)
(1)Unit testing:测试函数、方法等,最基本最小的测试单元
(2)Module testing:模块级的输入输出测试
(3)Integration testing:多个模块级组合起来的测试
(4)System testing:最后整个程序build的测试