Java Code Examples for org.testng.ITestNGMethod#getCurrentInvocationCount()
The following examples show how to use
org.testng.ITestNGMethod#getCurrentInvocationCount() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SeleniumTestHandler.java From che with Eclipse Public License 2.0 | 5 votes |
private String getStartingTestLabel(ITestNGMethod test) { String invocationLabel = ""; if (test.getCurrentInvocationCount() > 0) { invocationLabel = format(" (run %d)", test.getCurrentInvocationCount() + 1); } return getTestLabel(test, invocationLabel); }
Example 2
Source File: SeleniumTestHandler.java From che with Eclipse Public License 2.0 | 5 votes |
private String getCompletedTestLabel(ITestNGMethod test) { String invocationLabel = ""; if (test.getCurrentInvocationCount() > 1) { invocationLabel = format(" (run %d)", test.getCurrentInvocationCount()); } return getTestLabel(test, invocationLabel); }