Economical, Robust Web Automation using Sahi

2,491 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,491
On SlideShare
0
From Embeds
0
Number of Embeds
7
Actions
Shares
0
Downloads
98
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Economical, Robust Web Automation using Sahi

  1. 1. Economical, Robust Web Automation using Sahi<br />V Narayan Raman<br />Tyto Software Pvt. Ltd.<br />
  2. 2. Sahi<br />Automation tool for web app testing<br />Mature open source tool started in 2005<br />Easy to use, ideal for testers<br />Works well with AJAX, Web 2.0<br />No Xpaths, no waits<br />Works well with Agile methodologies<br />Version control, refactor, continuous integration<br />Sahi script, Java and Ruby drivers <br />
  3. 3. Real life problems<br />Object Identification<br />Need developer involvement for adding ids <br />Xpaths – brittle, difficult to grasp, not cross browser<br />css-selectors – better, but still complicated and not cross browser<br />Waiting for AJAX, Page loads<br />Hardcoded - slow<br />Conditional – needs knowledge of the DOM and DOM events<br />
  4. 4. Real life problems<br />Knowledge and learning curve<br />Java, Junit, Eclipse, Ruby, Xpaths, Firebug, browser DOM, Frames/Iframes- Really unrelated to web testing!<br />Difficult to staff or ramp up teams<br />
  5. 5. Sahi Differentiators<br />Recorder on all browsers <br />Implicit waits, even for complex AJAX and page loads<br />Excellent Object Spy and accessors which work across frames and iframes<br />No special privileges required on browser<br />HTTPS, 401/Windows/NTLM authentication, popup windows, modal dialogs, File uploads<br />
  6. 6. DEMO<br />
  7. 7. Other features<br />Interact with Java directly from Sahi Script<br />Read/Write to files, databases, Excel sheets, XML files<br />Ruby/Java drivers and recorders<br />
  8. 8. Sahi vs Selenium<br />No XPaths or Waits<br />Recorder on all browsers<br />Identifies objects with dynamic ids<br />Can run multiple instances of browsers simultaneously on single machine. (Even IE)<br />
  9. 9. Sahi vs QTP<br />Recorder on all browsers and OS<br />Can script in Sahi Script/Java/Ruby<br />Simultaneous playback<br />Grid like playback<br />Does not lock up mouse<br />Object identification is superior<br />Sahi does not support desktop applications<br />
  10. 10. Tips for stable tests<br />Rely on recorder only initially<br />Find the smartest accessor<br />No index based accessors if possible<br />Use _near and _in<br />Refactor and reuse code<br />Minimize code duplication <br />functions, variables, _include<br />Use the Sahi Controller to your advantage<br />
  11. 11. Sahi Pro<br />Distribute tests across multiple machines (Grid)<br />Automatically accept SSL certificates<br />Enhanced Controller: Easily record _in and _near<br />Refactor scripts from the Controller<br />Log results to database as XML, HTML or SQL<br />
  12. 12. Feature Road Map<br />Flex support (in Sahi Pro)<br />Android support <br />C# driver<br />
  13. 13. Sahi saves you Time and Money<br />Recorder, Object Spy and APIs<br />Reduce development time<br />Smart accessors<br />Stable tests save maintenance time<br />Lesser dependence on developers to add ids everywhere<br />In built parallel playback, HTML reports<br />Saves time in maintenance and quick start<br />Authoritative commercial support and training available<br />Saves time in removing road blocks<br />
  14. 14. Questions and Answers<br />http://sahi.co.in/<br />http://sahi.co.in/forums<br />For enquiries on Sahi Pro, email us at support@sahi.co.in<br />Twitter: _sahi<br />LinkedIn group: Sahi Web Automation<br />Tyto Software Pvt. Ltd.<br />http://www.tytosoftware.com<br />

×