Archive

Posts Tagged ‘Firefox’

Selenium Test Scripts – To record or write?

June 22, 2008 2 comments

So I’ve gotten the Selenium Core installed on a staging web server where we run development code.  Additionally, I have installed the Selenium IDE Firefox extension to record test scripts.  I have been recording a few test scripts on some very basic functionality of an application I have been working on, then uploaded the test suite to a testing directory within my application directory structure.  Then it’s time to run the Selenium TestRunner and access my test suite.  For some reason, I get small failures that while not indicative of a problem with my code, but rather idiosyncracies with Selenium or my JavaScript deficiencies.  I’m getting very minor errors about elements not being found which I’m fairly sure is due to me not being in the habit of assigning an id attribute to everything especially form elements, so that Selenium can find them.  I’m also wondering if it is better to manually write test scripts for Selenium, which sounds too time consuming, or is it OK to just use the Firefox extension to record them.  I’ll do a bit more digging to see what I can find.  Selenium is available at http://openqa.org.