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

Error message in Test Execution issue view when having the Set final Test Run status option disabled

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 6.0.1
    • None
    • None
    • UNCOVERED

    Description

      Description

      With the Set Final Test Run Status option disabled in Miscellaneous page, there can be situations where the Test Execution Issue View shows an error message.

      Pre-conditions

      The easiest way to reproduce this is to not have custom Test Status in the Test Statuses admin page but have at least one custom status in the Test Step Status admin page.

      This has been reproduced with Manual Test Runs in the Test Execution issue

      How to reproduce

      1. Go to Miscellaneous, enable the Set Final Test Run Status option
      2. Click save
      3. Create a Test Execution and add a Manual Test with at least two steps
      4. Execute the Test Run, leave the first step as TODO, set the second one with a custom step status. Set the overall test run status to ABORTED.
      5. Go back o Miscellaneous, disable the Set Final Test Run Status option
      6. Click save
      7. Open the Test Execution Issue view 

      Actual result/Attachments

      Error message:

      java.util.NoSuchElementException: No value presentjava.util.NoSuchElementException: No value present at java.util.Optional.get(Optional.java:135) at com.xpandit.raven.statuses.DefaultTestStatusManager.getStatusById(DefaultTestStatusManager.java:177) at com.xpandit.raven.workflow.impl.RestrictedTestRunStatusWorkflow.calculateStepsStatus(RestrictedTestRunStatusWorkflow.java:378)

      Expected result

      The Test Runs table should be displayed without the above error message

      Version

      • 6.0.1 by the time this bug was reported 

      Attachments

        Activity

          People

            helder.ferreira Helder Ferreira
            dmdu David Duarte
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: