selenium-presentation

Post on 31-Oct-2014

92 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

Seleniujm-Presentation

TRANSCRIPT

Presentation SeleniumAgenda:1.Test Automation for Web Applications2. What is Selenium3. What is Selenium used for?4. Selenium’s tool suite5. Advantages of Selenium6. Platforms supported by Selenium

Test Automation for Web applications

Test automation has specific advantages for improving the long-term efficiency of a software team’s testing processes. Test automation supports:-Frequent regression testing-Rapid feedback to developers-Virtually unlimited iterations of test case execution-Support for Agile and extreme development methodologies-Disciplined documentation of test cases-Customized defect reporting-Finding defects missed by manual testing

What is Selenium-Open source test tool for web applicationsSelenium project gathers a set of tools for writing automated tests of websites: Selenium RC (remote control), Selenium IDE, Selenium Grid and Selenium 2 (on beta) which is the next version of Selenium RC.These tools emerged from a javascript library that was used to drive interactions on a webpage on multiple browsers called Selenium Core.-Run in any mainstream browsers: IE, Mozzila/Firefox, Safari, Chrome-Write tests in many languages: Java, .NET, Perl, Phyton, Ruby Selenese(pure HTML, no Java/backend required)-Has ability to run whole suites of tests or individual test

What is Selenium used forSelenium primarily used for 3 purposes:-Functional Testing-User acceptance testing-Browser compatibility testing-Selenium is not meant for unit testing-It is used for Functional or System Testing-But not for Performance Testing

Selenium’s tool suite.1Selenium is composed of multiple software tools. Each has a specific role.1. Selenium IDESelenium IDE (Integrated Development Environment)is a prototyping tool for building test scripts. It is a Firefoxplugin and provides an easy-to-use interface fordeveloping automated tests. Selenium IDE has a recordingfeature, which records user actions as they are performedand then exports them as a reusable script in one of manyprogramming languages that can be later executed.

Selenium’s tool suite.23. Selenium 1 (aka. Selenium RC or Remote Control) is a server, written in Java, that accepts commands for the browser via HTTP. -RC makes it possible to write automated tests for a web application in any programming language-To make writing tests easier, Selenium project currently provides client drivers for PHP,Python, Ruby, .NET, Perl and Java. -It ‘injected’ javascript functions into the browser when the browser was loaded and then used its javascript to drive the AUT within the browser

Selenium’s tool suite.32. Selenium 2 (aka. Selenium Webdriver)-Selenium WebDriver is the successor to Selenium RC-Selenium WebDriver accepts commands (sent in Selenese, or via a Client API) and sends them to a browser. This is implemented through a browser-specific browser driver, which sends commands to a browser, and retrieves results.-Unlike in Selenium 1, where the Selenium RC server wasnecessary to run tests, Selenium WebDriver does not needa special server to execute tests. Instead, the WebDriverdirectly starts a browser instance and controls it. However, Selenium Grid can be used with WebDriver to execute tests on remote systems (see below).

Selenium’s tool suite.34. Selenium-Grid  -Selenium Grid is a server that allows tests to use web browser instances running on remote machines. -With Selenium Grid, one server acts as the hub. -Tests contact the hub to obtain access to browser instances. The hub has a list of servers that provide access to browser instances (WebDriver nodes), and lets tests use these instances. -Selenium Grid allows to run tests in parallel on multiple machines, and to manage different browser versions and browser configurations centrally (instead of in each individual test).

Advantages of Selenium- Open source, free software-Supports many browsers and many languages- Very mature and complete API-no dedicated machine required for test execution(user can work in parallel)- You can instantiate several concurrent tests with Selenium.

1.Platforms supported by Selenium Selenium works with many browsers, operating systems, programming languages and testing frameworks.Programming languages:

2.Platforms supported by Selenium Operating systems:

Browsers: Firefox 3.6-10,IE7-9,Opera8-9,Chrome

Thanks !

top related