SlideShare a Scribd company logo
Softsmith Infotech 1
Test Automation Using
Selenium
Softsmith Infotech 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.
Softsmith Infotech 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
Softsmith Infotech 4
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)
Softsmith Infotech 5
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.
Softsmith Infotech 6
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.
Softsmith Infotech 7
Selenium Components
• Selenium IDE
• Selenium Remote Control
• Selenium WebDriver
• Selenium Grid
Softsmith Infotech 8
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
Softsmith Infotech 9
Selenium IDE - UI
Start and Stop
Recording
Selenese
Script
Editor
Selenium Log
Replay
Toolbar
Accessor
Area
Softsmith Infotech 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
Softsmith Infotech 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
Softsmith Infotech 12
How Selenium Works
Softsmith Infotech 13
Client Drivers
Enables communication with Selenium Remote Control
Server.
Functionality of Selenium is exposed via these drivers.
Available in Ruby, Python, Java, C-Sharp …and so on.
Give access to the rich features and libraries of the
language, including their unit testing framework.
Makes it possible to develop automated scripts in the
same language as product.
Which one you should use?
Whatever make sense in your context. Most Popular is java and for
the training we will use java
Softsmith Infotech 14
Selenium Libraries
Softsmith Infotech 15
Script View
Softsmith Infotech 16
Example 1 – Get the values from the list box and
check if the value “HTML” is present in it
Implementation Steps
1) First get the values from the list box
2) To get the values from the list box or any
other HTML element we need to know its
Xpath. (use Xpath checker)
3) The values taken from the list box are
stored in a variable.
4) Use the indexOf method to find if “HTML”
is present in the extracted variable.
Softsmith Infotech 17
Screen Shot of the Example Script
Xpath Locator
Softsmith Infotech 18
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.
Softsmith Infotech 19
Best practices
• Use Selenium to verify workflow and
session
• Don't put Selenium tests in your main
development build – run them overnight
• Have dedicated machines that run tests
• DON'T THINK OF THIS AS A
REPLACEMENT FOR EXPLORATORY
TESTING!!!
Links
• http://gojko.net
• http://www.openqa.org
• http://www.solutionsiq.com/agile2008/agile-2008-
domain.php
• http://storytestiq.solutionsiq.com
• http://www.cubictest.com
• http://fitnesse.info/webtest

More Related Content

What's hot

Selenium2 and Jenkins: Almost pain-free UI Testing
Selenium2 and Jenkins: Almost pain-free UI TestingSelenium2 and Jenkins: Almost pain-free UI Testing
Selenium2 and Jenkins: Almost pain-free UI Testing
mikereedell
 
Python in Test automation
Python in Test automationPython in Test automation
Python in Test automation
Krishnana Sreeraman
 
Learn SELENIUM at ASIT
Learn SELENIUM at ASITLearn SELENIUM at ASIT
Learn SELENIUM at ASIT
ASIT
 
Selenium - Introduction
Selenium - IntroductionSelenium - Introduction
Selenium - Introduction
Amr E. Mohamed
 
Basics of Selenium IDE,Core, Remote Control
Basics of Selenium IDE,Core, Remote ControlBasics of Selenium IDE,Core, Remote Control
Basics of Selenium IDE,Core, Remote Control
usha kannappan
 
Selenium
SeleniumSelenium
Selenium
BugRaptors
 
Smarter ways to do selenium automation @ work, Selenium, automation
Smarter ways to do selenium automation @ work, Selenium, automationSmarter ways to do selenium automation @ work, Selenium, automation
Smarter ways to do selenium automation @ work, Selenium, automationRIA RUI Society
 
Selenium
SeleniumSelenium
Selenium
Sun Technlogies
 
Selenium ppt
Selenium pptSelenium ppt
Selenium ppt
Anirudh Raja
 
Selenium tutorials
Selenium tutorialsSelenium tutorials
Selenium tutorials
Ducat
 
