Thursday, May 8, 2008

Unit Testing

In the couple of projects i worked on, i tried to use nunit but failed miserably. All the applications i tried were typical asp.net applications (3-tier) and i had a lot of difficulty in writing test cases to test the methods which return collections and in testing UI events. UI events include checking whether a particular field/set of fileds are updated and with correct data upon some action by user. I thought it has something to do my knowledge of using nunit OR nunit supports testing of components and not UI events or methods returning collections.

The problems i faced (in testing methods that return collections based on filter criteria)
1) I have to write the data retrieval methods to fetch data from DB to check against the method being tested. So, there could be error in writing the code to fetch data directly from DB.
2) Once a method is tested, i have to restore the data to previous state to test the same method again. i think this is necessary for repetitive testing.

I discussed the same with my colleagues but didn't get a satisfied answer. Thanks in advance for providing me any links to useful posts on the topic.

Thursday, May 1, 2008

vizag trip

i returned yesterday from vizag trip. It was hectic but wonderful. We went for local sight seeing in vizag. RK beach stretch was wonderful. Apart from the rk beach, you dont have much in the city. We went to simhachalam and had a very good darshan. However, its better to go in the early mornings. We missed out chandana yatra (a very special day which falls on 08-May-2008) by just a few days.

Araku and borra caves were good but we were told that Nov-Jan would be the best time to visit them.

I have attached here a video of Vizag's natural beauty(covers vizag site seeing places, araku, borra, simhachalam, bheemli, etc).