net.thucydides.core.reports
Class TestOutcomeLoader

Package class diagram package TestOutcomeLoader
java.lang.Object
  extended by net.thucydides.core.reports.TestOutcomeLoader

public class TestOutcomeLoader
extends Object

Loads test outcomes from a given directory, and reports on their contents. This class is used for aggregate reporting.


Constructor Summary
TestOutcomeLoader()
           
TestOutcomeLoader(EnvironmentVariables environmentVariables)
           
 
Method Summary
 AcceptanceTestLoader getOutcomeReporter()
           
 List<TestOutcome> loadFrom(File reportDirectory)
          Load the test outcomes from a given directory.
static TestOutcomes testOutcomesIn(File reportsDirectory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestOutcomeLoader

public TestOutcomeLoader()

TestOutcomeLoader

@Inject
public TestOutcomeLoader(EnvironmentVariables environmentVariables)
Method Detail

loadFrom

public List<TestOutcome> loadFrom(File reportDirectory)
                           throws IOException
Load the test outcomes from a given directory.

Parameters:
reportDirectory - An existing directory that contains the test outcomes in XML or JSON format.
Returns:
The full list of test outcomes.
Throws:
IOException - Thrown if the specified directory was invalid.

testOutcomesIn

public static TestOutcomes testOutcomesIn(File reportsDirectory)
                                   throws IOException
Throws:
IOException

getOutcomeReporter

public AcceptanceTestLoader getOutcomeReporter()


Copyright © 2011-2013 Wakaleo Consulting. All Rights Reserved.