IBM Support

PH19461: RPT DOESN'T ALLOW NEWLINES IN REGULAR EXPRESSIONS ASSOCIATED WITH REFERENCES

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When regular expressions are specified in the properties of a
    reference, RPT automatically and silently escapes certain
    special characters such as " and \.  A consequence of this is
    that it is not possible to include characters like an explicit
    newline since \n will always be changed to \\n.
    
    For example, if the regular expression:
    
      "uid":"(.*?)",\n((?!"uid").*\n)*.*"Release Process"
    
    is specified for an added reference when doing manual
    correlation, the Verify button to test the regular expression
    will report that it did not find the highlighted string even
    though it should have.  Likewise, upon playback the regular
    expression will not extract the desired string.
    

Local fix

  • As a workaround, custom code can be used since no automatic
    escaping is applied to regular expression in custom code.  Thus,
    when the equivalent regular expression is used in custom code:
    
            String RegExpStr =
    "\"uid\":\"(.*?)\",\n((?!\"uid\").*\n)*.*\"Release Process\"";
            Pattern pattern = Pattern.compile(RegExpStr);
            Matcher matcher = pattern.matcher(args[0]);
    
            if (matcher.find())
                UIDStr = matcher.group(1);
            else
                tes.getTestLogManager().reportMessage("Input does
    not match pattern.");
    
    the custom code will successfully extract the desired string
    from the same response.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * RPT Users                                                    *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See error description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    

Problem conclusion

  • Fixed
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH19461

  • Reported component name

    PERF TESTER WIN

  • Reported component ID

    5724J9601

  • Reported release

    950

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2019-11-20

  • Closed date

    2020-07-01

  • Last modified date

    2020-07-01

  • 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

    PERF TESTER WIN

  • Fixed component ID

    5724J9601

Applicable component levels

  • RA00 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSMMM5","label":"Rational Performance Tester"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"950","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
17 November 2021