摘要: testng 提高用例通过率,失败用例要重新运行一次 步骤: 1、新建一个Retry 类,implements IRetryAnalyzer接口,这个类里面确定重跑次数,以及分析每次失败是否需要重新运行 2、新建一个RetryListener类,implements IAnnotationTrans 阅读全文
posted @ 2016-11-30 15:55 testway 阅读(2115) 评论(0) 推荐(0) 编辑
摘要: java 多个listener 监听方法 在class 名称上一行添加@Listeners 括号中用逗号隔开 @Listeners({com.example.MyListener.class,com.example.MyMethodInterceptor.class})的注释也可以有同样效果 tes 阅读全文
posted @ 2016-11-30 15:37 testway 阅读(2794) 评论(0) 推荐(0) 编辑