Package net.thucydides.core.reports
Class TestOutcomeLoader
java.lang.Object
net.thucydides.core.reports.TestOutcomeLoader
public class TestOutcomeLoader
extends java.lang.Object
Loads test outcomes from a given directory, and reports on their contents.
This class is used for aggregate reporting.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TestOutcomeLoader.TestOutcomeLoaderBuilder
-
Constructor Summary
Constructors Constructor Description TestOutcomeLoader()
TestOutcomeLoader(EnvironmentVariables environmentVariables)
-
Method Summary
Modifier and Type Method Description TestOutcomeLoader
forFormat(OutcomeFormat format)
java.util.List<TestOutcome>
loadFrom(java.io.File reportDirectory)
Load the test outcomes from a given directory, sorted by Titlestatic TestOutcomeLoader.TestOutcomeLoaderBuilder
loadTestOutcomes()
static TestOutcomes
testOutcomesIn(java.io.File reportsDirectory)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
TestOutcomeLoader
public TestOutcomeLoader() -
TestOutcomeLoader
-
-
Method Details
-
forFormat
-
loadFrom
public java.util.List<TestOutcome> loadFrom(java.io.File reportDirectory) throws ReportLoadingFailedErrorLoad the test outcomes from a given directory, sorted by Title- Parameters:
reportDirectory
- An existing directory that contains the test outcomes in XML or JSON format.- Returns:
- The full list of test outcomes.
- Throws:
ReportLoadingFailedError
- Thrown if the specified directory was invalid or loading finished with error.
-
loadTestOutcomes
-
testOutcomesIn
public static TestOutcomes testOutcomesIn(java.io.File reportsDirectory) throws java.io.IOException- Throws:
java.io.IOException
-