This fixture lets us include other pages within a story test page.
We can include a page using an absolute path or a relative path from the working directory. If the page contains test tables, they are executed.
when test is⇓
story test fixture |
check | test result |
include | page | document\fitSharp\Fit\SampleInputFiles\SampleSimpleTest.html |
|
include⇓Tags: SampleTag
This is a simple test.
| page | document\fitSharp\Fit\SampleInputFiles\SampleSimpleTest.html |
|
|
include | page | document\fitSharp\Fit\SampleInputFiles\SampleSimpleTest.html |
| then result is |
include⇓Tags: SampleTag
This is a simple test.
| page | document\fitSharp\Fit\SampleInputFiles\SampleSimpleTest.html |
|
We can include pages with a relative path from the currently executing page.
when test is⇓
story test fixture |
check | test result |
include | page from current | SampleInputFiles\SampleSubNoTest\SampleNoTest.html |
|
include⇓ | page from current | SampleInputFiles\SampleSubNoTest\SampleNoTest.html |
|
|
include | page from current | SampleInputFiles\SampleSubNoTest\SampleNoTest.html |
| then result is |
include⇓ | page from current | SampleInputFiles\SampleSubNoTest\SampleNoTest.html |
|
We can include pages with a relative path from the top-level currently executing suite.
when test is⇓
story test fixture |
check | test result |
include | page from suite | Fit\SampleInputFiles\SampleSubNoTest\SampleNoTest.html |
|
include⇓ | page from suite | Fit\SampleInputFiles\SampleSubNoTest\SampleNoTest.html |
|
|
include | page from suite | Fit\SampleInputFiles\SampleSubNoTest\SampleNoTest.html |
| then result is |
include⇓ | page from suite | Fit\SampleInputFiles\SampleSubNoTest\SampleNoTest.html |
|