Hey Dan,
Thank you very much for the quick response...
I will take a look at the information provided and will let you know
how I get on.
Kind regards,
Usman Hussain
On Sep 19, 2:59 pm, Daniel Worthington-Bodart <
d...@bodar.com> wrote:
> This test is a very simple example of the given when then support:
>
>
http://code.google.com/p/yatspec/source/browse/test/com/googlecode/ya...
>
> This produces:
>
>
http://yatspec.googlecode.com/files/example.html
>
> We use WebDriver/Selenium/HtmlUnit and Yatspec on a number of different
> projects, the general principle is to just add the request and response into
> the captured inputs and outputs (seen on line 69 in
> SpecificationExampleTest.java<
http://code.google.com/p/yatspec/source/browse/test/com/googlecode/ya...>).
> And maybe some values into interesting givens if you want them to be
> highlighted in the html report
>
> You can literally put anything you want in any of the "given", "when",
> "then" blocks, be it HttpClient, WebDriver, Url or even database calls.
>
> Yatspec really is a pretty simple extension to JUnit with a little bit of
> syntactic sugar here and there. Probably the most advanced feature is
> creating Sequence diagrams based on interactions. see:
http://code.google.com/p/yatspec/source/browse/test/com/googlecode/ya...
>
> Kind regards
>
> Dan