Sahi - Effective Web Testing (MT)

119,689 views

Published on

Presentation given at MindTree Bangalore, explaining how Sahi can save time and money.

Published in: Technology
2 Comments
6 Likes
Statistics
Notes
No Downloads
Views
Total views
119,689
On SlideShare
0
From Embeds
0
Number of Embeds
113,460
Actions
Shares
0
Downloads
234
Comments
2
Likes
6
Embeds 0
No embeds

No notes for slide

Sahi - Effective Web Testing (MT)

  1. 1. Sahi - Effective Web Testing<br />- V Narayan Raman<br />
  2. 2. 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 />Sahi<br />
  3. 3. 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 />Real life problems<br />
  4. 4. 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 />Real life problems<br />
  5. 5. 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 />Sahi Differentiators<br />
  6. 6. DEMO<br />
  7. 7. 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 />Tips for stable tests<br />
  8. 8. Interact with Java directly from Sahi Script<br />Read/Write to files, databases, Excel sheets, XML files<br />Ruby/Java drivers and recorders<br />Other features<br />
  9. 9. Grid<br />Flash and Flex support<br />Applet Support<br />C# driver<br />Feature Road Map<br />
  10. 10. 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 />Sahi saves you Time and Money<br />
  11. 11. Information<br />http://sahi.co.in/<br />http://blog.sahi.co.in/<br />http://sahi.co.in/forums<br />Twitter: _sahi<br />LinkedIn group: SahiWeb Automation<br />narayan@sahi.co.in<br />support@sahi.co.in<br />TytoSoftware Pvt. Ltd.<br />http://www.tytosoftware.com<br />Questions and Answers<br />

×