Continuous Delivery concept overview. Continuous Integration Systems. DevOps ...
Continuous Delivery concept overview. Continuous Integration Systems. DevOps ...Continuous Delivery concept overview. Continuous Integration Systems. DevOps ...
Continuous Delivery concept overview. Continuous Integration Systems. DevOps ...
eleksdev
 
Mastering selenium for automated acceptance tests
Mastering selenium for automated acceptance testsMastering selenium for automated acceptance tests
Mastering selenium for automated acceptance testsNick Belhomme
 
#1 unit testing
#1 unit testing#1 unit testing
#1 unit testing
eleksdev
 
Selenium
SeleniumSelenium
Selenium
Ruturaj Doshi
 
Selenium web driver
Selenium web driverSelenium web driver
Selenium web driver
Sun Technlogies
 
Testing with Spring: An Introduction
Testing with Spring: An IntroductionTesting with Spring: An Introduction
Testing with Spring: An Introduction
Sam Brannen
 
JUnit 5 - Evolution and Innovation - SpringOne Platform 2019
JUnit 5 - Evolution and Innovation - SpringOne Platform 2019JUnit 5 - Evolution and Innovation - SpringOne Platform 2019
JUnit 5 - Evolution and Innovation - SpringOne Platform 2019
Sam Brannen
 
Selenium notes
Selenium notesSelenium notes
Selenium notes
wholcomb
 
Selenium Test Automation - Challenges
Selenium Test Automation - ChallengesSelenium Test Automation - Challenges
Selenium Test Automation - Challenges
Arul Selvan
 

What's hot (20)

Selenium2 and Jenkins: Almost pain-free UI Testing
Selenium2 and Jenkins: Almost pain-free UI TestingSelenium2 and Jenkins: Almost pain-free UI Testing
Selenium2 and Jenkins: Almost pain-free UI Testing
 
Python in Test automation
Python in Test automationPython in Test automation
Python in Test automation
 
Learn SELENIUM at ASIT
Learn SELENIUM at ASITLearn SELENIUM at ASIT
Learn SELENIUM at ASIT
 
Selenium - Introduction
Selenium - IntroductionSelenium - Introduction
Selenium - Introduction
 
Basics of Selenium IDE,Core, Remote Control
Basics of Selenium IDE,Core, Remote ControlBasics of Selenium IDE,Core, Remote Control
Basics of Selenium IDE,Core, Remote Control
 
Selenium
SeleniumSelenium
Selenium
 
Smarter ways to do selenium automation @ work, Selenium, automation
Smarter ways to do selenium automation @ work, Selenium, automationSmarter ways to do selenium automation @ work, Selenium, automation
Smarter ways to do selenium automation @ work, Selenium, automation
 
Selenium
SeleniumSelenium
Selenium
 
Selenium
SeleniumSelenium
Selenium
 
Selenium ppt
Selenium pptSelenium ppt
Selenium ppt
 
Selenium tutorials
Selenium tutorialsSelenium tutorials
Selenium tutorials
 
Continuous Delivery concept overview. Continuous Integration Systems. DevOps ...
Continuous Delivery concept overview. Continuous Integration Systems. DevOps ...Continuous Delivery concept overview. Continuous Integration Systems. DevOps ...
Continuous Delivery concept overview. Continuous Integration Systems. DevOps ...
 
Mastering selenium for automated acceptance tests
Mastering selenium for automated acceptance testsMastering selenium for automated acceptance tests
Mastering selenium for automated acceptance tests
 
#1 unit testing
#1 unit testing#1 unit testing
#1 unit testing
 
Selenium
SeleniumSelenium
Selenium
 
Selenium web driver
Selenium web driverSelenium web driver
Selenium web driver
 
Testing with Spring: An Introduction
Testing with Spring: An IntroductionTesting with Spring: An Introduction
Testing with Spring: An Introduction
 
JUnit 5 - Evolution and Innovation - SpringOne Platform 2019
JUnit 5 - Evolution and Innovation - SpringOne Platform 2019JUnit 5 - Evolution and Innovation - SpringOne Platform 2019
JUnit 5 - Evolution and Innovation - SpringOne Platform 2019
 
Selenium notes
Selenium notesSelenium notes
Selenium notes
 
