ZK testing with Sahi

Joseph Neuhaus has written a detailed article on testing ZK applications with Sahi. The article explains how to run Sahi tests headless on a linux machine.Excerpts from the well written, thorough article:If you have attempted to create browser-based functional tests with Selenium, or load tests using Grinder, then you will marvel at the simplicity of […]

Toggling Proxy on Browsers

One of the pain points of using Sahi is to remember to set the proxy on the browser while testing and removing it later.There are a few tools which alleviate this well.Firefox:Use Proxy Button to toggle the proxy in one click from the Firefox toolbar.Internet Explorer:Use ProxyPal to toggle proxy from the IE toolbar.Use /tools/toggle_IE_proxy.exe […]

Web automation does not need XPaths

Really.Learn this web automation nursery rhyme today!XPaths are evil,XPaths are fickle,Developers touch code,And the testers are in a pickle!Have you ever used XPaths and found that it needs non-trivial amount of effort in maintenance?Especially testers, who do not have the time or energy to get XPaths right, stay away from XPaths. Use ids or names […]

Testing applications with different subdomains

Applications like Facebook use multiple subdomains to fetch content.To make Sahi work for such applications, open sahi/htdocs/spr/domainfix.js and uncomment the linedocument.domain = d.substring(ix+1)Restart Sahi and subdomains should work now.

Stable accessors/locators using UI Relations

Identification of elements in a web interface is one of the toughest challenges of software UI automation. First came accessing by location (x,y coordinates), which quickly faded away due to window resolutions, rendering differences etc. Then came the concept of identification using code structure. XPath became hugely popular; Reasons being Automation was only attempted by […]

Sahi Tutorials

Excellent tutorial written by Jesse Larson./forums/viewtopic.php?id=205Tutorial in Flash:/static/sahi_tutorial.html

Sahi Pro – Cheat Sheet for Download

When we start using powerful products like Sahi Pro, we look forward to using it to the fullest. Sahi Pro has many APIs that can help us with our testing. Some of the categories of APIs include- File APIs- Action APIs- Fetch APIs- Script Execution Control APIs- Masking APIs We have come up with a […]

Parsing XML in Sahi scripts

Sahi uses Rhino as its JavaScript engine and Rhino has excellent support for handling XML. Below is a script which reads and asserts XML nodes and attributes. The example has been picked from http://www.ibm.com/developerworks/webservices/library/ws-ajax1/ so that it is easy to experiment with the IBM examples in this script .var xmlStr = ” +” +‘   […]