SlideShare una empresa de Scribd logo
1 de 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

Más contenido relacionado

Más de onlinemindq

A Buffer's Guide to Selenium 2
A Buffer's Guide to Selenium 2A Buffer's Guide to Selenium 2
A Buffer's Guide to Selenium 2onlinemindq
 
Selenium Open Source Tool
Selenium Open Source ToolSelenium Open Source Tool
Selenium Open Source Toolonlinemindq
 

Más de onlinemindq (6)

Selenium 2
Selenium 2Selenium 2
Selenium 2
 
Selenium (2)
Selenium (2)Selenium (2)
Selenium (2)
 
Selenium (1)
Selenium (1)Selenium (1)
Selenium (1)
 
Selenium.ppt
Selenium.pptSelenium.ppt
Selenium.ppt
 
A Buffer's Guide to Selenium 2
A Buffer's Guide to Selenium 2A Buffer's Guide to Selenium 2
A Buffer's Guide to Selenium 2
 
Selenium Open Source Tool
Selenium Open Source ToolSelenium Open Source Tool
Selenium Open Source Tool
 

Último

Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxnelietumpap1
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 

Último (20)

Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 

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

Notas del editor

  1. seleniumonlinetraining.info