IBM Support

PM82169: DO WHILE LOOP CONDITION EXECUTES TWICE IF MODIFYING TAG VALUE USING ECMA SCRIPT

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When executing a Do While loop, the condition statement will
    execute twice if using ECMA script and the condition modifies
    the tag value used in evaluating the condition. ᄊ If there is
    something within the condition that is not a simple evaluation,
    it may change the outcome of the script.
    
    Example:
    tags["counter"]-=1;
    tags["counter"]>0;
    

Local fix

  • Move any statement inside of the condition that is not related
    to the evaluation to before or within the script.
    (tags["counter"]-=1; should be moved inside the script for the
    example provided in the error description)
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * All users of Rational Integration Tester                     *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * Use of the Iterate-While action could lead to unexpected     *
    * results when the action condition contains ECMAScript. This  *
    * is because the action was being called once before the while *
    * loop first iterated. If the ECMAScript contained side        *
    * effects (such as decrementing the value in a tag) then the   *
    * user would not see the expected results as in the first      *
    * iteration the script would be called twice thus decrementing *
    * the tag by two rather than the expected one.                 *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to Rational Integration Tester 8.5.0.2               *
    ****************************************************************
    

Problem conclusion

  • This problem was resolved in Rational Integration Tester 8.5.0.2
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM82169

  • Reported component name

    RATL INTEGRA TE

  • Reported component ID

    5725G79IT

  • Reported release

    801

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-02-05

  • Closed date

    2013-09-27

  • Last modified date

    2013-09-27

  • 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 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSBLQQ","label":"Rational Test Workbench"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0.1","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
29 October 2021