net.thefrontside.crosscheck
Interface Result


public interface Result

Represents the cumulative result of running an entire TestSuite against a single browser environment.


Method Summary
 TestResult[] getAll()
          Return all tescases that were part of this suite, regardless of their status.
 TestResult[] getErrors()
          Return all the individual test cases which resulted in an error.
 TestResult[] getFailures()
          Return all the individual test cases which resulted in failure.
 TestResult[] getOk()
          Return all the test cases which suceeded without failures or errors.
 boolean wasSuccessful()
          Indicates whether all the test cases in this result ran without producing any errors or failures.
 

Method Detail

wasSuccessful

public boolean wasSuccessful()
Indicates whether all the test cases in this result ran without producing any errors or failures.


getFailures

public TestResult[] getFailures()
Return all the individual test cases which resulted in failure. A failure result is generated when a test case is halted by a failed assertion.

Returns:
an array containing the failed test results.

getErrors

public TestResult[] getErrors()
Return all the individual test cases which resulted in an error. An error is generated when a test case is halted by an unexpected exception.

Returns:
an array containing all the errored test results.

getOk

public TestResult[] getOk()
Return all the test cases which suceeded without failures or errors.

Returns:
an array containing all successful testcases.

getAll

public TestResult[] getAll()
Return all tescases that were part of this suite, regardless of their status.

Returns:
all test case results, failed, errored, and ok.

The inevitable future of AJAX.

© 2006 The Frontside Software, Inc.