SlideShare une entreprise Scribd logo
1  sur  18
Selenium
Test Web Applications Using Selenium
A Web Club NITK Talk
Date : 03.02.2015
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.
Why and When To Automate?
●
Frequent regression testing
●
Repeated test case Execution is required
●
User Acceptance Tests
●
Faster Feedback to the developers
●
Reduce the Human Effort
●
Test same application on multiple
environments
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 Web Driver
●
Selenium IDE
●
Selenium Remote Control
●
Selenium Grid
Selenium Web Driver
● WebDriver is a tool for automating testing web
applications. WebDriver interacts directly with the
browser without any intermediary.
● Multi-browser testing including improved functionality
for browsers.
● Handling multiple frames, multiple browser windows,
popups, and alerts.
● Complex page navigation.
● Advanced user navigation such as drag-and-drop.
● AJAX-based UI elements.
Architecture
Installation
● http://www.seleniumhq.org/download/
● In order to create scripts that interact with
the Selenium Server (Selenium RC,
Selenium Remote Webdriver) or create
local Selenium WebDriver script you need
to make use of language-specific client
drivers.
● Ruby,Java, C#, Python, Node.js
Sample Script to Test a page
Most used Commands
Command Description
driver.get("URL") To navigate to an application.
element.sendKeys("inputtext") Enter some text into an input box.
element.clear() Clear the contents from the input box.
driver.switchTo().window("windowName"
)
Move the focus from one window to
another.
driver.navigate().to("URL") Navigate to the URL.
driver.close() Closes the current browser associated
with the driver.
driver.quit() Quits the driver and closes all the
associated window of that driver.
driver.refresh() Refreshes the current page.
Selenium - Grid
● Selenium Grid is a tool that distributes the tests across
multiple physical or virtual machines so that we can
execute scripts in parallel (simultaneously). It dramatically
accelerates the testing process across browsers and
across platforms by giving us quick and accurate
feedback.
● Selenium Grid allows us to execute multiple instances of
WebDriver or Selenium Remote Control tests in parallel
which uses the same code base, hence the code need
NOT be present on the system they execute. The
selenium-server-standalone package includes Hub,
WebDriver, and Selenium RC to execute the scripts in
grid.
Selenium grid Architecture
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 - UI
Start and Stop
Recording
Selenese
Script
Editor
Selenium Log
Replay
Toolbar
Accessor
Area
Other Uses of selenium
● Crawling webpages . Also, AJAX crawling.
● Responsive Testing.
● Scraping content from webpages. In
particular, the ones which don't provide an
API and load content lazily using
Javascript.
Future Of Testing & Selenium
`
Thank you :)
Mail : anirudht20@gmail.com

Contenu connexe

Tendances

What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...
What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...
What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...
Simplilearn
 
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Simplilearn
 

Tendances (20)

Selenium ppt
Selenium pptSelenium ppt
Selenium ppt
 
Selenium with java
Selenium with javaSelenium with java
Selenium with java
 
Selenium test automation
Selenium test automationSelenium test automation
Selenium test automation
 
Automation Testing using Selenium Webdriver
Automation Testing using Selenium WebdriverAutomation Testing using Selenium Webdriver
Automation Testing using Selenium Webdriver
 
Selenium WebDriver
Selenium WebDriverSelenium WebDriver
Selenium WebDriver
 
Automation Testing using Selenium
Automation Testing using SeleniumAutomation Testing using Selenium
Automation Testing using Selenium
 
Automation - web testing with selenium
Automation - web testing with seleniumAutomation - web testing with selenium
Automation - web testing with selenium
 
What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...
What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...
What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...
 
Selenium Presentation at Engineering Colleges
Selenium Presentation at Engineering CollegesSelenium Presentation at Engineering Colleges
Selenium Presentation at Engineering Colleges
 
Selenium ppt
Selenium pptSelenium ppt
Selenium ppt
 
Introduction to selenium
Introduction to seleniumIntroduction to selenium
Introduction to selenium
 
Automation testing
Automation testingAutomation testing
Automation testing
 
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
 
An overview of selenium webdriver
An overview of selenium webdriverAn overview of selenium webdriver
An overview of selenium webdriver
 
Introduction to Selenium | Selenium Tutorial for Beginners | Selenium Trainin...
Introduction to Selenium | Selenium Tutorial for Beginners | Selenium Trainin...Introduction to Selenium | Selenium Tutorial for Beginners | Selenium Trainin...
Introduction to Selenium | Selenium Tutorial for Beginners | Selenium Trainin...
 
Selenium
SeleniumSelenium
Selenium
 
Automated Web Testing Using Selenium
Automated Web Testing Using SeleniumAutomated Web Testing Using Selenium
Automated Web Testing Using Selenium
 
Selenium
SeleniumSelenium
Selenium
 
SELENIUM PPT.pdf
SELENIUM PPT.pdfSELENIUM PPT.pdf
SELENIUM PPT.pdf
 
Introduction to Automation Testing
Introduction to Automation TestingIntroduction to Automation Testing
Introduction to Automation Testing
 

Similaire à Selenium ppt

What is Selenium Testing.pdf
What is Selenium Testing.pdfWhat is Selenium Testing.pdf
What is Selenium Testing.pdf
AnanthReddy38
 
Test Automation Using Selenium
Test Automation Using SeleniumTest Automation Using Selenium
Test Automation Using Selenium
Nikhil Kapoor
 

Similaire à Selenium ppt (20)

Integrating Selenium testing infrastructure into Scala Project
Integrating Selenium testing infrastructure into Scala ProjectIntegrating Selenium testing infrastructure into Scala Project
Integrating Selenium testing infrastructure into Scala Project
 
What is Selenium Testing.pdf
What is Selenium Testing.pdfWhat is Selenium Testing.pdf
What is Selenium Testing.pdf
 
Test automation using selenium
Test automation using seleniumTest automation using selenium
Test automation using selenium
 
A Simple Guide to Selenium Software Testing
A Simple Guide to Selenium Software TestingA Simple Guide to Selenium Software Testing
A Simple Guide to Selenium Software Testing
 
How to use Selenium Grid for Multi-Browser Testing.pdf
How to use Selenium Grid for Multi-Browser Testing.pdfHow to use Selenium Grid for Multi-Browser Testing.pdf
How to use Selenium Grid for Multi-Browser Testing.pdf
 
Python selenium
Python seleniumPython selenium
Python selenium
 
Test Automation Using Selenium
Test Automation Using SeleniumTest Automation Using Selenium
Test Automation Using Selenium
 
7.pdf
7.pdf7.pdf
7.pdf
 
Intelligent Testing Tool: Selenium Web Driver
Intelligent Testing Tool: Selenium Web DriverIntelligent Testing Tool: Selenium Web Driver
Intelligent Testing Tool: Selenium Web Driver
 
[DevDay 2017] Automation Testing - Speaker: Nghia Khuong - Project Manager at...
[DevDay 2017] Automation Testing - Speaker: Nghia Khuong - Project Manager at...[DevDay 2017] Automation Testing - Speaker: Nghia Khuong - Project Manager at...
[DevDay 2017] Automation Testing - Speaker: Nghia Khuong - Project Manager at...
 
7 Effective Practices to Follow for Selenium Automation Testing
7 Effective Practices to Follow for Selenium Automation Testing7 Effective Practices to Follow for Selenium Automation Testing
7 Effective Practices to Follow for Selenium Automation Testing
 
Selenium
SeleniumSelenium
Selenium
 
Lesson_06_Software_and_Automation_Testing_Frameworks.pdf
Lesson_06_Software_and_Automation_Testing_Frameworks.pdfLesson_06_Software_and_Automation_Testing_Frameworks.pdf
Lesson_06_Software_and_Automation_Testing_Frameworks.pdf
 
Web Testen mit Selenium
Web Testen mit SeleniumWeb Testen mit Selenium
Web Testen mit Selenium
 
Slides for Automation Testing or End to End testing
Slides for Automation Testing or End to End testingSlides for Automation Testing or End to End testing
Slides for Automation Testing or End to End testing
 
Selenium
SeleniumSelenium
Selenium
 
Selenium
SeleniumSelenium
Selenium
 
A Definitive Guide to Mastering Selenium WebDriver Automation Effectively.pptx
A Definitive Guide to Mastering Selenium WebDriver Automation Effectively.pptxA Definitive Guide to Mastering Selenium WebDriver Automation Effectively.pptx
A Definitive Guide to Mastering Selenium WebDriver Automation Effectively.pptx
 
test-automation-selenium-160216124839.pptx
test-automation-selenium-160216124839.pptxtest-automation-selenium-160216124839.pptx
test-automation-selenium-160216124839.pptx
 
Introduction to Automation Testing and Selenium overiew
Introduction to Automation Testing and Selenium overiewIntroduction to Automation Testing and Selenium overiew
Introduction to Automation Testing and Selenium overiew
 

Dernier

Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
Kamal Acharya
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
AldoGarca30
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
MayuraD1
 
Verification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptxVerification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptx
chumtiyababu
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
Epec Engineered Technologies
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
jaanualu31
 

Dernier (20)

Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planes
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
Verification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptxVerification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptx
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdf
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal load
 

Selenium ppt

  • 1. Selenium Test Web Applications Using Selenium A Web Club NITK Talk Date : 03.02.2015
  • 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. Why and When To Automate? ● Frequent regression testing ● Repeated test case Execution is required ● User Acceptance Tests ● Faster Feedback to the developers ● Reduce the Human Effort ● Test same application on multiple environments
  • 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 Web Driver ● Selenium IDE ● Selenium Remote Control ● Selenium Grid
  • 7. Selenium Web Driver ● WebDriver is a tool for automating testing web applications. WebDriver interacts directly with the browser without any intermediary. ● Multi-browser testing including improved functionality for browsers. ● Handling multiple frames, multiple browser windows, popups, and alerts. ● Complex page navigation. ● Advanced user navigation such as drag-and-drop. ● AJAX-based UI elements.
  • 9. Installation ● http://www.seleniumhq.org/download/ ● In order to create scripts that interact with the Selenium Server (Selenium RC, Selenium Remote Webdriver) or create local Selenium WebDriver script you need to make use of language-specific client drivers. ● Ruby,Java, C#, Python, Node.js
  • 10. Sample Script to Test a page
  • 11. Most used Commands Command Description driver.get("URL") To navigate to an application. element.sendKeys("inputtext") Enter some text into an input box. element.clear() Clear the contents from the input box. driver.switchTo().window("windowName" ) Move the focus from one window to another. driver.navigate().to("URL") Navigate to the URL. driver.close() Closes the current browser associated with the driver. driver.quit() Quits the driver and closes all the associated window of that driver. driver.refresh() Refreshes the current page.
  • 12. Selenium - Grid ● Selenium Grid is a tool that distributes the tests across multiple physical or virtual machines so that we can execute scripts in parallel (simultaneously). It dramatically accelerates the testing process across browsers and across platforms by giving us quick and accurate feedback. ● Selenium Grid allows us to execute multiple instances of WebDriver or Selenium Remote Control tests in parallel which uses the same code base, hence the code need NOT be present on the system they execute. The selenium-server-standalone package includes Hub, WebDriver, and Selenium RC to execute the scripts in grid.
  • 14. 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
  • 15. Selenium IDE - UI Start and Stop Recording Selenese Script Editor Selenium Log Replay Toolbar Accessor Area
  • 16. Other Uses of selenium ● Crawling webpages . Also, AJAX crawling. ● Responsive Testing. ● Scraping content from webpages. In particular, the ones which don't provide an API and load content lazily using Javascript.
  • 17. Future Of Testing & Selenium `
  • 18. Thank you :) Mail : anirudht20@gmail.com