计算机应用 ›› 2013, Vol. 33 ›› Issue (01): 258-261.DOI: 10.3724/SP.J.1087.2013.00258

• 计算机软件技术 • 上一篇    下一篇

基于SilkTest和XML的通用高效的用户界面测试方法

何浩1,程春玲1,张征宇2,张登银1   

  1. 1. 南京邮电大学 计算机学院, 南京 210003
    2. Autodesk软件有限公司 中国研究院, 上海 200122
  • 收稿日期:2012-07-30 修回日期:2012-09-05 出版日期:2013-01-01 发布日期:2013-01-09
  • 通讯作者: 何浩
  • 作者简介:何浩(1987-),男,河南洛阳人,硕士研究生,主要研究方向:通信数据的抽取和存储;程春玲(1972-),女,陕西西安人,副教授,博士研究生,主要研究方向:信息安全、数据挖掘;张征宇(1984-),男,浙江杭州人,高级工程师,硕士,主要研究方向:软件测试工具;张登银(1964-),男,江苏靖江人,研究员,博士,主要研究方向:信号与信息处理、IP网络、服务质量与信息安全。
  • 基金资助:

    江苏省研究生科研创新计划项目(CXZZ12_0483);瑞典-亚洲国际合作项目(348-2008-6212);国家自然科学基金资助项目(51169007);国家863计划项目(2009AA701202);江苏省重大科技支撑计划项目(BE2009063);留学回国人员项目(NJ209002)

Efficient and universal testing method of user interface based on SilkTest and XML

HE Hao1,CHENG Chunling1,ZHANG Zhengyu2,ZHANG Dengyin1   

  1. 1. College of Computer Science and Technology, Nanjing University of Posts and Telecommunications, Nanjing Jiangsu 210003, China
    2. China Research Institute, Autodesk Software Company Limited, Shanghai 200122, China
  • Received:2012-07-30 Revised:2012-09-05 Online:2013-01-01 Published:2013-01-09
  • Contact: HE Hao

摘要: 在软件测试中,用户界面(UI)测试是保证软件质量、提高软件可靠性的不可或缺的一部分。针对句柄识别UI的测试方法缺乏稳定性和通用性,通过引入可扩展标记语言(XML),提出了一种基于XML对UI控件识别并测试的改进方法。利用XML处理数据便捷的特点,结合自动化测试工具SilkTest,对传统UI测试进行了改进。并且根据所提方法,针对AutoCAD产品多语言多版本的特点,设计了对其系列产品对话框的自动化测试方案。实验结果表明,改进后的方法能够缩短控件的识别时间,减少了测试脚本的冗余量,提高了测试的效率,也提高了UI识别的稳定性。

关键词: 软件测试, 自动化, 用户界面测试, SilkTest工具, 可扩展标记语言

Abstract: In software testing, User Interface (UI) testing plays an important role to ensure software quality and reliability. Concerning the lack of stability and generality in the UI testing method for handle recognition, an improved method of recognizing and testing UI controls based on Extensible Markup Language (XML) was proposed through the introduction of XML. The method used the features of XML which processed data conveniently and combined the automation testing tool SilkTest to improve the traditional UI testing. Concerning the features of multi-language and multi-version in AutoCAD, the automation testing scheme was designed on the basis of the proposed method to test dialog box in a series of AutoCAD products. The experimental results show that the improved method reduces recognition time of the controls and the redundancy of the program. Also it improves the efficiency of the testing and the stability of UI controls recognition.

Key words: software testing, automation, User Interface(UI)testing, SilkTest tool, Extensible Markup Language (XML)

中图分类号: