Sunday, June 1, 2014

Web UI Testing Part 2: Front-door testing tools

Because of the two problems I mentioned with back-door web testing (changes to layout and no Javascript testing), I was looking to pursue front-door web testing toward the end of 2012. 

My first thought was that whatever framework I chose should have a test recorder so that writing the tests would be much easier than having to code up every little click and wait.  The problem with this philosophy is that most of these test recorders generate code.  It turns out that generating code in a maintainable way is hard, and all code should be maintainable, even test code.  So although recorders can be useful in learning how to write tests I eventually scrapped that path, and started looking at using a nice API to drive the browser.

I looked at two different frameworks in .NET for accomplishing this: WatiN and Selenium.  Both had great feature sets and either one would have been suitable.  At the time, Selenium's documentation was way too fragmented.  There were multiple versions: Selenium 1.0, Selenium RC, Selenium 2.0 , etc.  Because I was new I wasn't sure which one to use (e.g. was 2.0 stable?).  When I did a search I ended up on a blog posts using outdated methods, or the blog posts didn't indicate which version of the API was being used.  I found WatiN's documentation to be much clearer on the .NET side.  I went with that, although both tools offer an API which is easily to understand.  I later ended up regretting my choice.  WatiN only supported IE, and although the bulk of the bugs were in IE, I found a few bugs on the other browsers that I wished I had a way of automating.  WatiN later started supporting Firefox after I finished the project.

[Update: Selenium has been on version 2.0 for a while, and the older documentation is becoming less relevant in search engines, so I would probably go with Selenium today]


  1. The future of automation testing tool is on the positive tool. As the demand of quality web application keeps on increasing, the tool like Selenium IDE is getting very popular all over the world. Thus, taking Selenium Training in Chennai will help you to enter software testing industry.Best Selenium training institute in Chennai

  2. It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me...
    Android Training in Chennai
    Ios Training in Chennai

  3. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog.
    Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a Front end developer learn from Javascript Online Training from India .
    or learn thru JavaScript Online Training from India. Nowadays JavaScript has tons of job opportunities on various vertical industry. ES6 Training in Chennai

  4. It is a very useful information about testing tools. Thanks for sharing this information.
    Software testing institutes in Chennai | Software testing Training Institute Chennai

  5. This was an nice and amazing and the given contents were very useful and the precision has given here is good.
    Java Training in Chennai

  6. very useful content about "Web UI Testing Part 2: Front-door testing tools".
    thanks for sharing.
    Data Science Training in Chennai

  7. great approach about this topic.i had great impact on this topic..thank you

    Python Training in Bangalore

  8. This was an nice and amazing and the given contents were very useful and the precision has given here is good.

    Bigdata training institute in bangalore

  9. Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here.

    RPA Training in Chennai

  10. All are saying the same thing repeatedly, but in your blog I had a chance to get some useful and unique information, I love your writing style very much, I would like to suggest your blog in my dude circle, so keep on updates.
    CCNA Training in Chennai
    DevOps Training in Chennai
    DevOps foundation certificate
    DevOps institute certification
    CCNA institute in Chennai
    CCNA Training center in Chennai

  11. Do you have a spam issue on this website; I also am a blogger, and I wanted to know your situation
    fire and safety course in chennai

  12. Your blog information are really creative and useful for the readers.I ever read such kind of nice article yet.
    hope you will add more innovative ideas on your post.
    German Certification Training in T nagar
    German Course in Anna Nagar
    german language classes in bangalore
    learn german in bangalore

  13. Thanks for the great post on your blog, it really gives me an insight on this topic.I must thank you for this informative read. I hope you will post again soon.
    AWS Training in Guindy
    AWS Certification Training in Anna nagar
    AWS Certification Training
    AWS Training Institutes in Bangalore

  14. Amazing Article ! I have bookmarked this article page as i received good information from this. All the best for the upcoming articles. I will be waiting for your new articles. Thank You ! Kindly Visit Us @ Coimbatore Travels | Ooty Travels | Coimbatore Airport Taxi | Coimbatore taxi