Class Suite
- java.lang.Object
-
- com.sun.identity.shared.test.tools.Suite
-
public class Suite extends Object
This class is the suite object in the report generating tool setup. It is responsible for capturing the attributes of a suite and then generate HTML markup accordingly.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createHTMLReports(String templateDir, String outputDir)
Creates HTML report.List<Test>
getTests()
Returns a list ofTest
object in this suite.boolean
passed()
Returns a list of passedTest
object in this suite.String
toHTML()
Returns HTML markup for this object.
-
-
-
Constructor Detail
-
Suite
public Suite(File f) throws ParserConfigurationException, SAXException, IOException
Creates an instance ofSuite
.- Throws:
ParserConfigurationException
- if thetestNG
report XML is not well formed.SAXException
- if thetestNG
report XML is not well formed.IOException
- if thetestNG
report XML is not accessible.
-
-
Method Detail
-
getTests
public List<Test> getTests()
Returns a list ofTest
object in this suite.- Returns:
- list of
Test
object in this suite.
-
passed
public boolean passed()
Returns a list of passedTest
object in this suite.- Returns:
- list of passed
Test
object in this suite.
-
createHTMLReports
public void createHTMLReports(String templateDir, String outputDir) throws IOException
Creates HTML report.- Parameters:
templateDir
- Template directory.outputDir
- Output directory where reports are to be created under.- Throws:
IOException
- if report cannot be created.
-
toHTML
public String toHTML()
Returns HTML markup for this object.- Returns:
- HTML markup for this object.
-
-