arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2109.11950cs.SE
收藏

面向上下文程序的测试场景生成

Test Scenario Generation for Context-Oriented Programs

Pierre Martou, Kim Mens, Benoît Duhoux, Axel Legay

摘要:

它们的高度适应性和可能配置的组合爆炸使得测试面向上下文的程序变得困难。我们提出了一种方法来自动生成测试场景的开发人员的功能为基础的面向上下文的程序。通过使用组合交互测试,我们生成一个覆盖数组,从其中可以推断出一个小的,但有代表性的测试场景集。通过利用这种面向上下文的程序中上下文和功能的明确分离,我们可以进一步重新排列生成的测试场景,以最大限度地减少后续场景之间的重新配置成本。最后,我们将探讨如何在系统发展到新版本时,逐步适应先前生成的测试套件。通过在一个小的用例上验证这些算法,我们的初步结果表明,所提出的测试生成方法是有效的,有利于开发人员测试和改进面向上下文的程序的设计。

英文摘要:

Their highly adaptive nature and the combinatorial explosion of possible configurations makes testing context-oriented programs hard. We propose a methodology to automate the generation of test scenarios for developers of feature-based context-oriented programs. By using combinatorial interaction testing we generate a covering array from which a small but representative set of test scenarios can be inferred. By taking advantage of the explicit separation of contexts and features in such context-oriented programs, we can further rearrange the generated test scenarios to minimise the reconfiguration cost between subsequent scenarios. Finally, we explore how a previously generated test suite can be adapted incrementally when the system evolves to a new version. By validating these algorithms on a small use case, our initial results show that the proposed test generation approach is efficient and beneficial to developers to test and improve the design of context-oriented programs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