Menu

#19 Variable Inheritance broken for included pages on subpages.

open
None
8
2008-09-21
2008-07-04
Jens Engel
No

Context: Software trunk
Revision: 292 (and before 277)

Variable inheritance no longer works for included pages.
Included pages only resolve variables that are defined on the same page or are pre-included on the same the page.
NOTE: Variable inheritance was still working for included pages in the 2007 release (and before).

EXAMPLE:
page:MyMacro
Show !-MyName-! = ${MyName}

--------
page:TestOne
!define MyName {Sam}
!include .MyMacro

--------
page:TestOne.SubPageA
!include .MyMacro

EFFECT:
On the current software trunk, TestOne.SubPageA states that variable MyName is undefined. On the 2007 release, the value was resolved.
On page TestOne, the variable is correctly resolved.
NOTE: When a page uses a Variable placeholder via ${XXX}, the variable inheritance still works.

DESIRED:
Revert to old behaviour or allow to enable old behaviour via command-line flag or variable.

The old behaviour greatly simplifies configuration and reuse of test snippets via includes.

Discussion

  • Jens Engel

    Jens Engel - 2008-07-04

    Fitnesse directory structure to example above.

     
  • Andy Dassing

    Andy Dassing - 2008-09-21
    • priority: 5 --> 8
    • assigned_to: nobody --> i-m-fit-r-u
     

Log in to post a comment.