SlideShare a Scribd company logo
1 of 6
Selenium WebDriver Training
Using Java
Selenium versions
• IDE ( FireFox plugin)
– record/playback tool
– exportable to Java, Groovy, C#, Perl, Python, PHP, or Ruby
• Remote Control
– uses JavaScript to drive browsers of choice
– Can be used with Sel. Grid 1 for parallel script execution (support up to
FireFox 10)
– Deprecated – i.e., not supported in spite of market-share
• WebDriver
– native browser drivers
– Paired with Grid 2
– Backward-compatible with Selenium R.C.
Test Frameworks (JUnit / Testng)
• JUnit
– As its name implies is well-suited for unit testing
• Testng
– Good for integration and end-to-end testing
– Parameterized tests
– Concurrency (parallel) testing
– Test dependencies
– Test groups
• Both generate reports
• JUnit has market-share, but that is quickly changing
• Will demonstrate Testng in this presentation
Java Installation
• Download JavaSE (this is the core platform)
– Run the installer – accepting defaults
– Ensure classpath for Java_Home is set
• Window Environmental variables (System Variable
section) E.g.
• Variable Name: JAVA_HOME
• Variable value: C:Program FilesJavajdk1.6.0_21
IDE installation
• Which IDE? IntelliJ, NetBeans, Jcreator, eclipse
• I chose eclipse for this presentation
• Download/install:
– Eclipse IDE for Java EE Developers
• Dismiss Welcome page
First steps
• Project
– Select File-New-Java Project
– Name your project e.g., “Test Automation”
• Package(s)
– Testbase: common code for project
– Config: properties used on project
• OR: object recognition identifiers
• CONFIG: defined constants e.g., browserType
– Tests
• Class(es)
– Within each package you can create new java classes or files of varied
type

More Related Content

What's hot

Apereo OAE development and release process
Apereo OAE development and release processApereo OAE development and release process
Apereo OAE development and release processBert Pareyn
 
Chainer Development Plan 2015/12
Chainer Development Plan 2015/12Chainer Development Plan 2015/12
Chainer Development Plan 2015/12Seiya Tokui
 
conjoon - The Open Source Webmail Client
conjoon - The Open Source Webmail Clientconjoon - The Open Source Webmail Client
conjoon - The Open Source Webmail ClientThorsten Suckow-Homberg
 
Continuous integration for open source distros v 3.0
Continuous integration for open source distros v 3.0Continuous integration for open source distros v 3.0
Continuous integration for open source distros v 3.0Sriram Narayanan
 

What's hot (7)

Apereo OAE development and release process
Apereo OAE development and release processApereo OAE development and release process
Apereo OAE development and release process
 
Chainer Development Plan 2015/12
Chainer Development Plan 2015/12Chainer Development Plan 2015/12
Chainer Development Plan 2015/12
 
Maven tutorial
Maven tutorialMaven tutorial
Maven tutorial
 
Apache Maven In 10 Slides
Apache Maven In 10 SlidesApache Maven In 10 Slides
Apache Maven In 10 Slides
 
conjoon - The Open Source Webmail Client
conjoon - The Open Source Webmail Clientconjoon - The Open Source Webmail Client
conjoon - The Open Source Webmail Client
 
Maven and versioning
Maven and versioningMaven and versioning
Maven and versioning
 
Continuous integration for open source distros v 3.0
Continuous integration for open source distros v 3.0Continuous integration for open source distros v 3.0
Continuous integration for open source distros v 3.0
 

Similar to Selenium_WebDriver_Training__@2012_-phil_coulson_

Developing Selenium tests with JUnit 5
Developing Selenium tests with JUnit 5Developing Selenium tests with JUnit 5
Developing Selenium tests with JUnit 5Boni García
 
Selenium Presentation at Engineering Colleges
Selenium Presentation at Engineering CollegesSelenium Presentation at Engineering Colleges
Selenium Presentation at Engineering CollegesVijay Rangaiah
 
Toolbox for Selenium Tests in Java: WebDriverManager and Selenium-Jupiter
Toolbox for Selenium Tests in Java: WebDriverManager and Selenium-JupiterToolbox for Selenium Tests in Java: WebDriverManager and Selenium-Jupiter
Toolbox for Selenium Tests in Java: WebDriverManager and Selenium-JupiterBoni García
 
Test automation using selenium
Test automation using seleniumTest automation using selenium
Test automation using seleniumTờ Rang
 
Automated Web Testing With Selenium
Automated Web Testing With SeleniumAutomated Web Testing With Selenium
Automated Web Testing With SeleniumJodie Miners
 
SynapseIndia drupal presentation on drupal info
SynapseIndia drupal  presentation on drupal infoSynapseIndia drupal  presentation on drupal info
SynapseIndia drupal presentation on drupal infoSynapseindiappsdevelopment
 
