FitNesse

CommonIncludes

It is very common to have a many tests that look alike. In most cases these test will have duplicate content perhaps to setup the environment for the test. This duplication can very very painful when the environment changes. The change to the enviroment will have to be made in all the tests that share the duplicated content. This can very tedious and time consuming work. Fortunately it can be avoided.

Using the Include widget[?] is the key. Let's assume that our tests follow the standard BOC pattern and they look like this:

Included page: Sample Setup For Test (edit)

This is the Build step of our sample test.

It is common among multiple tests so it is saved in a separate page that can be included by test pages.

A table that sets up for a test

Included page: Sample Operate For Test (edit)

This is the Opertation step of our sample test.

It is common among multiple tests so it is saved in a separate page that can be included by test pages.

A table the performs an operation that needs checking

And now we'll perform the Check step.

A table that checks something

Keyboard Shortcuts ?

×
  • t Test
  • e Edit page
  • a Add new page
  • p Properties
  • w Where used?
  • / Focus on search bar
  • s Open search page
  • g u Go to User Guide