SlideShare a Scribd company logo
Learn SELENIUM at ASIT
Test Automation
 Test automation is the use of software
To set test preconditions.
To control the execution of tests.
 To compare the actual outcomes to predicted
outcomes.
To report the Execution Status.
 Commonly, test automation involves automating a
manual process already in place that uses a
formalized testing process.
Test Automation Tools
Quick Test Professional By HP
Rational Functional Tester By Rational (IBM Company)
Silk Test By Borland
Test Complete By Automated QA
QA Run (Compuware )
Watir ( Open Source)
Selenium ( Open Source)
Sahi (Open Source)
Selenium
 Selenium is a robust set of tools that supports rapid
development of test automation for web-based
applications.
 Selenium provides a rich set of testing functions
specifically geared to the needs of testing of a web
application.
 Selenium operations are highly flexible, allowing
many options for locating UI elements and
comparing expected test results against actual
application behavior.
Selenium Features
 Supports Cross Browser Testing. The
Selenium tests can be run on multiple
browsers.
 Allows scripting in several languages like
Java, C#, PHP and Python.
 Assertion statements provide an efficient way
of comparing expected and actual results.
 Inbuilt reporting mechanism.
Selenium Components
 Selenium IDE
 Selenium Remote Control
 Selenium Grid
Selenium IDE
 Selenium IDE is an integrated development
environment for Selenium tests.
 It is implemented as a Firefox extension, and allows
you to record, edit, and replay the test in firefox
 Selenium IDE allows you to save tests as HTML,
Java, Ruby scripts, or any other format
 It allows you to automatically add assertions to all the
pages.
 Allows you to add selenese commands as and when
required
Selenium IDE Installation
 Using Firefox, first, download the IDE from the SeleniumHQ
downloads page When downloading from Firefox, you’ll be
presented with the Window A. (See Next Slide)
 Select Install Now. The Firefox Add-ons window pops up, first
showing a progress bar, and when the download is complete,
displays the Window B. (See Next Slide)
 Restart Firefox. After Firefox reboots you will find the Selenium-IDE
listed under the Firefox Tools menu.
Selenium Installation
Selenium IDE - UI
Selenium Options
Recoding a Selenium Test Case
General Selenium Commands
Selenium Script Running
Creating a Test Suite
Test Runner & Running options
Verification Commands
Selenium WaitFor Commands
waitForPageToLoad
This command will make the script to wait till the page
loads.
Syntax is waitForPageToLoad(timeout); Time out is the
maximum time the script will wait for the page to load.
Limitations of Selenium IDE
 Can run the test only on Firefox
 No Programming login (like loops, conditional
statements) can be applied
 Selenium IDE can execute scripts created in Selenese
only.
 It is difficult to use Selenium IDE for checking
complex test cases involving dynamic contents
Selenium RC
 A solution to cross browser testing.
 A server, written in Java and so available on all the
platforms.
 Acts as a proxy for web requests from them.
 Client libraries for many popular languages.
 Bundles Selenium Core and automatically loads into
the browser
 Installing Selenium RC
 Software Required
 Selenium Test Automation Process
 How Selenium Works
 Process of Developing Selenium Java Scripts.
 Recorded script into Java
 Eclipse IDE
