testng+ant+jenkins持续集成UI自动化
一、环境搭建
1. 安装testNG插件到eclipse.
-) 选择菜单 Help /Software updates / Find and Install.
-) 点击add button然后在location中输入http://beust.com/eclipse/
-) 确定后会自动安装testNG插件。
二.包的引入 WebDriver包:selenium-server-standalone.jar
testng 包: testng-6.8.jar
reportng包:reporting.jar,velocity-dep.jar
ant包:ant-contrib.jar
三、新建一个testNG工程:(手动创建lib文件夹,需要把以上三个JAR包放在lib下面)
创建类和方法:
ant build.xml文件内容:
JENKINS引入SVN下载工程包,编译运行:
SVN配置:
![](http://images2015.cnblogs.com/blog/816853/201611/816853-20161104112845361-224894314.png)
ANT配置:
![](http://images2015.cnblogs.com/blog/816853/201611/816853-20161104112913033-1089837005.png)
报告输出:
(JENKINS安装TESTNG report 插件) jenkins console执行报告输出,基本上到这一步就成功了。
![](http://images2015.cnblogs.com/blog/816853/201611/816853-20161104113451455-1967450719.png)
再看TESTNG插件生成的TESTNG报告:
![](http://images2015.cnblogs.com/blog/816853/201611/816853-20161104113218971-618336380.png)
最新文章
- oracle plsql 无法连接 报 ORA-12560: TNS:protocol adapter error
- php-简单对称加密算法和字符串与十六进制之间的互转函数
- Azure Virtual Machine 之 如何利用Management Class Libraries 创建VM
- 【转载】MySQL启多个实例
- python——代码编码格式转换
- SVN服务端启动解决方案(2013-12-10 记)
- 操作符重载.xml
- C语言的可变参数
- 一步步搭建最简单oauth2.0认证和授权
- UESTC 1599 wtmsb【优先队列+排序】
- XGBoost模型的参数调优
- python爬取京东价格
- IOC容器特性注入第六篇:利用MVC注入点,把容器启动
- POJ1659 Frogs' Neighborhood(青蛙的邻居) Havel-Hakimi定理
- Codeforces 834D - The Bakery(dp+线段树)
- ArcGIS 复制要素
- .net core 2.2 部署CentOS7(2)给虚拟机安装CentOS7
- SEDA架构程序实现
- @slf4j注解找不到 log 变量
- [SCOI2010]传送带 三分法
热门文章
- 【JZOJ4810】【NOIP2016提高A组五校联考1】道路规划
- JavaScript--轮播图_带计时器
- shell日常使用整理
- SaaS加速器II 能力中心:互利互补 共享商业红利
- POJ-3186_Treats for the Cows
- js获取屏幕相关值
- MySQL性能分析, mysql explain执行计划详解
- @codeforces - 913F@ Strongly Connected Tournament
- @雅礼集训01/13 - T1@ union
- Android教程 -04 启动其它Activity,静态工厂设计模式传递数据