Translate

Thursday 6 May 2010

Decision & Scenario Tables in Slim

There are two exciting features in Slim - the Decision Table and the Scenario Table. Below are the screen shots of both:


A Scenario table, as in the above image, does not by itself do anything and that is why the Scenario does not show green but, when combined with the Decision table, you get the desired test behavior as in the below image.


Every scenario described in the scenario table gets executed when a Decision table contains the exact name of the Scenario. Here, it is a Script table that helps Slim knows that it has to execute the Scenario script and not the fixture code.

More about the script and the code in a later post.

No comments: