TestNG
文章平均质量分 64
max229max
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Webdriver take screen shot when case failed use TestNG
If you create a base test class with access to the driver, then that driver will always be the correct driver The following will achieve this; All test classes must extend a simple base test cla转载 2014-08-07 17:05:31 · 1114 阅读 · 0 评论 -
TestNg + ReprotNG Commandline
Selenium Grid Configuration 作者: Max.Bai 时间: 2014/07 Execute test cases by commandline for TestNG 1. Add reportng listener to Testng.xml a. ReportNG need add jars: reportng-*.jar, Velocity原创 2014-07-28 15:06:26 · 1228 阅读 · 0 评论 -
TestNG - xml include other suite xml file
Webdriver - Reset Safari 作者: Max.Bai 时间: 2015/01 TestNG - xml include other suite xml file We can create one xml to include other suite xml file and run it. How to include other xml file原创 2015-01-09 11:36:35 · 1127 阅读 · 0 评论 -
TestNG - Failed retry
TestNG - Failed retry TestNG - Failed retry 作者: Max.Bai 时间: 2015/01 TestNG 失败重跑功能 1. 创建自己的IRetryAnalyzer 重写retry 方法,获得xml设置的冲泡次数,判断失败次数小于重跑次数是返回true import org.testng.IRetryAnalyzer; import原创 2015-01-20 12:38:58 · 1934 阅读 · 0 评论 -
TestNG - 添加图片或者链接到测试报告
TestNG - 添加图片或者链接到测试报告 TestNG - 添加图片或者链接到测试报告 作者: Max.Bai 时间: 2015/01 为了测试报告添加更多的内容,有时候我们需要添加一些链接,或者图片进去,那么如何添加链接、图片到TestNG的测试报告中去那? //Link Reporter.log("Failed Screen Shot", true); //Img Re原创 2015-01-20 10:05:39 · 4044 阅读 · 2 评论 -
WebDriver - 失败截图
WebDriver - 添加失败截图 WebDriver - 添加失败截图 作者: Max.Bai 时间: 2015/01 WebDriver失败截图可以通过两种方式实现: 1. Use WebdriverEventListener 第一步:创建自己的WebDriverEventListener 创建自己的WebDriverEventListener 重写Onexcept原创 2015-01-20 10:47:34 · 1938 阅读 · 0 评论
分享