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

Create Test Execution from Test Plan returns a NullPointerException

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • R2.3.2
    • R3.1.0
    • Core, UI
    • R3.1.0 S2
    • OK

    Description

      There are some uncaught NullPointerException when creating a Test Execution from the Test Plan using the Create Test Execution Button, see following cases

      • The creation of the Test Execution fails due to a failed workflow validation (for example a script validation) or due to some other reason. In this case, the null value for the issue must be caught and the user must receive an error with the most details as possible.
      • Test Plan custom field does not exists or is not associated with Test Execution issue type (seems OK)
      • Test Execution issue type is not associated with the project issue type scheme

      How to reproduce the first case:
      install scriptrunner and add the following validation on create issue transition, in the project workflow

      validation
      if(issue.getComponentObjects().size() > 0){
          return true;
      } else {
          return false;
      }
      

      then, try to create a Test Execution from a Test Plan

      Attachments

        Issue Links

          Activity

            People

              pmmr Pedro Rodrigues
              xcfe Xavier Fernandes
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1 day, 4 hours
                  1d 4h
                  Remaining:
                  Time Spent - 1 day, 3 hours, 20 minutes Remaining Estimate - 40 minutes
                  40m
                  Logged:
                  Time Spent - 1 day, 3 hours, 20 minutes Remaining Estimate - 40 minutes
                  1d 3h 20m