SlideShare a Scribd company logo
Selenium Workshop Corey McGarrahan QA Lead rSmart
Questions, Slides and Links Please feel free to ask questions at any time Slides will be available at: http://www.slideshare.net http://confluence.sakaiproject.org/display/QA/Selenium http://confluence.sakaiproject.org/display/QA/Selenium+Remote+Control+and+TestNG 11th Sakai Conference - June 15-17, 2010
Tools needed Add-ons Using Seleium IDE Recording  Playback Test Suites Selenium/TestNG Project Setup Use What We’ll Cover 11th Sakai Conference - June 15-17, 2010
A cautionary tail… 11th Sakai Conference - June 15-17, 2010
Selenium IDE
Additional Add-ons…
Open up the IDE
IDE Controls
Record a Test
Steps... Navigate to webpage Start Recording Execute Test Procedure Stop Recording Edit (if needed)
XPath Selenium IDE will give you options for the 'target' value.
XPath Using the Firebug Inspect function will give you additional options for the 'target' value.
Manual XPath Any element that has an attribute (The first matching element will be selected): // input [@ value =' submit '] <input type= &quot;image&quot;  src= &quot;/library/skin/rsmart/images/loginButton.gif&quot;  value= &quot;submit&quot; /> An  input  with a value of  submit . Any element that 'contains' an attribute with specific text: // a [ contains (@ href ,' resources.doc& ')] <a title= &quot;Attach a copy&quot;  href= &quot;localhost:8080/resources.doc&sakai_action=doAttachitem&quot; >Attach a copy</a> An  a  element that contains an href attribute with the text  resources.doc&  anywhere in it. In this case the  title  attribute could not be used because there was more than one element on the page with the title value of  Attach a copy .
Test Suite
Test Suite Selenium IDE allows for creation of Test Suites right in the IDE.
Test Suite Example
Selenium RC and TestNG
Sakai Test Suite Selenium Remote Control Selenium Remote Control (RC) is a test tool that allows you to write automated web application UI tests in any programming language against any HTTP website using any mainstream JavaScript-enabled browser. Selenium RC comes in two parts. A server which automatically launches and kills browsers, and acts as a HTTP proxy for web requests from them. Client libraries for your favorite computer language.   TestNG TestNG is a testing framework inspired from JUnit and NUnit but introducing some new functionality that make it more powerful and easier to use, such as: JDK 5 Annotations (JDK 1.4 is also supported with JavaDoc annotations). Flexible test configuration. Support for data-driven testing (with @DataProvider). Support for parameters. Allows distribution of tests on slave machines. Powerful execution model (no more TestSuite). Supported by a variety of tools and plug-ins (Eclipse, IDEA, Maven, etc...). Embeds BeanShell for further flexibility. Default JDK functions for runtime and logging (no dependencies). Dependent methods for application server testing. TestNG is designed to cover all categories of tests: unit, functional, end-to-end, integration, etc..
Sakai Test Suite Kick off test_suite from the command line with two commands: ant launch-remote-control ant -Dsuite=sakai-suite-setup-27.xml
Links Selenium and Xpath http://confluence.sakaiproject.org/display/QA/Selenium Selenium and TestNG http://confluence.sakaiproject.org/display/QA/Selenium+Remote+Control+and+TestNG Sakai Test Suite https://source.sakaiproject.org/contrib/qa/trunk/functional

More Related Content

What's hot (20)

PPT
Selenium ppt
Pavan Kumar
 
ODP
Automated UI testing. Selenium. DrupalCamp Kyiv 2011
Yuriy Gerasimov
 
PDF
Introduction to Automation Testing and Selenium overiew
Disha Srivastava
 
PPT
Selenium
Kalyan ch
 
PDF
Selenium Interview Questions and Answers For Freshers And Experienced | Edureka
Edureka!
 
PPT
Selenium Primer
gueste1e4db
 
PPTX
Selenium ppt
Aneesh Rangarajan
 
PPTX
Automation - web testing with selenium
Tzirla Rozental
 
PPT
Selenium
Ruturaj Doshi
 
PPTX
Introduction to Selenium Web Driver
Return on Intelligence
 
PPTX
Selenium
Batch2016
 
PPT
Selenium Ide Tutorials
gueste1e4db
 
PDF
Selenium IDE and Beyond
Samit Badle
 
