Package org.testng.internal
Class ExitCode
- java.lang.Object
-
- org.testng.internal.ExitCode
-
public class ExitCode extends java.lang.Object|--------------------|---------|-------|------------|------------------------------------------| | FailedWithinSuccess| Skipped | Failed| Status Code| Remarks | |--------------------|---------|-------|------------|------------------------------------------| | 0 | 0 | 0 | 0 | Passed tests | | 0 | 0 | 1 | 1 | Failed tests | | 0 | 1 | 0 | 2 | Skipped tests | | 0 | 1 | 1 | 3 | Skipped/Failed tests | | 1 | 0 | 0 | 4 | FailedWithinSuccess tests | | 1 | 0 | 1 | 5 | FailedWithinSuccess/Failed tests | | 1 | 1 | 0 | 6 | FailedWithinSuccess/Skipped tests | | 1 | 1 | 1 | 7 | FailedWithinSuccess/Skipped/Failed tests | |--------------------|---------|-------|------------|------------------------------------------|
-
-
Field Summary
Fields Modifier and Type Field Description static intFAILEDstatic intHAS_NO_TESTstatic intSKIPPED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetExitCode()booleanhasFailure()static booleanhasFailure(int returnCode)booleanhasFailureWithinSuccessPercentage()static booleanhasFailureWithinSuccessPercentage(int returnCode)booleanhasSkip()static booleanhasSkipped(int returnCode)static ExitCodenewExitCodeRepresentingFailure()
-
-
-
Field Detail
-
HAS_NO_TEST
public static final int HAS_NO_TEST
- See Also:
- Constant Field Values
-
SKIPPED
public static final int SKIPPED
- See Also:
- Constant Field Values
-
FAILED
public static final int FAILED
- See Also:
- Constant Field Values
-
-
Method Detail
-
hasFailureWithinSuccessPercentage
public static boolean hasFailureWithinSuccessPercentage(int returnCode)
-
hasSkipped
public static boolean hasSkipped(int returnCode)
-
hasFailure
public static boolean hasFailure(int returnCode)
-
newExitCodeRepresentingFailure
public static ExitCode newExitCodeRepresentingFailure()
-
hasFailure
public boolean hasFailure()
-
hasSkip
public boolean hasSkip()
-
hasFailureWithinSuccessPercentage
public boolean hasFailureWithinSuccessPercentage()
-
getExitCode
public int getExitCode()
-
-