Hi everybody,
I use JBehave on my current project, and its verifying the classes
behaviours.
Recently I headed to implement the stories, and since my app is a webapp,
acting like a service api, with rest interfaces and the only thing I do is
verify its returning xml, I didn't choose to use tools like Selenium,
WebDriver, etc...
So in my stories, I built a given called CommentIsRunning, which starts an
embedded Jetty server and from that I've been implementing the stories.
It's still a bit half-baked, but as soon as get a concrete solution, I bring
it to you.
Thanks.

On 4/10/07, Andy Zimmerman <[EMAIL PROTECTED]> wrote:

I have to admit, I'm a bit surprised you aren't looking at Selenium
instead, particularly since it's another ThoughtWorks brain child, but
WebDriver does look pretty nice.  I may end up just going back to the last
web testing framework I used (before my brief hiatus into management life):
jWebUnit.  It's not using the right "language", but I think I can wire it
into the Story framework.  We'll see.

I'll definitely keep you informed, particularly since I plan on
documenting my work, for use in an internal "chalk talk" discussion if
nothing else.

Thanks again,
Andy

On 4/10/07, Elizabeth Keogh <[EMAIL PROTECTED]> wrote:
>
>
> "Andy Zimmerman" <[EMAIL PROTECTED]> wrote on 10/04/2007 14:05:03:
>
> > Liz,
> >
> > Thanks for the thoughtful reply.  I *think* I'm starting to "get" it.
> > I'll let you know how my efforts at adopting jBehave go.
> >
> > The primary difference for me is going to be that I don't have a Java
> > GUI; I'm working strictly in the web app space, so I need to adapt
> > things slightly.  Any recommendations / experiences that anyone has
> > working with jBehave in that environment would be greatly appreciated.
>
> >
> > Thanks,
> > Andy
>
> Hi Andy,
>
> Good news: We have exciting plans to integrate a really cool web harness
> with JBehave (see code.google.com/p/webdriver !)
> Bad news: We haven't started yet.
>
> So, you have a gui (web page) which gives value to the Story, and whose
> behaviour is difficult to describe in code.
>
> You can either:
> - manually verify the behaviour of the web page, and start the
> executable Stories at the next layer which gives value to it (eg: the
> container)
> - or be brave and hook a suitable web app into JBehave.
>
> I have done the first on a commercial web app with a fair degree of
> success (some third-party app configuration and possible proxying required).
>
> Whatever you decide (and especially if you go with the second!) please
> let us know how it goes!
>
> Cheers,
> Liz.
>
> --
> Elizabeth Keogh
> [EMAIL PROTECTED]
> http://sirenian.livejournal.com
> http://jbehave.org
>




--
______________________
Alexandre Martins Nunes
http://m.artins.net

Reply via email to