Class SanityTestsGeneratorListener

  • All Implemented Interfaces:
    org.testng.ISuiteListener, org.testng.ITestNGListener

    public class SanityTestsGeneratorListener
    extends java.lang.Object
    implements org.testng.ISuiteListener
    Listener class to generate a XML tests suite file, based on given TestGroups added as parameters. To run this listener, see src/main/resources/tas-suite-generator.xml file. By default, the testGroup is set to SANITY, but it can be changed setting testGroup parameter. The package name should point to the package we want to scan for tests. To generate the sanity xml suite: run tas-suite-generator.xml as TestNG suite. Result: the xml sanity suite will be generated on src/main/resources/tas-tests-suite.xml
    Author:
    Cristina Diaconu
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onFinish​(org.testng.ISuite suite)  
      void onStart​(org.testng.ISuite suite)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SanityTestsGeneratorListener

        public SanityTestsGeneratorListener()
    • Method Detail

      • onStart

        public void onStart​(org.testng.ISuite suite)
        Specified by:
        onStart in interface org.testng.ISuiteListener
      • onFinish

        public void onFinish​(org.testng.ISuite suite)
        Specified by:
        onFinish in interface org.testng.ISuiteListener