Details
-
Bug
-
Status: Waiting for Validation
-
Minor
-
Resolution: Unresolved
-
Xray DC 7.12.3
-
None
-
DC
Description
Steps to reproduce
- Create a project and add a required Test Step Custom field
- Create a Manual Test with a Test Step
- Try to import a result and creating iterations
curl -H "Content-Type: application/json" -u admin:admin --data @result-iterations.json -X POST http://localhost:9120/rest/raven/2.0/import/execution
- An error will be returned with the message
{"testExecIssue":{"id":"87232","key":"XTP-44971","self":"http://localhost:9120/rest/api/2/issue/87232"},"testIssues":{"error":[{"testKey":"XTP-44967","messages":["There are required or disabled custom fields defined for project XTP."]}]},"infoMessages":[]}%
- If we repeat the call without any iterations
curl -H "Content-Type: application/json" -u admin:admin --data @result-no-iterations.json -X POST http://localhost:9120/rest/raven/2.0/import/execution
- The import is successful
{"testExecIssue":{"id":"87233","key":"XTP-44972","self":"http://localhost:9120/rest/api/2/issue/87233"},"testIssues":{"success":[{"id":"87228","key":"XTP-44967","self":"http://localhost:9120/rest/api/2/issue/87228","testVersionId":36543}]},"infoMessages":[]}%
Expected Result
Trying to set Iterations on the Test Run and required Test Step Custom fields are conflicting. If the result JSON file does not set the property "testInfo" (i.e., it does not try to change the test data), then Xray should import the result.
"testInfo" : { "testKey": "XTP-44939", "description": "só para ver se funcionou", "steps": [{ "action":"ação" }] }