PPT
QSpiders - Automation using Selenium
Qspiders - Software Testing Training Institute
 
PPT
Automated Web Testing Using Selenium
Weifeng Zhang
 
PDF
Selenium Ide Tutorial
metapix
 
PDF
Cucumber questions
Shivaraj R
 
PPTX
Selenium- A Software Testing Tool
Zeba Tahseen
 
PPS
Selenium Demo
ankitslide
 
PDF
Selenium Commands (Short Interview Preparation)
Yogesh Thalkari
 
Selenium ppt
Pavan Kumar
 
Automated UI testing. Selenium. DrupalCamp Kyiv 2011
Yuriy Gerasimov
 
Introduction to Automation Testing and Selenium overiew
Disha Srivastava
 
Selenium
Kalyan ch
 
Selenium Interview Questions and Answers For Freshers And Experienced | Edureka
Edureka!
 
Selenium Primer
gueste1e4db
 
Selenium ppt
Aneesh Rangarajan
 
Automation - web testing with selenium
Tzirla Rozental
 
Selenium
Ruturaj Doshi
 
Introduction to Selenium Web Driver
Return on Intelligence
 
Selenium
Batch2016
 
Selenium Ide Tutorials
gueste1e4db
 
Selenium IDE and Beyond
Samit Badle
 
QSpiders - Automation using Selenium
Qspiders - Software Testing Training Institute
 
Automated Web Testing Using Selenium
Weifeng Zhang
 
Selenium Ide Tutorial
metapix
 
Cucumber questions
Shivaraj R
 
Selenium- A Software Testing Tool
Zeba Tahseen
 
Selenium Demo
ankitslide
 
Selenium Commands (Short Interview Preparation)
Yogesh Thalkari
 

Viewers also liked (12)

PPT
Steps to write Selenium
Rohit Thakur
 
DOCX
Selenium WebDriver FAQ's
Praveen Gorantla
 
PPT
Selenium
shrialinda
 
PPTX
Selenium Training
Colombo Selenium Meetup
 
PDF
Better Page Object Handling with Loadable Component Pattern - SQA Days 20, Be...
Sargis Sargsyan
 
PPTX
Selenium IDE and Extensions
Yana Altunyan
 
PDF
Automated User Tests with Apache Flex
Gert Poppe
 
PDF
Efficient Automated Test Creation With Selenium IDE Plugins
Samit Badle
 
PPT
Selenium
BugRaptors
 
PDF
Jmeter Performance Testing
Atul Pant
 
PPT
BDD with JBehave and Selenium
Nikolay Vasilev
 
PPT
Java Basics for selenium
apoorvams
 
Steps to write Selenium
Rohit Thakur
 
Selenium WebDriver FAQ's
Praveen Gorantla
 
Selenium
shrialinda
 
Selenium Training
Colombo Selenium Meetup
 
Better Page Object Handling with Loadable Component Pattern - SQA Days 20, Be...
Sargis Sargsyan
 
Selenium IDE and Extensions
Yana Altunyan
 
Automated User Tests with Apache Flex
Gert Poppe
 
Efficient Automated Test Creation With Selenium IDE Plugins
Samit Badle
 
Selenium
BugRaptors
 
Jmeter Performance Testing
Atul Pant
 
BDD with JBehave and Selenium
Nikolay Vasilev
 
Java Basics for selenium
apoorvams
 
Ad

Similar to Sakai10 Selenium Workshop (20)

PPTX
Selenium Testing
Shreshtt Bhatt
 
PDF
First steps with selenium rc
Dang Nguyen
 
PPT
Selenium (1)
onlinemindq
 
PDF
Automation Testing using Selenium
Naresh Chintalcheru
 
DOC
Selenium
David Rajah Selvaraj
 
PPT
Selenium Introduction
Mayur Khairnar
 
PPTX
Automated Web Testing With Selenium
Jodie Miners
 
PPT
Selenium Concepts
Swati Bansal
 
PDF
Selenium
eduquer
 
PDF
Automation Testing using Selenium Webdriver
Pankaj Biswas
 
PPTX
Automation Testing
AbdulImrankhan7
 
PPTX
test-automation-selenium-160216124839.pptx
SyedZaeem9
 
PPTX
Selenium
mdfkhan625
 
