com.hp.lft.unittesting

Class TestNgUnitTestBase

  • Direct Known Subclasses:
    TestNgCucumberUnitTestBase


    public abstract class TestNgUnitTestBase
    extends UnitTestBase
    The base class of the LeanFT TestNG Eclipse template classes provided when creating a new LeanFT project.
    • Constructor Detail

      • TestNgUnitTestBase

        public TestNgUnitTestBase()
    • Method Detail

      • suiteSetup

        protected void suiteSetup()
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • suiteTearDown

        protected void suiteTearDown()
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • classSetup

        protected void classSetup(java.lang.String[] context)
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • classTearDown

        protected void classTearDown()
        Description copied from class: UnitTestBase
        This method is called by LeanFT Eclipse templates to clean up the test class.
        Overrides:
        classTearDown in class UnitTestBase
      • testSetup

        protected void testSetup(java.lang.String[] context)
      • buildFullTestMethodName

        protected static java.lang.String buildFullTestMethodName(java.lang.String methodName,
                                                                  java.lang.Object[] params)
      • getMethodName

        protected java.lang.String getMethodName(java.lang.reflect.Method method,
                                                 java.lang.Object[] arguments)
      • getAlmData

        protected static java.lang.Iterable<java.lang.String[]> getAlmData()
                                                                    throws java.lang.Exception
        Returns the collection of parameterized test parameter values extracted from data resource on ALM server.
        Returns:
        the collection of parameterized test parameter values extracted from data resource on ALM server.
        Throws:
        java.lang.Exception - if error occurs in the ALM Data process