Selenium framework for testing - PowerPoint PPT Presentation

1 / 14
About This Presentation
Title:

Selenium framework for testing

Description:

Selenium is a robust set of tools that supports rapid development of test automation for web-based applications. – PowerPoint PPT presentation

Number of Views:576
Slides: 15
Provided by: zeteo

less

Transcript and Presenter's Notes

Title: Selenium framework for testing


1
Selenium framework for testing
2
Content
  • What is Selenium
  • Selenium Components
  • Steps to start with Selenium
  • Selenium Commands
  • Features of Selenium

2
3
What is Selenium?
  • Selenium is a robust set of tools that
    supports rapid development of test automation for
    web-based applications.
  • Works anywhere JavaScript is supported
  • Hooks for many other languages - Java, Ruby,
    Python
  • Can simulate a user navigating through pages
    and then assert for specific marks on the pages
  • All you need to really know is HTML to start
  • using it right away

3
4
Selenium Components
4
5
Selenium-IDE
IDE stands for Integrated Development
Environment. Which is used for Record and Play
back the scripts. It is an Add on for Mozilla
Firefox, which means we can download the Selenium
IDE from Mozilla Firefox and we can Record and
Run the scripts in Mozilla Firefox only.
Selenium IDE is accountable for user actions.
We can Run the Recorded scripts against other
browsers by using Selenium RC.
5
6
Selenium-RC
RC stands for Remote Control. It is a Server
and launches the Browser. It acts as a API and
Library of Selenium. We need to configure the
Selenium RC with the supported language, then we
can automate the application.
6
7
Selenium-Grid
Selenium Grid is used for launching the
multiple browsers with supported operating system
in parallel. We can run the scripts on
different browsers in parallel. It allows you
to easily run multiple tests in parallel, on
multiple machines, in a heterogeneous
environment.
7
8
Steps to start with Selenium!
1) Begin write and run tests in Firefox.
Selenium IDE is a Firefox add-on that records
clicks, typing, and other actions to make a test,
which you can play back in the browser. 2)
Customize your language, your browser.
Selenium Remote Control (RC) runs your tests in
multiple browsers and platforms. Tweak your tests
in your preferred language. 3) Deploy scale
out, speed up Selenium Grid extends Selenium
RC to distribute your tests across multiple
servers, saving you time by running tests in
parallel.
8
9
Selenium Commands
Actions are commands that generally manipulate
the state of the application. They do things like
click this link and select that option.
Can be called with AndWait suffix, e.g.
clickAndWait. Accessors examine the state
of the application and store the results in
variables, e.g. storeTitle. They are also
used to automatically generate Assertions.
Assertions are like Accessors, but verify that
the state of the application conforms to what is
expected. Eg. make sure the page title is X,
verify that this checkbox is checked. All
Selenium Assertions can be used in 3 modes
assert, verify, and waitFor. For example,
you can assertText, verifyText and
waitForText.
9
10
Features of Selenium
Functional Automation tool for Web
applications. Open source, free to use and
free of charge. Supports more languages.
Supports different browsers. Supports various
operating systems. Supports mobile devices
Can execute the tests while browser is
minimized. Can execute the tests in
parralel. Flexible.
10
11
Selenium IDE
The list of actions in
the actual test case to
execute The root of web

application you want to test The log of
the events that were executed, including any
errors or warning that may have occurred
12
Selenium IDE
Execution Commands
Record test actions
Try the test in the Web based TestRunner
Reference of the currently selected command
Specify commands, including asserts
13
Questions ?
Email Us _at_ support_at_zeteoconsulting.com 
13
14
Worldwide Offices USA (Dallas) India
(Pune)Partner Offices Monterrey
(Mexico) Frankfurt (Germany) Stockholm (Sweden)
Email support_at_zeteoconsulting.com
Corporate URL www.zeteoconsulting.com
Write a Comment
User Comments (0)
About PowerShow.com