计算机与现代化

• 软件工程 • 上一篇    下一篇

TTCN-3测试系统中模板匹配机制的一种实现方法

  

  1. (1.内蒙古建筑职业技术学院公共课教学部,内蒙古呼和浩特010050;
    2.内蒙古大学计算机学院,内蒙古呼和浩特010021)
  • 收稿日期:2014-10-11 出版日期:2015-01-19 发布日期:2015-01-21
  • 作者简介:郑冰(1982-),女,内蒙古呼和浩特人,内蒙古建筑职业技术学院公共课教学部讲师,硕士,研究方向:计算机软件测试,计算机教育; 叶新铭(1943-),男,内蒙古呼和浩特人,教授,博士生导师,研究方向:计算机网络和分布式系统工程,形式描述技术,测试方法和工具。
  • 基金资助:
    内蒙古自然科学基金重点项目(20080404ZD20); 中欧联合基金资助项目“GO4IT”

A Method for Implementing Template Matching Mechanism in TTCN-3 Test System

  1. (1. Department of Public Courses Teaching, Inner Mongolia Technical College of Construction, Hohhot 010050, China; 
    2. College of Computer Science, Inner Mongolia University, Hohhot 010021, China)
  • Received:2014-10-11 Online:2015-01-19 Published:2015-01-21

摘要: TTCN-3拥有一个功能强大且易于掌握的模板匹配机制。本文提出一种TTCN-3测试系统开发过程中模板匹配机制通用的、开放的实现方案。通过对模板匹配功能在TTCN-3测试系统中的作用进行深入分析,采用面向对象的程序设计语言C++实现TTCN-3测试系统中带有匹配机制的模板表示和模板匹配操作,并给出一个对于DNS协议实现功能测试的抽象测试套的翻译方案验证本文设计的合理性。

关键词: TTCN-3, 测试系统, 模板, 模板匹配机制

Abstract:  TTCN-3 had a powerful template matching mechanism which is easy to master. A generic and open solution to implementation of template matching mechanism in the TTCN-3 test system was presented. The role of the template matching in the TTCN-3 test system was analyzed. Template matching mechanism representation and template matching operations in TTCN-3 test system were implemented using objectoriented programming language C++. As an example, an ATS for functional test of the DNS protocol was given to verify the rationality of the design.

Key words: TTCN-3, test system, template, template matching mechanism

中图分类号: