
Use DoFixture keywords for better control ...................... 73
Keep ActionFixture in mind ............................................ 75
Playtime ......................................................................... 76
7. Removing duplication ......................................................... 79
Group related tests into test suites ................................... 79
Include pages and use them as components ..................... 82
Reuse entire suites with symbolic links ............................ 83
Use markup variables to parameterise test pages .............. 84
Defining common actions ............................................... 85
Remove irrelevant information ....................................... 86
Acceptance tests should focus on business rules ............... 88
Hide parts of the page ..................................................... 88
Playtime ......................................................................... 88
8. Coordinating fixtures .......................................................... 91
Embed fixtures for best results ........................................ 92
Use SetUpFixture to prepare the stage for tests ................ 94
Create test suites in flow mode ........................................ 99
Wrapping business objects with DoFixture .................... 101
Playtime ....................................................................... 102
9. Working with collections ................................................... 103
Testing lists of objects ................................................... 104
Checking for empty collections ...................................... 108
Beware of test extensions ............................................... 109
Use RowFixture for better precision .............................. 111
Playtime ....................................................................... 114
III. Advanced FitNesse usage ......................................................... 117
10. Working in a team ........................................................... 119
Options for team setup .................................................. 119
Organising the files ....................................................... 123
Integrating with automated build tools .......................... 127
11. Testing web interfaces ..................................................... 135
Choosing the right thing to test ..................................... 135
Introducing Selenium ................................................... 138
Connecting from FitNesse ............................................. 142
Running tests on a remote server ................................... 147
More Selenium tests ...................................................... 149
12. Testing database code ...................................................... 151
Connecting to the database ........................................... 151
iv
Test Driven .NET Development with FitNesse
评论1