Computer Engineering and Applications ›› 2010, Vol. 46 ›› Issue (31): 5-9.DOI: 10.3778/j.issn.1002-8331.2010.31.002

• 博士论坛 • Previous Articles     Next Articles

Automatic test framework for embedded devices using Java ME test agent

ZHANG Xiao-guo,WANG Qing,GONG Fu-xiang,LI Chuan-jun   

  1. School of Instrument Science and Engineering,Southeast University,Nanjing 210096,China
  • Received:2010-06-04 Revised:2010-09-25 Online:2010-11-01 Published:2010-11-01
  • Contact: ZHANG Xiao-guo

采用Java ME测试Agent的嵌入式设备自动测试框架

张小国,王 庆,龚福祥,李传君   

  1. 东南大学 仪器科学与工程学院,南京 210096
  • 通讯作者: 张小国

Abstract: A novel lightweight solution to make manual tests run in an automation style with remote http control interface for embedded devices is proposed in this paper.By extending Java ME API,we enable Java ME MIDlets the ability to intercept and simulate user key inputs.Via a HTTP service in certain port,according to configuration files and control commands from remote web browsers,a Java ME agent works in different mode: learning mode or testing mode.In the learning mode,the agent creates test scripts according to user inputs;and in the testing mode,the agent simulates user inputs to run tests according to test script.Finally,tests are done to evaluate the solution.The given automatic test solution can save test efforts and increase software productivities.

Key words: test automation, embedded device, remote control, irtual machine, agent, HTTP protocol

摘要: 提出了一个将手工测试转换为自动测试的轻量级框架。经过扩展Java ME API,Java ME程序(MIDlets)具备拦截和模拟用户输入能力。Java ME测试Agent建立HTTP服务,根据配置文件或Web浏览器控制命令决定工作方式:学习模式或测试模式。在学习方式,Agent根据用户输入生成测试脚本;在测试模式,Agent利用测试脚本模拟测试。在GPS/PDA上实现了测试框架并用实验验证。该解决方案用模拟自动测试代替手工费时费力交互手工测试,提高了测试效率。

关键词: 测试自动化, 嵌入式设备, 远程控制, 虚拟机, 代理程序, 超文本传输协议

CLC Number: