Skip to main content

Selenium - 1




1. What is Selenium?

Selenium is a portable software testing framework for web applications. It is a JavaScript framework that runs in web browser, works anywhere JavaScript supports. Selenium provides a test domain specific language (DSL) such as HTML to write tests in a number of popular programming languages, including Java, Ruby, Groovy, Python, PHP, and Perl. Selenium deploys on Windows, Linux, and Macintosh platforms.




Note : Selenium RC and WebDriver are merged into a single framework to form Selenium 2. Selenium 1 refers to Selenium RC. 




2. Why is Selenium?

There are several reasons to choose Selenium. Of course, it is open source and because of that it is easy to learn as you may find lots of resources in the internet.

1. Supports many browsers.
2. Supports many scripting/programming languages.
3. Flexible to your choice, simple record and playback (IDE), Comple Framework design to your choice by using your favorite programming language.
4. Supports parallel execution.
  


If you are not a programmer, you may think Selenium is not for you. But actually it is not. Selenium IDE is for non-programmers. It is just as an add-on on the firefox browser, using which you can record your tests and play them when required. However, everything has pros and cons. The limitation of IDE is it can only be used on firefox.

Let's say, you have to test on multiple browsers, then you need Selenium Grid or WebDriver. It needs some programming knowledge actually.




3. Selenium Components

I. Selenium IDE

Selenium Integrated Development Environment (IDE) is the simplest framework in the Selenium suite.  Selenium IDE provides auto complete for all the selenium commands. Selenium IDE is a Firefox extension and you can't run that on other browsers. And also if you need to write more complex test cases you need either Selenium RC or WebDriver.


II. Selenium Remote Control (Selenium RC)

Selenium RC allows us to write the test cases in many programming languages against any HTTP website using any javascript-enabled browser. Selenium RC has a server which automatically launches and kills browsers, and acts as a HTTP proxy for web requests. As of version 2.25.0, RC can support the following programming languages:
  • Java
  • C#
  • PHP
  • Python
  • Perl
  • Ruby

 II. Selenium WebDriver

The WebDriver proves itself to be better than both Selenium IDE and Selenium RC in many aspects. It implements a more modern and stable approach in automating the browser’s actions. WebDriver, unlike Selenium RC, does not rely on JavaScript for automation. It controls the browser by directly communicating to it. The supported languages are the same as those in Selenium RC.
  • Java
  • C#
  • PHP
  • Python
  • Perl
  • Ruby

 

Selenium Grid

Selenium Grid is a tool used together with Selenium RC to run parallel tests across different machines and different browsers all at the same time. Parallel execution means running multiple tests at once.
Features:
  • Enables simultaneous running of tests in multiple browsers and environments.
  • Saves timeenormously.
  • Utilizes the hub-and-nodes concept. The hub acts as a central source of Selenium commands to each node connected to it.
References:

 


Comments

Popular posts from this blog

D. S. Senanayake College - My Alma Mater

  History In 1967, Minister of Education Hon. I.M.R.A. Iriyagolla began the ground work for establishing the Boys' school in Cinnamon Gardens. It was named after the first prime minister, Hon. D.S. Senanayake of Sri Lanka. Mr. R.I.T. Alles, a teacher of Royal College, Colombo 07 became the Principle of the new school. The location in which the college stands today was at that time called the "Kumbikale", which was cleared with the help of the community and some boy scouts from Royal College. After years of hard work, D.S. Senanayake College opened her doors to youngsters on 10th February 1967. Today The first batch of 167 students was housed in a prefabricated building sheltered by woven coconut leaves. Today it accommodates more than 6500 students from Grade 01 to 13. The ratio of Student : Teacher is now 23 : 1. Currently, 275 teachers are educating students. School colors are Black and Gold where motto is "Country Before Self...

Shortcomings of Commonly Used Computer Languages

A.       Typecasting issue in C++ C++ code of type casting, which is considered as an insecured code. The same problem occurred in Ariane 5, which ended up in a crash.  According to (Soulie, 2007) , Type casting is known as converting an expression of a given type into another type. In C, type converstion can be done using,    1.       Implicit Convertion –   one type of data is automatically converted into compatible type of data.    2.       Explicit Convertion – Many conversions, specially thos that imply a different interpreation of the value. It has 4 specific casting operators (dynamic_cast, reinterpret_cast, static_cast and const_cast). Here, the conversion truncates, that is the fractional part is discared. There is a data loss, since the out put is 13, expected output was 14. Remedy – Use static_cast and add 0.5 before casting. c = static_ca...

"Hello World" in Different Languages

TRUE STORY!!! And in Binary  :  1000100111010101101011101000000111101010100011101101110111101101010010100010101010101011110101000101010101010101010100100101000101010101110101010100000010111011110110101001010001010101010101111010100010101010101010101010010010100010101010111010 101011001110111101101011101111011010100101000101010101010111101010001010101010101010101001001010001010101011101010100010100010101010101011110101000101010101010101010100100101000101010101110101010.. What the hell? :O Ref -  https://www.facebook.com/photo.php?fbid=554573284591554&set=a.241809332534619.55240.241806149201604&type=1&relevant_count=1&ref=nf