Selenium Tutorial

Selenium Tutorial for beginners

1) What is Selenium?

Selenium is an Open origin Software as well as it was launched inward 2004.

Selenium is a suite of Tools to automate spider web browsers across many platforms, Means it is only for automating spider web based applications, non for Desktop applications as well as its supports diverse operating environments similar Windows, Linux etc… as well as diverse Browsers similar Mozilla Firefox, IE, Chrome, Opera etc…

Selenium Supports diverse programming as well as scripting Languages for applying programming logic to our Tests.
It Supports:

Java, C#, Perl, Python, Ruby as well as PHP Languages, most of the companies usage Java Language, So yous also endeavour to usage Java Language.

Why Java only? Why can’t nosotros usage other languages, most of the supporting as well as assistance documentation as well as implementations available on Internet inward Java only, if nosotros usage only about other languages as well as therefore back upwards is real less.

Selenium supports:

Functional as well as Regression Testing of Web Applications
Performance Testing

Note: Using Selenium for Performance Test Automation is non recommendable.

2) Selenium’s Suite of Tools:

Selenium is a laid upwards of software tools each amongst a dissimilar approach to back upwards Test Automation.

a) Selenium IDE
b) Selenium RC (Remote Control)
c) Selenium WebDriver
d) Selenium Grid


3) Selenium IDE

Selenium IDE (Integrated Development Environment) is a tool for generating seek out scripts. It is a Firefox plugin.

Features of Selenium:

•    Record as well as Play dorsum Test Cases
•    Exporting Test Cases to dissimilar Languages

Disadvantages of Selenium IDE:

•    It supports Mozilla Firefox Browser only.
•    Data Driven Testing (executing tests using mulpiple sets of seek out data) is non possible.
•    Test Results are non generated using Selenium IDE (It generats summary only).
•    Random Test Cases execution is non possible
•    Selenium IDE doesn’t back upwards Flow command Statements.


4) Selenium RC (Remote Control)

 Selenium RC solves the limitations of Selenium IDE. It supports diverse programming languages similar Java, C#, PHP, Perl, Python as well as Ruby languages to accomplish logic required inward seek out cases similar conditional statements, iterations, exception handling, seek out reporting, database testing, capturing hide shots of failed tests, seek out example grouping etc...

Important advantages of Selenium RC:

•    It supports Random Test cases execution
•    Supports Flow command statements as well as other programming features to heighten Tests.
•    Supports diverse Browsers for Tests execution.

Disadvantage of Selenium RC:

•    Test Case execution fourth dimension is to a greater extent than because every customer asking get-go post to Selenium Server afterwards that post to Browser.
•    Executing Tests inward parallel is non possible.


5) Selenium-Grid:

Selenium-Grid allows the Selenium RC solution to scale for large seek out suites as well as for seek out suites that must hold out run inward multiple environments. 


Selenium Grid allows yous to run your tests inward parallel, that is, dissimilar tests tin hold out run at the same fourth dimension on dissimilar remote machines.

6) WebDriver:

The biggest alter inward Selenium late has been the inclusion of the WebDriver API. Selenium WebDriver fits inward the same role equally RC did.

WebDriver is designed inward a simpler as well as to a greater extent than concise programming interface along amongst addressing only about limitations inward the Selenium-RC API.

WebDriver overcomes the limitation of Selenium RC (Remote Control)

Selenium-WebDriver supports the next browsers along amongst the operating systems these browsers are compatible with.

•    Google Chrome
•    Internet Explorer 6, 7, 8, 9, 10 - 32 as well as 64-bit where applicable
•    Firefox: latest ESR, previous ESR, electrical current release, i previous release
•    Safari
•    Opera
•    HtmlUnit
•    phantomjs
•    Android (with Selendroid or appium)
•    iOS (with ios-driver or appium)

7) Advantages of Selenium

•    Since this is an Open origin Software (free tool), anybody tin downwards charge as well as usage amongst gratis of cost, it frequently is i of the few options for companies that practise non convey a lot of budget for Automation tools.
•    Selenium was get-go written inward Java but it also supports C#, Ruby, Perl, PHP as well as Python. This is a large addition when nosotros desire to construct our framework inward a linguistic communication that has the highest adoption inward the organisation it is existence built within. Tools similar QTP strength yous to usage VBScript – which is almost never the preferred scripting linguistic communication for developers.
•    It has back upwards for all of the pop browsers similar IE, Firefox, Chrome, Safari etc. It also supports several Operating Systems as well as that makes it a tool of pick for cross browser/ cross platform certification.
•    Once yous croak Selenium to move for you, it industrial plant reliably when used for running the tests over as well as over again. It’s definitely a lot to a greater extent than reliable than tools similar QEngine or JExplorer but close the same equally tools similar QTP.
•    You tin instantiate several concurrent tests amongst Selenium Grid. Good luck trying that amongst tools similar QTP!

8) Disadvantages of Selenium

•    Supports Web based (Browser based) Application only, doesn't back upwards Desktop or standalone Application seek out automation.
•    Since it is Open origin software, no reliable technical back upwards from anybody.
•    Some novel features may move or may non move properly.
•    Deploying Selenium Tool is hard than UFT (Formerly QTP) Tool.

9) Selenium Certification:

No Authorized Certification for Selenium Tool, only about organizations are conducting Selenium certification examination but
no value guaranty for them inward the information technology Industry.

Sumber http://www.gcreddy.com/
Post a Comment (0)
Previous Post Next Post