Selenium Test Automation - Challenges
Selenium Test Automation - ChallengesSelenium Test Automation - Challenges
Selenium Test Automation - Challenges
 

Viewers also liked

Ijetr021244
Ijetr021244Ijetr021244
E150425 sustaining our_common_future
E150425 sustaining our_common_futureE150425 sustaining our_common_future
E150425 sustaining our_common_future
Harm Jaap Smit
 
すごいHaskellたのしくHeroku!
すごいHaskellたのしくHeroku!すごいHaskellたのしくHeroku!
すごいHaskellたのしくHeroku!Haruka Nakajima
 
[사회복지사복수교육]무사고로 질주하는 IT업무환경 만들기
[사회복지사복수교육]무사고로 질주하는 IT업무환경 만들기[사회복지사복수교육]무사고로 질주하는 IT업무환경 만들기
[사회복지사복수교육]무사고로 질주하는 IT업무환경 만들기
NpoITcenter_Kor
 
Ijetr021242
Ijetr021242Ijetr021242
Ijetr021224
Ijetr021224Ijetr021224
Mobile Sites with Moovweb
Mobile Sites with MoovwebMobile Sites with Moovweb
Mobile Sites with Moovweb
Naseem Makiya
 
Webinar Unizo
Webinar UnizoWebinar Unizo
Webinar Unizo
Michael Van de Velde
 
Sass introduction through the main concepts - 2016
Sass introduction through the main concepts - 2016Sass introduction through the main concepts - 2016
Sass introduction through the main concepts - 2016
Julien Bouteloup
 
Home business automated marketing system
Home business automated marketing systemHome business automated marketing system
Home business automated marketing system
Gert Bruhn
 
Ijetr021239
Ijetr021239Ijetr021239
Ijetr021265
Ijetr021265Ijetr021265
волкова ю.а.
волкова ю.а.волкова ю.а.
волкова ю.а.kdnz-22
 
Ijetr021233
Ijetr021233Ijetr021233
Tecnologie e strategie progettuali per il retrofit del sistema edificio-impianto
Tecnologie e strategie progettuali per il retrofit del sistema edificio-impiantoTecnologie e strategie progettuali per il retrofit del sistema edificio-impianto
Tecnologie e strategie progettuali per il retrofit del sistema edificio-impianto
SOLAVA
 

Viewers also liked (19)

Ijetr021244
Ijetr021244Ijetr021244
Ijetr021244
 
E150425 sustaining our_common_future
E150425 sustaining our_common_futureE150425 sustaining our_common_future
E150425 sustaining our_common_future
 
3 texto
3 texto3 texto
3 texto
 
すごいHaskellたのしくHeroku!
すごいHaskellたのしくHeroku!すごいHaskellたのしくHeroku!
すごいHaskellたのしくHeroku!
 
[사회복지사복수교육]무사고로 질주하는 IT업무환경 만들기
[사회복지사복수교육]무사고로 질주하는 IT업무환경 만들기[사회복지사복수교육]무사고로 질주하는 IT업무환경 만들기
[사회복지사복수교육]무사고로 질주하는 IT업무환경 만들기
 
положення про-наукове-товариство
положення про-наукове-товариствоположення про-наукове-товариство
положення про-наукове-товариство
 
Ijetr021242
Ijetr021242Ijetr021242
Ijetr021242
 
Ijetr021224
Ijetr021224Ijetr021224
Ijetr021224
 
Mobile Sites with Moovweb
Mobile Sites with MoovwebMobile Sites with Moovweb
Mobile Sites with Moovweb
 
Webinar Unizo
Webinar UnizoWebinar Unizo
Webinar Unizo
 
Docker やってみた
Docker やってみたDocker やってみた
Docker やってみた
 
Sass introduction through the main concepts - 2016
Sass introduction through the main concepts - 2016Sass introduction through the main concepts - 2016
Sass introduction through the main concepts - 2016
 
Home business automated marketing system
Home business automated marketing systemHome business automated marketing system
Home business automated marketing system
 
