SlideShare a Scribd company logo
1 of 21
Pubman and Selenium tests
www.Seleniumonlinetraining.info
What is Selenium
• Selenium is a suite of Web application test automation
tools for any browser on any operating system
– Firefox, Internet Explorer, Safari, Opera, Chrome
– Windows, OS X, Linux, Solaris
• Selenium is broken up into 4 primary components
– Selenium Core
– Selenium IDE
– Selenium RC
– Selenium Grid
• http://seleniumhq.org
What is Selenium
• Selenium is a suite of Web application test automation
tools for any browser on any operating system
– Firefox, Internet Explorer, Safari, Opera, Chrome
– Windows, OS X, Linux, Solaris
• Selenium is broken up into 4 primary components
– Selenium Core
– Selenium IDE
– Selenium RC
– Selenium Grid
• http://seleniumhq.org
www.Seleniumonlinetraining.info
Supported Browsers
* Tests developed on Firefox via Selenium-IDE can be executed on any other supported
browser via a simple Selenium-RC command line.
www.Seleniumonlinetraining.info
Selenium Core
• Selenium Core was developed for an internal application
at ThoughtWorks
• The Core is written in JavaScript, so it runs directly in the
browser
• Tests run directly on the application web server
• Selenese is a command language written into HTML
tables
• Problems:
– cannot switch between http and https protocols.
– cannot go from one domain to another
Command Target Value
www.Seleniumonlinetraining.info
Selenium IDE
• The IDE is a record and playback tool with built-in debugger and
editor
• The IDE is an add-on for Mozilla Firefox only
• The IDE automatically creates test scripts in the Selenese HTML
table format
• The IDE can generate code into a wide variety of languages and
test frameworks
– HTML Selenese, C#, Java, Perl, PHP, Python, Ruby
– Bromine, JUnit, NUnit, RSpec, Test::Unit, TestNG, unittest
• Does not directly support:
– condition statements, iteration
– logging and reporting of test results
– error handling, particularly unexpected errors
– database testing
– test case grouping, test case dependency
– screenshot capture of test failures
www.Seleniumonlinetraining.info
Selenium IDE
www.Seleniumonlinetraining.info
Selenium RC
• is written in Java for portability and is executed from the
command line
• Selenium-RC components are:
– The selenium Server which launches and kills browsers, interprets
and runs the Selenese commands passed from the test program,
and acts as an HTTP proxy, intercepting and verifying HTTP
messages passed between the browser and AUT.
– client libraries which provide the interface between each
programming language and the Selenium-RC Server
• client programming languages: C#, Java, Perl, PHP,
Python, Ruby
www.Seleniumonlinetraining.info
Selenium RC
www.Seleniumonlinetraining.info
www.Seleniumonlinetraining.info
Selenium Grid
• The Grid enables you to run tests in parallel on multiple machines
– Tests can be ran in parallel for reduced execution time
– Test can be ran on various browser and operating system
combinations
– Generates a collated report from all test machines
• The Grid can be run on a server farm or in the Cloud
– The tests are distributed by the Hub server to multiple Selenium
RC machines
– The tests can be ran by various Cloud computing services such
as Amazon EC2, Sauce Labs, BrowserMob, and PushToTest
– The Grid is written in Java for portability and is executed from the
command line
www.Seleniumonlinetraining.info
Selenium Grid
www.Seleniumonlinetraining.info
Selenium IDE Test demo in
https://zim01.gwdg.de/repos/smc/trunk/05_Implementation/0
Selenium RC test demo in
…/pubman_ear/src/test/java/
Pubman Selenium tests
www.Seleniumonlinetraining.info
www.Seleniumonlinetraining.info
www.Seleniumonlinetraining.info
Selenium IDE
The list of
actions in the
actual test
case
to execute
The root of web
application you
want to test
The log of the
events that were
executed, including
any errors or
warning that may
have occurred
www.Seleniumonlinetraining.info
Selenium IDE
Execution
Commands
Record test
actions
Specify commands,
including asserts
Reference of the
currently selected
command
www.Seleniumonlinetraining.info
Running the Test Suite
• Execute the test suite using the Selenium
IDE plug-in TestRunner.html
bug? http://jira.openqa.org/browse/SIDE-222
chrome://selenium-ide/content/selenium/TestRunner.html?
baseURL=<BASE>&test=file:///<TEST SUITE FILE>&auto=true
www.Seleniumonlinetraining.info
Test Suite
Execution
Control
Test Cases
Steps of the
test case
Application
being tested
www.Seleniumonlinetraining.info
TestRunner Control
www.Seleniumonlinetraining.info
TestRunner ControlPause/Play
Execution
Step through
Execution
Control Speed
of Execution
Summary of
the Test
View the log of
the current
execution
View the DOM
of the current
Page being tested
Highlight
Elements in the
Execution
Run All Tests
Run Selected Test
www.Seleniumonlinetraining.info
• With Selenium IDE
www.Seleniumonlinetraining.info

