Selenium lightning-talk

2,639 views

Published on

My presentation at the Selenium Meetup's Lightning Talk, on August 23, 2011, covering Mozilla WebQA's "moz grid config":

https://github.com/mozilla/moz-grid-config

Published in: Technology, News & Politics
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,639
On SlideShare
0
From Embeds
0
Number of Embeds
945
Actions
Shares
0
Downloads
13
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Selenium lightning-talk

  1. 1. Mozilla WebQA – Selenium Grid Config Stephen Donner WebQA Manager <ul><li>San Francisco Selenium Meetup, Lightning Talks edition August 23, 2011 </li></ul>
  2. 2. Our problem <ul><li>Became tiresome and problematic to manage 6 Mac Minis in our Selenium Grid farm, 3 of which have virtual machines </li></ul>
  3. 3. The near-solution <ul><li>Dave Hunt's moz-grid-config : </li></ul><ul><li>https://github.com/mozilla/moz-grid-config </li></ul>
  4. 4. In a nutshell <ul><li>Firefox profiles </li></ul><ul><li>Grid hub / RC binaries </li></ul><ul><li>Ant build file </li></ul><ul><li>Grid configuration </li></ul><ul><li>Launcher scripts </li></ul><ul><li>Default project properties file </li></ul><ul><li>Machine-specific properties files </li></ul>
  5. 5. Firefox profiles <ul><li>Profile / prefs.js settings-tweaks </li></ul>
  6. 6. Firefox profiles <ul><li>Certificate overrides </li></ul>
  7. 7. Grid hub / RC binaries <ul><li>/lib </li></ul><ul><li>/vendor </li></ul>
  8. 8. Ant build file
  9. 9. Grid configuration
  10. 10. Launcher scripts <ul><li>launch-rc.bat title Selenium RC [%1] [%2] ant launch-remote-control -Drc.port=%1 -Drc.environment=%2 </li></ul><ul><li>launch-rc.sh echo -n -e &quot;033]0;Selenium RC [$1] [$2]007&quot; ant launch-remote-control -Drc.port=$1 -Drc.environment=&quot;$2 </li></ul><ul><li>launchHub.sh echo -n -e &quot;033]0;Selenium Grid007&quot; cd ~/moz-grid-config/ ant launch-hub </li></ul>
  11. 11. Default project properties file
  12. 12. Machine-specific properties files
  13. 13. Mac Mini properties files
  14. 14. Virtual-machine instances' properties files
  15. 15. Adding a new environment <ul><li>Add a [machine-name/IP].project.properties, containing a reference to itself </li></ul><ul><li>git checkout master </li></ul><ul><li>git pull </li></ul><ul><li>...and that's it </li></ul>
  16. 16. Support for 2.0? <ul><li>We're on it: </li></ul><ul><li>https://github.com/mozilla/moz-grid-config/tree/selenium-grid-2.4 </li></ul>
  17. 17. Thanks! Questions? <ul><li>[email_address] </li></ul><ul><li>Or, better yet: [email_address] </li></ul>
  18. 18. Links / Contact Info <ul><li>Repo: https://github.com/mozilla/moz-grid-config </li></ul><ul><li>Mozilla QA “QMO” homepage: http://quality.mozilla.org </li></ul><ul><li>Mozilla WebQA homepage: https://wiki.mozilla.org/QA/Execution/Web_Testing </li></ul>

×