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 | !include -setup SetUp !include IncludedPage Including Page running page name is ${RUNNING_PAGE_NAME} !include -teardown TearDown |
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 |
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 | !include SecondLevelIncludedPage First Level Included running page name is ${RUNNING_PAGE_NAME} |
given page | IncludingPage | with content | !include -setup SetUp !include IncludedPage Including Page running page name is ${RUNNING_PAGE_NAME} !include -teardown TearDown |
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 |