Package com.shaft.tools.internal.tms
Class XrayIntegrationHelper
java.lang.Object
com.shaft.tools.internal.tms.XrayIntegrationHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidattachFilesToIssue(String issueID, List<String> files) Update the created issue with the attachments.static StringcreateIssue(List<String> files, String testCaseName, String description) Create JIRA Bug to report execution failure.static voidimportCucumberResults(String filepath) Import cucumber results recorded in cucumber.jsom file through /import/execution/cucumber endpointstatic voidimportTestNGResults(String filepath) Import TestNG results recorded in testng-results.jsom file through /import/execution/testng?static voidlink2Tickets(String ticketID, String linkedToID) Link any jira 2 tickets using the tickets IDs through PUT API request. the covered relation is relates.static voidrenameTestExecutionSuit(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.
-