org.apache.maven.surefire.testng
Class TestNGXmlTestSuite

java.lang.Object
  extended by org.apache.maven.surefire.testng.TestNGXmlTestSuite
All Implemented Interfaces:
TestNgTestSuite

public class TestNGXmlTestSuite
extends Object
implements TestNgTestSuite

Handles suite xml file definitions for TestNG.

Author:
jkuhnert, Alex Popescu

Constructor Summary
TestNGXmlTestSuite(List suiteFiles, String testSourceDirectory, String artifactVersion, Properties confOptions, File reportsDirectory)
          Creates a testng testset to be configured by the specified xml file(s).
 
Method Summary
 void execute(ReporterManagerFactory reporterManagerFactory)
           
 void execute(String testSetName, ReporterManagerFactory reporterManagerFactory, ClassLoader classLoader)
           
 String getSuiteName()
           
 Map locateTestSets(ClassLoader classLoader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestNGXmlTestSuite

public TestNGXmlTestSuite(List suiteFiles,
                          String testSourceDirectory,
                          String artifactVersion,
                          Properties confOptions,
                          File reportsDirectory)
Creates a testng testset to be configured by the specified xml file(s). The XML files are suite definitions files according to TestNG DTD.

Method Detail

execute

public void execute(ReporterManagerFactory reporterManagerFactory)
             throws ReporterException,
                    TestSetFailedException
Throws:
ReporterException
TestSetFailedException

execute

public void execute(String testSetName,
                    ReporterManagerFactory reporterManagerFactory,
                    ClassLoader classLoader)
             throws TestSetFailedException
Specified by:
execute in interface TestNgTestSuite
Throws:
TestSetFailedException

locateTestSets

public Map locateTestSets(ClassLoader classLoader)
                   throws TestSetFailedException
Specified by:
locateTestSets in interface TestNgTestSuite
Throws:
TestSetFailedException

getSuiteName

public String getSuiteName()


Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.