Kategorier: Alle - browser - testing - compatibility - javascript

af Alejandro Garcia 16 år siden

569

Selenium Web Testing

Selenium is an open-source test tool designed for web applications, enabling tests to run directly within various browsers such as Internet Explorer, Mozilla, and Firefox. Created by developers at ThoughtWorks and released publicly on OpenQA, Selenium facilitates both browser compatibility and system functional testing.

Selenium Web Testing

Selenium Web

Components

Selenium Remote Control
Installation

using CPAN

as java

To avoid the same origin policy.

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

Local proxy server
Selenium IDE

A Firefox extension

Record, edit, and debug tests

Includes the entire Selenium Core

Selenium Core
Runs in the browser

How It Works?

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

What is Selenium

OpenQA: Selenium

Create 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.

It compares customers expectations to actual results
Use Case

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.

Inspiration to Compare Use Cases to the real aplication

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

test tool for web applications