Scrip ViewPackage
Explorer
console
Script View
Some Java Basics
Java Data Types
Int, float, String, char, Boolean and double
Declarations
String s =
“Selenium”;
Int i = 20;
float cur = 3.35;
Operators
* ,/ ,% ,+, - are the
mathematical
operators
* ,/, %, have a higher
precedence than + or
-
Relational Operators
== Equal (careful)
!= Not equal
>= Greater than or equal
<= Less than or equal
> Greater than
< Less than
Programming Elements
If Condition
if (name != “selenium”)
{
System.out.print(“Tool Changed”);
}
Else
{
System.out.print(“Tool is ok”);
}
Loop n times
for ( i = 0; i < n; n++ )
{
// this code body will execute n times
// I from 0 to n-1
}
Selenium-Grid
Selenium-Grid allows the Selenium-RC solution to scale for test
suites or test suites to be run in multiple environments.
• With Selenium-Grid multiple instances of Selenium-RC are
running on various operating system and browser configurations,
each of these when launching register with a hub. When tests are
sent to the hub they are then redirected to an available Selenium-
RC, which will launch the browser and run the test.
• This allows for running tests in parallel, with the entire test suite
theoretically taking only as long to run as the longest individual test.
What's good?
 Relatively easy to automate web UI tests
 Record/Replay for regression tests
 RC allows integration with CI and JUnit/FitNesse tests
we provide online and classroom training for
Selenium
For More Details
www.asit.amcsquare.com
Wise Machines India Pvt Ltd
#360, Sri Sai Padma Arcade,
Varthur Main Road,
Ramagondanahalli,
Whitefiled ,Bangalore – 560066.
We also having Branches in Hyderabad & Chennai

More Related Content

PPTX
Selenium test automation
PPT
Selenium
PPTX
Selenium- A Software Testing Tool
PPT
Test automation using selenium
PDF
Introduction to Automation Testing and Selenium overiew
PPT
Selenium ppt
PPT
Selenium ide material (1)
PPTX
Introduction to Selenium Web Driver
Selenium test automation
Selenium
Selenium- A Software Testing Tool
Test automation using selenium
Introduction to Automation Testing and Selenium overiew
Selenium ppt
Selenium ide material (1)
Introduction to Selenium Web Driver

What's hot (20)

PPTX
Test Automation and Selenium
PPT
Selenium
PDF
Selenium Tutorial
PPS
Selenium Demo
PPT
QSpiders - Automation using Selenium
DOCX
Selenium interview questions
PPTX
#ATAGTR2021 Presentation - "Selenium 4 Observability – a 90 Min Hands on Lab"
PPTX
Selenium ppt
DOCX
Selenium interview Q&A
PDF
Selenium Handbook
PPT
Automated Web Testing Using Selenium
PDF
Web application testing with Selenium
PPT
Selenium Primer
PPTX
Selenium Interview Questions & Answers
PDF
Selenium - Introduction
PDF
Selenium Ide Tutorial
DOC
PPTX
Automation - web testing with selenium
PPTX
Test automation using selenium
PDF
Selenium IDE LOCATORS
Test Automation and Selenium
Selenium
Selenium Tutorial
Selenium Demo
QSpiders - Automation using Selenium
Selenium interview questions
#ATAGTR2021 Presentation - "Selenium 4 Observability – a 90 Min Hands on Lab"
Selenium ppt
Selenium interview Q&A
Selenium Handbook
Automated Web Testing Using Selenium
Web application testing with Selenium
Selenium Primer
Selenium Interview Questions & Answers
Selenium - Introduction
Selenium Ide Tutorial
Automation - web testing with selenium
Test automation using selenium
Selenium IDE LOCATORS
Ad

Viewers also liked (6)

PPTX
Learn JAVA at ASIT
PPTX
Learn PERL at ASIT
PPTX
Fat Transfer (Fat Grafting) to the Face
PPTX
Asit amc never cheats students
PPT
Learn C# at ASIT
PPTX
Asit Never Cheats Unemployes
Learn JAVA at ASIT
Learn PERL at ASIT
Fat Transfer (Fat Grafting) to the Face
Asit amc never cheats students
Learn C# at ASIT
Asit Never Cheats Unemployes
Ad

Similar to Learn SELENIUM at ASIT (20)

PDF
Selenium by using JAVA
PPTX
Selenium using Java
 
