1. Sahi
Open Source Tool for Web Application Testing
Tyto Software Pvt. Ltd., Stylus Serviced Offices, First Floor, Pine Valley, Embassy Golf-Links Business Park,
Off-Intermediate Ring Road, Domlur, Bengaluru, India 560 071
http://sahi.co.in +91 988 096 5555 +91 80 40951787
2. Web Application Test automation and Sahi
With each release of a software product, functionality needs to be verified.
Generally, more than 80% of the verification process is repetitive, with testers
performing the same verification steps manually from release to release.
Automation can ease the pressure of the organization’s testers, provide quicker
feedback and eliminate human error. Quicker feedback cycles lead to faster
evolution of software and greater confidence in the end product.
Web applications have evolved dramatically in the past few years, with newer
faster browsers, Web 2.0, AJAX and numerous web frameworks making traditional
web automation obsolete. Testing now needs to happen in the browser and across
browsers, across web frameworks, server technologies and operating systems.
Traditionally such complexity in testing has come with a cost. The choice was
either commercial tools which were easy to use or open source tools which were
usable only by the technically savvy. For an organization which looks to adopt a
tool across their teams and projects, both these solutions do not scale as one is
expensive in terms of cost and the other in terms of productivity and salaries.
Tyto Software Pvt. Ltd., Stylus Serviced Offices, First Floor, Pine Valley, Embassy Golf-Links Business Park,
Off-Intermediate Ring Road, Domlur, Bengaluru, India 560 071
http://sahi.co.in +91 988 096 5555 +91 80 40951787
3. Sahi gives you the best of both worlds
Sahi is a tester friendly tool. Sahi has smart record and playback capabilities and
combines it with simple but powerful scripting. Testers can get productive from
day one and whole suites of automation scripts can be maintained with minimal
knowledge of programming. Sahi is a mature, 5 year old open source project.
A quote from a public wiki of ZKOSS, a popular web framework:
‘ The Problem
Testing ZK Web Applications can be a challenge with Selenium and Grinder
because ZK dynamically generates element IDs, and these testing frameworks
identify elements within the rendered Web Page using these IDs
The Solution
Sahi can record and playback sessions directly on your production ZK Web
Application without having to use a custom ID generator. It requires no browser
plugins to create recorded sessions to be used for playback. Sahi is pure Java, so it
integrates nicely with ANT. The Sahi scripting language is simple and elegant, so
there's no need to break out the XPATH documentation to get your tests running.
You can even run your Sahi tests headless using Firefox in an X-Window virtual
frame buffer on Linux. In headless mode you can run real browser-based tests on
your continuous integration machines without having to be logged in. If you're
testing on windows, you can run your tests on IE, Firefox, Chrome, Safari, and
Opera. Despite some idiosyncrasies Sahi seems magical at times, but more
importantly it makes testing productive - so productive it's almost fun!
’
Tyto Software Pvt. Ltd., Stylus Serviced Offices, First Floor, Pine Valley, Embassy Golf-Links Business Park,
Off-Intermediate Ring Road, Domlur, Bengaluru, India 560 071
http://sahi.co.in +91 988 096 5555 +91 80 40951787
4. Save time with Sahi
Save tester time in test creation
Powerful recorder helps in easy script creation
Save time in playback
Fast parallel playback reduces play back time
Save time in team expansion/inception
Sahi’s APIs are simple. Testers do not need to understand XPaths or the DOM
structure. Allows easy adoption by new team members
Save time in maintenance when new releases are made
Sahi uses smart accessor APIs which are largely independent of DOM changes
making tests stable
Save time on reruns, tracking and debugging
Sahi does not need wait statements even for AJAX applications. This removes
timing related failures, the most common cause of frustration in AJAX testing
Save on developer and management time
Sahi does not require modifications to existing web applications to make them
testable
Save time in building peripherals/frameworks
Sahi comes with inbuilt logging, HTML reports, parallel playback and APIs for data-
driven testing
Save time by finding solutions quickly and reliably
Tyto Software, a Bangalore based company founded by the author of Sahi, offers
training and commercial support around Sahi.
Tyto Software Pvt. Ltd., Stylus Serviced Offices, First Floor, Pine Valley, Embassy Golf-Links Business Park,
Off-Intermediate Ring Road, Domlur, Bengaluru, India 560 071
http://sahi.co.in +91 988 096 5555 +91 80 40951787
5. Technical Capabilities of Sahi
Features
Browser and Operating System independent
Powerful recorder which works across browsers
Powerful Object Spy
Intuitive and simple APIs
Javascript based scripts for good programming control
Version Controllable text-based scripts
In-built reports
In-built multithreaded or parallel playback of tests
Tests do not need the browser window to be in focus
Command line and ant support for integration into build processes
Supports external proxy, HTTPS, 401 & NTLM authentications
Supports browser popups and modal dialogs
Supports AJAX and highly dynamic web applications
No wait statements required even for AJAX and page loads
Intuitive APIs like _near and _in eliminates need for XPaths
Works on applications with random auto-generated ids
Very lightweight and scalable
Supports data-driven testing. Can connect to database, Excel or CSV file.
Ability to invoke any Java library from scripts
Tyto Software Pvt. Ltd., Stylus Serviced Offices, First Floor, Pine Valley, Embassy Golf-Links Business Park,
Off-Intermediate Ring Road, Domlur, Bengaluru, India 560 071
http://sahi.co.in +91 988 096 5555 +91 80 40951787
6. Limitations
Sahi currently cannot handle pages which have other pages from different domains
embedded in them using iframes or frames. So you cannot have a page from
google.com having an iframe with a page from yahoo.com. Note that this is not the
same as switching between domains, where you navigate from a google.com page to a
yahoo.com page, which will work in Sahi.
File upload field will not be populated on browsers for javascript verification. File upload
itself works fine
Tyto Software Pvt. Ltd., Stylus Serviced Offices, First Floor, Pine Valley, Embassy Golf-Links Business Park,
Off-Intermediate Ring Road, Domlur, Bengaluru, India 560 071
http://sahi.co.in +91 988 096 5555 +91 80 40951787
7. Why choose Sahi over QTP?
For a web based application, Sahi performs better than QTP. A few advantages:
1) Speed of execution. On an actual customer site, a suite of 1000 test cases runs in 8 hrs
using Sahi and takes upto 3 days using QTP.
2) Cost of ownership. A single license of QTP costs twice the support cost for an entire
team using Sahi
3) Better AJAX and Web 2.0 support
4) Sahi tests does not need the browser to be in focus
5) Sahi works on all major browsers and Operating Systems. QTP automates
Firefox/Internet Explorer on Windows only.
Why choose Sahi over other open source testing tools
1) Sahi is a tool for testers, while most tools are aimed at developers
2) Sahi abstracts out technicalities like object identification, waits for AJAX etc. reducing
test complexity
3) Sahi currently has the best recorder
4) Sahi handles HTTPS/AJAX/Authentication/Modal dialogs better than other tools
5) Sahi has built in reporting, parallel execution which need to be added or are unavailable
in other tools
6) Sahi is easily extensible without even recompiling code
7) Sahi is the most developed right now, with monthly stable releases
Tyto Software Pvt. Ltd., Stylus Serviced Offices, First Floor, Pine Valley, Embassy Golf-Links Business Park,
Off-Intermediate Ring Road, Domlur, Bengaluru, India 560 071
http://sahi.co.in +91 988 096 5555 +91 80 40951787
8. Commercial Support
Tyto Software Pvt. Ltd. is a Bangalore based company founded by the author of Sahi.
Tyto Software provides commercial support and training for Sahi.
The annual support contract for Sahi covers the following:
1) Access to private support portal to report and track issues faced while automating with
Sahi. The portal allows private knowledge sharing within an organization via forums, bug
tracking system and a wiki.
2) Access to bug tracking system based support with guaranteed response within one
Indian business working day, pertaining to the following use cases:
a. Show stoppers, bugs and minor issues in Sahi. Intermediate bugfix releases will
be made available if needed
b. Help with scripting and using best practices
c. Minor enhancements to Sahi to adapt to your company's applications
d. Workarounds for known un-resolved issues
The contents of training can be found online at http://sahi.co.in/w/sahi-training
Tyto Software Pvt. Ltd., Stylus Serviced Offices, First Floor, Pine Valley, Embassy Golf-Links Business Park,
Off-Intermediate Ring Road, Domlur, Bengaluru, India 560 071
http://sahi.co.in +91 988 096 5555 +91 80 40951787
9. Contact Information
For enquiries on Sahi training and commercial support contact
support@sahi.co.in
Tyto Software Pvt. Ltd.
Stylus Serviced Offices,
First Floor, Pine Valley,
Embassy Golf-Links Business Park,
Off-Intermediate Ring Road, Domlur,
Bengaluru, India 560 071
http://sahi.co.in
http://www.tytosoftware.com
+91 80 40951787
+91 988 096 5555
Tyto Software Pvt. Ltd., Stylus Serviced Offices, First Floor, Pine Valley, Embassy Golf-Links Business Park,
Off-Intermediate Ring Road, Domlur, Bengaluru, India 560 071
http://sahi.co.in +91 988 096 5555 +91 80 40951787