Uploaded image for project: 'Xray for Jira Cloud'
  1. Xray for Jira Cloud
  2. XRAYCLOUD-895 As a user, I can import XML reports generated by Robot framework
  3. XRAYCLOUD-975

When the parameter testPlanKey is invalid, API should return a 400 Bad Request instead of a 503 Service Unavailable

    XporterXMLWordPrintable

Details

    • Sub-bug
    • Status: Closed
    • Minor
    • Resolution: Done
    • 1.008.000
    • 1.008.000
    • REST API
    • STG - All browsers

    • R1.008.000 S4

    Description

      Short Description: When the parameter testPlanKey is invalid, API should return a 400 Bad Request instead of a 503 Service Unavailable.

      Steps to Reproduce:
      1 - Create a POST request to the following endpoint 'url'/api/v1/import/execution/robot
      2 - In the parameters enter a testPlanKey that does not exist and send the request

      Actual Result: A 503 error Service Unavailable is displayed with the error message "Server Error - Error processing JQL batch search results - 400".
      Expected Result: A 400 error Bad Request should be displayed with the error message "Error importing results: issue with key X does not exist or is not of issue type Test Plan!"

      Attachments

        Activity

          People

            gmba Goncalo Baltazar [X] (Inactive)
            apsp Ana Patricio
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m