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

Unable to get the Status of a Step result via REST API, when it is a custom one

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Done
    • None
    • R3.2.1
    • None
    • OK

    Description

      When the Step result is a custom status, we get the following error:

      GET api/testrun/{id}/step/{stepResultId}/status

      <?xml version="1.0" encoding="UTF-8" standalone="yes"?><status><status-code>500</status-code><message>No value present</message><stack-trace>java.util.NoSuchElementException: No value present&#xD;
      	at java.util.Optional.get(Optional.java:135)&#xD;
      	at com.xpandit.raven.statuses.DefaultTestStatusManager.getStatusById(DefaultTestStatusManager.java:175)&#xD;
      	at com.xpandit.raven.rest.api.testrun.TestStepResource.getTestStepResultStatus(TestStepResource.java:274)&#xD;
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&#xD;
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&#xD;
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&#xD;
      	at java.lang.reflect.Method.invoke(Method.java:498)&#xD;
      

      Attachments

        Issue Links

          Activity

            People

              ipvm Isabel Moreira [X] (Inactive)
              dmdu David Duarte
              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:
                  Time Spent - 2 hours, 25 minutes Remaining Estimate - 1 hour
                  1h
                  Logged:
                  Time Spent - 2 hours, 25 minutes Remaining Estimate - 1 hour
                  2h 25m