Ijetr021239
Ijetr021239Ijetr021239
Ijetr021239
 
Ijetr021265
Ijetr021265Ijetr021265
Ijetr021265
 
волкова ю.а.
волкова ю.а.волкова ю.а.
волкова ю.а.
 
презентация грустілін на сайт
презентация грустілін на сайтпрезентация грустілін на сайт
презентация грустілін на сайт
 
Ijetr021233
Ijetr021233Ijetr021233
Ijetr021233
 
Tecnologie e strategie progettuali per il retrofit del sistema edificio-impianto
Tecnologie e strategie progettuali per il retrofit del sistema edificio-impiantoTecnologie e strategie progettuali per il retrofit del sistema edificio-impianto
Tecnologie e strategie progettuali per il retrofit del sistema edificio-impianto
 

Similar to Test automation using selenium

Selenium (1)
Selenium (1)Selenium (1)
Selenium (1)
onlinemindq
 
Selenium
SeleniumSelenium
Selenium
Satyam Pandey
 
QSpiders - Automation using Selenium
QSpiders - Automation using SeleniumQSpiders - Automation using Selenium
QSpiders - Automation using Selenium
Qspiders - Software Testing Training Institute
 
Selenium Tutorial
Selenium TutorialSelenium Tutorial
Selenium Tutorialprad_123
 
Selenium Presentation at Engineering Colleges
Selenium Presentation at Engineering CollegesSelenium Presentation at Engineering Colleges
Selenium Presentation at Engineering Colleges
Vijay Rangaiah
 
Selenium Automation Using Ruby
Selenium Automation Using RubySelenium Automation Using Ruby
Selenium Automation Using RubyKumari Warsha Goel
 
Selenium by using JAVA
Selenium by using JAVASelenium by using JAVA
Selenium by using JAVA
mahirayavarapu
 
Selenium
SeleniumSelenium
Selenium
conect2krish
 
Interview Question & Answers for Selenium Freshers | LearningSlot
Interview Question & Answers for Selenium Freshers | LearningSlotInterview Question & Answers for Selenium Freshers | LearningSlot
Interview Question & Answers for Selenium Freshers | LearningSlot
Learning Slot
 
Selenium
SeleniumSelenium
test-automation-selenium-160216124839.pptx
test-automation-selenium-160216124839.pptxtest-automation-selenium-160216124839.pptx
test-automation-selenium-160216124839.pptx
SyedZaeem9
 
Learn Selenium - Online Guide
Learn Selenium - Online GuideLearn Selenium - Online Guide
Learn Selenium - Online Guide
bigspire
 
Selenium
SeleniumSelenium
Selenium
Kalyan ch
 
Selenium Basics by Quontra Solutions
Selenium Basics by Quontra SolutionsSelenium Basics by Quontra Solutions
Selenium Basics by Quontra Solutions
QUONTRASOLUTIONS
 
What is selenium
What is seleniumWhat is selenium
What is selenium
sachin patil
 
Selenium
SeleniumSelenium
Selenium
Anjali Rao
 

Similar to Test automation using selenium (20)

Selenium (1)
Selenium (1)Selenium (1)
Selenium (1)
 
Selenium
SeleniumSelenium
Selenium
 
QSpiders - Automation using Selenium
QSpiders - Automation using SeleniumQSpiders - Automation using Selenium
QSpiders - Automation using Selenium
 
Sel
SelSel
Sel
 
Selenium Primer
Selenium PrimerSelenium Primer
Selenium Primer
 
Selenium Concepts
Selenium ConceptsSelenium Concepts
Selenium Concepts
 
Selenium Tutorial
Selenium TutorialSelenium Tutorial
Selenium Tutorial
 
Selenium Presentation at Engineering Colleges
Selenium Presentation at Engineering CollegesSelenium Presentation at Engineering Colleges
Selenium Presentation at Engineering Colleges
 
Selenium Automation Using Ruby
Selenium Automation Using RubySelenium Automation Using Ruby
Selenium Automation Using Ruby
 
Selenium by using JAVA
Selenium by using JAVASelenium by using JAVA
Selenium by using JAVA
 
