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.
Fitnesse directory structure to example above.