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 voidcreateHTMLReports(String templateDir, String outputDir)Creates HTML report.List<Test>getTests()Returns a list ofTestobject in this suite.booleanpassed()Returns a list of passedTestobject in this suite.StringtoHTML()Returns HTML markup for this object.
-
-
-
Constructor Detail
-
Suite
public Suite(File f) throws ParserConfigurationException, SAXException, IOException
Creates an instance ofSuite.- 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
-
getTests
public List<Test> getTests()
Returns a list ofTestobject in this suite.- Returns:
- list of
Testobject in this suite.
-
passed
public boolean passed()
Returns a list of passedTestobject in this suite.- Returns:
- list of passed
Testobject 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.
-
-