PPT
Selenium
conect2krish
 
PPTX
Selenium
Batch2016
 
PPTX
Selenium
Batch2016
 
PPT
Selenium (1) (1)
Vishwan Aranha
 
PPTX
Selenium
Rakshitha Raviprakash
 
PPTX
Selenium
Ivan Aranha
 
PDF
Selenium
g2ix
 
Selenium Testing
Shreshtt Bhatt
 
First steps with selenium rc
Dang Nguyen
 
Selenium (1)
onlinemindq
 
Automation Testing using Selenium
Naresh Chintalcheru
 
Selenium Introduction
Mayur Khairnar
 
Automated Web Testing With Selenium
Jodie Miners
 
Selenium Concepts
Swati Bansal
 
Selenium
eduquer
 
Automation Testing using Selenium Webdriver
Pankaj Biswas
 
Automation Testing
AbdulImrankhan7
 
test-automation-selenium-160216124839.pptx
SyedZaeem9
 
Selenium
mdfkhan625
 
Selenium
conect2krish
 
Selenium
Batch2016
 
Selenium
Batch2016
 
Selenium (1) (1)
Vishwan Aranha
 
Selenium
Ivan Aranha
 
Selenium
g2ix
 
Ad

Recently uploaded (20)

PDF
HR agent at Mediq: Lessons learned on Agent Builder & Maestro by Tacstone Tec...
UiPathCommunity
 
PDF
Market Wrap for 18th July 2025 by CIFDAQ
CIFDAQ
 
PDF
Upskill to Agentic Automation 2025 - Kickoff Meeting
DianaGray10
 
PPTX
Extensions Framework (XaaS) - Enabling Orchestrate Anything
ShapeBlue
 
PDF
NewMind AI Weekly Chronicles – July’25, Week III
NewMind AI
 
PDF
CIFDAQ'S Token Spotlight for 16th July 2025 - ALGORAND
CIFDAQ
 
PDF
CloudStack GPU Integration - Rohit Yadav
ShapeBlue
 
PDF
Rethinking Security Operations - Modern SOC.pdf
Haris Chughtai
 
PDF
Meetup Kickoff & Welcome - Rohit Yadav, CSIUG Chairman
ShapeBlue
 
PPTX
Building and Operating a Private Cloud with CloudStack and LINBIT CloudStack ...
ShapeBlue
 
PDF
Integrating IIoT with SCADA in Oil & Gas A Technical Perspective.pdf
Rejig Digital
 
PPTX
Lecture 5 - Agentic AI and model context protocol.pptx
Dr. LAM Yat-fai (林日辉)
 
PDF
How Current Advanced Cyber Threats Transform Business Operation
Eryk Budi Pratama
 
PPTX
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
PPTX
python advanced data structure dictionary with examples python advanced data ...
sprasanna11
 
PDF
RAT Builders - How to Catch Them All [DeepSec 2024]
malmoeb
 
PPTX
AVL ( audio, visuals or led ), technology.
Rajeshwri Panchal
 
PPTX
The Yotta x CloudStack Advantage: Scalable, India-First Cloud
ShapeBlue
 
PDF
OpenInfra ID 2025 - Are Containers Dying? Rethinking Isolation with MicroVMs.pdf
Muhammad Yuga Nugraha
 
PDF
Market Insight : ETH Dominance Returns
CIFDAQ
 
HR agent at Mediq: Lessons learned on Agent Builder & Maestro by Tacstone Tec...
UiPathCommunity
 
Market Wrap for 18th July 2025 by CIFDAQ
CIFDAQ
 
Upskill to Agentic Automation 2025 - Kickoff Meeting
DianaGray10
 
Extensions Framework (XaaS) - Enabling Orchestrate Anything
ShapeBlue
 
NewMind AI Weekly Chronicles – July’25, Week III
NewMind AI
 
CIFDAQ'S Token Spotlight for 16th July 2025 - ALGORAND
CIFDAQ
 
CloudStack GPU Integration - Rohit Yadav
ShapeBlue
 
Rethinking Security Operations - Modern SOC.pdf
Haris Chughtai
 
Meetup Kickoff & Welcome - Rohit Yadav, CSIUG Chairman
ShapeBlue
 
Building and Operating a Private Cloud with CloudStack and LINBIT CloudStack ...
ShapeBlue
 
