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

计算机工程 ›› 2007, Vol. 33 ›› Issue (13): 96-98. doi: 10.3969/j.issn.1000-3428.2007.13.032

• 软件技术与数据库 • 上一篇    下一篇

基于XML的API自动化测试工具设计与实现

刘慕涛1,张 磊2,王 艳3,周晓中1,张红雷1,左 芸2   

  1. (1. 总参0526工程办公室,北京 100081;2. 华东计算技术研究所,上海 200233;3. 空军装备研究院总体论证研究所,北京 100076)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2007-07-05 发布日期:2007-07-05

Design and Implementation of Automatic API Test Tool Based on XML

LIU Mutao1, ZHANG Lei2, WANG Yan3, ZHOU Xiaozhong1, ZHANG Honglei1, ZUO Yun2   

  1. (1. 0526 Project Office, General Staff, Beijing 100081; 2. East China Research Institute of Computer Technology, Shanghai 200233; 3. Research Institute of General Demonstration and Evolvement of Airforce Equipment, Beijing 100076)
  • Received:1900-01-01 Revised:1900-01-01 Online:2007-07-05 Published:2007-07-05

摘要: :在研究应用编程接口(API)测试特点的基础上,运用软件测试技术与方法对API进行了正确性测试,设计了API自动化测试框架,采用XML语言进行API自动化测试工具的设计和实现方案。使用该工具可在API信息提取、测试用例生成及测试用例执行、测试报告生成等方面实现自动化。该工具主要用于验证第三方提供的API,由于单元测试中较多地使用了API测试,因此也可运用于软件的单元测试。

关键词: 应用编程接口测试, 软件测试驱动, 软件测试自动化

Abstract: Based on the research of API test, this paper uses software test technology to do API validity test, and designs the frame of automatic API test. It also gives the design and implementation scheme of automatic API test tool by using XML language and automation of API information pick-up, test case generation and test case implementation comes true with it. This tool is mainly used to verify the functions of third-party APIs and is adapted to software unit tests because of frequent use of API test in unit tests.

Key words: application program interface (API) test, drive of software test, automatization of software test

中图分类号: