Interface ExecutionEnvironment
public interface ExecutionEnvironment
An interface to model the execution environment.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
A system property key for a base directory under which test results are stored. -
Method Summary
Modifier and TypeMethodDescriptionstatic String
stepName()
A name of an ongoing step, such asbeforeAll
,afterEach
, ormain
.A currently ongoing test class name.default Path
testOutputFilenameFor
(String fileName) Returns an absolute path to a test result file.default Path
testOutputFilenameFor
(String fileStem, String fileExtension) default Path
Returns aPath
to a directory under which test results are stored.static Path
testResultDirectory
(String baseLogDirectoryForTestSession, String... dirs) static Path
testResultDirectoryFor
(String testClassName, String displayName) Returns a name of a currently ongoing scene, if any.default ExecutionEnvironment
withDisplayName
(String displayName, String stageName) Returns a newExecutionEnvironment
instance, with a currently ongoing display name and a step name.
-
Field Details
-
PROPERTY_KEY_FOR_TEST_RESULT_DIRECTORY
A system property key for a base directory under which test results are stored.- See Also:
-
-
Method Details
-
testClassName
-
testSceneName
-
stepName
String stepName()A name of an ongoing step, such asbeforeAll
,afterEach
, ormain
.- Returns:
- A name of an ongoing step.
- See Also:
-
withDisplayName
Returns a newExecutionEnvironment
instance, with a currently ongoing display name and a step name.- Parameters:
displayName
- A display name of a currently ongoing scene.stageName
- A stage name of a currently ongoing scene.- Returns:
- A new execution environment object.
-
testResultDirectory
Returns aPath
to a directory under which test results are stored.- Returns:
- A path to a test result directory.
-
testOutputFilenameFor
-
testResultDirectoryFor
-
testResultDirectory
-
baseLogDirectoryForTestSession
-
testOutputFilenameFor
-