Automation with FIT

The first step in the script is to verify that we can retrieve a recording given its id. Following is the translation of the manual step into the format of the table to be used in FIT.

fit.ActionFixture

start

CustomerTests.CatalogAdapter

enter

FindByRecordingId

4

check

Found

true

This test uses a class contained in the FIT framework named ActionFixture, which is a simple controller that parses each row and passes the values off to the appropriate handler. The header of the table defines the controller used to run the test. Each subsequent row in the table defines a step in the script. This test script uses the start,enter, andcheck commands that are part of the ActionFixture.

0 0

Post a comment