TemplateLibrary in fitnesse -
i bit confused templatelibrary. understand reuse boiler plate code. don't understand how fitnesse decide pages include in dropdown. if @ following :

all highlighted appear in dropdown. talk brothers , uncles (may don't understand brothers , uncles concept) -
these pages act marker find templates show available insertion when editing page. children of templatelibrary shown in drop-down list of templates available insertion. unlike other special pages, brother , uncle templatelibrary pages included. oldest (grandest uncle) included first. brother, if exists, included last. allows younger templatelibrary pages override older ones http://www.fitnesse.org/fitnesse.userguide.writingacceptancetests.specialpages
to cut long story short - how decided ones included in dropdown?
i believe direct children of templatelibrary included in dropdown, highlighting shows.
but there may multiple pages called templatelibrary in hierarchy of pages. 1 show @ root of entire wiki, can add others (by adding page , giving special name 'templatelibrary'). talk of brothers , uncles template library pages relevant on page in wiki (similar how slim handles scenariolibrary pages). in other words: children of pages considered templates.
for instance, given following hierarchy:
+ templatelibrary ++ template1 + webtests ++ homepagetest + soaptests ++ templatelibrary +++ template2 ++ service1tests +++ templatelibrary ++++ template3 +++ myservice1test when add page @ root level, or under webtests template1 available. when add page under soaptests template1 , template2 available. when add page under service1tests template1, template2 , template3 available.
if templatelibrary under service1tests have child named template1 choosing template1 new page under service1tests use page , not 1 root level.
Comments
Post a Comment