Manage Selenium Grid with Terraform by Omkar Khatavkar (https://www.linkedin....
Manage Selenium Grid with Terraform by Omkar Khatavkar (https://www.linkedin....Manage Selenium Grid with Terraform by Omkar Khatavkar (https://www.linkedin....
Manage Selenium Grid with Terraform by Omkar Khatavkar (https://www.linkedin....Software Testing Board
 
Be flexible with zalenium, a dockerized selenium grid infrastructure
Be flexible with zalenium, a dockerized selenium grid infrastructureBe flexible with zalenium, a dockerized selenium grid infrastructure
Be flexible with zalenium, a dockerized selenium grid infrastructureGeorgios Romanas
 
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 Testingmikereedell
 
Automated Testing on Web Applications
Automated Testing on Web ApplicationsAutomated Testing on Web Applications
Automated Testing on Web ApplicationsSamuel Borg
 

Similar to Selenium_WebDriver_Training__@2012_-phil_coulson_ (20)

Selenium (1)
Selenium (1)Selenium (1)
Selenium (1)
 
Developing Selenium tests with JUnit 5
Developing Selenium tests with JUnit 5Developing Selenium tests with JUnit 5
Developing Selenium tests with JUnit 5
 
Selenium Introduction
Selenium IntroductionSelenium Introduction
Selenium Introduction
 
QSpiders - Automation using Selenium
QSpiders - Automation using SeleniumQSpiders - Automation using Selenium
QSpiders - Automation using Selenium
 
Selenium Presentation at Engineering Colleges
Selenium Presentation at Engineering CollegesSelenium Presentation at Engineering Colleges
Selenium Presentation at Engineering Colleges
 
Selenium
SeleniumSelenium
Selenium
 
Introduction to selenium
Introduction to seleniumIntroduction to selenium
Introduction to selenium
 
Toolbox for Selenium Tests in Java: WebDriverManager and Selenium-Jupiter
Toolbox for Selenium Tests in Java: WebDriverManager and Selenium-JupiterToolbox for Selenium Tests in Java: WebDriverManager and Selenium-Jupiter
Toolbox for Selenium Tests in Java: WebDriverManager and Selenium-Jupiter
 
Test automation using selenium
Test automation using seleniumTest automation using selenium
Test automation using selenium
 
Sel
SelSel
Sel
 
Automated Web Testing With Selenium
Automated Web Testing With SeleniumAutomated Web Testing With Selenium
Automated Web Testing With Selenium
 
Selenium
SeleniumSelenium
Selenium
 
Selenium
SeleniumSelenium
Selenium
 
Selenium
SeleniumSelenium
Selenium
 
SynapseIndia drupal presentation on drupal info
SynapseIndia drupal  presentation on drupal infoSynapseIndia drupal  presentation on drupal info
SynapseIndia drupal presentation on drupal info
 
Manage Selenium Grid with Terraform by Omkar Khatavkar (https://www.linkedin....
Manage Selenium Grid with Terraform by Omkar Khatavkar (https://www.linkedin....Manage Selenium Grid with Terraform by Omkar Khatavkar (https://www.linkedin....
Manage Selenium Grid with Terraform by Omkar Khatavkar (https://www.linkedin....
 
Be flexible with zalenium, a dockerized selenium grid infrastructure
Be flexible with zalenium, a dockerized selenium grid infrastructureBe flexible with zalenium, a dockerized selenium grid infrastructure
Be flexible with zalenium, a dockerized selenium grid infrastructure
 
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
 
Test automation proposal
Test automation proposalTest automation proposal
Test automation proposal
 
Automated Testing on Web Applications
Automated Testing on Web ApplicationsAutomated Testing on Web Applications
Automated Testing on Web Applications
 

Selenium_WebDriver_Training__@2012_-phil_coulson_

  • 2. Selenium versions • IDE ( FireFox plugin) – record/playback tool – exportable to Java, Groovy, C#, Perl, Python, PHP, or Ruby • Remote Control – uses JavaScript to drive browsers of choice – Can be used with Sel. Grid 1 for parallel script execution (support up to FireFox 10) – Deprecated – i.e., not supported in spite of market-share • WebDriver – native browser drivers – Paired with Grid 2 – Backward-compatible with Selenium R.C.
  • 3. Test Frameworks (JUnit / Testng) • JUnit – As its name implies is well-suited for unit testing • Testng – Good for integration and end-to-end testing – Parameterized tests – Concurrency (parallel) testing – Test dependencies – Test groups • Both generate reports • JUnit has market-share, but that is quickly changing • Will demonstrate Testng in this presentation
  • 4. Java Installation • Download JavaSE (this is the core platform) – Run the installer – accepting defaults – Ensure classpath for Java_Home is set • Window Environmental variables (System Variable section) E.g. • Variable Name: JAVA_HOME • Variable value: C:Program FilesJavajdk1.6.0_21
  • 5. IDE installation • Which IDE? IntelliJ, NetBeans, Jcreator, eclipse • I chose eclipse for this presentation • Download/install: – Eclipse IDE for Java EE Developers • Dismiss Welcome page
  • 6. First steps • Project – Select File-New-Java Project – Name your project e.g., “Test Automation” • Package(s) – Testbase: common code for project – Config: properties used on project • OR: object recognition identifiers • CONFIG: defined constants e.g., browserType – Tests • Class(es) – Within each package you can create new java classes or files of varied type