Browse Author: Aditya

First Step Towards Selenium

This is a common question being search from engineers, how to start selenium Test. I am sure some of you who are reading this blog may aware of fundamentals of Selenium but I am am going to start from very basic of Selenium Scripting. So all newcomers, get ready from very beginning of selenium test. In this post I will try to explain about Selenium and how to configure IDE for testing.

First we will try to understand how Selenium works and interact with Web browser and web element. Actually Selenium is a java script library who interacts with element inside web browser but not the web browser’s elements like open, save as etc. commands. It sends HTTP commands to the server so its look like some user clicking on the element. As a result of that, we can use test machine to do other work as selenium doesn’t engage mouse for any kind of event like QTP. isn’t great?

In last paragraph we were talking about web browser elements like different menu and dialogs like “Save As” dialog that we cannot interact with Selenium. For such element we need write some external program such as Autoit, which can simulate windows events and their interaction with windows application like browser. We will discuss in detail about Autoit later.

Note: Install Firefox, firebug and go through basics of HTML and if possible do some practice on firebug to recognize elements and their values.

Lets come to the point. We will first try to understand Selenium IDE which is the basic and only UI part of Selenium. This is Add-on to the Firefox. We will first Install latest available version from Selenium website from section ‘Selenium IDE’ located here

LinkToDownloadSeleniumIDE

InstallationStart

After installation restart Firefox and you can see selenium IDE in tools menu. Click on Selenium IDE option and IDE will appear as below.

image

[youtube=http://www.youtube.com/watch?v=QIDY1gq2x_0&w=448&h=252]

Selenium IDE is record and play back tool. You can record application Now I would like you to visit following video to learn more about IDE.

[youtube=http://www.youtube.com/watch?v=5W27CPCbLSM&w=451&h=278&hd=1]
Learn Selenium IDE

Hope you understood the basic of IDE that is actually a backbone of learning phase of Selenium. There are many features available in IDE which were not discussed in last video. I would recommend you to go through the other features and options available in IDE.

I am sure this post is helpful for beginners. In next post I will discuss how to export recorded tests to different programming language as per our need.

Any suggestion please write us to learn@learnseleniumtesting.com or leave comments to this post.

qtpTesters Vs Selenium Testers

Selenium And Why Selenium is better than QTP?



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.

Comparison Selenium/Webdriver QTP Winner
License Free Paid
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
Overall

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.

Job market is also shifting for selenium as compare to QTP. Sharing the latest job trend.

Selenium Vs QTP

 

qtpTesters Vs Selenium Testers

 

Blog follower EH, raised a question that first graph may be misleading so I generated another graph QTP Testers Vs Selenium Testers.  Still I noticed that QTP is going down and Selenium is moving up. 

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.