IntegrationDistiller:面向对象应用程序的自动集成分析和测试
IntegrationDistiller: Automating Integration Analysis and Testing of Object-Oriented Applications
摘要:
软件系统通常由各种相互作用的组件和单元组成。虽然这些组件可以单独进行测试并显示其正确工作,但当它们集成并开始相互交互时,它们可能无法产生所需的行为和结果。集成测试在揭示协作组件之间的交互问题方面起着重要的作用。然而,在执行集成测试时,识别不同的交互场景并不是一项简单的任务。另一方面,文献中提出的大多数集成测试解决方案是手动的,这阻碍了它们在大型工业系统中的可扩展性和适用性。在本文中,我们将介绍IntegrationDistiller作为一种自动化解决方案和工具,用于识别集成场景并为.NET应用程序生成测试用例(以方法调用序列的形式)。它通过分析代码并自动识别类耦合、交互方法以及调用点来工作。此外,该工具还通过在调用点自动插入代码,帮助和支持测试人员识别集成级别的时序问题。IntegrationDistiller的代码分析引擎是使用.NET编译器平台Roslyn构建和自动化的。因此,这项工作是第一次利用Roslyn功能的自动集成分析和集成测试用例生成。这项工作是我们与瑞典韦斯特罗斯ABB工业自动化控制技术(IACT)合作的一部分,旨在解决ABB Ability 800xA分布式控制系统软件部分的集成测试挑战。
英文摘要:
Software systems typically consist of various interacting components and units. While these components can be tested and shown to work correctly in isolation, when integrated and start interacting with each other, they may fail to produce the desired behaviors and results. Integration testing plays an important role in revealing issues in interactions among cooperating components. Identifying different interaction scenarios, however, is not a trivial task when performing integration testing. On the other hand, most of the integration testing solutions proposed in the literature are manual which hinders their scalability and applicability when it comes to large industrial systems. In this paper we introduce IntegrationDistiller as an automated solution and tool to identify integration scenarios and generate test cases (in the form of method call sequences) for .NET applications. It works by analyzing the code and automatically identifying class couplings, interacting methods, as well as invocation points. Moreover, the tool also helps and supports testers in identifying timing issues at integration level by automatic code instrumentation at invocation points. The code analysis engine of IntegrationDistiller is built and automated using .NET compiler platform, known as Roslyn. Hence, this work is the first in utilizing Roslyn features for automatic integration analysis and integration test case generation. This work has been done as part of our collaboration with ABB Industrial Automation Control Technologies (IACT) in Västerås-Sweden to address the integration testing challenges of the software part of the ABB Ability 800xA distributed control systems.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。