PPTX
Selenium
PPTX
PPTX
Selenium
PPTX
Selenium
PPTX
Selenium
PPT
Selenium (1) (1)
PPTX
Software testing tools (free and open source)
PDF
Softwaretestingtoolsfreeandopensourcefinal 150411221750-conversion-gate01
PPTX
Test automation using selenium
PPT
Selenium
PPT
Sakai10 Selenium Workshop
PPT
Selenium By Pravin Mishra
PPTX
Selenium Testing
DOCX
What is selenium
DOCX
Selenium introduction and some feautures
PPTX
Selenium institute in bangalore
Selenium by using JAVA
Selenium using Java
 
Selenium
Selenium
Selenium
Selenium
Selenium (1) (1)
Software testing tools (free and open source)
Softwaretestingtoolsfreeandopensourcefinal 150411221750-conversion-gate01
Test automation using selenium
Selenium
Sakai10 Selenium Workshop
Selenium By Pravin Mishra
Selenium Testing
What is selenium
Selenium introduction and some feautures
Selenium institute in bangalore

More from ASIT (20)

PPTX
Asit education student review
PPTX
ASIT EDUCATION STUDENT REVIEWS
PPTX
Asit Education
PPTX
Asit Education Student Reviews
PPTX
Asit education Student review
PPTX
ASIT EDUCATION REVIEW
PPTX
Latest News on Amc Square Asit
PPTX
News on AMC Square ASIT
PPTX
News on Asit Amc
PPTX
Time Management
PPTX
learn Ruby at ASIT
PPTX
introduction to Mongodb
PPTX
introduction to hadoop
PPTX
ASIT REVIEWS
PPTX
ASIT REVIEWS
PPTX
Learn REST API at ASIT
PPTX
Learn C LANGUAGE at ASIT
PPTX
Learn Advanced JAVA at ASIT
PPTX
Learn WCF at ASIT
PPTX
Learn VB.NET at ASIT
Asit education student review
ASIT EDUCATION STUDENT REVIEWS
Asit Education
Asit Education Student Reviews
Asit education Student review
ASIT EDUCATION REVIEW
Latest News on Amc Square Asit
News on AMC Square ASIT
News on Asit Amc
Time Management
learn Ruby at ASIT
introduction to Mongodb
introduction to hadoop
ASIT REVIEWS
ASIT REVIEWS
Learn REST API at ASIT
Learn C LANGUAGE at ASIT
Learn Advanced JAVA at ASIT
Learn WCF at ASIT
Learn VB.NET at ASIT

Recently uploaded (20)

PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
Insiders guide to clinical Medicine.pdf
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Complications of Minimal Access Surgery at WLH
PDF
TR - Agricultural Crops Production NC III.pdf
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
Cell Structure & Organelles in detailed.
PDF
Pre independence Education in Inndia.pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PDF
Classroom Observation Tools for Teachers
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPH.pptx obstetrics and gynecology in nursing
Insiders guide to clinical Medicine.pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Complications of Minimal Access Surgery at WLH
TR - Agricultural Crops Production NC III.pdf
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Cell Structure & Organelles in detailed.
Pre independence Education in Inndia.pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
human mycosis Human fungal infections are called human mycosis..pptx
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
Classroom Observation Tools for Teachers
Week 4 Term 3 Study Techniques revisited.pptx

