This is quite common question among software professionals, which tool is better option for web testing. There are varieties of tools available in the market, either paid like QTP, Winrunner or some open source tools like Selenium, Webdriver. Selenium and Webdriver shares the same ancestor. We will discuss more in detail later in this blog. Now we are here to understand why we should go with selenium instead of other. I am pretty sure; gung-hos of QTP will hate me for this. But I will speak.
I acquainted with selenium in 2009 July when I was searching some record and playback web form application for personal use. On top of that, it should be very small to install in term of resource usage. Many people suggested me QTP for that but there was limitation that I can use that for trial period only and secondly it consumes max resources and kind of bulky for just one simple form that I wanted to automate.
After couple of hours of Google search I found Molybdenum and SeleniumIDE as an add-on for Firefox. Both are very nice, easy to install and easy to use. I tried both and was thinking to decide which one I should go with. I started learning more about both tool and found very interesting information which preluded me to decide.
Molybdenum V/s SeleniumIDE
While Selenium IDE is focusing on developers with export to different programming languages and cross browser testing. Molybdenum is focused on simple test execution, reporting, test parameterization for everybody participating in your team.
I was working on C# based in-house tool and wanted to learn some testing tools being used by other companies. I learned that in Selenium I could use my C# skills and after doing some research, I realized that Selenium/Webdriver is the future.
Mercury (now HP) did great job with their tools thus their market share is ~60% in software testing. But now open source started roaring as well. Many companies are strategically moving towards cost effective test tools because Mercury(HP) tools are still an expensive option. later studies showed that we can do >70% with open source tools of what we can do via QTP so why to spend that much money if your project scope is not that much to use all features of QTP.
I am going to give some high level idea which speaks about difference between Selenium and QTP. I am sure this will be very useful if you are looking to automate your web application testing.
|Software size||< 100 MB||>1.8GB|
|Objects Recognition.||Firebug(FF add-on)||GUI Spy|
|Support||Openqa, seleniumhq & other forums||Dedicated from HP|
|Scripting language||Java, .Net, Python, Ruby||VB Scripting|
|Browsers supported||IE, Firefox, Safari, Opera||IE, Firefox|
|Operating System||Windows, Mac, Linux, iOS, Android||Windows|
As you can see that Selenium is overall winner but keep in mind you have to depend on different forums and blogs etc. for any kind of issue. If you are about to start automation then I would recommend you to go with webdriver because webdriver is the future. Selenium RC 2 is last release of Selenium but it’s powerful to automate your web application and many people are using it so you can get support in various forums. There are many things in selenium which I personally like than webdriver but it’s just individual choice. I will explain all those differences in later posts
If you love OOPs programming then I would personally recommend you to go with selenium. Many testers want to do coding and this would be a perfect platform for them.
Learn more about selenium
Please keep visit this site as we are going to design complete test framework for web testing in .NET and Java as well.