Selenium Web

Selenium Web

What is Selenium

r

OpenQA: SeleniumCreate by developers at ThoughtWorks Released publically as an Open Source project on OpenQA Selenium is a test tool for web applications. Selenium tests run directly in a browser. Runs on Windows, Linux, and Macintosh. Runs in Internet Explorer, Mozilla and Firefox. Enables Browser Compatibility Testing. Enables System Functional Testing.

test tool for web applications

Inspiration to Compare Use Cases to the real aplication

r

FIT enables customers, testers, and programmers to learn what their software should do, and to automatically compare that to what it actually does do. http://lacomplejidad.blogspot.com/2007/10/no-s-cuIt compares customers' expectations to actual results.les-son-las-causas-de-la.htmlz

a

It compares customers expectations to actual results

Use Case

Use Case

r

Basic Flow (Happy path): 1. System prompts the user to log on. 2. User enters his name and password. 3. System verifies the logon information. 4. System logs user on to system.

How It Works?

r

Uses JavaScript and Iframes in the browser Core runs the tests and interrogates the DOM RC server and Core communicate via AJAX Language hooks communicate with the RC server

Components

Selenium Core

Selenium Core

Runs in the browser

Runs in the browser

Selenium IDE

Selenium IDE

r

A Firefox extension Record, edit, and debug tests Includes the entire Selenium Core

Selenium Remote Control

Selenium Remote Control

Local proxy server

To avoid the same origin policy.

r

Mozilla Same Origin Policy The same origin policy prevents a document or script loaded from one origin from getting or setting properties of a document from a different origin. Selenium largely avoids this by acting as a proxy However, your start URL must be not differ during tests

Installation

as java

a

using CPAN

a