用java实现的一个web_UI层自动化测试框架
一、框架图
二、框架说明
web自动化框架基于selenium2 webDriver。在此基础上进行封装扩展,分三层架构:object、task、case。
Object层:提取web页面的元素对象
Task层:业务处理。
Case层:测试用例过程。
三、支持的浏览器
1.Firefox
2.Chrome
3.IE
4.HtmlUnit
四、搭建环境
把lib下的selenium-server-standalone-2.45.0.jar和web_auto_api.jar导入项目的path:
其中web_auto_api.jar是对selenium2 webDriver的封装扩展,详情见我的github另一个项目:https://github.com/Zongrong/web_auto_api
五、编写自动