Wednesday, May 19, 2010

Software Testing 101: Boundary-value analysis

Welcome to Software Testing 101, a guild to assist in the testing of software. Today's topic, boundary-value analysis also known as boundary testing.

Boundary-value analysis is used to test the boundary of a process. For instance, say we have a process which can take inputs between 1 and 100. How can we test the process with the minimal amount of test cases (in most work environments it is hard enough to get enough time to test the cases needed).
What we want to do, to test this process, is to test the boundary or edge condition. The boundaries of this process are 1 and 100, therefore if we test integers around 1 and 100, we would be testing the boundary.

In order to test any boundary, fully, you would need three test cases:
  • Out side the boundary
  • Exactly on the boundary
  • In side the boundary
In this case for the lower bound of 1, we should test 0 (one out side of the boundary), 1 (exactly on the boundary), and 2 (one in side the boundary). Likewise for the upper bound of 100, we should test 99 (one in side the boundary), 100 (exactly on the boundary), and 101 (one out side of the boundary).

By using boundary-value analysis we are able to limit the number of test cases and fully test the boundary of a process.

Tuesday, May 11, 2010

Upgrading to Ubuntu 10.04 LTS

Just upgraded my Dell Vostro 1500 to Ubuntu 10.04 LTS on Saturday (May 8, 2010) and so far I love it!

I made the upgrade because it is a LTS (long term support) release, but the main reason was, I was having issue with my wireless connecting to U-verse. I am happy to say, the upgrade has seem to resolve my wireless connectivity issues. I can go back to watching Bleach in my bedroom if my wife wants to watch something in the living room (I am on episode 263, 幽閉?!千本桜&蛇尾丸).

Other benefits of the upgrade include:

Faster boot time (it seems to be faster to me)
Better looking default desktop and style
Sound working out of the box (even Flash sound in Chrome)

Over all I am loving the upgrade. Nice work Ubuntu team!