Closed DominikTobaben1061 closed 1 year ago
The comment will not go into the Test Execution issue; it will go into the Test Run, i.e., the result of a Test in the context of the Test Execution. To see it, you have to see the execution details of the Test whenever you open the Test Execution issue. To obtain it by API, you need to use the GraphQL API from Xray; the API you mentioned is the REST API of Jira Cloud, which doesn't have access to Xray internal data, such as the comments and the reported test run results.
Found it, thanks!
This maybe help other beginners: Within Test Issue > Test Details Section > Test Runs There is a "Burger Menu with a Box" Button (like this =[ ] )between "Status" and "Actions" for the Test Execution. Within the Findings Section you find the Comment.
Thanks a lot for the quick reply!
Hi, I have a question if you could help me adding Comments to XRay TestExecutions.
Because I can create and map tests and report the FAIL/PASS Status, but it does not add the Comments.
The important
build.gradle
parts:My gradle.properties
My
resources/xray-junit-extensions.properties
My
META-INF/services/org.junit.platform.launcher.TestExecutionListener
My Test
XRaySecondIntegrationTest
My gradle Call:
The JUnit Report which does show the comment (I removed the porperties by hand):
The Task output:
Tests get created automatically when I use only Requirement Anntotation Execution Results are correctly shown with status of the JUNIT Test (Fail and Passed works)
But comments are not shown and https://xxx.atlassian.net/rest/api/2/issue/123456 shows an empty comments block.