Automating Customer Tests
Although many tools can be used to perform test automation, we will focus our attention on FIT, which seems very well-suited to perform the tests we need.
FIT Overview
FIT uses HTML tables to structure customer tests. For example, the following table is a sample customer test for dividing numbers from the FIT Web site:
eg.Division | ||
---|---|---|
numerator | denominator | quotient() |
1000 | 10 | 100.0000 |
-1000 | 10 | -100.0000 |
1000 | 7 | 142.85715 |
1000 | .00001 | 100000000 |
4195835 | 3145729 | 1.3338196 |
The way to interpret this table (let’s ignore the first two rows for a moment) is to read each row as a separate test. The first two columns are input to the software, and the third column is the expected result, in this case. The first row verifies the equation (1000/10 = 100.0000). ...
Get Test-Driven Development in Microsoft® .NET now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.