Class TestResultHelper

java.lang.Object
de.qytera.qtaf.testng.helper.TestResultHelper

public class TestResultHelper extends Object
Helper class for extracting attributes from TestResult objects
  • Constructor Details

    • TestResultHelper

      public TestResultHelper()
  • Method Details

    • getTestContextInstance

      public static IQtafTestContext getTestContextInstance(org.testng.ITestResult iTestResult)
      Get test context object
      Parameters:
      iTestResult - test result
      Returns:
      test context
    • getTestClassId

      public static String getTestClassId(org.testng.ITestResult iTestResult)
      Build Test ID from test class and test method name
      Parameters:
      iTestResult - Test result context
      Returns:
      ID of the test
    • getTestMethodId

      public static String getTestMethodId(org.testng.ITestResult iTestResult)
      Build Test ID from test class and test method name
      Parameters:
      iTestResult - Test result context
      Returns:
      ID of the test