Nancy.Testing - test-dialogues with Requests and Response
January 31, 2013
This is the third post in my series on Nancy.Testing. It will focus a lot on the Browser and the Response object. Together with the Browser (and its ConfigurableBootstrapper), these objects make up the entirety of the Nancy.TestingFramework. Let’s do the logo thing again, shall we?
The other posts can be found here:
- Intro to testing with Nancy
- The Configurable bootstrapper
- The Browser and Response objects (this post)
- Hat and shoeless testing with Simple.Data
- SpecFlow and Nancy
By now you’re probably just looking for the code so let’s dive right in.
Browser
The Browser object is the one that you use to issue requests to the site you’re testing. Most of the Browser configuration is done through the ConfigurableBootstrapper and let’s not go over that again.
But the Browser has a couple of other tricks up...