Interface ExecutionEnvironment
public interface ExecutionEnvironment
An interface to model the execution environment.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringA system property key for a base directory under which test results are stored. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringstepName()A name of an ongoing step, such asbeforeAll,afterEach, ormain.A currently ongoing test class name.default PathtestOutputFilenameFor(String fileName) Returns an absolute path to a test result file.default PathtestOutputFilenameFor(String fileStem, String fileExtension) default PathReturns aPathto a directory under which test results are stored.static PathtestResultDirectory(String baseLogDirectoryForTestSession, String... dirs) static PathtestResultDirectoryFor(String testClassName, String displayName) Returns a name of a currently ongoing scene, if any.default ExecutionEnvironmentwithDisplayName(String displayName, String stageName) Returns a newExecutionEnvironmentinstance, 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 newExecutionEnvironmentinstance, 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 aPathto a directory under which test results are stored.- Returns:
- A path to a test result directory.
-
testOutputFilenameFor
-
testResultDirectoryFor
-
testResultDirectory
-
baseLogDirectoryForTestSession
-
testOutputFilenameFor
-