摘要
为解决嵌入式软件GUI测试自动化控制问题,提出Python测试脚本扩展嵌入的方法,采用开源库Boost.Python将Python解析器嵌入GUI自动化测试平台软件中,并为GUI软件测试行为扩展了测试函数,建立了用例要素与脚本要素的对应关系,针对不同类型的扩展测试函数提出了基于关键字索引和图像建模的脚本函数自动生成方法,并且从脚步的解析与调度两方面分析了Python测试脚本的驱动执行原理,使嵌入式软件GUI自动化测试平台支持Python脚本的创建并通过脚本的执行实现GUI软件自动化测试,并且提高了测试控制的易用性和灵活性。
For the problem of embedded software GUI automatic test control, this paper studied the extension and embedding technology of Python's test scripts , extended the test function for GUI testing behavior and embedded the Python interpreter on GUI test automation systems using the open source libraries "Boost. Python". Besides, we described the correspondence between the extended test function and the test behavior and for different types of extension test function, we proposed automatic generation solution by keyword index and image modeling. Finally, we explained how to schedule and execute Python scripts. Based on the above, the GUI test platform can execute GUI test automatically and the test control is easy and flexible.
出处
《计算机测量与控制》
2015年第10期3330-3332,3337,共4页
Computer Measurement &Control