期刊文献+

基于GCL语言的测试用例生成方法 被引量:1

The Method of Test Case Generation Based on GCL Language
下载PDF
导出
摘要 提出一种基于GCL语言生成程序测试用例的形式化方法.程序的语义为测试用例的生成提供了基本框架,而由Hoare等人提供的规则保证了用例的正确性.作者的这种方法可被认为是一种严格的,自动生成测试用例的方法.这种方法的优点在于:所获得的测试用例都是可行的,在测试用例生成过程中可以避免状态爆炸问题,而且该方法可以延拓到任何目标语言.据此开发了一个基于Haskell语言的原型工具来支持作者的方法. A formal method is presented to generate test cases for programs written in Guarded- Command-Language (GCL). The laws provided by Hoare et al. guarantee the correctness of the test cases. Semantics of the language provides the framework for the test case generation. Our method may be considered as a rigorous and automatic approach to the test case generation. From this method, we can get at least the following benefits: all the test cases are feasible, the state explosion problem can be avoided in the test case generation process, and this method can be extended to any target languages. A prototype tool written in Haskell has been built to support our method.
出处 《计算机学报》 EI CSCD 北大核心 2014年第12期2492-2504,共13页 Chinese Journal of Computers
基金 国家自然科学基金(61170015,61210004)资助
关键词 测试用例 Guarded—Command—Language 执行树 条件计算 软件测试 test case Guarded-Command-Language execution tree condition calculation softwaretesting
  • 相关文献

参考文献35

  • 1Bertolino A, Marr6 M. Automatic generation of path covers based on the control flow analysis of computer programs. IEEE Transactions on Software Engineering, 1994, 20(12): 885-899.
  • 2Clarke E M, Grumberg (9, Peled D A. Model Checking. Cambridge, MA: MIT Press, 1999.
  • 3Clarke L A. A system to generate test data and symbolically execute programs. IEEE Transactions on Software Engineering, 1976, SE-2(3): 215-222.
  • 4Taylor R N, Levine D L, Kelly C D. Structural testing of concurrent programs. IEEE Transactions on Software Engineering, 1992, 18(3) : 206-215.
  • 5Tretmans G J, Belinfante A F E. Automatic testing with formal methods. Center for Telematics and Information Technology, University of Twente, Enschede: Technical Report TR CTIT-99-17, 1999.
  • 6Ribeiro J. Search-based test case generation for object-oriented java software using strongly-typed genetic programming// Proceedings of the Genetic and Evolutionary Computation Conference(GECCO'08). Atlanta, USA, 2008:1819-1822.
  • 7Huang S, Cohen M B, Memon A M. Repairing GUI test suites using a genetic algorithm//Proceedings of the International Conference Software Testing, Verification and Validation (ICST). Washington DC, USA, 2010:245-254.
  • 8Dijkstra E W. Guarded commands, non-determinacy and formal derivation of programs. Communications of the ACM, 1975, 18(8): 453-457.
  • 9Hoare C A R. Communicating sequential processes. Commu- nications of the ACM, 1978, 21(8) : 666-667.
  • 10Balahan I J. An optimal algorithm for finding segment intersections//Proceedings of the 11th Annual ACM Symposium on Computational Geometry. New York, USA, 1995:211-219.

二级参考文献30

共引文献213

同被引文献9

引证文献1

二级引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部