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 […]

Why do you need a Data Driven Framework?

As you progress in your test automation, your scripts will quickly get more complex and your test data sets get larger. You will now need to handle your test data separately to make your scripts independent of it. Let us consider the example of the test scenario for an online book purchasing application, that we […]

How to improve Playback Performance for longer runs with Sahi Pro?

For longer runs, the playback gradually becomes slow and more scripts are aborted. Sahi Pro v9.1.2 is a release primarily aimed at improving Playback performance. To achieve this, we have done the following : Reduced the CPU usage Lowered the live thread count in JVM Optimized the code Added browser configuration flags to reduce abort […]

What’s new in Sahi Pro 9.0.2

As Chrome and Firefox have released the new version, we had to adapt the changes made by those browsers in order to playback the scripts smoothly. Sahi Pro 9.0.2 solves all the issues which were caused by the latest browser updates. However, it may break the previous scripts as well if the scripts had the […]

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 […]

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 […]

Testing responsive web design

Understanding responsive web design When web content was primarily consumed through laptops and desktops, web sites were designed, developed, and tested for a handful of screen resolutions such as 800×600, 1024×768. With advent of mobile operating systems such as iOS, Android, Windows 8 and BlackBerry 10, device manufacturers are rolling out different models of smartphones […]

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 […]