Software Testing Class

Configuring FitNesse (FIT and SLIM)

In Fitnesse tutorial series last article we talked about “Writing The Fitnesse Fixtures – With Fitnesse Java Example“. In today’s class we are covering “Configuring FitNesse (FIT and SLIM)”.

FIT Testing Engine

FIT (Framework for Integrated Testing) is the testing engine in FitNesse tool which executes the test table by using the Fixture code. FitNesse is HTML and wiki “front-end” to FIT. FIT testing engine makes it possible to run test tables; but itself does not provide an easy way of creating those tables or displaying the results of those tests. This is where FitNesse comes into picture. FitNesse tool made it really easy to create, run, organize, annotate, and share FIT tests throughout.

Configuring FIT Test System:

To run a FitNesse test page under FIT protocol, we need to set TEST_SYSTEM variable to “fit”.

Syntax: !define TEST_SYSTEM {fit}

If above variable is set on your page or on any parent page, then that page will run through FIT testing engine. Below are the fit tables.

Configuring Fitnesse FIT and SLIM

SLIM Testing Engine

SLIM (Simple List Invocation Method) is an alternative testing engine to FIT. It is light weighted as compared to FIT testing engine. It has a very small kernel that implements the SLIM protocol. Using such protocol has the following advantages.

Setting up the SLIM Test System and associated Tables:

To run a FitNesse test page under SLIM protocol, we need to set TEST_SYSTEM variable to “slim” instead of “fit”.

Syntax: !define TEST_SYSTEM {slim}

If above variable is set on your page or on any parent page, then that page will be run with Slim Protocol. Below are the slim tables.

Data Types: The data in all of above tables is always String. Slim testing engine has standard data type converters which automatically convert the strings in these tables into the data types expected by the fixtures.

Configuring SLIM: SLIM system can be configured for the following properties:

PropertiesValueDescription
slim.port8085It is the base port for SLIM testing engine.
slim.pool.size10FitNesse by default uses the ports 8085 up to 8095 (slim.port +slim.pool.size). This parameter defines the size of the pool of ports that could be used in a cycle.
slim.hostlocalhostIf defines the host URL for the SLIM server where it is running. If you are running FitNesse on the local machine then it will be localhost by default. If the machine is remote SLIM server then it configured for the IP address or host name.
slim.flags These are the extra flags to provide to the SLIM server. Arguments which are supported by the slim service are as follows:

 

[-v] [-i interactionClass] [-s statementTimeout] [-d] [-ssl parameterClass]

slim.timeout20 secondsIt is the time value in seconds defined for connection timeout starting and finishing a test run on SLIM testing engine.
slim.debug.timeoutslim.timeoutIt is similar to that of slim.timeout parameter, but this come in picture only when the debug property is set (falls back to slim.timeout).
manually.start.test. runner.on.debugfalseThis is Boolean flag, when false it does not launch a SLIM server when the test is running in debug mode.

Above slim properties are well define in the plugins.properties file of FitNesse tool.


⇓ 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