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

Doc generator may fail while getting information about pre-conditions

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 6.4.1
    • Document Generator
    • None
    • Xray 2023 S3, Xray 2023 S4, Xray 2023 S5
    • OK

    Description

      This kind of template may lead to an error:

      Tests[t].TestRuns[r].Iterations[i].PreConditions[a].Summary
      

      At the logs will appear:

      java.lang.NullPointerExceptionjava.lang.NullPointerException at sun.reflect.GeneratedMethodAccessor1960.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.xpandit.raven.document.generator.mapping.simple.SimpleMapper.lambda$getMapping$0(SimpleMapper.java:77)
      

      To reproduce this you need to have an initialised Test Run with outdated Pre-Condition info at the "Pre-Conditions" section, that info will refer to an issue that no longer exists (typically the merge/reset message will appear at the top of the execution page).

      Attachments

        Activity

          People

            pmmr Pedro Rodrigues
            dmdu David Duarte
            Pedro Rodrigues
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 week, 4 days, 3 hours, 30 minutes
                1w 4d 3h 30m