Selenium
SeleniumSelenium
Selenium
 
Interview Question & Answers for Selenium Freshers | LearningSlot
Interview Question & Answers for Selenium Freshers | LearningSlotInterview Question & Answers for Selenium Freshers | LearningSlot
Interview Question & Answers for Selenium Freshers | LearningSlot
 
Selenium
SeleniumSelenium
Selenium
 
test-automation-selenium-160216124839.pptx
test-automation-selenium-160216124839.pptxtest-automation-selenium-160216124839.pptx
test-automation-selenium-160216124839.pptx
 
Learn Selenium - Online Guide
Learn Selenium - Online GuideLearn Selenium - Online Guide
Learn Selenium - Online Guide
 
Selenium
SeleniumSelenium
Selenium
 
Selenium Basics by Quontra Solutions
Selenium Basics by Quontra SolutionsSelenium Basics by Quontra Solutions
Selenium Basics by Quontra Solutions
 
Selenium framework faq
Selenium framework faqSelenium framework faq
Selenium framework faq
 
What is selenium
What is seleniumWhat is selenium
What is selenium
 
Selenium
SeleniumSelenium
Selenium
 

Recently uploaded

GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
Neo4j
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
Large Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial ApplicationsLarge Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial Applications
Rohit Gautam
 
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Zilliz
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Nexer Digital
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
Alpen-Adria-Universität
 
20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website
Pixlogix Infotech
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
Kumud Singh
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
sonjaschweigert1
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
danishmna97
 
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex ProofszkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
Alex Pruden
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems S.M.S.A.
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
Matthew Sinclair
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
DianaGray10
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
Neo4j
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Aggregage
 

Recently uploaded (20)

GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
Large Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial ApplicationsLarge Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial Applications
 
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
 
20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
 
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex ProofszkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
 

Test automation using selenium

  • 1. Softsmith Infotech 1 Test Automation Using Selenium
  • 2. Softsmith Infotech 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. Softsmith Infotech 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. Softsmith Infotech 4 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)
  • 5. Softsmith Infotech 5 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.
  • 6. Softsmith Infotech 6 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.
  • 7. Softsmith Infotech 7 Selenium Components • Selenium IDE • Selenium Remote Control • Selenium WebDriver • Selenium Grid
  • 8. Softsmith Infotech 8 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
  • 9. Softsmith Infotech 9 Selenium IDE - UI Start and Stop Recording Selenese Script Editor Selenium Log Replay Toolbar Accessor Area
  • 10. Softsmith Infotech 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. Softsmith Infotech 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. Softsmith Infotech 12 How Selenium Works
  • 13. Softsmith Infotech 13 Client Drivers Enables communication with Selenium Remote Control Server. Functionality of Selenium is exposed via these drivers. Available in Ruby, Python, Java, C-Sharp …and so on. Give access to the rich features and libraries of the language, including their unit testing framework. Makes it possible to develop automated scripts in the same language as product. Which one you should use? Whatever make sense in your context. Most Popular is java and for the training we will use java
  • 16. Softsmith Infotech 16 Example 1 – Get the values from the list box and check if the value “HTML” is present in it Implementation Steps 1) First get the values from the list box 2) To get the values from the list box or any other HTML element we need to know its Xpath. (use Xpath checker) 3) The values taken from the list box are stored in a variable. 4) Use the indexOf method to find if “HTML” is present in the extracted variable.
  • 17. Softsmith Infotech 17 Screen Shot of the Example Script Xpath Locator
  • 18. Softsmith Infotech 18 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.
  • 20. Best practices • Use Selenium to verify workflow and session • Don't put Selenium tests in your main development build – run them overnight • Have dedicated machines that run tests • DON'T THINK OF THIS AS A REPLACEMENT FOR EXPLORATORY TESTING!!!
  • 21. Links • http://gojko.net • http://www.openqa.org • http://www.solutionsiq.com/agile2008/agile-2008- domain.php • http://storytestiq.solutionsiq.com • http://www.cubictest.com • http://fitnesse.info/webtest