Category Archives: Agile Testing

Top Excuses Why Automatic Builds Suddenly Fail

We at codecentric have hundreds of automatic builds run every day, sometimes they … fail. This post is not about lame excuses. “nah the build shouldn’t fail, that was a trivial change…” does not count. But there are situations where a build fails because … well nobody really knows.

Some people say: cosmic rays! But we know that is not true. To efficiently utilize a CI system without the need to troubleshoot a long time here some common issues we encountered and ideas how to mitigate them.
(read more…)

Fabian Lange

 

Debugging XPath and CSS locators with Selenium IDE

On the robotframework-users mailing list was a question about how radio buttons can be properly handled with the SeleniumLibrary. There was apparently a problem somewhere in the generated xpath expression, and the user found it difficult to debug where things went wrong.

Since I failed to explain to the user in a private e-mail conversation how to debug the situation with the selenium IDE, I made a short screencast. At the end, I had to briefly pause the cast, since I was getting close to the 5:00 restriction, but I hope you’ll catch everything. (read more…)

Andreas Ebbert-Karroum

 

How to Structure a Scalable And Maintainable Acceptance Test Suite

You started to write automated acceptance tests, so that you don’t need to retest all the results from earlier sprints at the end of every sprint. Greate, we too. After a while of successful test automation, tests start to look like a big ball of mud instead of a cleanly designed test suite. Darn, same for us. Where did we go wrong? Over time, we established a few patterns and best practices, that lead to a scalable and maintainable test infrastructure, which I would like to present in this post. (read more…)

Andreas Ebbert-Karroum

 

File Downloads With Selenium — Mission Impossible?

When starting to automate acceptance tests that include a web UI, you probably will hit a wall quite quickly: how to verify a document that is available for download against some criteria? If you tried that one you know: doing file downloads automatically seems to be a mission impossible … or … is it really?

(read more…)

Andreas Ebbert-Karroum

 

Style Tests using Selenium and Robotframework

In projects facing end customers style matters, often more than less. While in internal apps it doesn’t matter if the UI changes after each release, there might be customers that want their app to follow a very strict style guide to integrate with their corporate identity.
If you ever worked with HTML and pixel perfect CSS you know that things can easily screw up, even with very strict layout guidelines.
Last Friday we brainstormed in our team on how to make this part of our nightly build.
We found a solution which was surprisingly simple..
(read more…)

Fabian Lange

 

How to inject JavaScript using Robot Framework and Selenium

My team has chosen – amongst other TDD approaches – ATDD as the way to go. We are delighted every day by the Robot Framework and the related Selenium Library. We write our tests in a natural language like syntax. For complex web applications, you will sooner or later need to perform assertions for which no standard keywords are available. In this article, I’ll show you how to inject JavaScript into the HTML GUI under test, which enables you to perform complex or unusual assertions

(read more…)

Robert Spielmann

 

© 2010 codecentric