作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程

• 体系结构与软件技术 • 上一篇    下一篇

TTCN-3语言中基于过程通信的编译器实现

蒋凡,范秀萍   

  1. (中国科学技术大学 计算机科学与技术学院,合肥 230027)
  • 收稿日期:2015-05-12 出版日期:2016-08-15 发布日期:2016-08-15
  • 作者简介:蒋凡(1956-),男,教授,主研方向为软件测试、信息安全;范秀萍,硕士研究生。

Implementation of Compiler for Procedurebased Communication in TTCN-3 Language

JIANG Fan,FAN Xiuping   

  1. (School of Computer Science and Technology,University of Science and Technology of China,Hefei 230027,China)
  • Received:2015-05-12 Online:2016-08-15 Published:2016-08-15

摘要: TTCN-3是国际标准测试语言,支持基于消息通信和基于过程通信2种通信方式。为满足分布式系统和云应用平台中对远程过程调用的测试需求,提出一种基于过程通信的高效编译器设计方案,采用模块化思想,实现从TTCN-3语言到C++语言的自动化翻译,同时简化后期的执行器设计。实验结果表明,该方案可减少后期执行过程对平台的依赖性,并且翻译后的C++代码与TTCN-3代码相似,提高了代码的可维护性。

关键词: TTCN-3语言, 测试系统, 基于过程通信, 自动化编译器, 编译模块

Abstract: Testing and Test Control Notation Version 3(TTCN-3) is an international standardized test specification language.It supports both messagebased communication method and procedurebased one.To meet the test requirement of remote procedure call in distributed systems and cloud application platforms,an efficient compiler design scheme for procedurebased communication is proposed.It uses the modular idea to realize the automatic translation from the TTCN-3 language to the C++ language and simplifies the design of actuator in the later phase.Experimental results show that this scheme can not only reduce the dependence of the execution process on the platform in later phases,but also improve the maintainability of the code due to the similarity between the compiled C++ code and the TTCN-3 code.

Key words: Testing and Test Control Notation Version 3(TTCN-3) language, test system, procedurebased communication, automated compiler, compile module

中图分类号: