Integration testing is a very important step in software testing. Existing methods evaluate the stubbing cost for class integration test orders by considering only the interclass direct relationships such as inheritance, aggregation, and association, but they omit the interclass indirect relationship caused by control coupling, which can also affect the test orders and the stubbing cost. In this paper, we introduce an integration test order strategy to consider control coupling. We advance the concept of transitive relationship to describe this kind of interclass dependency and propose a new measurement method to estimate the complexity of control coupling, which is the complexity of stubs created for a transitive relationship. We evaluate our integration test order strategy on 10 programs on various scales. The results show that considering the transitive relationship when generating class integration test orders can significantly reduce the stubbing cost for most programs and that our integration test order strategy obtains satisfactory results more quickly than other methods.
翻译:整合测试是软件测试中非常重要的一步。 现有的方法通过只考虑阶级间直接关系,如继承、合并和关联等,来评估分类整合测试单的抽查成本,但是它们忽略了控制合并引起的阶级间间接关系,这也会影响测试订单和抽查成本。 在本文中,我们引入了整合测试订单战略,以考虑控制合并。 我们推进了过渡关系概念,以描述这种类别间依赖关系,并提出了新的衡量方法,以估计控制合并的复杂性,即为过渡性关系创建的支管的复杂性。我们评估了我们在不同规模的10个程序上的整合测试订单战略。结果显示,在产生集体整合测试订单时考虑过渡关系可以大大降低大多数程序的抽查成本,我们的整合测试订单战略比其他方法更快地获得令人满意的结果。