Software Testing Class

Using Import Table, Library Table And Comment Table in FitNesse

In this tutorial, we are going to discuss about slim tables present in FitNesse. These are:

Import Table

Import table is a simple slim table which adds a path to the Java code fixture search path. In other words, it informs the slim processor that the fixtures present on the current page could be present at the paths mentioned in the Import table.

To work with Import table, we need to do the following.

Table In Fitnesse

FitNesse Screenshot For Import Table:

As described above, Import table is a table with single column and multiple rows.  First cell of the table has reserved word “Import” and the following cells have the Java qualified path for the Java fixtures as shown below.

Library Table

Library table is a table that installs available fixtures for all underneath FitNesse test pages wherever this table is called on those FitNesse pages. The first row in a table contains the word Library which informs the slim processor which table type to execute.

To work with Library table, we need to do the following.

Library Table Example

Library table is useful, whenever a method is called that is not available on the fixture used on the current FitNesse page but present in other fixture which is defined in the library table. Slim processor will scan all the installed available libraries for that method and when found it will be invoked on the current FitNesse test page.

Below is the screenshot of the Java Fixture used as a script table on the current FitNesse test page.

Below is the screenshot of the Java Fixture that is defined inside the Library table, so that the methods present in the fixture can be used if they are not present in the current script table.

Explanation for Java Fixture:

FitNesse Screenshot for Library table:

Few Points to remember for Library table

There is an order of method execution when library table is used on the FitNesse page.

Comment Table

Comment table in FitNesse is the table that does absolutely nothing. The first row in a table contains the word “Comment” which informs the slim processor that this is a comment table and its processing should be ignored.

To work with Comment table, we need to do the following.

FitNesse Screenshot for Library table:

On the below FitNesse screen, first row starts with the keyword “comment”  informing the slim processor that it is a comment table and it does not requires the processing of the number of following rows with comments.


⇓ Subscribe Us ⇓


If you are not regular reader of this website then highly recommends you to Sign up for our free email newsletter!! Sign up just providing your email address below:


 

Check email in your inbox for confirmation to get latest updates Software Testing for free.


  Happy Testing!!!
 
Exit mobile version