SlideShare a Scribd company logo
Consulting
Services
Application
Development
Technology
Integration
Demo with Selenium WebDriver &
Jenkins as Integration Server
Brindusa Gamaniata
Paul Brodner
Selenium WebDriver
◦ Introduction
◦ Installation details
◦ IDE & test environment configuration
◦ Demo
Jenkins
◦ Introduction
◦ Configuration Setup
◦ Selenium WebDriver test integration with Jenkins
◦ Second approach (Selenium WebDriver, Jenkins &
Ruby)
2
No, I’m not referring to the chemical element:
Is an open source framework
Provides a set of different tools for test
automation
◦ Selenium IDE
◦ Selenium Grid
◦ Selenium 1 (Selenium RC or Selenium Remote Control)
◦ Selenium 2 (Selenium WebDriver)
3
2. Install Java1. Download Selenium
Selenium Client Drivers
◦ http://seleniumhq.org/downl
oad or
◦ https://code.google.com/p/s
elenium/
Download Java libraries
(.jar files)
Download Java JDK from
the following location:
◦ http://www.oracle.com/tech
network/java/javase/downlo
ads/index.html
2. Add Home to Path1. Download Ant
Download Apache Ant
◦ http://mirrors.hostingromani
a.ro/apache.org//ant/binarie
s/apache-ant-1.9.1-bin.zip
◦ Ant is the abbreviation for
Another Neat Tool ☺☺☺☺
Add environment variables
◦ set ANT_HOME=C:apache-ant-1.9.1
◦ set JAVA_HOME=C:jdk1.6.0_24
◦ set PATH=%ANT_HOME%bin;
%JAVA_HOME%bin
2. New Project1. Download Eclipse
Download Eclipse IDE for
Java Developers
◦ http://www.eclipse.org/dow
nloads/index-helios.php
Create a new project
◦ File>New>Project
1. Locate the element on the page using Firebug or
Developers Tools
7
2. Choose how you will identify the element
• By id
selenium.findElement(By.id (“search”));
• By xpath
• Locate the element using his attributes
selenium.findElement(By.xpath (“//input[@id=‘search’]”));
• Locate the element using the previous element. This is useful when we have multiple
elements with the same attributes
selenium.findElement(By.xpath (“//fieldset/span/input[@id=‘search’]”));
3. Interact with the element
By searchLocator = By.xpath( “//fieldset//input[@id=‘search’]”);
WebElement searchInput = selenium.findElement(searchLocator);
String searchedText = “testing”;
searchInput.sendKeys(searchedText);
8
We can use assert methods:
◦ assertEquals(expected, actual);
◦ assertTrue(actual);
◦ assertFalse(actual);
◦ assertNull(actual);
◦ assertNotNull(actual);
Related to our previous example
String actualText = searchInput.getText()
assertEquals(“testing”, actualText);
9
10
DEMODEMODEMODEMO
((((WebDriverWebDriverWebDriverWebDriver ---- Java approach)Java approach)Java approach)Java approach)
Pickels ?
◦ Based on Cucumber http://cukes.info/ (Making BDD fun)
◦ Watir (Web Application Testing in Ruby) http://watir.com/
◦ and other useful libraries all in one package
11
How to use it ?
◦ You must know Ruby language
◦ You can have access to Watir Api documentation
http://wtr.rubyforge.org/rdoc/1.6.5/
◦ Learn using the example provided by pickels
◦ You will create tests using Model based approach
12
Demo
13
Continuous Integration Server
Automate a specific task
Self test a specific build after commit
Maintain a build history of test results
Easy to configure and extend (using plugins)
Supports Revision Controls tools (Subversion, Git,
Perforce)
Much more https://wiki.jenkins-
ci.org/display/JENKINS/Meet+Jenkins
14
2. Open the Interface1. Download Jenkins
Download Jenkins native
packages
◦ Windows, Linux, Mac
(http://jenkins-ci.org/)
Open in browser
◦ localhost:8080
4. Create Job3. Install Plugins
Install you plugins
◦ http://localhost:8080/plugin
Manager/?
◦ Manage Jenkins -> Plugin
Manager
Plugins examples:
◦ Ant
◦ Subversion
◦ Cucumber Reports
◦ AnsiColor
New Job – Test ISTC Demo
17
DEMODEMODEMODEMO
(Jenkins)(Jenkins)(Jenkins)(Jenkins)
http://docs.seleniumhq.org/docs/03_webdriver.jsp
http://code.google.com/p/selenium/wiki/GettingSt
arted
http://ant.apache.org/manual/using.html
https://wiki.jenkins-
ci.org/display/JENKINS/Meet+Jenkins
http://jenkins-ci.org/
http://wtr.rubyforge.org/rdoc/1.6.5/
18
19
Thanks for watching!Thanks for watching!Thanks for watching!Thanks for watching!

More Related Content

What's hot (20)

PPTX
Extreme Testing with Selenium - @hugs at Jenkins User Conference 2011
hugs
 
PPTX
Automated testing with Drupal
Promet Source
 
PPT
Continuous Integration (Jenkins/Hudson)
Dennys Hsieh
 
PDF
Make Your Selenium Suite Faster and Reliable: Test Setup with REST APIs - SQA...
Sargis Sargsyan
 
PPTX
Smarter ways to do selenium automation @ work, Selenium, automation
RIA RUI Society
 
PPTX
Intro to JavaScript Tooling in Visual Studio Code
ColdFusionConference
 
PPTX
Jenkins Pipeline 101 and TCI - presentation and workshop
Yoram Michaeli
 
PDF
Automated android testing using jenkins ci
sveinungkb
 
KEY
Continuous Delivery Using Jenkins
Cliffano Subagio
 
ODP
Mastering selenium for automated acceptance tests
Nick Belhomme
 
PPTX
Jenkins tutorial
Mamun Rashid, CCDH
 
PPTX
Docker and Selenoid - Make Autotests Great Again
COMAQA.BY
 
PDF
Android + jenkins
Fred Lin
 
PPTX
Run Selenium Tests With Jenkins and BrowseEmAll
Daniel Herken
 
ODP
Automated UI testing with Selenium
Yuriy Gerasimov
 
PDF
Jenkins
Roger Xia
 
KEY
JavaScript Testing VIA Selenium
Adam Christian
 
PDF
JavaScript + Jenkins = Winning!
Eric Wendelin
 
PDF
Selenoid: browsers in containers
Ivan Krutov
 
PPTX
Controlling the browser through python and selenium
Patrick Viafore
 
Extreme Testing with Selenium - @hugs at Jenkins User Conference 2011
hugs
 
Automated testing with Drupal
Promet Source
 
Continuous Integration (Jenkins/Hudson)
Dennys Hsieh
 
Make Your Selenium Suite Faster and Reliable: Test Setup with REST APIs - SQA...
Sargis Sargsyan
 
Smarter ways to do selenium automation @ work, Selenium, automation
RIA RUI Society
 
Intro to JavaScript Tooling in Visual Studio Code
ColdFusionConference
 
Jenkins Pipeline 101 and TCI - presentation and workshop
Yoram Michaeli
 
Automated android testing using jenkins ci
sveinungkb
 
Continuous Delivery Using Jenkins
Cliffano Subagio
 
Mastering selenium for automated acceptance tests
Nick Belhomme
 
Jenkins tutorial
Mamun Rashid, CCDH
 
Docker and Selenoid - Make Autotests Great Again
COMAQA.BY
 
Android + jenkins
Fred Lin
 
Run Selenium Tests With Jenkins and BrowseEmAll
Daniel Herken
 
Automated UI testing with Selenium
Yuriy Gerasimov
 
Jenkins
Roger Xia
 
JavaScript Testing VIA Selenium
Adam Christian
 
JavaScript + Jenkins = Winning!
Eric Wendelin
 
Selenoid: browsers in containers
Ivan Krutov
 
Controlling the browser through python and selenium
Patrick Viafore
 

Similar to Automation Testing (20)

PDF
Lesson_06_Software_and_Automation_Testing_Frameworks.pdf
Minh Quân Đoàn
 
DOC
Sel
Sandeep A R
 
PPTX
Selenium Training in Chennai
Thecreating Experts
 
PPT
Selenium2 and Jenkins: Almost pain-free UI Testing
mikereedell
 
PDF
454976614-Jenkins-Cheat-Sheet-pdf.pdf hoja de ayuda
CarlosDanielValenteA
 
PPTX
Test Automation using Ruby
Sla Va
 
DOC
Selenium Automation Using Ruby
Kumari Warsha Goel
 
PPTX
Learn SELENIUM at ASIT
ASIT
 
PDF
selenium_course_content.pdf
aswinisowmiya
 
PPTX
Selenium Testing
Shreshtt Bhatt
 
PDF
Introduction to Selenium and Ruby
Ynon Perek
 
PPT
Selenium
conect2krish
 
PPTX
Selenium- A Software Testing Tool
Zeba Tahseen
 
PDF
Web UI test automation instruments
Artem Nagornyi
 
PPTX
Jenkins.pptx
rfojdar
 
PPT
BCS Selenium Workshop
Colin McDonald
 
PPSX
Selenium RC
ANKUR-BA
 
PPTX
Step by step instructions to execute selenium automation testing
Alisha Henderson
 
PDF
How Enterprises Conduct Automated Continuous Testing at Scale with Jenkins.pdf
kalichargn70th171
 
Lesson_06_Software_and_Automation_Testing_Frameworks.pdf
Minh Quân Đoàn
 
Selenium Training in Chennai
Thecreating Experts
 
Selenium2 and Jenkins: Almost pain-free UI Testing
mikereedell
 
454976614-Jenkins-Cheat-Sheet-pdf.pdf hoja de ayuda
CarlosDanielValenteA
 
Test Automation using Ruby
Sla Va
 
Selenium Automation Using Ruby
Kumari Warsha Goel
 
Learn SELENIUM at ASIT
ASIT
 
selenium_course_content.pdf
aswinisowmiya
 
Selenium Testing
Shreshtt Bhatt
 
Introduction to Selenium and Ruby
Ynon Perek
 
Selenium
conect2krish
 
Selenium- A Software Testing Tool
Zeba Tahseen
 
Web UI test automation instruments
Artem Nagornyi
 
Jenkins.pptx
rfojdar
 
BCS Selenium Workshop
Colin McDonald
 
Selenium RC
ANKUR-BA
 
Step by step instructions to execute selenium automation testing
Alisha Henderson
 
How Enterprises Conduct Automated Continuous Testing at Scale with Jenkins.pdf
kalichargn70th171
 
Ad

Recently uploaded (20)

PPTX
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PPTX
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PDF
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PDF
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
Ad

Automation Testing

  • 1. Consulting Services Application Development Technology Integration Demo with Selenium WebDriver & Jenkins as Integration Server Brindusa Gamaniata Paul Brodner
  • 2. Selenium WebDriver ◦ Introduction ◦ Installation details ◦ IDE & test environment configuration ◦ Demo Jenkins ◦ Introduction ◦ Configuration Setup ◦ Selenium WebDriver test integration with Jenkins ◦ Second approach (Selenium WebDriver, Jenkins & Ruby) 2
  • 3. No, I’m not referring to the chemical element: Is an open source framework Provides a set of different tools for test automation ◦ Selenium IDE ◦ Selenium Grid ◦ Selenium 1 (Selenium RC or Selenium Remote Control) ◦ Selenium 2 (Selenium WebDriver) 3
  • 4. 2. Install Java1. Download Selenium Selenium Client Drivers ◦ http://seleniumhq.org/downl oad or ◦ https://code.google.com/p/s elenium/ Download Java libraries (.jar files) Download Java JDK from the following location: ◦ http://www.oracle.com/tech network/java/javase/downlo ads/index.html
  • 5. 2. Add Home to Path1. Download Ant Download Apache Ant ◦ http://mirrors.hostingromani a.ro/apache.org//ant/binarie s/apache-ant-1.9.1-bin.zip ◦ Ant is the abbreviation for Another Neat Tool ☺☺☺☺ Add environment variables ◦ set ANT_HOME=C:apache-ant-1.9.1 ◦ set JAVA_HOME=C:jdk1.6.0_24 ◦ set PATH=%ANT_HOME%bin; %JAVA_HOME%bin
  • 6. 2. New Project1. Download Eclipse Download Eclipse IDE for Java Developers ◦ http://www.eclipse.org/dow nloads/index-helios.php Create a new project ◦ File>New>Project
  • 7. 1. Locate the element on the page using Firebug or Developers Tools 7
  • 8. 2. Choose how you will identify the element • By id selenium.findElement(By.id (“search”)); • By xpath • Locate the element using his attributes selenium.findElement(By.xpath (“//input[@id=‘search’]”)); • Locate the element using the previous element. This is useful when we have multiple elements with the same attributes selenium.findElement(By.xpath (“//fieldset/span/input[@id=‘search’]”)); 3. Interact with the element By searchLocator = By.xpath( “//fieldset//input[@id=‘search’]”); WebElement searchInput = selenium.findElement(searchLocator); String searchedText = “testing”; searchInput.sendKeys(searchedText); 8
  • 9. We can use assert methods: ◦ assertEquals(expected, actual); ◦ assertTrue(actual); ◦ assertFalse(actual); ◦ assertNull(actual); ◦ assertNotNull(actual); Related to our previous example String actualText = searchInput.getText() assertEquals(“testing”, actualText); 9
  • 10. 10 DEMODEMODEMODEMO ((((WebDriverWebDriverWebDriverWebDriver ---- Java approach)Java approach)Java approach)Java approach)
  • 11. Pickels ? ◦ Based on Cucumber http://cukes.info/ (Making BDD fun) ◦ Watir (Web Application Testing in Ruby) http://watir.com/ ◦ and other useful libraries all in one package 11
  • 12. How to use it ? ◦ You must know Ruby language ◦ You can have access to Watir Api documentation http://wtr.rubyforge.org/rdoc/1.6.5/ ◦ Learn using the example provided by pickels ◦ You will create tests using Model based approach 12
  • 14. Continuous Integration Server Automate a specific task Self test a specific build after commit Maintain a build history of test results Easy to configure and extend (using plugins) Supports Revision Controls tools (Subversion, Git, Perforce) Much more https://wiki.jenkins- ci.org/display/JENKINS/Meet+Jenkins 14
  • 15. 2. Open the Interface1. Download Jenkins Download Jenkins native packages ◦ Windows, Linux, Mac (http://jenkins-ci.org/) Open in browser ◦ localhost:8080
  • 16. 4. Create Job3. Install Plugins Install you plugins ◦ http://localhost:8080/plugin Manager/? ◦ Manage Jenkins -> Plugin Manager Plugins examples: ◦ Ant ◦ Subversion ◦ Cucumber Reports ◦ AnsiColor New Job – Test ISTC Demo
  • 19. 19 Thanks for watching!Thanks for watching!Thanks for watching!Thanks for watching!