Automation and Selenium: Author: Qu NHKT - Fsu1.Bu9
Automation and Selenium: Author: Qu NHKT - Fsu1.Bu9
Automation and Selenium: Author: Qu NHKT - Fsu1.Bu9
Agenda
Automation Overview
o
o
o
o
o
What is Automation?
Why automate?
Which Test Cases to Automate?
Which Test Cases to Automate?
Benefit and limitation
Selenium
o What is it?
o Selenium components
TestNG Overview
o What is TestNG?
o Why do we need TestNG in Selenium?
o Why do we need TestNG in Selenium?
Demo
2
Why automate
Manual Testing of all work flows, all
fields , all negative scenariosis time
and cost consuming
It is difficult to test for multi lingual
sites manually
Automation does not require Human
intervention. You can run automated
test unattended (overnight)
Automation increases speed of test
execution
Automation helps increase Test
Coverage
Automation Script
Execution
Test Report
Selenium
What is it?
Selenium component
Selenium Components
Selenium IDE
Selenium RC
Selenium Grid
WebDriver (Selenium 2.0)
11
Selenium IDE
Selenium IDE (Integrated
Development Environment) is the
simplest tool in the Selenium Suite.
It isa Firefox add-on that creates
tests very quickly through its recordand-playback functionality
12
Selenium IDE
13
Selenium RC
Allows you to write automated web
application UI tests in any programming
language against any HTTP website using
any mainstream JavaScript-enabled browser.
14
Selenium RC
15
Selenium WebDriver
WebDriver is a web automation
framework that allows you toexecute
your tests against different
browsers, not just Firefox (unlike
Selenium IDE).
WebDriver also enables you touse a
programming languagein creating
your test scripts(not possible in
Selenium IDE).
16
Selenium Webdriver
17
Selenium Grid
18
Selenium Grid
Allows you run the tests on different
machines against different browsers in
parallel; in other words it enables
distributed test execution.
Run your tests against different
browsers, operating systems, and
machines all at the same time.
Save time in execution of your test
suites.
19
What is TestNG?
TestNG is an open source automated
testing framework; where NG of
TestNG means Next Generation.
TestNG is similar to JUnit (especially
JUnit 4), but its not a JUnit extension.
Its inspired by JUnit. It is designed to
be better than JUnit, especially when
testing integrated classes.
20
21
22
23
25
26
Thank you!