• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Selenium Best Practices with Jason Huggins
 

Selenium Best Practices with Jason Huggins

on

  • 13,303 views

Selenium creator and Sauce Labs co-founder Jason Huggins recently gave a great presentation on 'Selenium Best Practices' to the San Francisco Selenium Meetup Group. Visit http://saucelabs.com.blog to ...

Selenium creator and Sauce Labs co-founder Jason Huggins recently gave a great presentation on 'Selenium Best Practices' to the San Francisco Selenium Meetup Group. Visit http://saucelabs.com.blog to see the presentation in its entirety.

Statistics

Views

Total Views
13,303
Views on SlideShare
13,049
Embed Views
254

Actions

Likes
7
Downloads
0
Comments
0

14 Embeds 254

http://sqlandsiva.blogspot.com 135
http://sqlandsiva.blogspot.in 82
http://sqlandsiva.blogspot.co.uk 12
http://sqlandsiva.blogspot.ca 7
http://sqlandsiva.blogspot.com.br 4
http://pvwiki.pv.com 3
http://sqlandsiva.blogspot.de 2
http://sqlandsiva.blogspot.ie 2
http://sqlandsiva.blogspot.co.nz 2
http://sqlandsiva.blogspot.sk 1
http://sqlandsiva.blogspot.com.es 1
http://sqlandsiva.blogspot.no 1
http://sqlandsiva.blogspot.tw 1
http://orhowilearnedtolovetheperl.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Selenium Best Practices with Jason Huggins Selenium Best Practices with Jason Huggins Presentation Transcript

    • How to Avoid Selenium Poisoning
    • Intent Action
    • Action • open 'www.example.com' • clickAndWait 'link=Log in' • type 'User Id', 'hugs@saucelabs.com' • type 'password', '12345678' • clickAndWait 'Log In'
    • Intent • Log in • Change password • Modify profile • Log out
    • 1. Write intent. 2. Map to actions.
    • Seek higher level abstractions
    • Hudson Ant JUnit / TestNG Selenium
    • Hudson Ant JUnit / TestNG Business Specific Library of Functions Selenium
    • Start small
    • It’ll get big anyway
    • What to start with? • Smoke tests • “Money path” • New features
    • Benefits of Short Tests • Easier to read • Easier to write • Easier to debug/maintain • Easier to parallelize
    • "How to set up test infrastructure?"
    • Unit of Work
    • Servers Time Unit of Work
    • Servers Time Unit of Work
    • !"#$ %&&'())***+,-#./"+.01)'%0&02)$345)678
    • "Post WebDriver/Selenium 2.0, where do you see the future of automated web testing?"
    • ! !
    • ! !
    • ! !
    • ! !
    • ! !
    • ! !
    • ! !
    • !"#$%&'()*+$,-.*/$0+$1'#/2$34567$"8-.7$9-:! ! !
    • !"#$%&'()*+$%!,+(-,#.) ! !
    • 4%5,3% !!!"#"$%&"'%()"*+),-.)/,0"1,%("2%3% ! !
    • 7#*4$ !!!"#$%&"'()*$%"+&,%$*"-()*$% !!!"'"."-()*$%/0 !!!"'1)*($*/0 !!!"2"345"64)*"78*%&(*+%9":%4)";4$4 !!!"'1)*%,/0 ! !
    • D(*4$"6=(*"E(F !!!"#$%&"'()*$%"+&,%$*"-()*$% !!!"'"."-()*$%/0 !!!"'1)*($*/0 !!!"2"345"64)*"78*%&(*+%9":%4)";4$4 !!!"'1)*%,/0 !!!"'1,85<+)=6%>%86854/0 !!!"'1?%/@AAAB0 !!!"'1'%<<4'*/@CCCB0 ! !
    • !"#$%&'()*+$,-.*/$0+$1'#/2$34567$"8-.7$9-:! ! !
    • Selenium 2?
    • 33
    • Selenium Remote Control Selenium RC Server Python, Ruby, Your Awesome Java, C#, or Perl HTTP HTTP HTTP Web App Test Script 35
    • Selenium 2 Selenium RC Server Python, Ruby, Your Awesome Java, C#, or Perl HTTP HTTP HTTP Web App Test Script 36
    • Python, Ruby, Your Awesome Java, C#, or Perl HTTP HTTP Web App Test Script 37
    • Python, Ruby, Your Awesome Java, C#, or Perl C/C++ HTTP Web App Test Script 38
    • 39
    • But... Java... Is... Still... In... There... Selenium Grid Python, Ruby, Your Awesome Java, C#, or Perl HTTP HTTP HTTP Web App Test Script
    • But... Java... Is... Still... In... There... Selenium Remote Server Python, Ruby, Ye Ol' Internet Java, C#, or Perl HTTP (Sauce Labs) HTTP HTTP Test Script ... but now only when you need it.
    • Better Control • Native Keyboard & Mouse Events • Same Origin Policy / XSS / HTTP(S) • Pop-ups, dialogs – Basic Authentication – Self-signed certificates – File upload/download 42
    • Cleaner API • WebDriver Object • WebElement Objects