Gmail + IMAP – Automated testing solution for emails

Test automation around emails is pain, if not done properly.

Almost all the user facing web applications require user registration with the email and email usually serves as username in the system – which should be unique.

There are two main problems in automating email functionality –
  • Generating unique email addresses
  • Accessing inbox and content of the specific emails to check correctness of content and delivery

When I discussed this with evil tester, he pointed me to his blog post on getting disposable email addresses . When I followed the link to lifehacker ,from his blog post, first problem was solved.

It was easy enough to generate a random number such as current time stamp and amend it to any gmail address after adding a plus sign to create new email addresses which will go to the same inbox. So example @ gmail.com, example+123 @ gmail.com and example+321 @ gmail.com are ...

Selenium Conference 2012 - Are you coming?

If you are involved in doing any kind of test automation for web application, I am sure you are either using, or have considered Selenium for your test automation efforts. Well, if you have not considered, then maybe it’s time to give it a shot…

For folks who are familiar with or are using Selenium / WebDriver in any form, I hope you are aware that Selenium conference is happening from 16’Th to 18’Th April in London.

Last year, I travelled all the way to San Francisco from London to attend the conference and presented Magic of Modular Test Automation and this year I am presenting One Step At A Time (Will publish slides after the conference). BTW, I also wrote laziest experience report of Selenium Conference 2011 to share my experience … and to summarize my last year's experience in one word - Selenium Conf 2011 was AWESOME ...

Laziest Experience Report of Selenium Conference 2011

Okay, I admit - I was a bit lazy to write, but hey I had a baby boy in Feb and took time off to play with him and took him to our native place in India. All important stuff right?

Okay so about the conferences - I was in USA for close to three weeks and attended STP Conference in Nashville and WATIR day and Selenium Conference at San Francisco. I started my vacation right after Selenium Conference and I am back again in UK now. I am following LIFO (Last In First Out) to cover Selenium Conference in this post and will cover WATIR day and STP Conference in due course.

Selenium Conference was completely sold out and even for workshop day on Monday - there were little over 300 people in the room. It was a bit of challenge for everyone to follow workshop because of the network related issues ...

Analytic code - is it such an interesting thing?

Web applications are everywhere and most of us test them to earn our bread and butter. Broadly speaking, there are two types of web applications or websites - One which provide service and another which provide content. Web applications such as emails, facebook, bank or blogging platform provide a specific service and BBC, Times and many such sites provide content.

Irrespective of the type of web application, all of them need to understand user behaviour on the site and gather key usage pattern. One common way of doing this is with the help of analytic code. As a tester, it is important for us to understand how it works and how it can be tested. In this entry, I will discuss this in more detail and show you how iCheckWebsite can be used to test analytic code.

So what is Analytic code? Analytic code is usually a java script snippet which ...

Software Testing - Flash Object Automation Using Selenium

If you work in web application testing, you probably know that Selenium is one of the best tool for automating web applications. Though it can be used to test various aspects of web application, sometime you need to find your way around when using Selenium, one such situation is testing flash component using Selenium. Developers use Flash to beautify their websites, but it makes test automation a challenging task because Selenium can not read or record any actions on flash objects.

There are two main issues that needs to be addressed while automating web applications involving flash objects -

  • Verifying a certain value is set or it exists or not or in simple terms you need to 'get' certain properties of the object and compare it against your benchmarks
  • Performing actions on an object or 'set' certain values.

These two issues could easily be handled by Selenium for most of the ...

Selenium Tip - Handling Windows

Testing web application is always fun and if you are automating your web application testing with Selenium, its even more fun. Unfortunately, like any other tool selenium has few limitations. One of the most annoying limitation of selenium is its inability to handle browser windows (Or any other expected or unexpected windows). When we automate any application which launches these windows (For example security warning windows, certifications windows and so on), we get stuck by the inability of selenium to handle them. I have seen people executing those automated tests but clicking on OK/Yes/Continue manually whenever these windows appear. This defies the whole purpose of automation, because tests can not be executed without human intervention.

Though it is not possible to solve this problem using Selenium (As far as I know), but we can certainly combine Selenium with other tools to solve it. One option is to use ...

Software Testing - Selenium IDE, RC Tutorial & Workshop

Last month TestingGeek team hosted a workshop in BCS SIGSIT conference in London, UK. This workshop was aimed for the novice Selenium users and was well received by all the audience. This workshop will give you basic understanding of Selenium IDE and RC. Also, how open source has affected Selenium and its development. We have also touched upon briefly Ruby and how it is used in the context of Selenium RC.

After the response from this workshop, we are encouraged and have started working on the next workshop for advanced level users of Selenium. If you would like us to inform you about when it is available on this site, please subscribe to our news letter.

Do let us know if you have any questions about this workshop, or want us to do workshop or training related to Selenium.

QUnit, Selenium and Continuous Integration

Most of the organizations these days understand the importance of unit testing and use it heavily in their project. Unit testing frameworks are available for most of the high-level languages like JUnit for Java, NUnit for .NET, pyunit for Python and so on. These unit testing tools have now reached a level of maturity and most of us have probably used them in some capacity. Unit testing Java Script is unfortunately, still a bit tricky and its integration with other tools is also not well known. In this article, I will try to explore how QUnit framework for testing Java Script can be integrated with Selenium and continuous Integration.

QUnit is a unit testing framework for JavaScript. It is capable of testing the JQuery code and server side code as well. QUnit tests require loading of the javascripts in the browser so even though they are unit tests their integration ...