Package com.shaft.tools.internal.tms
Class XrayIntegrationHelper
java.lang.Object
com.shaft.tools.internal.tms.XrayIntegrationHelper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
attachFilesToIssue
(String issueID, List<String> files) Update the created issue with the attachments.static String
createIssue
(List<String> files, String testCaseName, String description) Create JIRA Bug to report execution failure.static void
importCucumberResults
(String filepath) Import cucumber results recorded in cucumber.jsom file through /import/execution/cucumber endpointstatic void
importTestNGResults
(String filepath) Import TestNG results recorded in testng-results.jsom file through /import/execution/testng?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.static void
renameTestExecutionSuit
(String executionName, String executionDescription) Import TestNG results recorded in testng-results.jsom file through /import/execution/testng?
-
Constructor Details
-
XrayIntegrationHelper
public XrayIntegrationHelper()
-
-
Method Details
-
importCucumberResults
Import cucumber results recorded in cucumber.jsom file through /import/execution/cucumber endpoint- Parameters:
filepath
- > the report relative path- Throws:
Exception
-
renameTestExecutionSuit
Import TestNG results recorded in testng-results.jsom file through /import/execution/testng?projectKey=[projectKey] endpoint- Parameters:
executionName
- > The execution name mentioned in JiraXray.propertiesexecutionDescription
- > The execution Description mentioned in JiraXray.properties
-
importTestNGResults
Import TestNG results recorded in testng-results.jsom file through /import/execution/testng?projectKey=[projectKey] endpoint- Parameters:
filepath
- > the report relative path
-
createIssue
Create JIRA Bug to report execution failure.- Parameters:
files
- -> list of the failed testcase attachments.testCaseName
- -> the failed testcase namedescription
- --> the failed test case execution log- Returns:
- String bugID
-
attachFilesToIssue
Update the created issue with the attachments.- Parameters:
issueID
- -> the created bug ID.files
- -> list of the failed testcase attachments.
-
link2Tickets
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.
-