Testing AJAX: Selenium’s ElementNotFoundException

motif

com.thoughtworks.selenium.SeleniumException: ERROR: Element bla bla bla not found

Ok. Face the music. Let’s debug.

Check list:

  • Is locator well defined? Yes. √
  • The element is rendered? Yes.√
  • Do I have any error when I execute code step by step? No.χ
  • Am I crazy? Perhaps. But the problem continues to be there and I have no clue why!!!

What is happening here?

Feed my inbox; reading RSS feeds with Mule ESB – Part 3

In part 2 of this mini-series I showed a flow that retrieves an RSS feed periodically, splits it and sends each RSS entry via email. In this part I’d like to show how to split up the flow a bit in order to enable unit testing.

To refresh your memory here’s what the flow currently looks like:

Testing this flow is hard if not impossible for a number of reasons:

Web Testing & Selenium

motif

Why are GUI integration tests needed? On which testing tool technology should I base my tests? What are the cost/benefit of the choosing one over the other? In this brief article we will give you a quick look at the answers to those questions.