top 3 ways to mess-up a cucumber functional test suite

on a recent project we used cucumber extensively for functional testing of our rails app using selenium webdriver to run it in the browser. all of us are convinced that it's a great tool, but there are many a things worth keeping an eye on otherwise it can lead to pain. 

here i list top gotchas that we targetted and brought sanity back; but before i start, i'd like to point-out that these problems arise from the misuse of the freedom that cucumber gives us. cucubmer scenarios are plain english, and hence there are as many styles of writing scenarios as there are members on the team and that trickles down to steps as well.

Read the rest of this post »

the best way to upload photos to facebook from (k)ubuntu

Its been a well known issue that the facebook uploader fails miserably in ubuntu, and hence these packages rock! first i installed phatch

$ sudo apt-get install phatch

next, f-spot

$ sudo apt-get install f-spot

though i know that f-spot allows one to batch update photos, i preferred the intuitive and simple interface of phatch for doing so. i used f-spot's Facebook upload plugin (which is deactivated by default) to upload to Facebook. the f-spot plugin can be activated from Edit > Manage Extensions and used from File > Export > Facebook. happy photo uploading!

kde extended desktop not working?

here's what lspci tells me about my on-board graphics card and the xrandr (primitive command line interface to RandR extension) i executed to get my extended desktop on:

$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 0c)

$ xrandr --output LVDS1 --auto --rotate normal --output VGA1 --auto --rotate left --left-of LVDS1

after endless attempts to get this working from the Display Settings (and then realizing that these options don't exist in there) Rajat helped me get this working.

Read the rest of this post »

Make JBossAS 4.3 GA follow symlinks in your deployed app

If you are doing a deployment like: JBOSS_HOME/server/[config]/deploy/app.war where,

  • app.war is a symlink to an exploded directory, or
  • app.war contains symlinks to directories

then you will not see a successful deployment till you instruct JBoss to follow these symlinks by tweaking your JBOSS_HOME/server/[config]/deploy/jboss-web.deployer/context.xml in this the Context element should have:

Windows Vista not booting on a Dell Inspiron 1420 after an Ubuntu install.

Well this issue is commonly observed on Dell lappys where I install Ubuntu by changing the default disk partition configuration. Windows fails to reach the login screen and exits after displaying a BSOD for a fraction of a second and reboots to show the options for booting Windows after it fails to boot. SOLUTION: The cure to this wierd behaviour is also weird. If you notice this happens only if your boot is not a cold start, as may be a reboot.

  • What you can do is press the power button on your lappy for a few seconds so that it completely powers-off.
  • Then press power button to 'cold' start it.
  • Windows boots as normal.

Till the time I reach a permanent solution to this issue, this is what works for me; when I do, I'll puts it here. It surely has something to do with the disk partitions.

Problem: .net framework initialization error

Over the (million dollar) weekend I was working at restoring a desktop application at one of my customer's office after their disk was formatted due to a virus attack. It is a VB.net exe and was reluctant to start because of this problem: .Net framework initialization error Unable to find a version of the runtime to run this application.

Read the rest of this post »