IBM Support

PI91342: RUNTESTS JUNIT OUTPUT IS INCORRECT

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • RunTests JUnit output does not produce files for each test suite
    within a parent suite.
    
    STEPS TO REPRODUCE:
    
    1. Create a RIT project with a test suite that runs two other
    suites.
    
    2. Ensure that the project database connection is correct.
    
    3. Run the parent suite using RunTests with the -jUnitDir
    parameter.
    
        For example: runtests -environment myEnv -project
    myproject.ghp -run Suite.gts -junitDir c:\temp\JunitResults
    
    This worked correctly on RIT version 8.6.
    
    EXPECTED RESULTS:
    
    Three JUnit XML files, one for each suite such as:
    
    TEST-Suite_2017-12-06_02-11-19-011.xml
    TEST-Suite1_2017-12-06_02-11-18-011.xml
    TEST-Suite2_2017-12-06_02-11-19-011.xml
    
    ACTUAL RESULTS:
    
    One JUnit file named for the last suite to be run such as:
    
    TEST-Suite2_2017-12-06_02-12-40-012.xml
    
    WORKAROUND:
    
    Add the parameter -jUnitLegacy to the command line.
    For example:
    
    runtests -environment myEnv -project myproject.ghp -run
    Suite.gts -junitDir c:\temp\JunitResults -junitLegacy
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Users of JUnit and Rational Integration Tester.              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * JUnit style reporting was incorrectly using an output file   *
    * name of the last child suite run rather than the name of the *
    * parent suite.                                                *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    

Problem conclusion

  • Fixed in release 9.2.0.1
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI91342

  • Reported component name

    RATL INTEGRA TE

  • Reported component ID

    5725G79IT

  • Reported release

    910

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2017-12-11

  • Closed date

    2018-07-17

  • Last modified date

    2018-07-17

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    RATL INTEGRA TE

  • Fixed component ID

    5725G79IT

Applicable component levels

  • R800 PSN

       UP

  • R801 PSN

       UP

  • R850 PSN

       UP

  • R851 PSN

       UP

  • R860 PSN

       UP

  • R870 PSN

       UP

  • R871 PSN

       UP

  • R900 PSN

       UP

  • R901 PSN

       UP

  • R910 PSN

       UP

  • R911 PSN

       UP

  • R920 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSBLQQ","label":"Rational Test Workbench"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"910","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
19 October 2021