org.testng.ITestNGMethod#getCurrentInvocationCount ( )源码实例Demo

下面列出了org.testng.ITestNGMethod#getCurrentInvocationCount ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: che   文件: SeleniumTestHandler.java
private String getStartingTestLabel(ITestNGMethod test) {
  String invocationLabel = "";
  if (test.getCurrentInvocationCount() > 0) {
    invocationLabel = format(" (run %d)", test.getCurrentInvocationCount() + 1);
  }

  return getTestLabel(test, invocationLabel);
}
 
源代码2 项目: che   文件: SeleniumTestHandler.java
private String getCompletedTestLabel(ITestNGMethod test) {
  String invocationLabel = "";
  if (test.getCurrentInvocationCount() > 1) {
    invocationLabel = format(" (run %d)", test.getCurrentInvocationCount());
  }

  return getTestLabel(test, invocationLabel);
}