I created some simple examples using cucumber, celerity, and rspec to verify the behaviour of a web application. The examples include: * verifying javascript ran on page load * verifying results of AJAX calls * responding to alerts and confirm dialog boxes * accessing iframes The examples are located at: http://github.com/alvinschur/celerity-examples/tree/master Many thanks to core team for the great tools. Thanks to Ashley Moran for the slides and code using celerity, rspec, and cucumber. http://aviewfromafar.net/2008/10/2/geekup-sheffield-vi-from-specification-to-success Feedback and improvements are welcome. Alvin. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20081116/6cddde04/attachment.html>
On Nov 17, 2008, at 1:00 am, Alvin Schur wrote:> I created some simple examples using cucumber, celerity, and rspec > to verify the behaviour of a web application. > > The examples include: > > * verifying javascript ran on page load > * verifying results of AJAX calls > * responding to alerts and confirm dialog boxes > * accessing iframes > > The examples are located at: http://github.com/alvinschur/celerity-examples/tree/master > > > > Many thanks to core team for the great tools. Thanks to Ashley > Moran for the slides and code using celerity, rspec, and cucumber. > > http://aviewfromafar.net/2008/10/2/geekup-sheffield-vi-from-specification-to-success > > > Feedback and improvements are welcome.Hi Alvin That looks like the start of a useful reference! I''ve started - and as soon as I get work back under control, I''ll continue with - a series called Adventures in MerBDDland[1]. That will focus on speccing Merb + Dojo with Cucumber, RSpec and Celerity. You may wish to keep an eye on it in case you want to extract more examples for your repo. BTW I never knew you could do this: @browser.page.getEnclosingWindow().getThreadManager().joinAll(10000) Thanks for the tip - not tried it yet though. I assume this works faster than the Celerity FAQ example of sleeping in a loop until Ajax has completed? Cheers Ashley [1] http://aviewfromafar.net/tags/merbddland -- http://www.patchspace.co.uk/ http://aviewfromafar.net/
On Wed, Nov 19, 2008 at 3:43 PM, Ashley Moran <ashley.moran at patchspace.co.uk> wrote:> > On Nov 17, 2008, at 1:00 am, Alvin Schur wrote: > > I created some simple examples using cucumber, celerity, and rspec to >> verify the behaviour of a web application. >> >> The examples include: >> >> * verifying javascript ran on page load >> * verifying results of AJAX calls >> * responding to alerts and confirm dialog boxes >> * accessing iframes >> >> The examples are located at: >> http://github.com/alvinschur/celerity-examples/tree/master >> >> >> >> Many thanks to core team for the great tools. Thanks to Ashley Moran for >> the slides and code using celerity, rspec, and cucumber. >> >> >> http://aviewfromafar.net/2008/10/2/geekup-sheffield-vi-from-specification-to-success >> >> >> Feedback and improvements are welcome. >> > > > > Hi Alvin > > That looks like the start of a useful reference! I''ve started - and as > soon as I get work back under control, I''ll continue with - a series called > Adventures in MerBDDland[1]. That will focus on speccing Merb + Dojo with > Cucumber, RSpec and Celerity. You may wish to keep an eye on it in case you > want to extract more examples for your repo. > > BTW I never knew you could do this: > > @browser.page.getEnclosingWindow().getThreadManager().joinAll(10000) > > Thanks for the tip - not tried it yet though. I assume this works faster > than the Celerity FAQ example of sleeping in a loop until Ajax has > completed?I haven''t compared the performance. The celerity FAQ example requires knowing the HTML element that is changed by the AJAX call which turned me off. The HTMLUnit example is generic and works for me so far. I''m looking forward to more adventures in MerBDDland. Alvin.> > > Cheers > Ashley > > > [1] http://aviewfromafar.net/tags/merbddland > > -- > http://www.patchspace.co.uk/ > http://aviewfromafar.net/ > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20081120/095c4550/attachment.html>