Integrating IIoT with SCADA in Oil & Gas A Technical Perspective.pdf
Rejig Digital
 
Lecture 5 - Agentic AI and model context protocol.pptx
Dr. LAM Yat-fai (林日辉)
 
How Current Advanced Cyber Threats Transform Business Operation
Eryk Budi Pratama
 
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
python advanced data structure dictionary with examples python advanced data ...
sprasanna11
 
RAT Builders - How to Catch Them All [DeepSec 2024]
malmoeb
 
AVL ( audio, visuals or led ), technology.
Rajeshwri Panchal
 
The Yotta x CloudStack Advantage: Scalable, India-First Cloud
ShapeBlue
 
OpenInfra ID 2025 - Are Containers Dying? Rethinking Isolation with MicroVMs.pdf
Muhammad Yuga Nugraha
 
Market Insight : ETH Dominance Returns
CIFDAQ
 

Sakai10 Selenium Workshop

  • 1. Selenium Workshop Corey McGarrahan QA Lead rSmart
  • 2. Questions, Slides and Links Please feel free to ask questions at any time Slides will be available at: http://www.slideshare.net http://confluence.sakaiproject.org/display/QA/Selenium http://confluence.sakaiproject.org/display/QA/Selenium+Remote+Control+and+TestNG 11th Sakai Conference - June 15-17, 2010
  • 3. Tools needed Add-ons Using Seleium IDE Recording Playback Test Suites Selenium/TestNG Project Setup Use What We’ll Cover 11th Sakai Conference - June 15-17, 2010
  • 4. A cautionary tail… 11th Sakai Conference - June 15-17, 2010
  • 10. Steps... Navigate to webpage Start Recording Execute Test Procedure Stop Recording Edit (if needed)
  • 11. XPath Selenium IDE will give you options for the 'target' value.
  • 12. XPath Using the Firebug Inspect function will give you additional options for the 'target' value.
  • 13. Manual XPath Any element that has an attribute (The first matching element will be selected): // input [@ value =' submit '] <input type= &quot;image&quot; src= &quot;/library/skin/rsmart/images/loginButton.gif&quot; value= &quot;submit&quot; /> An  input  with a value of  submit . Any element that 'contains' an attribute with specific text: // a [ contains (@ href ,' resources.doc& ')] <a title= &quot;Attach a copy&quot; href= &quot;localhost:8080/resources.doc&sakai_action=doAttachitem&quot; >Attach a copy</a> An  a  element that contains an href attribute with the text  resources.doc&  anywhere in it. In this case the  title  attribute could not be used because there was more than one element on the page with the title value of  Attach a copy .
  • 15. Test Suite Selenium IDE allows for creation of Test Suites right in the IDE.
  • 17. Selenium RC and TestNG
  • 18. Sakai Test Suite Selenium Remote Control Selenium Remote Control (RC) is a test tool that allows you to write automated web application UI tests in any programming language against any HTTP website using any mainstream JavaScript-enabled browser. Selenium RC comes in two parts. A server which automatically launches and kills browsers, and acts as a HTTP proxy for web requests from them. Client libraries for your favorite computer language.   TestNG TestNG is a testing framework inspired from JUnit and NUnit but introducing some new functionality that make it more powerful and easier to use, such as: JDK 5 Annotations (JDK 1.4 is also supported with JavaDoc annotations). Flexible test configuration. Support for data-driven testing (with @DataProvider). Support for parameters. Allows distribution of tests on slave machines. Powerful execution model (no more TestSuite). Supported by a variety of tools and plug-ins (Eclipse, IDEA, Maven, etc...). Embeds BeanShell for further flexibility. Default JDK functions for runtime and logging (no dependencies). Dependent methods for application server testing. TestNG is designed to cover all categories of tests: unit, functional, end-to-end, integration, etc..
  • 19. Sakai Test Suite Kick off test_suite from the command line with two commands: ant launch-remote-control ant -Dsuite=sakai-suite-setup-27.xml
  • 20. Links Selenium and Xpath http://confluence.sakaiproject.org/display/QA/Selenium Selenium and TestNG http://confluence.sakaiproject.org/display/QA/Selenium+Remote+Control+and+TestNG Sakai Test Suite https://source.sakaiproject.org/contrib/qa/trunk/functional