Mozilla selenium and_hudson
Upcoming SlideShare
Loading in...5
×
 

Mozilla selenium and_hudson

on

  • 2,717 views

 

Statistics

Views

Total Views
2,717
Views on SlideShare
2,692
Embed Views
25

Actions

Likes
1
Downloads
25
Comments
0

1 Embed 25

http://www.slideshare.net 25

Accessibility

Upload Details

Uploaded via as Microsoft PowerPoint

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
  • - how does this fit with the "where we were" section?  before?  after?-  - aga
  • - is this the "where we were" or "where we are" slide? (I think the former, so make it clearer by adding a slide in front of it)
  • - please fix your spacing issues
  • - please capitalize "Python", as it's a proper noun - get rid of the extra spaces
  • - please capitalize "Python", as it's a proper noun - get rid of the extra spaces
  • - please capitalize "Python", as it's a proper noun - get rid of the extra spaces
  • - please capitalize "Python", as it's a proper noun - get rid of the extra spaces
  • - like to see a little more about where we want to be, but maybe the demo will help with that - the URL colors are hard to read - I'd still like to see another slide about our homepage and contact info (mozwebqa@mozilla.org mailing alias, too)

Mozilla selenium and_hudson Mozilla selenium and_hudson Presentation Transcript

  • Raymond Etornam Mozilla Corporation 05-19-2010 Mozilla, Selenium and Hudson CI: A Big, Open-Source Happy Family
  •  
    • Where we were
    • Where we are
    • Where we want to be
    •   Mozilla.com: http://www.mozilla.com
    • AMO:    http://addons.mozilla. org
    • SUMO: http://support .mozilla.com
    We use Selenium on:
    •   Where we were
    •  
    • Browsers our projects currently support are:
    • Firefox 3.6.x, Firefox 3.5.x, Firefox 3.0.x
    • Internet Explorer 6 to  8
    • Opera  9 and 10.x
    • Chrome 4 & 5 (Beta for Mac)
    • Manually testing web pages across browsers and operating systems is a very hard, time-consuming task
    •     
    • Selenium IDE 
    • Works only on Firefox
    • Works best if you have a small amount of tests
    • Though faster than manual testing, it is not  as fast as using Selenium RC client driver
    • results.html is good, but limited
  •       We needed change
  •       This brings us to where we are
  • Selenium Grid + Hudson
    •  
    •   Our setup
    •  
    • Two Mac Minis running Windows XP, Vista, and Ubuntu VMs
    •   We have  the following remote controls running:
    • Chrome
    • Firefox 3.6
    • Firefox 3.5
    • Safari
    • IE 7 and IE 8
    • Tests are written in Python
    • Hudson polls our SVN repository every 5 minutes
    • Runs tests once there has been a check-in
    • Current setup for addons.mozilla.org(evolving):
    • TCParams.py
    • all sorts of config options for AMOlocators.py
    • AMOlocators.py
    • XPath locators
    • AMOfunctions.py
    • shared functions
    • AMO_smoke_test_suite.py
    • list of smoketests w/params
    • T A couple huge problems:
    • Staging sites (like ours!) that use self-signed certificates are hard to automate across browsers with Selenium
    • Browser session problems
    • Lessons learned:
    • Write reusable code/classes
    • Run tests as often as you can
    • Proper use of XPath and CSS selectors make Selenium testing easier
  •  
    •   Where we want to be
    • Extend this model of testing to all web projects
    • Encourage contributors 
    • Have greater coverage for our Selenium integration tests
    •  
  •                 Demo / questions
  •  
    •        Interested in Helping?
    • WebQA homepage:
    • http://wiki.mozilla.org/QA/Execution/Web_Testing
    • Contribute page:
    • https://wiki.mozilla.org/QA/Execution/Web_Testing/Contribute
    • SVN Repository:
    • http://viewvc.svn.mozilla.org/vc/addons/trunk/si te/app/tests/selenium/pythonTests
    • Real-time contact:
    • irc.mozilla.org in #mozwebqa
  • [email_address] Thank you!