Class Test
- java.lang.Object
-
- com.sun.identity.shared.test.tools.Test
-
public class Test extends Object
This class is the test object in the report generating tool setup. It is responsible for capturing the attributes of a test and then generate HTML markup accordingly.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<TestCase>getFailedTestCases()Returns a list of failed testcases.List<TestCase>getPassedTestCases()Returns a list of passed testcases.List<TestCase>getSkippedTestCases()Returns a list of skipped testcases.booleanpassed()Returnstrueif the testcase succeeded.StringtoHTML()Returns HTML markup for this object.
-
-
-
Constructor Detail
-
Test
public Test(File f) throws ParserConfigurationException, SAXException, IOException
Creates an instance ofTest.- Throws:
ParserConfigurationException- if thetestNGreport XML is not well formed.SAXException- if thetestNGreport XML is not well formed.IOException- if thetestNGreport XML is not accessible.
-
-
Method Detail
-
passed
public boolean passed()
Returnstrueif the testcase succeeded.- Returns:
trueif the testcase succeeded.
-
getPassedTestCases
public List<TestCase> getPassedTestCases()
Returns a list of passed testcases.- Returns:
- list of passed testcases.
-
getSkippedTestCases
public List<TestCase> getSkippedTestCases()
Returns a list of skipped testcases.- Returns:
- list of skipped testcases.
-
getFailedTestCases
public List<TestCase> getFailedTestCases()
Returns a list of failed testcases.- Returns:
- list of failed testcases.
-
toHTML
public String toHTML()
Returns HTML markup for this object.- Returns:
- HTML markup for this object.
-
-