O'Reilly logo

JavaScript Testing by Liang Yuxian Eugene

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action—user Interface testing using Sahi

We will demonstrate to you the recording and play back feature of Sahi, and see how it can be used to test user interface widgets provided by JavaScript libraries such as jQuery.

  1. We'll start by installing Sahi. Go to http://sahi.co.in and download the latest version. The latest version at this point of writing is V3 2010-04-30. Once you have downloaded it, extract it to the C: drive.
  2. Open Internet Explorer (I am using IE8 for this demonstration) and go to http://jqueryui.com/themeroller/. We will be using the user interface for our demonstration purposes.
  3. In order to use Sahi, we need to first navigate to C:\sahi_20100430\sahi\bin and look for sahi.bat. Click on it so that we can start Sahi.
  4. Now, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required