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

综合终端用户测试:基于行为实例的真实代理建模

Synthetic End-User Testing: Modeling Realistic Agents Based on Behavioral Examples

Pasquale Salza, Marco Edoardo Palma, Harald C. Gall

摘要:

对于直接与真实世界的最终用户交互的软件,通常的做法是编写脚本来验证系统是否符合其许多特性。然而,这些并不适应系统需要在活动实例中响应的最终用户活动类型的复制。尤其是在与外部事件或流程(如其他用户)交互的场景中,合规性也可能中断。最先进的方法旨在通过生成最大化某些目标度量(如代码覆盖率)的测试来诱导软件进入运行时错误。因此,它们的目标是无限大的搜索空间,在识别不会导致运行时错误的错误状态方面受到严重限制,并且它们生成的测试用例通常难以解释。其他形式的测试,如记录-重放,反而无法捕捉最终用户的决策过程,因此产生了大量脚本化的测试场景。因此,不可能测试软件是否符合未知但看似合理的状态。本文介绍了“综合最终用户测试”,一种新的测试策略,复杂的系统中,真实世界的用户合成到可重用的代理,并在仿真环境中测试和验证的软件。因此,它讨论了如何最终用户的行为的例子,可以获得和用于创建代理操作的目标软件在一个减少的搜索空间可能的动作序列。动作期望的概念,它允许代理断言系统的学习遵守,也被引入。最后,一个原型断言这样的策略的可行性。

英文摘要:

For software interacting directly with real-world end-users, it is common practice to script scenario tests validating the system's compliance with a number of its features. However, these do not accommodate the replication of the type of end-user activity to which the system is required to respond in a live instance. It is especially true as compliance might also break in scenarios of interactions with external events or processes, such as other users. State-of-the-art approaches aim at inducing the software into runtime errors by generating tests that maximize some target metrics, such as code coverage. As a result, they suffer from targeting an infinitely large search space, are severely limited in recognizing error states that do not result in runtime errors, and the test cases they generate are often challenging to interpret. Other forms of testing, such as Record-Replay, instead fail to capture the end-users' decision-making process, hence producing largely scripted test scenarios. Therefore, it is impossible to test a software's compliance with unknown but otherwise plausible states. This paper introduces "Synthetic End-User Testing," a novel testing strategy for complex systems in which real-world users are synthesized into reusable agents and employed to test and validate the software in a simulation environment. Hence, it discusses how end-user behavioral examples can be obtained and used to create agents that operate the target software in a reduced search space of likely action sequences. The notion of action expectation, which allows agents to assert the learned compliance of the system, is also introduced. Finally, a prototype asserting the feasibility of such a strategy is presented.

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

↑