Keyword driven as the core technique of robofframework, which made it has good independence and scalability. The paper first analyzed the architecture of robotframework, also included Selenium RC testing tools integration. Finally, we applied it on web application, and we realized test case written, test script generated, log and output files reported. It is proved that robofframework is easy to use, compatible with mainstream browsers. It provides a general solution for web application and partly guides software test automation in the future.%机器人框架(robotframework)采用关键字驱动技术作为其核心,使得该框架具有良好的独立性及可扩展性。文章首先对机器人测试框架内部架构进行分析研究、Selenium RC等测试工具集成,然后,实现了测试用例编写、脚本生成以及报告、日志的输出等,最后基于该框架对Web登陆功能进行了测试。结果证明关键字驱动测试的机器人框架简单易用,兼容各种主流浏览器,为Web应用的功能测试提供了一个通用的解决方案。
展开▼