Intro To Test Automation Using Selenium           January 19th, 2012                An Doan
   Flavors of Selenium     Selenium 1/RC     Selenium 2/WebDriver     Selenium IDE   Why WebDriver?   How WebDriver ...
   Selenium 1/RC     Simulated user interactions via the Javascript engine      of the browser   Selenium IDE     Fire...
 WebDriver works by using:    Firefox Extension    IE Automation Control    Chrome, Opera, Vendor   Supported Implemen...
   Selenium 1/RC     Officially Deprecated   Selenium IDE     Quick and simple     Only runs in Firefox   Selenium 2...
http://seleniumhq.org/projects/ide/                     Intro To Automation Using Selenium   1/19/2012
1.   Load the WebDriver2.   Find the Element3.   Do something with the Element4.   Repeat 2 and 3.                       I...
   C#   Python   Ruby   php   Perl             Intro To Automation Using Selenium   1/19/2012
   JUnit vs. TestNG    ◦ Both are test execution and logging frameworks    ◦ TestNG offers out of the box rerunning faile...
   AndroidDriver    ◦ Run Web tests on emulator and real device   iPhoneDriver    ◦ Run Web tests on emulator and real d...
So now what? Grid 2/Selenium Server     http://code.google.com/p/selenium/wiki/Grid2     Allows distributed testing on ...
   http://seleniumhq.org   http://seleniumhq.wordpress.com/page/4/   http://www.seleniumtests.com/   Monkey Image, Sli...
Upcoming SlideShare
Loading in …5
×

Pdx Se Intro To Se

747 views

Published on

http://www.meetup.com/pdx-se/events/44924792/

  • Be the first to comment

Pdx Se Intro To Se

  1. 1. Intro To Test Automation Using Selenium January 19th, 2012 An Doan
  2. 2.  Flavors of Selenium  Selenium 1/RC  Selenium 2/WebDriver  Selenium IDE Why WebDriver? How WebDriver Works Selenium IDE (Demo)  Record a script  Playback  Export to WebDriver How to write a test script in Java (Demo)  Other Languages What’s next? Advanced Usage and Frameworks  JUnit vs. TestNG  Page Objects  Advanced Frameworks What else can Selenium do? Mobile Automation  AndroidDriver (Demo)  iPhoneDriver  NativeDriver I have too many tests! Scalability  Grid 2/Selenium Server  Sauce OnDemand (Demo) Intro To Automation Using Selenium 1/19/2012
  3. 3.  Selenium 1/RC  Simulated user interactions via the Javascript engine of the browser Selenium IDE  Firefox plug-in that allows record and playback Selenium 2/WebDriver  Native user interactions are fired at the OS level Intro To Automation Using Selenium 1/19/2012
  4. 4.  WebDriver works by using:  Firefox Extension  IE Automation Control  Chrome, Opera, Vendor Supported Implementations Selenium RC works by using:  Javascript engine of each browser Intro To Automation Using Selenium 1/19/2012
  5. 5.  Selenium 1/RC  Officially Deprecated Selenium IDE  Quick and simple  Only runs in Firefox Selenium 2/WebDriver  Most Robust  Object Oriented  Supports Android, iPhone, Chrome, Firefox, Internet Explorer, Opera Intro To Automation Using Selenium 1/19/2012
  6. 6. http://seleniumhq.org/projects/ide/ Intro To Automation Using Selenium 1/19/2012
  7. 7. 1. Load the WebDriver2. Find the Element3. Do something with the Element4. Repeat 2 and 3. Intro To Automation Using Selenium 1/19/2012
  8. 8.  C# Python Ruby php Perl Intro To Automation Using Selenium 1/19/2012
  9. 9.  JUnit vs. TestNG ◦ Both are test execution and logging frameworks ◦ TestNG offers out of the box rerunning failed test, parametric testing, and test dependencies Page Objects ◦ Model the Web App’s UI as an Object ◦ Functions on the page are modeled as “Services” Advanced Frameworks ◦ Read parameters from Excel sheet ◦ Continuous Integration ◦ Store results in a database Intro To Automation Using Selenium 1/19/2012
  10. 10.  AndroidDriver ◦ Run Web tests on emulator and real device iPhoneDriver ◦ Run Web tests on emulator and real device NativeDriver ◦ Test Native applications on iPhone and Android Intro To Automation Using Selenium 1/19/2012
  11. 11. So now what? Grid 2/Selenium Server  http://code.google.com/p/selenium/wiki/Grid2  Allows distributed testing on many machines, even virtual machines Sauce OnDemand  http://saucelabs.com/ondemand  Allows distributed testing on the cloud Intro To Automation Using Selenium 1/19/2012
  12. 12.  http://seleniumhq.org http://seleniumhq.wordpress.com/page/4/ http://www.seleniumtests.com/ Monkey Image, Slide 4:http://4.bp.blogspot.com/-Frnyk7bDb-k/Tbl4UEXYQbI/AAAAAAAAB4Q/Ic58qF7WFMY/s400/recall-bbasile.jpg Intro To Automation Using Selenium 1/19/2012

×