📅  最后修改于: 2020-12-04 05:59:24             🧑  作者: Mango
较低层次的每个组件都将单独测试,然后再测试依赖于这些组件的组件。
自下而上方法的集成顺序为:
4,2
5,2
6,3
7,3
2,1
3,1
+ Firstly, Test 4,5,6,7 individually using drivers.
+ Test 2 such that it calls 4 and 5 separately. If an error occurs we know that the problem is in one of the modules.
+ Test 1 such that it calls 3 and If an error occurs we know that the problem is in 3 or in the interface between 1 and 3
尽管顶级组件是最重要的,但最后使用此策略进行了测试。在自下而上的方法中,在测试组件4,5,6,7时,组件2和3被驱动程序代替。它们通常比存根更复杂。