3 easy steps to your first Selenium acceptance test.
People keep asking me how to start writing Selenium tests. I’m going to give all my secrets away in this easy 3 step plan.
Begin by recording your high level test with Selenium IDE, convert the result into the language of your choice and put the code in a unit test.
Walk through the generated code and extract “page” into an object, use these to develop a Logical Functional Model of your application.
Consider decomposing page elements into objects to make the test code more clear.
Yes, it’s that easy… just give it a try and leave comments if you have questions. And of course, I have to provide the obligatory link to other Selenium related posts I’ve written.
Related Posts:
- AJAX Test Driven Development with Selenium
- Fitnesse, FitLibrary DoFixtures and Selenium: A winning combination.
- Selenium checkbox input’s versus XPath, it’s easy as: //input[@id=(//label[text()=”pie”]/@for)]
- Testing File Uploads with Selenium RC and Firefox(Or: Reducing Javascript Security in Firefox for fun and profit.)
- Selenium Remote Control 0.9.0 Released