By Month:
January 2012
Issues using ios-sim with Jenkins
Just a quick one: there seem to be two issues that prevent ios-sim from successfully launching an iOS app in the simulator as part of a Jenkins build: Specifying the wrong path for the built application Running Jenkins as a user other than the one currently logged into OS X I got tripped up by [...]
October 2011
New Touch Gesture API in Selenium / WebDriver
A commenter on my earlier post about NativeDriver asked if ND provides a mechanism to simulate touch-specific gestures. At the moment, it doesn’t, but at GTAC2011 today, Google’s Dounia Berrada was kind enough to show me the new touch-specific gesture support in Selenium’s TouchActions class. Since NativeDriver is based on Selenium, I suspect it’s only [...]
Error running launchctl remotely as non-root
Today, I’m attempting to install Jenkins under Homebrew on my home server running OS X. I’m ssh-ing into that machine, and got the following error while attempting to launch the program after installation: Bug: launchctl.c:2325 (23930):13: (dbfd = open(g_job_overrides_db_path, O_RDONLY | O_EXLOCK | O_CREAT, S_IRUSR | S_IWUSR)) != -1 launch_msg(): Socket is not connected A [...]
Page Object Pattern Resources
I’ve been asked on occasion for links to good references on the Page Object pattern. Here are a few that I’ve collected over the past few months: The Selenium project wiki has a great overview of Page Objects that covers the most important principles The Automated Tester has a simple example of how to implement [...]
NativeDriver and iOS: First Impressions
I’ve just taken on a new client who wants help writing automated tests for their iOS and Android applications. It’s still early days in the native app automation space, but there are already quite a few open source and free-to-use tools available. One of my responsibilities for this project will be to evaluate them and [...]
April 2011
SeleniumConf 2011 Presentation: Slides and Video
If you couldn’t make it to San Francisco for SeleniumConf 2011, fear not — my slide deck and a video of my presentation are now available for your viewing pleasure. Huge thanks to the organizers and the attendees — it was a great event with a fantastic crowd.
March 2011
Bash Completion for Ant on OS X with Homebrew
Now that I’ve set this up, I can’t believe that it’s taken me so long to do it. A bit of googling turned up this blog post, which contained a link to this post in the comments. Since I’m using Homebrew instead of MacPorts, I had to tweak the instructions a bit: Install bash_completion: brew [...]
December 2010
Sizzle: Inconsistency between nth() and nth-child() CSS selector
We’re using the Sizzle JavaScript library to help us select HTML elements in our suite of Selenium tests. Sizzle provides all of the useful selectors from CSS3, like nth-child(), as well as some others not provided by CSS3, like nth(). Sounds great, right? Well, yes… but take a look at the W3C recommendation for nth-child() [...]
Page Object Presentation Video
I just realized that I never posted a link to the video of my page object presentation at Twitter HQ last year. For convenience, here’s a link to the code download and the slide deck that I used. Very belated thanks to Sauce Labs for inviting me to present, to Twitter for hosting, and to [...]
November 2010
Prevent Selenium Test Timeouts By Hacking The /etc/hosts File
My current client runs a major consumer-facing web application, and I’m helping them build a suite of browser-automation tests using Selenium. We’ve had a lot of problems with test failures caused by intermittent page load timeouts, though — the application includes a LOT of external resources (1×1 pixel GIFs, javascript, etc.) used to enhance the [...]
August 2009
Page Object Presentation: Downloads
Thanks to all who attended my presentation on Tuesday! I hope you found it useful and informative. As promised, here is a link to the sample code: page-objects-demo-code.zip And here is a link to the slides for the presentation: Using The Page Object Pattern
July 2009
Speaking at SF Selenium Meetup, 4 August 2009
I’ll be the guest speaker at the next gathering of the San Francisco Selenium Meetup Group on the 4th of August (that’s next week!). My talk will be based on my experiences improving the maintainability of large automated test suites using the Page Object pattern. Currently, the meetup is nearly full (with 2 “maybes”), so [...]
SF PHP Meetup: Best Practices with Unit Testing
Earlier this week I attended the July meeting of the San Francisco PHP Meetup Group. ”But you’ve never written a line of PHP code!” you gasp. Well, technically yes, that’s true. I joined the group as an exercise in platform cross-pollination– as a Java developer, I’ve learned loads by programming in Ruby. Might the same [...]
March 2009
Hurray for TextEdit
I have a Rich Text Format file that contains data organized in an outline style. I need to parse the file and extract the text it contains, but the formatting information is just as important as the text–I need it in order to build data structures that reflect the relationships between the lines of text [...]
By Category:
Development
Sizzle: Inconsistency between nth() and nth-child() CSS selector
We’re using the Sizzle JavaScript library to help us select HTML elements in our suite of Selenium tests. Sizzle provides all of the useful selectors from CSS3, like nth-child(), as well as some others not provided by CSS3, like nth(). Sounds great, right? Well, yes… but take a look at the W3C recommendation for nth-child() [...]
Bash Completion for Ant on OS X with Homebrew
Now that I’ve set this up, I can’t believe that it’s taken me so long to do it. A bit of googling turned up this blog post, which contained a link to this post in the comments. Since I’m using Homebrew instead of MacPorts, I had to tweak the instructions a bit: Install bash_completion: brew [...]
Page Object Pattern Resources
I’ve been asked on occasion for links to good references on the Page Object pattern. Here are a few that I’ve collected over the past few months: The Selenium project wiki has a great overview of Page Objects that covers the most important principles The Automated Tester has a simple example of how to implement [...]
Speaking
Speaking at SF Selenium Meetup, 4 August 2009
I’ll be the guest speaker at the next gathering of the San Francisco Selenium Meetup Group on the 4th of August (that’s next week!). My talk will be based on my experiences improving the maintainability of large automated test suites using the Page Object pattern. Currently, the meetup is nearly full (with 2 “maybes”), so [...]
Page Object Presentation: Downloads
Thanks to all who attended my presentation on Tuesday! I hope you found it useful and informative. As promised, here is a link to the sample code: page-objects-demo-code.zip And here is a link to the slides for the presentation: Using The Page Object Pattern
Page Object Presentation Video
I just realized that I never posted a link to the video of my page object presentation at Twitter HQ last year. For convenience, here’s a link to the code download and the slide deck that I used. Very belated thanks to Sauce Labs for inviting me to present, to Twitter for hosting, and to [...]
SeleniumConf 2011 Presentation: Slides and Video
If you couldn’t make it to San Francisco for SeleniumConf 2011, fear not — my slide deck and a video of my presentation are now available for your viewing pleasure. Huge thanks to the organizers and the attendees — it was a great event with a fantastic crowd.
Testing
SF PHP Meetup: Best Practices with Unit Testing
Earlier this week I attended the July meeting of the San Francisco PHP Meetup Group. ”But you’ve never written a line of PHP code!” you gasp. Well, technically yes, that’s true. I joined the group as an exercise in platform cross-pollination– as a Java developer, I’ve learned loads by programming in Ruby. Might the same [...]
Speaking at SF Selenium Meetup, 4 August 2009
I’ll be the guest speaker at the next gathering of the San Francisco Selenium Meetup Group on the 4th of August (that’s next week!). My talk will be based on my experiences improving the maintainability of large automated test suites using the Page Object pattern. Currently, the meetup is nearly full (with 2 “maybes”), so [...]
Page Object Presentation: Downloads
Thanks to all who attended my presentation on Tuesday! I hope you found it useful and informative. As promised, here is a link to the sample code: page-objects-demo-code.zip And here is a link to the slides for the presentation: Using The Page Object Pattern
Prevent Selenium Test Timeouts By Hacking The /etc/hosts File
My current client runs a major consumer-facing web application, and I’m helping them build a suite of browser-automation tests using Selenium. We’ve had a lot of problems with test failures caused by intermittent page load timeouts, though — the application includes a LOT of external resources (1×1 pixel GIFs, javascript, etc.) used to enhance the [...]
Page Object Presentation Video
I just realized that I never posted a link to the video of my page object presentation at Twitter HQ last year. For convenience, here’s a link to the code download and the slide deck that I used. Very belated thanks to Sauce Labs for inviting me to present, to Twitter for hosting, and to [...]
Sizzle: Inconsistency between nth() and nth-child() CSS selector
We’re using the Sizzle JavaScript library to help us select HTML elements in our suite of Selenium tests. Sizzle provides all of the useful selectors from CSS3, like nth-child(), as well as some others not provided by CSS3, like nth(). Sounds great, right? Well, yes… but take a look at the W3C recommendation for nth-child() [...]
SeleniumConf 2011 Presentation: Slides and Video
If you couldn’t make it to San Francisco for SeleniumConf 2011, fear not — my slide deck and a video of my presentation are now available for your viewing pleasure. Huge thanks to the organizers and the attendees — it was a great event with a fantastic crowd.
NativeDriver and iOS: First Impressions
I’ve just taken on a new client who wants help writing automated tests for their iOS and Android applications. It’s still early days in the native app automation space, but there are already quite a few open source and free-to-use tools available. One of my responsibilities for this project will be to evaluate them and [...]
Page Object Pattern Resources
I’ve been asked on occasion for links to good references on the Page Object pattern. Here are a few that I’ve collected over the past few months: The Selenium project wiki has a great overview of Page Objects that covers the most important principles The Automated Tester has a simple example of how to implement [...]
New Touch Gesture API in Selenium / WebDriver
A commenter on my earlier post about NativeDriver asked if ND provides a mechanism to simulate touch-specific gestures. At the moment, it doesn’t, but at GTAC2011 today, Google’s Dounia Berrada was kind enough to show me the new touch-specific gesture support in Selenium’s TouchActions class. Since NativeDriver is based on Selenium, I suspect it’s only [...]
Issues using ios-sim with Jenkins
Just a quick one: there seem to be two issues that prevent ios-sim from successfully launching an iOS app in the simulator as part of a Jenkins build: Specifying the wrong path for the built application Running Jenkins as a user other than the one currently logged into OS X I got tripped up by [...]
Tools
Hurray for TextEdit
I have a Rich Text Format file that contains data organized in an outline style. I need to parse the file and extract the text it contains, but the formatting information is just as important as the text–I need it in order to build data structures that reflect the relationships between the lines of text [...]
Prevent Selenium Test Timeouts By Hacking The /etc/hosts File
My current client runs a major consumer-facing web application, and I’m helping them build a suite of browser-automation tests using Selenium. We’ve had a lot of problems with test failures caused by intermittent page load timeouts, though — the application includes a LOT of external resources (1×1 pixel GIFs, javascript, etc.) used to enhance the [...]
Bash Completion for Ant on OS X with Homebrew
Now that I’ve set this up, I can’t believe that it’s taken me so long to do it. A bit of googling turned up this blog post, which contained a link to this post in the comments. Since I’m using Homebrew instead of MacPorts, I had to tweak the instructions a bit: Install bash_completion: brew [...]
NativeDriver and iOS: First Impressions
I’ve just taken on a new client who wants help writing automated tests for their iOS and Android applications. It’s still early days in the native app automation space, but there are already quite a few open source and free-to-use tools available. One of my responsibilities for this project will be to evaluate them and [...]
Error running launchctl remotely as non-root
Today, I’m attempting to install Jenkins under Homebrew on my home server running OS X. I’m ssh-ing into that machine, and got the following error while attempting to launch the program after installation: Bug: launchctl.c:2325 (23930):13: (dbfd = open(g_job_overrides_db_path, O_RDONLY | O_EXLOCK | O_CREAT, S_IRUSR | S_IWUSR)) != -1 launch_msg(): Socket is not connected A [...]
New Touch Gesture API in Selenium / WebDriver
A commenter on my earlier post about NativeDriver asked if ND provides a mechanism to simulate touch-specific gestures. At the moment, it doesn’t, but at GTAC2011 today, Google’s Dounia Berrada was kind enough to show me the new touch-specific gesture support in Selenium’s TouchActions class. Since NativeDriver is based on Selenium, I suspect it’s only [...]
Issues using ios-sim with Jenkins
Just a quick one: there seem to be two issues that prevent ios-sim from successfully launching an iOS app in the simulator as part of a Jenkins build: Specifying the wrong path for the built application Running Jenkins as a user other than the one currently logged into OS X I got tripped up by [...]