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

  15. Hi! The post you published is well-written and informative. It has more topic discussions which i want really. So helpful to me. Keep updating.
    Pyhton Training in Chennai
    Python Course in Chennai
    AWS Training in Chennai
    CCNA Training in Chennai
    German Language Course in Chennai
    German Courses in Chennai

  16. Online Casino Super Earnings top 10 online casinos here Win online casinos and live like a king in the world.

  17. I simply wanted to thank you so much again. I am not sure the things that I might have gone through without the type of hints revealed by you regarding that situation.
    fire and safety course in chennai

  18. I appreciate that you produced this wonderful article to help us get more knowledge about this topic.
    I know, it is not an easy task to write such a big article in one day, I've tried that and I've failed. But, here you are, trying the big task and finishing it off and getting good comments and ratings. That is one hell of a job done!

    Selenium training in bangalore
    Selenium training in Chennai
    Selenium training in Bangalore
    Selenium training in Pune
    Selenium Online training

  19. Лучшая гибкая лента светодиодная купить которую можно только у нас и больше нигде, я конечно шучу, но в Ekodio лучше.

  20. Thanks for sharing this post.Keep sharing more like this.

    Guest posting sites

  21. Attend The Python Training in Hyderabad From ExcelR. Practical Python Training Sessions With Assured Placement Support From Experienced Faculty. ExcelR Offers The Python Training in Hyderabad.
    python training in bangalore

  22. Thanks for posting this highly informative article. I feel glad about learning more about this concept. Maintain the number of posting and keep up the good work!
    Data Science Course in Chennai | Data Science Training in Chennai

  23. Usually I never comment on blogs but your article is so convincing that I never stop myself to say something about it. You’re doing a great job Man,Keep it up.Jesse Keyes

  24. Data for a business analytics course with placement is what Oxygen is to Human Beings. This is also a profession where statistical adroit works on data – incepting from Data Collection to Data Cleansing to Data Mining to Statistical Analysis and right through Forecasting, Predictive Modeling and finally Data Optimization. A Data Scientist does not provide a solution; they provide the most optimized solution out of the many available.

  25. Usually I never comment on blogs but your article is so convincing that I never stop myself to say something about it. You’re doing a great job Man,Keep it up.Jesse Keyes