首页    期刊浏览 2024年09月21日 星期六
登录注册

文章基本信息

  • 标题:TESTAF: A Test Automation Framework for Class Testing using Object-Oriented Formal Specifications
  • 本地全文:下载
  • 作者:A. Nadeem ; M. Jaffar-ur-Rehman
  • 期刊名称:Journal of Universal Computer Science
  • 印刷版ISSN:0948-6968
  • 出版年度:2005
  • 卷号:11
  • 期号:6
  • 页码:962-962
  • 出版社:Graz University of Technology and Know-Center
  • 摘要:In this paper, we present a novel framework TESTAF to support automatic generation and execution of test cases using object-oriented formal specifications. We use IFAD VDM++ as the specification language, but the ideas presented can be applied equally well to other object-oriented formal notations. The TESTAF framework requires a VDM++ specification for a class, a corresponding implementation in C++, and a test specification, to generate and execute test cases, and evaluate the results. The test specification defines valid test sequences in an intermediate specification language based on regular expressions. The framework uses the formal specification of the class, and the test specification to generate empty test shells, which are then filled in with the test data to create concrete test cases. The test data for a method are generated from the input space defined by the method pre condition and the class invariant. The TESTAF applies boundary value analysis strategy to generate the test data. A test driver then executes the implementation with the test data, and uses a conjunction of method post condition and the class invariant as a test oracle to evaluate the results, while reporting failed test cases to the user.
  • 关键词:automated testing, formal specification, object-oriented software
国家哲学社会科学文献中心版权所有