Using Selenium for functional testing in Ruby on Rails

Update: There is now a nice demo of how selenium on rails works. Jonas Bengtsson has created an initial version of a Selenium plugin for RoR. I have been using Selenium for a while now and this certainly looks promising. There are some minor details in this release that need to be fixed such as coloring of completed test actions and test cases (mine are not highlighted). A nice addition would be if RadRails supported code completion of selenium actions....

February 6, 2006 · Peter Krantz

Boosting RadRails performance by switching JVM

If you are using RadRails when developing your Ruby in Rails applications you will be interested in increasing performance. Christian Pelczarski has an interesting instruction on how you can boost performance of the Eclipse/RadRails combo by switching to the latest Sun JVM (version 6.0) for Windows XP. You can usually get some extra performance by setting the initial heap size and the max heapsize to the same, thus bypassing the dynamic growing/shrinking of the heap....

January 25, 2006 · Peter Krantz

Setting up the Interactive Ruby Shell (IRB) for non-english keyboards on Windows XP

For some reason it is difficult to use the [] and {} characters when using IRB with a non-english keyboard on Windows XP. To get it working together with tab completion: Create a new environment variable called “HOME” and set it to your user home folder (e.g. C:\Documents and Settings\peterk). Create a text dcument called “.inputrc” in your user home folder with the following content: 1 2 3 4 5 6 7 8 "M-[": "[" "M-]": "]" "M-{": "{" "M-}": "}" "M-\": "\" "M-|": "|" "M-@": "@" "M-~": "~" Make sure irb....

December 20, 2005 · Peter Krantz

Rails more popular among Java devs compared to Dotnet devs

Just an observation, but everytime I speak about Rails with Dotnet developers they are less impressed than their Java counterparts. This may not be so strange considering that Rails solves a lot of issues unheard of in the Dotnet world. Some issues that Rails solves that I have found that Dotnet developers typically find easy are: Deployment: Drag nad drop new files to the web root of your Dotnet application and you are set....

December 18, 2005 · Peter Krantz