Blame view

test/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteWidgetTests/TestRunningPageName/content.txt 2.07 KB
fbe3c2bb   Benjamin Renard   First commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
!*< test page content definition
!define pageContent (!include -setup SetUp
!include IncludedPage
Including Page running page name is !-${RUNNING_PAGE_NAME}-!
!include -teardown TearDown)
!define firstLevelPageContent (!include SecondLevelIncludedPage
First Level Included running page name is !-${RUNNING_PAGE_NAME}-!)

*!

!3 Test that the RUNNING_PAGE_NAME variable is always the top level running page's name
!|script|
|create page|SetUp|with content|Set Up running page name is !-${RUNNING_PAGE_NAME}-!|
|create page|TearDown|with content|Tear Down running page name is !-${RUNNING_PAGE_NAME}-!|
|create page|IncludedPage|with content|Included Page running page name is !-${RUNNING_PAGE_NAME}-!|
|given page|IncludingPage|with content|${pageContent}|
|it should contain|Included Page running page name is <a href="IncludingPage">IncludingPage|
|it should contain|Including Page running page name is <a href="IncludingPage">IncludingPage|
|it should contain|Set Up running page name is <a href="IncludingPage">IncludingPage|
|it should contain|Tear Down running page name is <a href="IncludingPage">IncludingPage|


!3 Test that the RUNNING_PAGE_NAME variable recurses over multiple levels of included pages
!|script|
|create page|SetUp|with content|Set Up running page name is !-${RUNNING_PAGE_NAME}-!|
|create page|TearDown|with content|Tear Down running page name is !-${RUNNING_PAGE_NAME}-!|
|create page|SecondLevelIncludedPage|with content|Second Level Included Page running page name is !-${RUNNING_PAGE_NAME}-!|
|create page|IncludedPage|with content|${firstLevelPageContent}|
|given page|IncludingPage|with content|${pageContent}|
|it should contain|Set Up running page name is <a href="IncludingPage">IncludingPage|
|it should contain|Tear Down running page name is <a href="IncludingPage">IncludingPage|
|it should contain|Second Level Included Page running page name is <a href="IncludingPage">IncludingPage|
|it should contain|First Level Included running page name is <a href="IncludingPage">IncludingPage|
|it should contain|Including Page running page name is <a href="IncludingPage">IncludingPage|