Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
6.0.1
-
None
-
None
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
- Go to Miscellaneous, enable the Set Final Test Run Status option
- Click save
- Create a Test Execution and add a Manual Test with at least two steps
- 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.
- Go back o Miscellaneous, disable the Set Final Test Run Status option
- Click save
- 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