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 String
getCurrentSuite(int flowId)
TestInfo
getCurrentTest(int flowId)
List<Integer>
getFlows()
TestInfo
getLatestTest(int flowId)
String
getTestName(String testName, int flowId)
This method creates test name and prepends suite name, if neededboolean
hasSuites(int flowId)
void
releaseFlow(int flowIdToRelease)
void
restoreFrom(RuntimeInfoStorage runtimeInfoStorage)
void
saveTo(RuntimeInfoStorage runtimeInfoStorage)
void
suiteFinished(int flowId, String suiteName)
void
suitesFinished(int flowId)
void
suiteStarted(int flowId, String suiteName)
void
testFinished(int flowId)
TestInfo
testStarted(String testName, int index, int flowId, TestStartInfo testStartInfo)
TestInfo
updateTestName(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)
-
-