20
by: tanvir afzal 1

Tanvir Afzal: Selenium

  • Upload
    sqabd

  • View
    3.697

  • Download
    1

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Tanvir Afzal: Selenium

by: tanvir afzal

1

Page 2: Tanvir Afzal: Selenium

selenium ooh so what is selenium ooh so what is this?this? in simple terms, selenium is a web

testing framework that runs in any browser, suited for:

functional testing browser compatibility testing

2

Page 3: Tanvir Afzal: Selenium

keep it simple, or dig keep it simple, or dig deepdeepjust want to try it simplicity – easy to use the selenium

IDE to create a single or a complete suite of tests.

want to know more about it complete solution - go deep inside

selenium to know selenium remote control & grid

3

Page 4: Tanvir Afzal: Selenium

using seleniumusing selenium tests can be written as HTML markup.

test cases can be written in a number of popular programming languages (Java, .NET, Perl, Python and Ruby)

it can be run directly in most modern web browsers. selenium can be deployed on windows, linux, and mac.

4

Page 5: Tanvir Afzal: Selenium

selenium projectsselenium projects

selenium IDE selenium core selenium RC selenium grid

5

Page 6: Tanvir Afzal: Selenium

selenium IDEselenium IDE

selenium IDE is a firefox add-on that makes it easy to record and playback tests in firefox.

6

Page 7: Tanvir Afzal: Selenium

selenium coreselenium core

selenium core tests run directly in a browser, just as real users do.

need to copy selenium Core & tests directly into application web server

7

Page 8: Tanvir Afzal: Selenium

selenium RCselenium RC

selenium remote control is a system that allows to simulate web browsers locally

using almost any programming language and testing framework

8

Page 9: Tanvir Afzal: Selenium

the way RC worksthe way RC works

http://selenium-rc.openqa.org/ 9

Page 10: Tanvir Afzal: Selenium

selenium gridselenium grid

selenium grid allows several selenium remote control servers to be accessed in parallel by selenium grid server.

10

Page 11: Tanvir Afzal: Selenium

this is the way how grid this is the way how grid works?works?

http://selenium-grid.openqa.org/ 11

Page 12: Tanvir Afzal: Selenium

Which tool I’ll use ??Which tool I’ll use ??

SeleniumIDE

SeleniumRemote Control

SeleniumCore

Browser support Firefox Only

Many All

requires remote Installation

No No Yes

supports HTTPS/SSL

Yes Yes* Yes

supports multiple domains

Yes Yes* No

requires java No Yes No

saves test results to disk

No** Yes No

language support Selenese Only

Many Selenese Only

* = experimental support is available in Selenium RC** = theoretically possible, but not currently implemented 12

Page 13: Tanvir Afzal: Selenium

demodemo

13

Page 14: Tanvir Afzal: Selenium

tell me how I can use tell me how I can use selenium IDE?selenium IDE?

install selenium as a firefox plug-in http://selenium-ide.openqa.org/download.jsp

in firefox browser go to tools > selenium IDE

14

Page 15: Tanvir Afzal: Selenium

new face of IDE 1.0 beta 2

15

Page 16: Tanvir Afzal: Selenium

tell me about regressiontell me about regression

selenium ideselenium ide

antant

cruise controlcruise control

16

Page 17: Tanvir Afzal: Selenium

projects in cruise projects in cruise controlcontrol

17

Page 18: Tanvir Afzal: Selenium

Embedded result file from RC

18

Page 19: Tanvir Afzal: Selenium

references: references:

selenium main site http://selenium.openqa.org

support browser, OS, programming language, testing frameworks can be found here http://selenium.openqa.org/about/platforms.html#browsers

command to run RC java -jar selenium-server.jar -htmlSuite "*firefox"

"http://www.somewhereinads.net" "E:\selenium-remote-control-1.0-beta-1\ads\regression-test\swiad-live\trunk\suite.html" "E:\selenium-remote-control-1.0-beta-1\ads\results.html"

for more help use openqa froum

19

Page 20: Tanvir Afzal: Selenium

thanks for your thanks for your patience patience

any question ?? any question ?? just through on me just through on me

20