Title: Presentation on Selenium Automation Technology ll Master Tutorials Presentation
1 A Seminar Report
Submitted in partial fulfillment of
requirement for the award of the Degree of
Bachelor of Technology in
Computer Science
- On
- Selenium Automation Technology
-
- (Approved by AICTE, N. Delhi Affiliated to Dr.
APJ Abdul Kalam Technical University ,Lucknow
,U.P.)
Submitted By Atul (Roll
No xxxxxxxxxx) DEPARTMENT OF COMPUTER SCIENCE
R K G I T M
2 Table of Contains
- Acknowledgement
- Certificate
- Introduction
- History of Selenium
- Need of Automation Technology
- Features/advantage of Selenium
- Limitations of Selenium
- Details of Selenium tool
-
MASTER TUTORIALS
3Selenium Integrated Development Environment (IDE)
Selenium Remote Control(RC)
WebDriver
- Selenium Grid
- Overview of Selenium tools differences in a
single page - References
MASTER TUTORIALS
4- SELENIUM is a free (open-source) automated
testing framework used to validate web
applications across different browsers and
platforms. You can use multiple programming
languages like Java, C, Python etc to create
Selenium Test Scripts. Testing done using the
Selenium tool is usually referred to as Selenium
Testing. - Various tools list of selenium
- Selenium Integrated Development Environment (IDE)
- Selenium Remote Control (RC)
- WebDriver
- Selenium Grid
-
MASTER TUTORIALS
5 History Selenium
was originally developed by Jason Huggins in 2004
as an internal tool at ThoughtWorks. Huggins
was later joined by other programmers and
testers at ThoughtWorks, before Paul Hammant
joined the team and steered the development of
the second mode of operation that would later
become "Selenium Remote Control" (RC). The tool
was open sourced that Year. The name Selenium
comes from a joke made by Huggins in an email,
mocking a competitor named Mercury, saying that
you can cure mercury email took the name and ran
with it.
MASTER TUTORIALS
6 Need of Automation Technology Every
software development group tests its products,
yet delivered software always has defects. Test
engineers strive to catch them before the product
is released but they always creep in and they
often reappear, even with the best manual testing
processes. Test automation software is the
best way to increase the effectiveness,
efficiency and coverage of your software
testing.
MASTER TUTORIALS
7-
Features/Advantage of Selenium - Selenium is an open source and portable Web
testing Framework. - Selenium IDE provides a playback and record
feature for authoring tests without the need to
learn a test scripting language. - It can be considered as the leading cloud-based
testing platform which helps testers to record
their actions and export them as a reusable
script with a simple-to-understand and
easy-to-use interface. - Selenium supports various operating systems,
browsers and programming languages. Following is
the list - Programming Languages C, Java, Python, PHP,
Ruby, Perl, and JavaScript - Operating Systems Android, iOS, Windows, Linux,
Mac, Solaris. - Browsers Google Chrome, Mozilla Firefox,
Internet Explorer, Edge, Opera, Safari, etc.
MASTER TUTORIALS
8-
Limitations of Selenium -
- Difficult to use takes more time to create Test
cases. - No reliable Technical Support from anybody.
- Difficult to Setup Test Environment when it
compares to Vendor Tools like UFT, RFT, SilkTest. - Limited support for Image Testing.
-
MASTER TUTORIALS
9-
-
Details of Selenium tool - Selenium IDE (Integrated Development
Environment) - It is primarily a record/run tool that a test
case developer uses to develop Selenium Test
cases. Selenium IDE is an easy to use tool from
the Selenium Test Suite and can even be used by
someone new to developing automated test cases
for their web applications. One does not require
any special setup to get started with Selenium
IDE. You just need to add the extension of your
specific browser. Selenium IDE provides you with
a GUI (Graphical User Interface) for easily
recording your interactions with the website. - Selenium IDE allows a user or a test case
developer to create the test cases and test
suites and edit it later as per their
requirements. The development environment also
provides the capability of converting test cases
to different programming languages, which makes
it easier for the user and does not mandate the
need for knowing a specific programming language.
10The screenshot below indicates how the Selenium
IDE on Chrome appears after the project name and
base URL is entered
MASTER TUTORIALS
11 2. Selenium Remote Control (RC) It was the main
Selenium project that sustained for a long time
before Selenium WebDriver(Selenium 2.0) came into
existence. Now Selenium RC is hardly in use, as
WebDriver offers more powerful features, however
users can still continue to develop scripts using
RC. It allows us to write automated web
application UI tests with the help of full power
of programming languages such as Java, C, Perl,
Python and PHP to create more complex tests such
as reading and writing files, querying a
database, and emailing test results. Selenium RC
Architecture Selenium RC works in such a way
that the client libraries can communicate with
the Selenium RC Server passing each Selenium
command for execution. Then the server passes the
Selenium command to the browser using
Selenium-Core JavaScript commands. The browser
executes the Selenium command using its
JavaScript interpreter.
12(No Transcript)
13 3. WebDriver It is a web automation
framework that allows you to execute your tests
against different browsers, not just
Firefox, Chrome (unlike Selenium IDE). WebDriver
also enables you to use a programming language in
creating your test scripts (not possible in
Selenium IDE). You can now use conditional
operations like if-then-else or switch-case. You
can also perform looping like do-while.
MASTER TUTORIALS
14- Advantage of WebDriver over
Remote Control - WebDriver's architecture is simpler than
Selenium RC's. - WebDriver is faster than Selenium RC since it
speaks directly to the browser uses the browser's
own engine to control it. - WebDriver interacts with page elements in a more
realistic way. For example, if you have a
disabled text box on a page you were testing,
WebDriver really cannot enter any value in it
just as how a real person cannot. - WebDriver's API is simpler than Selenium RC's. It
does not contain redundant and confusing commands.
MASTER TUTORIALS
154.Selenium Grid It is a part of the Selenium
Suite that specializes in running multiple
tests across different browsers, operating
systems, and machines in parallel. Selenium
Grid has 2 versions - the older Grid 1 and the
newer Grid 2. We will only focus on Grid 2
because Grid 1 is gradually being deprecated by
the Selenium Team.
MASTER TUTORIALS
16- Selenium Grid Architecture
- Selenium Grid has a Hub and Node Architecture.
- The Hub
- The hub is the central point where you load your
tests into. - There should only be one hub in a grid.
- The hub is launched only on a single machine,
say, a computer whose O.S is Windows 7 and whose
browser is IE. - The machine containing the hub is where the tests
will be run, but you will see the browser being
automated on the node. -
MASTER TUTORIALS
17-
- The Nodes
- Nodes are the Selenium instances that will
execute the tests that you loaded on the hub. - There can be one or more nodes in a grid.
- Nodes can be launched on multiple machines with
different platforms and browsers. - The machines running the nodes need not be the
same platform as that of the hub.
MASTER TUTORIALS
18 MASTER TUTORIALS
19- When to Use Selenium Grid?
- You should use Selenium Grid when you want to do
either one or both of following - Run your tests against different browsers,
operating systems, and - machines all at the same time. This will ensure
that the application you are Test is fully
compatible with a wide range of browser-O.S
combinations. - Save time in the execution of your test suites.
If you set up Selenium Grid to - run, say, 4 tests at a time, then you would be
able to finish the whole suite around 4 times
faster.
MASTER TUTORIALS
20 Overview of Selenium tools
differences in a single page
21 Thank you
By Master Tutorials