首页> 外文会议>International Conference on Artificial Intelligence >Recovering and Analyzing Program Behaviors from Testing Traces
【24h】

Recovering and Analyzing Program Behaviors from Testing Traces

机译:从测试迹线恢复和分析程序行为

获取原文

摘要

Recovering the behavior of a class in Object Oriented programming usually consists in the instrumentation either of the source or the compiled code by means of additional instructions which leave a trace of its execution. This work describes a set of algorithms to recover the behavior of a class with no modifying neither its code nor its execution environment. The idea is to execute a complete set of test cases against the class, in such way that each test case leaves a trace of the state changes of the instance in an XML file. The completion of the test set is measured in terms of the reached coverage. Thus, since each test case represents a fragment of the behavior of the class and the test set is complete, the whole set of traces represents the complete behavior of the class. This paper describes two algorithms for this goal: the first algorithm consists on the definition of generic states for the class under study, where each state depends on the values of some observer operations. After executing each operation in a test case, the state of the instance is asked and saved in the tracing file, which is later recovered and analyses. The result is an automata that provides a detailed description of the class behavior. The second algorithm analyses the XML trace files in order to extract a minimum set of rules that can be used to represent the behavior using logic programming.
机译:在面向对象的编程中恢复类的行为通常由源或编译代码中的仪器组成,借助留下其执行的迹象。这项工作描述了一组算法,以恢复类的行为,没有修改其代码,也不是其执行环境。该想法是以每个测试用例在XML文件中执行XML文件中实例的状态更改的迹线,对类执行一组完整的测试用例。在达到的覆盖范围内测量测试集的完成。因此,由于每个测试用例表示类的行为和测试集完成的片段,因此整组迹线表示类的完整行为。本文介绍了两个目标的两个算法:第一个算法在于,在研究下的类的定义中,每个状态取决于某些观察者操作的值。在在测试用例中执行每个操作后,提出实例的状态并保存在跟踪文件中,稍后恢复并分析。结果是提供类行为的详细描述的自动机。第二种算法分析了XML跟踪文件,以便提取最小规则集,该规则可以用于表示使用逻辑编程的行为。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号