Class XrayIntegrationHelper

java.lang.Object
com.shaft.tools.internal.tms.XrayIntegrationHelper

public class XrayIntegrationHelper extends Object
  • Constructor Details

    • XrayIntegrationHelper

      public XrayIntegrationHelper()
  • Method Details

    • importCucumberResults

      public static void importCucumberResults(String filepath) throws Exception
      Import cucumber results recorded in cucumber.jsom file through /import/execution/cucumber endpoint
      Parameters:
      filepath - > the report relative path
      Throws:
      Exception
    • renameTestExecutionSuit

      public static void renameTestExecutionSuit(String executionName, String executionDescription)
      Import TestNG results recorded in testng-results.jsom file through /import/execution/testng?projectKey=[projectKey] endpoint
      Parameters:
      executionName - > The execution name mentioned in JiraXray.properties
      executionDescription - > The execution Description mentioned in JiraXray.properties
    • importTestNGResults

      public static void importTestNGResults(String filepath)
      Import TestNG results recorded in testng-results.jsom file through /import/execution/testng?projectKey=[projectKey] endpoint
      Parameters:
      filepath - > the report relative path
    • createIssue

      public static String createIssue(List<String> files, String testCaseName, String description)
      Create JIRA Bug to report execution failure.
      Parameters:
      files - -> list of the failed testcase attachments.
      testCaseName - -> the failed testcase name
      description - --> the failed test case execution log
      Returns:
      String bugID
    • attachFilesToIssue

      public static void attachFilesToIssue(String issueID, List<String> files)
      Update the created issue with the attachments.
      Parameters:
      issueID - -> the created bug ID.
      files - -> list of the failed testcase attachments.
    • link2Tickets

      public static void link2Tickets(String ticketID, String linkedToID)
      Link any jira 2 tickets using the tickets IDs through PUT API request. the covered relation is relates.
      Parameters:
      ticketID - -> the main ticket ID.
      linkedToID - -> the one to be linked to.