Class JiraHelper

java.lang.Object
com.shaft.listeners.internal.JiraHelper

public class JiraHelper extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    prepareTestResultAttributes(org.testng.IInvokedMethod method, org.testng.ITestResult testResult)
    The method is to update testng-results.xml with the required data to integrate with xray plugin The Method uses Epic, Feature, Story and Test allure annotations' values.
    static void
    reportBugsToJIRA(List<String> attachments, String logText, org.testng.ITestResult iTestResult, org.testng.ITestNGMethod iTestNGMethod)
    is called in afterInvocation() to report bugs in case of failure and if the integration is enabled
    static void
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JiraHelper

      public JiraHelper()
  • Method Details

    • reportExecutionStatusToJira

      public static void reportExecutionStatusToJira()
    • prepareTestResultAttributes

      public static void prepareTestResultAttributes(org.testng.IInvokedMethod method, org.testng.ITestResult testResult)
      The method is to update testng-results.xml with the required data to integrate with xray plugin The Method uses Epic, Feature, Story and Test allure annotations' values.
      See Also:
      • Allure
    • reportBugsToJIRA

      public static void reportBugsToJIRA(List<String> attachments, String logText, org.testng.ITestResult iTestResult, org.testng.ITestNGMethod iTestNGMethod)
      is called in afterInvocation() to report bugs in case of failure and if the integration is enabled