TesterHQ - The Evil Tester Blog Aggregator

Jun 30, 2010 - 5 minute read - Evil Tester Selenium Selenium Simplified

What if Selenium's Highlight Command was always on?

A reader asked for recommendations on how to use Selenium’s “Highlight” command. Now I personally don’t use the highlight function. Never really have. When I debug my tests, I step through the script in Eclipse (I write all my tests in Selenium-RC using Java). But, by using reflection to automatically generate code for a java class we can run the highlight command prior to executing other Selenium commands, without amending our existing tests.

May 26, 2010 - 6 minute read - Evil Tester Selenium

A Selenium CaptureNetworkTraffic Example in Java

When I learned about Selenium’s ability to capture network traffic I was really excited. This opened up a whole new world of testing possibilities. I could capture the Ajax requests made to the server and check them for validity. When I visit pages I can check the web analytics messages sent back and check their correctness. So this post explains a little about how to use CaptureNetworkTraffic. I found two blog posts useful when learning about capturenetworktraffic:

Apr 2, 2010 - 3 minute read - Selenium Simplified Blog Selenium-RC

Selenium Example – How to Amend the JavaScript of the Web Application Under Test

Why would you want to change the JavaScript of a web application you have to test? Well, if you want to test that events get triggered correctly and the basic structure of the page rather than the actual functionality implemented by the JavaScript. Perhaps the JavaScript does something that you can’t handle with the automation tool, but you still want to cover the basics of the page? This code snippet shows one way to do it.

Mar 19, 2010 - 5 minute read - Evil Tester Tools

A poor man's testing Head Up Display

James Whittaker has talked and blogged about Testing HUDs. In this post I will show you how to build a simple HUD for testing web applications. And In true Blue Peter stylee you can find all the things you need, for free, a few clicks away on the internet (Samurize, Fiddler). A HUD (Heads Up Display) allows us to ‘see at a glance’ important real time information that we might not otherwise have access to.

Mar 13, 2010 - 1 minute read - Evil Tester Selenium

A simple getCSSCount for use with Selenium-RC

We know that XPath runs slowly in IE, but XPath has the getXPathCount method. And CSS runs quickly but Selenium doesn’t have a corresponding getCSSCount method. I looked around for a simple way of getting count from a CSS selector. I found this blog post by Aditya Ivaturi, but since I like to keep my Selenium setup and tests pretty simple, I wanted a much lower maintenance way of implementing the getCSSCount functionality.

Mar 11, 2010 - 1 minute read - Evil Tester Selenium Tools

Use Firefinder to help you construct Selenium CSS selectors

Looking through the archive of blog posts, I can see that I mentioned various tools for Xpath construction, but none for CSS selectors in Selenium. Let’s change that now… Firefinder helps you test your css selectors and XPath statements before committing them to Selenium code. Firefinder, much like XPather or XPath Checker, allows you to type in a css selector and ‘filter’ the page with the css selector so you can see what matches the selector you entered.

Mar 8, 2010 - 1 minute read - Evil Tester Tools

Another XPath tool to help out with your automated testing

I use XPather to help me write my automated tests, and other people seem to like XPath Checker. But today I needed something a little harder hitting and something which didn’t sit in the browser to help me write some batch processing xml tests. I found SketchPath, a fantastic free .net written tool. SketchPath has a tree view of the xml document which shows the matches, hints on XPath functions, and a good trace facility.

Mar 4, 2010 - 4 minute read - Evil Tester Selenium

Selenium as a performance and load test tool with BrowserMob

I recently had the good fortune at work to have tested an Amazon cloud hosted application. And this led to the test team having to investigate alternative performance test tools. We settled on BrowserMob and we have loved it. I wish BrowserMob had an affiliate program, then I might get some cash if I send you off to their site. But they don’t, and I’m only writing this because I think they have a great tool and want to draw your attention to it.

Feb 28, 2010 - 2 minute read - Evil Tester Selenium Simplified

Hints and Tips for self-publishing testers

On this, barely my third day of self-publishing an electronic ebook. I somehow feel qualified to pass on a few tips to anyone thinking of going down that road. I quickly learned that I should not use lulu.com to build a wee self-contained community, where you can keep your beta customers up to date with future releases, because lulu.com doesn’t tell you anything about the people that bought your book (or if it does, I could not find the option).