Learn SELENIUM at ASIT

  • 2. Test Automation  Test automation is the use of software To set test preconditions. To control the execution of tests.  To compare the actual outcomes to predicted outcomes. To report the Execution Status.  Commonly, test automation involves automating a manual process already in place that uses a formalized testing process.
  • 3. Test Automation Tools Quick Test Professional By HP Rational Functional Tester By Rational (IBM Company) Silk Test By Borland Test Complete By Automated QA QA Run (Compuware ) Watir ( Open Source) Selenium ( Open Source) Sahi (Open Source)
  • 4. Selenium  Selenium is a robust set of tools that supports rapid development of test automation for web-based applications.  Selenium provides a rich set of testing functions specifically geared to the needs of testing of a web application.  Selenium operations are highly flexible, allowing many options for locating UI elements and comparing expected test results against actual application behavior.
  • 5. Selenium Features  Supports Cross Browser Testing. The Selenium tests can be run on multiple browsers.  Allows scripting in several languages like Java, C#, PHP and Python.  Assertion statements provide an efficient way of comparing expected and actual results.  Inbuilt reporting mechanism.
  • 6. Selenium Components  Selenium IDE  Selenium Remote Control  Selenium Grid
  • 7. Selenium IDE  Selenium IDE is an integrated development environment for Selenium tests.  It is implemented as a Firefox extension, and allows you to record, edit, and replay the test in firefox  Selenium IDE allows you to save tests as HTML, Java, Ruby scripts, or any other format  It allows you to automatically add assertions to all the pages.  Allows you to add selenese commands as and when required
  • 8. Selenium IDE Installation  Using Firefox, first, download the IDE from the SeleniumHQ downloads page When downloading from Firefox, you’ll be presented with the Window A. (See Next Slide)  Select Install Now. The Firefox Add-ons window pops up, first showing a progress bar, and when the download is complete, displays the Window B. (See Next Slide)  Restart Firefox. After Firefox reboots you will find the Selenium-IDE listed under the Firefox Tools menu. Selenium Installation Selenium IDE - UI Selenium Options Recoding a Selenium Test Case General Selenium Commands Selenium Script Running Creating a Test Suite Test Runner & Running options Verification Commands
  • 9. Selenium WaitFor Commands waitForPageToLoad This command will make the script to wait till the page loads. Syntax is waitForPageToLoad(timeout); Time out is the maximum time the script will wait for the page to load.
  • 10. Limitations of Selenium IDE  Can run the test only on Firefox  No Programming login (like loops, conditional statements) can be applied  Selenium IDE can execute scripts created in Selenese only.  It is difficult to use Selenium IDE for checking complex test cases involving dynamic contents
  • 11. Selenium RC  A solution to cross browser testing.  A server, written in Java and so available on all the platforms.  Acts as a proxy for web requests from them.  Client libraries for many popular languages.  Bundles Selenium Core and automatically loads into the browser
  • 12.  Installing Selenium RC  Software Required  Selenium Test Automation Process  How Selenium Works  Process of Developing Selenium Java Scripts.  Recorded script into Java  Eclipse IDE Scrip ViewPackage Explorer console
  • 14. Some Java Basics Java Data Types Int, float, String, char, Boolean and double Declarations String s = “Selenium”; Int i = 20; float cur = 3.35; Operators * ,/ ,% ,+, - are the mathematical operators * ,/, %, have a higher precedence than + or -
  • 15. Relational Operators == Equal (careful) != Not equal >= Greater than or equal <= Less than or equal > Greater than < Less than
  • 16. Programming Elements If Condition if (name != “selenium”) { System.out.print(“Tool Changed”); } Else { System.out.print(“Tool is ok”); } Loop n times for ( i = 0; i < n; n++ ) { // this code body will execute n times // I from 0 to n-1 }
  • 17. Selenium-Grid Selenium-Grid allows the Selenium-RC solution to scale for test suites or test suites to be run in multiple environments. • With Selenium-Grid multiple instances of Selenium-RC are running on various operating system and browser configurations, each of these when launching register with a hub. When tests are sent to the hub they are then redirected to an available Selenium- RC, which will launch the browser and run the test. • This allows for running tests in parallel, with the entire test suite theoretically taking only as long to run as the longest individual test.
  • 18. What's good?  Relatively easy to automate web UI tests  Record/Replay for regression tests  RC allows integration with CI and JUnit/FitNesse tests
  • 19. we provide online and classroom training for Selenium For More Details www.asit.amcsquare.com Wise Machines India Pvt Ltd #360, Sri Sai Padma Arcade, Varthur Main Road, Ramagondanahalli, Whitefiled ,Bangalore – 560066. We also having Branches in Hyderabad & Chennai