Interface CurrentTestHolder
-
- All Known Implementing Classes:
CurrentTestHolderImpl
public interface CurrentTestHolder
-
-
Field Summary
Fields Modifier and Type Field Description static List<String>IGNORED_SUITES
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetCurrentSuite(int flowId)TestInfogetCurrentTest(int flowId)List<Integer>getFlows()TestInfogetLatestTest(int flowId)StringgetTestName(String testName, int flowId)This method creates test name and prepends suite name, if neededbooleanhasSuites(int flowId)voidreleaseFlow(int flowIdToRelease)voidrestoreFrom(RuntimeInfoStorage runtimeInfoStorage)voidsaveTo(RuntimeInfoStorage runtimeInfoStorage)voidsuiteFinished(int flowId, String suiteName)voidsuitesFinished(int flowId)voidsuiteStarted(int flowId, String suiteName)voidtestFinished(int flowId)TestInfotestStarted(String testName, int index, int flowId, TestStartInfo testStartInfo)TestInfoupdateTestName(TestInfo currentTest, String newTestName, int flowId)
-
-
-
Method Detail
-
testStarted
TestInfo testStarted(@NotNull String testName, int index, int flowId, TestStartInfo testStartInfo)
-
testFinished
void testFinished(int flowId)
-
getCurrentTest
@Nullable TestInfo getCurrentTest(int flowId)
-
getLatestTest
TestInfo getLatestTest(int flowId)
- Parameters:
flowId-- Returns:
- latest test in the flow even if the test has finished. Return null when flow is released
-
releaseFlow
void releaseFlow(int flowIdToRelease)
-
suiteStarted
void suiteStarted(int flowId, String suiteName)
-
getCurrentSuite
@Nullable String getCurrentSuite(int flowId)
-
hasSuites
boolean hasSuites(int flowId)
-
suiteFinished
void suiteFinished(int flowId, String suiteName)
-
suitesFinished
void suitesFinished(int flowId)
-
getTestName
String getTestName(@NotNull String testName, int flowId)
This method creates test name and prepends suite name, if needed
-
restoreFrom
void restoreFrom(RuntimeInfoStorage runtimeInfoStorage)
-
saveTo
void saveTo(RuntimeInfoStorage runtimeInfoStorage)
-
-