【24h】

Generating Timed UI Tests from Counterexamples

机译:从Conterexamples生成定时UI测试

获取原文
获取外文期刊封面目录资料

摘要

One of the largest communities on learning programming and sharing code is built around the Scratch programming language, which fosters visual and block-based programming. An essential requirement for building learning environments that support learners and educators is automated program analysis. Although the code written by learners is often simple, analyzing this code to show its correctness or to provide support is challenging, since Scratch programs are graphical, game-like programs that are controlled by the user using mouse and keyboard. While model checking offers an effective means to analyze such programs, the output of a model checker is difficult to interpret for users, in particular for novices. In this work, we introduce the notion of Scratch error witnesses that help to explain the presence of a specification violation. Scratch error witnesses describe sequences of timed inputs to Scratch programs leading to a program state that violates the specification. We present an approach for automatically extracting error witnesses from counterexamples produced by a model checking procedure. The resulting error witnesses can be exchanged with a testing framework, where they can be automatically re-played in order to reproduce the specification violations. Error witnesses can not only aid the user in understanding the misbehavior of a program, but can also enable the interaction between different verification tools, and therefore open up new possibilities for the combination of static and dynamic analysis.
机译:学习编程和共享代码上的最大社区之一是在划痕编程语言周围构建的,这些语言涉及基于视觉和基于块的编程。建立支持学习者和教育工作者的学习环境的基本要求是自动化计划分析。虽然学习者编写的代码往往很简单,但分析此代码以显示其正确性或提供支持挑战性,因为划痕程序是使用鼠标和键盘控制的图形,类似的游戏类似程序。虽然模型检查提供了分析这些程序的有效手段,但模型检查器的输出难以解释用户,特别是新手。在这项工作中,我们介绍了有助于解释规范违规的存在的临时错误证人的概念。临时错误证人描述了定时输入的序列,以便划痕程序导致违反规范的程序状态。我们提出了一种方法,用于自动提取由模型检查过程产生的对位分裂的错误证人。由此产生的错误证人可以用测试框架交换,可以自动重新播放它们以重现规范违规。错误证人不仅可以帮助用户了解程序的不端行为,而且还可以启用不同验证工具之间的交互,因此开辟了静态和动态分析的结合的新可能性。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号