Package de.qytera.qtaf.testng.helper
Class TestResultHelper
java.lang.Object
de.qytera.qtaf.testng.helper.TestResultHelper
Helper class for extracting attributes from TestResult objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetTestClassId(org.testng.ITestResult iTestResult) Build Test ID from test class and test method namestatic IQtafTestContextgetTestContextInstance(org.testng.ITestResult iTestResult) Get test context objectstatic StringgetTestMethodId(org.testng.ITestResult iTestResult) Build Test ID from test class and test method name
-
Constructor Details
-
TestResultHelper
public TestResultHelper()
-
-
Method Details
-
getTestContextInstance
Get test context object- Parameters:
iTestResult- test result- Returns:
- test context
-
getTestClassId
Build Test ID from test class and test method name- Parameters:
iTestResult- Test result context- Returns:
- ID of the test
-
getTestMethodId
Build Test ID from test class and test method name- Parameters:
iTestResult- Test result context- Returns:
- ID of the test
-