September 2007

You are currently browsing the monthly archive for September 2007.

In June 2007 I traveled to Shanghai China for two weeks. This was my second trip; in 2006, I went for oneĀ  week in September.

I recommend if you are thinking of going to china you go for 2 weeks; especially if you are going on business. My companies office is located outside the city in an office park about 25 miles from the downtown area. This left very little time to explore during my week long trip in 2005.

I am gluten intolerant (Celiac Disease), so I also had to have meals especially prepared to meet my needs. The Hilton hotel in Shanghai was able to accommodate my needs. I had excellent gluten free breads; and other foods every day. The hotel was able to provide a take out lunch everyday to eat at the office.

However your Chinese business associates will want to take you to dinner often. Since I am a technical person; I got a lot less pressure to go out to eat. If you are in sales and need to spend time connecting with people there you will no doubt get a lot more pressure to eat out. With the language barrier I would fully expect to get food that isn’t 100% gluten free. You need to be extra cautious and stick to things that are going to be gluten free. Avoid think sauces and soy sauce.

Should you be traveling to Shanghai and needing to stay in a hotel that offers gluten free food, I recommend the Hilton Hotel in Shanghai. It is very near the JinAn Temple and has easy access to subway line #2. In the evenings I would usually walk over to the JinAn temple and then return to the hotel. This was a nice way to relax and walk off the large meal at the end of the day.

Me at Yu Yuang gardens

I spent much time wandering about city by foot on the weekend. I took a taxi down to the old section of the city and visited Yu Yuang gardens, the historic shopping area, the Bund and then walked at least 15 blocks up Nanjin Road. Other than being constantly asked if I would like to buy something; most people didn’t give me a second look.

I thought the best place that I visited in the city was the old market and Yu Yuang gardens. Both of these are in the same area of the old city. It cost 80rmb to get in to the Yu Yuang Gardens – Lots of old Chinese architecture, carved figurines on the roofs of the buildings, High thresholds, beautiful Coi Ponds. The historic market is of course free unless you buy something; the merchants there are a little less likely to bargain with you.

View from the bund

View from the bund

I also enjoyed walking along the Bund. This is the old foreign section of town; in the late 19th century most of the western powers had established a presence in the city for trading with the locals. There is a walkway park along the banks of the Huangpu River; which has a constant stream of boats coming and going. It is a nice place to just sit and watch all the river traffic.

Overall it was an excellent experience to visit there. I would recommend it to anyone; however it is a really long trip from the US and it is difficult to eat food from the local market if you have Celiac Disease. If you are planning to goto to China; most western hotels probably can accommodate your needs.

Add to Del.cio.us RSS Feed Add to Technorati Favorites Stumble It! Digg It!
    www.sajithmr.com

So your boss told you that we have to automate this testing. What do you do? What do you need?

The answer really depends on the type of system that you need to test. The testing of a windows application will be very different than testing a web application. The Tools will be different; the approach will be different. Here are some general ideas that you will will want to follow for the various types of automated testing that you are going to need to perform.

If you are tesitng a windows application with a GUI; I recommend that you look into a 2 tools on the market:

  • SilkTest (this is the tool I am most familiar with)
  • TestRunner

These tools are all essentially the same. They operate on the idea that everything on the screen is an object and is tracked by the OS. Therefore a button in you application that contains the text OK can be found (the coordinates on the screen can be found via DLL calls and information sharing that the application and windows must do to play together). Custom controls (i.e. your own set of push buttons or grids, etc that are not included in windows are not supported out of the box, you will need to modify your application to provide a set of calls that the tool can perform to get the information from the application. This is typically not difficult and with the right software from the vendor you can do it in a couple of hours with basic knowledge of Windows programming)

The record feature will not doubt be sold to you (and company management) however it is not a clear cut as record and playback. Remember that record; records a lot of extra information that is not needed for the test. The tool record features do not create code that is easy to read or modify. I have always used the record feature to obtain the basic outline of what I want but rarely have I used more than 20% of what was actually recorded.

These tools tend to have baggage that the vendors will push you towards. TestRunner has a management package that integrates together so that you can manage and execute your test. Keep in mind that the idea of these management tools are to sell you something else and something that is sticky so that you will need to buy more stuff from the vendor.

Some different approaches to testing windows applications.

  • Develop a command line interface to your application. This way you can can check the inputs against your outputs.
  • Develop a command method to launch you application to a predetermined state in the application. Then use a GUI test tool to drive it; this can save significantly on the amount of test code

The Poor man’s tools:
There are someother tools outhere that are more like macro recorder from the original version of windows. Theses tools simply gather the keyboard and mouse events that you geneate and place them in a script. These do not work very well in the windows environment because:

  1. Windows is a very dynamic environment.
  2. Dialog boxes may pop up any time and any place
  3. Windows may be placed in different spots by the application
  4. Menus may have contextual changes. Therefore your menu item is not where it was last time.
  5. The windows environment is a multitasking environment – timing can be affected.
  6. Hardware may not be available during the test. (I.e. you removed the USB key required by the application or network drive is not shared correctly)

All of the above items can be handled in the professional tools.

There is a Perl GUI test module available. I have not had time to play with it but it works on the same basis as the professional tools. I cannot recommend it but it does look promising.

Add to Del.cio.us RSS Feed Add to Technorati Favorites Stumble It! Digg It!
    www.sajithmr.com