Nov
9
2010

Sample BDD web test using easyb and sahi

I blogged yesterday about “BDD web application testing using easyB and Sahi

I was asked to provide a sample, so here it is!

Click the picture to see full size

Nov
8
2010

BDD web application testing using easyB and Sahi

I already talked about the way we are testing our web application at Jobping in the following posts “ASP.NET MVC 2, MSpec and Watin ” and ”Automated functional tests using Watin and MSpec”.

The other day I landed on the DZone page “Automated Browser Testing: What's in Your Toolkit?” In the list of around 10 tools I knew some of them but there were 3 I didn’t knew. So I decided to go on and read about those 3. In this list there were Sahi which got me with those three sentences:

  • Powerful Recorder works on any Browser
  • Robust object identification without brittle XPaths
  • Implicit waits - even for complex AJAX applications

This is supposed to solve the issue we currently have with Selenium, even if we use Screen Objects to encapsulate our Selenium tests. It is just a pain to work in our highly AJAX application and for sure the XPath are brittle. 

So I decided to try it. I started by watching the video in the “Get Started” section and in less than 10 minutes I had my first test running.

WOW ! Impressive.

Going further I wanted to know if it could be used with a BDD framework. We currently are using JBehave, but reading about it, it was clear that it would be more effort for me to try it. So I went back to easyb  which I tried out a couple month ago.

I used Sahi Java Driver to output some Java code which I used directly in my easyb story.

I was surprised and impressed about the easiness I went through the implementation.

Looking forward for the next steps and where we will end with this.

About Laurent

Laurent Kempé

Laurent Kempé is the editor, founder, and primary contributor of Tech Head Brothers, a French portal about Microsoft .NET technologies.

He is currently employed by Innoveo Solutions since 10/2007 as a Senior Solution Architect and certified Scrum Master.

Founder, owner and Managing Partner of Jobping, which provides a unique and efficient platform for connecting Microsoft skilled job seekers with employers using Microsoft technologies.

Laurent is awarded by Microsoft since Avril 2002: Most Valuable Professional (MVP).

MVP
Certified ScrumMaster
JetBrains Academy Member

My status

Twitter

Flickr

www.flickr.com
This is a Flickr badge showing public photos and videos from Laurent Kempé. Make your own badge here.

Month List

Page List