Test2VA: Reusing GUI Test Cases for Voice Assistant Features Development in Mobile Applications

2024年07月25日
  • 简介
    智能手机中的语音助手(VA)现在已经成为数百万用户非常流行的功能。一个关键的趋势是自定义VA嵌入的兴起,使用户能够通过语音控制执行他们喜爱的应用程序的定制任务。然而,随着这种巨大需求,很少有人为VA开发支持应用程序开发人员。此外,许多面向用户的VA控制方法甚至会增加开发人员的编程负担。为了减少工作量并提高代码效率,本文提出了一种新的方法,Test2VA,它重用应用程序的测试代码来支持其VA开发。具体而言,Test2VA从GUI测试代码中提取任务完成模式,然后生成执行方法以在一般情况下执行相同的任务。为了识别模式,Test2VA使用基于变异的探索来检测测试用例中可变的GUI事件,然后将其参数化为VA方法。我们对八个真实应用程序的48个测试用例进行了评估。结果显示,Test2VA正确检测到了48个原始测试用例中75.68%的可变事件,然后生成了33个方法并成功执行并手动检查。
  • 图表
  • 解决问题
    Test2VA: Reusing GUI Test Code for Custom Voice Assistant Development
  • 关键思路
    Test2VA proposes to reuse GUI test code to support custom voice assistant development, by extracting task completion patterns and generating execution methods. A mutation-based exploration is used to detect mutable GUI events and parameterize them in the VA method.
  • 其它亮点
    The approach is evaluated on 48 test cases from 8 real-world applications, achieving a correct detection rate of 75.68% for mutable events and generating 33 methods that are successfully executed and manually examined. Test2VA reduces the workload and improves code efficiency for app developers in VA development.
  • 相关研究
    Related work includes studies on custom VA embedding, user-oriented VA control approaches, and GUI test code reuse in software engineering.
PDF
原文
点赞 收藏 评论 分享到Link

沙发等你来抢

去评论