org.w3c.mwi.mobileok.basic
Class TestSubResult

java.lang.Object
  extended by 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:

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

Field Summary
private  java.lang.String code
           
private  java.lang.String message
           
private  TestOutcome outcome
           
private  TestSubResultPosition position
           
private  int subResultID
           
private  java.lang.String testType
           
 
Constructor Summary
TestSubResult(org.w3c.dom.Element result)
           
TestSubResult(java.lang.String testType, int subResultID, TestOutcome outcome, java.lang.String message, java.lang.String code, TestSubResultPosition position)
           
 
Method Summary
(package private)  void appendToTestResultsDOM(org.w3c.dom.Document document, org.w3c.dom.Node parent)
           
 java.lang.String getCode()
           
 java.lang.String getMessage()
           
 TestOutcome getOutcome()
           
 TestSubResultPosition getPosition()
           
 int getSubResultID()
           
(package private)  java.lang.String getSubResultIdentifier()
           
 java.lang.String getTestType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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)
Method Detail

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)