More Related Content

Recently uploaded

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Recently uploaded (20)

HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Pubman and selenium_tests

  • 1. Pubman and Selenium tests www.Seleniumonlinetraining.info
  • 2. What is Selenium • Selenium is a suite of Web application test automation tools for any browser on any operating system – Firefox, Internet Explorer, Safari, Opera, Chrome – Windows, OS X, Linux, Solaris • Selenium is broken up into 4 primary components – Selenium Core – Selenium IDE – Selenium RC – Selenium Grid • http://seleniumhq.org What is Selenium • Selenium is a suite of Web application test automation tools for any browser on any operating system – Firefox, Internet Explorer, Safari, Opera, Chrome – Windows, OS X, Linux, Solaris • Selenium is broken up into 4 primary components – Selenium Core – Selenium IDE – Selenium RC – Selenium Grid • http://seleniumhq.org www.Seleniumonlinetraining.info
  • 3. Supported Browsers * Tests developed on Firefox via Selenium-IDE can be executed on any other supported browser via a simple Selenium-RC command line. www.Seleniumonlinetraining.info
  • 4. Selenium Core • Selenium Core was developed for an internal application at ThoughtWorks • The Core is written in JavaScript, so it runs directly in the browser • Tests run directly on the application web server • Selenese is a command language written into HTML tables • Problems: – cannot switch between http and https protocols. – cannot go from one domain to another Command Target Value www.Seleniumonlinetraining.info
  • 5. Selenium IDE • The IDE is a record and playback tool with built-in debugger and editor • The IDE is an add-on for Mozilla Firefox only • The IDE automatically creates test scripts in the Selenese HTML table format • The IDE can generate code into a wide variety of languages and test frameworks – HTML Selenese, C#, Java, Perl, PHP, Python, Ruby – Bromine, JUnit, NUnit, RSpec, Test::Unit, TestNG, unittest • Does not directly support: – condition statements, iteration – logging and reporting of test results – error handling, particularly unexpected errors – database testing – test case grouping, test case dependency – screenshot capture of test failures www.Seleniumonlinetraining.info
  • 7. Selenium RC • is written in Java for portability and is executed from the command line • Selenium-RC components are: – The selenium Server which launches and kills browsers, interprets and runs the Selenese commands passed from the test program, and acts as an HTTP proxy, intercepting and verifying HTTP messages passed between the browser and AUT. – client libraries which provide the interface between each programming language and the Selenium-RC Server • client programming languages: C#, Java, Perl, PHP, Python, Ruby www.Seleniumonlinetraining.info
  • 10. Selenium Grid • The Grid enables you to run tests in parallel on multiple machines – Tests can be ran in parallel for reduced execution time – Test can be ran on various browser and operating system combinations – Generates a collated report from all test machines • The Grid can be run on a server farm or in the Cloud – The tests are distributed by the Hub server to multiple Selenium RC machines – The tests can be ran by various Cloud computing services such as Amazon EC2, Sauce Labs, BrowserMob, and PushToTest – The Grid is written in Java for portability and is executed from the command line www.Seleniumonlinetraining.info
  • 12. Selenium IDE Test demo in https://zim01.gwdg.de/repos/smc/trunk/05_Implementation/0 Selenium RC test demo in …/pubman_ear/src/test/java/ Pubman Selenium tests www.Seleniumonlinetraining.info
  • 15. Selenium IDE The list of actions in the actual test case to execute The root of web application you want to test The log of the events that were executed, including any errors or warning that may have occurred www.Seleniumonlinetraining.info
  • 16. Selenium IDE Execution Commands Record test actions Specify commands, including asserts Reference of the currently selected command www.Seleniumonlinetraining.info
  • 17. Running the Test Suite • Execute the test suite using the Selenium IDE plug-in TestRunner.html bug? http://jira.openqa.org/browse/SIDE-222 chrome://selenium-ide/content/selenium/TestRunner.html? baseURL=<BASE>&test=file:///<TEST SUITE FILE>&auto=true www.Seleniumonlinetraining.info
  • 18. Test Suite Execution Control Test Cases Steps of the test case Application being tested www.Seleniumonlinetraining.info
  • 20. TestRunner ControlPause/Play Execution Step through Execution Control Speed of Execution Summary of the Test View the log of the current execution View the DOM of the current Page being tested Highlight Elements in the Execution Run All Tests Run Selected Test www.Seleniumonlinetraining.info
  • 21. • With Selenium IDE www.Seleniumonlinetraining.info

Editor's Notes

  1. seleniumonlinetraining.info