Uploaded image for project: 'Xray for Jira'
  1. Xray for Jira
  2. XRAY-336

API REST - Exception when importing a unexistent Test Execution result with a non-existent issue test

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • R1.8.0
    • R1.10.0
    • Core, Integration
    • None
    • R1.10.0
    • UNCOVERED

    Description

      If we call jira/rest/raven/1.0/import/execution/ with a new test execution. If the tests inside doesn't exist then, we get an exception.

      If the test executions exists, there is no problem and we get a warning telling that the test execution doesn't contain or is not associate with this non existent test.

      Example:

      {
      "info" :

      { "summary" : "Execution of automated tests for release v1.3", "description" : "This execution is automatically created when importing execution results from an external source", "version" : "", "user" : "admin", "revision" : "1.0.42134", "startDate" : "2014-08-30T11:47:35+01:00", "finishDate" : "2014-08-30T11:53:00+01:00" }

      ,
      "tests" : [

      { "testKey" : "NON-EXISTENT-ISSUE", "start" : "2014-08-30T11:47:35+01:00", "finish" : "2014-08-30T11:50:56+01:00", "comment" : "Successful execution", "status" : "PASS" }

      ]
      }

      NOTE: this only happens when there is no "tests" with a valid "testKey" in the list.

      Attachments

        Activity

          People

            dpca Diamantino Campos
            dpca Diamantino Campos
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 2 hours
                2h
                Remaining:
                Remaining Estimate - 2 hours
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified