北京邮电大学学报

  • EI核心期刊

北京邮电大学学报 ›› 1999, Vol. 22 ›› Issue (3): 55-59.

• 研究报告 • 上一篇    下一篇

通信软件的测试与可测性设计

罗红   

  1. 北京邮电大学计算机科学与技术学院, 北京 100876
  • 收稿日期:1998-12-17 出版日期:1999-07-10

Testing and Design-for-Testability about Communication Software

Luo Hong   

  1. School of Computer Science and Technology , Beijing University of Posts andTelecommunications, Beijing 100876
  • Received:1998-12-17 Online:1999-07-10

摘要: 为解决通信软件开发过程中测试难度大等问题, 提出了软件可测性设计的概念, 并讨论了通信协议软件的一些可测性设计方法.包括在各层的业务接入点设立控制点, 并加入独立的测试序列导入机制, 以便对系统的运行加以控制; 在业务接入点和状态转移点等处设立观察点, 并以简单的输出语句作为观察装置, 以便观察系统的运行情况; 通过简单的测试开关, 让开发者自由测试所关心的软件部分.这些方法简单易行, 附加软件少, 不影响原系统的正常工作, 但大大提高了软件的易测试性.

关键词: 软件测试, 可测性设计, 测试点, 测试装置

Abstract: Software DFT (design-for-testability) is introduced as a new concept for solving problems in protocol developing course and testing course. Some DFT methods about communication software are discussed then. Setcontrol points on SAP (service access point) and add independent test-sequenceintroducer for controlling the system's movement. Set observation points on SAP and use simple output statements as observation apparatus for observing the system'smovement. Use test switches for testing any parts of software that you care about. These methods are very simple. Additional software caused by DFT is very little and doesn't affect the system's normal movement, but they can improve the software testability greatly.

Key words: software testing, design-for-testability, test points, test apparatus

中图分类号: