org.w3c.mwi.mobileok.basic
Class TestSubResult
java.lang.Object
org.w3c.mwi.mobileok.basic.TestSubResult
public final class TestSubResult
- extends java.lang.Object
Encapsulates the outcome of a single subtest.
A subtest is the base constituent of tests. The outcome of a subtest may either be PASS, WARN or FAIL.
Only FAILed subtests make the test that contains the subtest FAIL.
The TestSubResult
class defines several mechanisms to help identify the source of a WARN/FAIL outcome:
- A message, accessible through the
getMessage()
method
- An excerpt of the source code, accessible through the
getCode()
method
- The position in the source that made the subtest WARN/FAIL, accessible through the
getPosition()
method
These mechanisms may be used in conjunction or may not be used at all.
- Version:
- $Revision: 1.1 $
- Author:
- The W3C mobileOK Checker Task Force
- See Also:
TestResult
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
testType
private final java.lang.String testType
subResultID
private final int subResultID
outcome
private final TestOutcome outcome
message
private final java.lang.String message
code
private final java.lang.String code
position
private final TestSubResultPosition position
TestSubResult
TestSubResult(java.lang.String testType,
int subResultID,
TestOutcome outcome,
java.lang.String message,
java.lang.String code,
TestSubResultPosition position)
TestSubResult
TestSubResult(org.w3c.dom.Element result)
getTestType
public java.lang.String getTestType()
getSubResultID
public int getSubResultID()
getSubResultIdentifier
java.lang.String getSubResultIdentifier()
getOutcome
public TestOutcome getOutcome()
getMessage
public java.lang.String getMessage()
getCode
public java.lang.String getCode()
getPosition
public TestSubResultPosition getPosition()
appendToTestResultsDOM
void appendToTestResultsDOM(org.w3c.dom.Document document,
org.w3c.dom.Node parent)