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]

131 comments:

  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

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  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

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

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

    Python Training in Bangalore

    ReplyDelete
  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

    ReplyDelete
  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



    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  15. Good Job, nice work and efforts. Your content is very interesting and I like that. I want a lot of info from your post...
    Ethical Hacking Course in Chennai
    Hacking Course in Chennai
    Certified Ethical Hacking Course in Chennai
    Ethical Hacking Training in Chennai

    ReplyDelete
  16. 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

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

    ReplyDelete
  18. 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

    ReplyDelete
  19. 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

    ReplyDelete
  20. This comment has been removed by the author.

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

    ReplyDelete
  22. Thanks for sharing this post.Keep sharing more like this.

    Guest posting sites
    Technology

    ReplyDelete
  23. This comment has been removed by the author.

    ReplyDelete
  24. 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

    ReplyDelete
  25. 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

    ReplyDelete
  26. 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

    ReplyDelete
  27. 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.

    ReplyDelete
  28. 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

    ReplyDelete
  29. thanks for your information really good and very nice web design company in velachery

    ReplyDelete
  30. Attend The Data Analytics Courses From ExcelR. Practical Data Analytics Courses Sessions With Assured Placement Support From Experienced Faculty. ExcelR Offers The Data Analytics Courses.
    ExcelR Data Analytics Courses

    ReplyDelete
  31. At Regulus, all of our employees, whether full-time, leased, temporary or internal are just as important. Best It Management Solutions We’ll take the time to get to know you and understand your needs and requirements on an individual basis, and we’ll match your skills to our clients’ requirements. Our understanding and commitment to each individual employee and their goals is what you will get when you work with us.

    ReplyDelete
  32. At Regulus, all of our employees, whether full-time, leased, temporary or internal are just as important. Best IT Consulting Company In USA We’ll take the time to get to know you and understand your needs and requirements on an individual basis, and we’ll match your skills to our clients’ requirements. Our understanding and commitment to each individual employee and their goals is what you will get when you work with us.

    ReplyDelete
  33. I learned World's Trending Technology from certified experts for free of cost. I Got a job in decent Top MNC Company with handsome 14 LPA salary, I have learned the World's Trending Technology from hadoop training in btm experts who know advanced concepts which can help to solve any type of Real-time issues in the field of Hadoop. Really worth trying

    ReplyDelete
  34. I learned World's Trending Technology from certified experts for free of cost. I got a job in decent Top MNC Company with handsome 14 LPA salary, I have learned the World's Trending Technology from Data science training in btm layout experts who know advanced concepts which can help to solve any type of Real-time issues in the field of Python. Really worth trying Freelance SEO expert in Bangalore

    ReplyDelete
  35. Python Training in Chennaii

    Excellent blog with lots of information. I have to thank for this. Do share more.

    ReplyDelete
  36. It is a very useful information about testing tools. Thanks for sharing this information...
    Selenium Training in Bangalore | Selenium Courses | Selenium Training Institutes - RIA Institute of Technology - Best Selenium Training in Bangalore - Placement oriented Selenium Training Institutes in Bangalore.
    Learn Selenium Testing Training from expert Trainers.

    ReplyDelete
  37. Really i appreciate the effort you made to share the knowledge. The topic here i found was really effective...

    Start your journey with In Software Training in Bangalore and get hands-on Experience with 100% Placement assistance from experts Trainers @eTechno Soft Solutions Located in BTM Layout Bangalore.

    ReplyDelete
  38. I finally found great post here.I will get back here. I just added your blog to my bookmark sites. thanks.Quality posts is the crucial to invite the visitors to visit the web page, that's what this web page is providing.
    ExcelR Data Analytics Course

    ReplyDelete
  39. Very educating story, saved your site for hopes to read more! ExcelR Business Analytics Course

    ReplyDelete
  40. Great post i must say and thanks for the information. Education is definitely a sticky subject. However, is still among the leading topics of our time. I appreciate your post and look forward to more. data science course

    ReplyDelete
  41. The blog is very useful, interesting and informative. thank you for sharing the blog with us. keep on updating.

    ReplyDelete
  42. After reading your article I was amazed. I know that you explain it very well. And I hope that other readers will also experience how I feel after reading your article.
    data analytics course mumbai

    ReplyDelete
  43. Nice blog! Such a good information about data analytics and its future..
    Good post! I must say thanks for the information.
    data analytics course in mumbai
    Data analytics Interview Questions

    ReplyDelete
  44. Attend The Digital Marketing Courses in Bangalore From ExcelR. Practical Digital Marketing Courses in Bangalore Sessions With Assured Placement Support From Experienced Faculty. ExcelR Offers The Digital Marketing Courses in Bangalore.
    ExcelR Digital Marketing Courses in Bangalore

    ReplyDelete
  45. You have provided a nice article, Thank you very much for this one. And I hope this will be useful for many people. And I am waiting for your next post keep on updating these kinds of knowledgeable things
    Android Training in Chennai
    Android Course in Chennai
    App Development Course in Chennai
    Android Development Course in Chennai
    Android App Development Course in Chennai

    ReplyDelete
  46. You have provided a nice article, Thank you very much for this one. And I hope this will be useful for many people. And I am waiting for your next post keep on updating these kinds of knowledgeable things
    Android Training Institutes in Bangalore
    Android Training in Bangalore
    Android Course in Bangalore
    Android Training in Coimbatore
    Android Course in Coimbatore
    Android Training in Madurai

    ReplyDelete
  47. Attend The Data Science Training Bangalore From ExcelR. Practical Data Science Training Bangalore Sessions With Assured Placement Support From Experienced Faculty. ExcelR Offers The Data Science Training Bangalore.
    ExcelR Data Science Training Bangalore
    Data Science Interview Questions

    ReplyDelete
  48. I am looking for and I love to post a comment that "The content of your post is awesome" Great work!

    Digital marketing course

    ReplyDelete
  49. Ethical Hacking Course in Chennai

    Excellent blog with lots of information. I have to thank for this. Do share more.

    ReplyDelete
  50. Top Courses to learn

    I am glad that I have visited this blog. Really helpful, eagerly waiting for more updates.

    ReplyDelete
  51. This Was An Amazing ! I Haven't Seen This Type of Blog Ever ! Thankyou For Sharing, data science course

    ReplyDelete