TurboGears and Selenium

Grig Gheorghiu wrote some days ago about Useful tools for writing Selenium tests.
Selenium is a fantastic tool for running tests within your webbrowser in a cross-platform and cross-browser way. But as Grig wrote in his post, hand writing test cases can be pretty tiresome.
This situation will probably change once the much expected Selenium-IDE is released.
Meanwhile for TurboGears projects I use Selenium4Gears which is a homegrown app that takes some of the tedium from writing tests and it’s trivial to integrate into existing TG projects.
Selenium4Gears is a TG app that you can mount into your own project by adding a reference to it in your controller and initializing the app with your model as a parameter.
You can define your test cases and corresponding commands through your browser and easily jump between the TestRunner and your test editing activities.
Here you can see a short movie of Selenium4Gears in action.
If you want to give it a try grab the zip file here. The package includes version 0.6.0 of Selenium.
January 28th, 2006 at 1:29 am
Ronald,
Nice work! If you don’t mind, I’ll send a message to the selenium-users group with a pointer to your blog post. There are other Pythonistas on the list, and I’m sure they’ll find this very interesting.
BTW, what tool did you use for the screencast? It looks really good.
Grig
January 28th, 2006 at 1:44 am
Hi Grig, thank you! And of course I don’t mind =)
Regarding the screencast, as a OSX user SnapPro is the best tool available but sadly it is still light years behind Camtasia studio. So this time I VNC from a windows box and use Camtasia to grab and edit the video. Kind of convoluted setup, but I’m glad you like the result.
January 28th, 2006 at 4:20 pm
Wow. Holy Wow. Great video and great hack. I hope with more blog posts and cool code like this, Selenium will be an even more useful tool for web app (and especially Ajax web apps) in the future. Watching this video just made my day.
January 29th, 2006 at 8:30 am
Great screencast. If you get the time, a screencast on how to record some simple tests would be great. I Know this is more Selenium specific, but it would great to have it all in one place.
/mac
February 2nd, 2006 at 7:13 pm
Any chance of providing the screencast in a standard video format, like the TurboGears screencasts are?