org.w3c.mwi.mobileok.basic
Class TestResult
java.lang.Object
org.w3c.mwi.mobileok.basic.TestResult
public final class TestResult
- extends java.lang.Object
Encapsulates the outcome of a single test.
A test is typically composed of several subtests, implemented by the
TestSubResult
class. The TestResult
class is thus basically
a list of subtests. A test may either PASS or FAIL. It PASSes when none of its
subtests FAIL.
Tests that are defined in the
W3C mobileOK Basic Tests 1.0
W3C standard check the compliance to one (sometimes two) of the Mobile Web
Best Practices defined in the Mobile
Web Best Practices 1.0 W3C standard.
The mobileOK Checker creates one instance of TestResult
per test
it runs, whether the test PASSes or FAILs, but it only stores the outcomes
of the subtests that triggered a WARN or a FAIL. Besides, note that when a
subtest triggers a FAIL, the other subtests of the underlying test may not
be run.
- Version:
- $Revision: 1.2 $
- Author:
- The W3C mobileOK Checker Task Force
- See Also:
TestSubResult
Constructor Summary |
TestResult(java.lang.String type)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
type
private final java.lang.String type
outcome
private TestOutcome outcome
subResults
private java.util.List<TestSubResult> subResults
TestResult
TestResult(java.lang.String type)
getType
public java.lang.String getType()
getOutcome
public TestOutcome getOutcome()
getSubResults
public java.util.List<TestSubResult> getSubResults()
addSubResult
void addSubResult(TestSubResult subResult)
appendToTestResultsDOM
void appendToTestResultsDOM(org.w3c.dom.Document document,
org.w3c.dom.Node parent)