Selenium testing for Ext GWT/GXT
November 08, 2008
Ext JS blog has a post about testing web application with Selenium. It provides quick overview of Selenium and gives instructions how to set it up. For me the most interesting part of the article was the example Selenium test case code.
At work we have been using Selenium to create acceptance tests for Ext GWT application and it has been quite painless so far. In our case the most important factor was to set id's for fields we wanted to test. That makes locating the right field in Selenium much easier. Another issue was the right mouse click because the application has some contextual menus. The Selenium IDE does not register right clicks properly so it was necessary to modify those actions manually to use mouseUpRightAt.
Yesterday I was wondering how to handle Ext GWT DateField's date picker in Selenium test and I ended up typing the date value in the field instead of clicking the calendar icon. After mentioning this to my colleague he told me to check the blog entry above. From the example I learnt about /following-sibling::img. It seems to be the way to handle trigger fields nicely - something to try out next week.
At work we have been using Selenium to create acceptance tests for Ext GWT application and it has been quite painless so far. In our case the most important factor was to set id's for fields we wanted to test. That makes locating the right field in Selenium much easier. Another issue was the right mouse click because the application has some contextual menus. The Selenium IDE does not register right clicks properly so it was necessary to modify those actions manually to use mouseUpRightAt.
Yesterday I was wondering how to handle Ext GWT DateField's date picker in Selenium test and I ended up typing the date value in the field instead of clicking the calendar icon. After mentioning this to my colleague he told me to check the blog entry above. From the example I learnt about /following-sibling::img. It seems to be the way to handle trigger fields nicely - something to try out next week.
Is it impossible to get things right on the first attempt?
November 06, 2008
Previously I wrote about registering to GP and couple days ago we visited the GP for the first time. But like one might guess - there were some issues with our registration.
The whole process started when we moved to Kirkcaldy and we filled the address change form for the NHS. The GP assignment office in Edinburgh had their raffle and we were placed for a GP on other side of the town. How come I saw this happening... But we rebelled and we sent a polite email to the office. Shortly after that we got a letter from NHS apologising silly assigment and we were assigned to the closest GP. The GP was the same we visited in the very first place.
So, couple days ago we went to this GP to return the health questionnaire and to receive quick health checkup. But we weren't in their system anymore because we were assigned back to the GP on other side of the town. After some discussion with the staff, two phone calls from senior member of the staff to the assignment office and almost an hour waiting we were assigned back to the right GP. We also heard some explanation of overlapping automatic and manual patient data systems, NHS politics etc.
After similar experiences, not just in the UK, I am always overwhelmingly astonished when something actually works as promised on the first attempt.
The whole process started when we moved to Kirkcaldy and we filled the address change form for the NHS. The GP assignment office in Edinburgh had their raffle and we were placed for a GP on other side of the town. How come I saw this happening... But we rebelled and we sent a polite email to the office. Shortly after that we got a letter from NHS apologising silly assigment and we were assigned to the closest GP. The GP was the same we visited in the very first place.
So, couple days ago we went to this GP to return the health questionnaire and to receive quick health checkup. But we weren't in their system anymore because we were assigned back to the GP on other side of the town. After some discussion with the staff, two phone calls from senior member of the staff to the assignment office and almost an hour waiting we were assigned back to the right GP. We also heard some explanation of overlapping automatic and manual patient data systems, NHS politics etc.
After similar experiences, not just in the UK, I am always overwhelmingly astonished when something actually works as promised on the first attempt.
Cast iron
November 02, 2008
Finally I ordered something I have been planning for some time. A simple cast iron frying pan without any nonsense like teflon coating. Frying steaks in a teflon pan is in my opinion just mediocre way.
After some treatment with oil the pan was ready for action. The result was definitely delicious. The problem was then that I did not check the amount of meat we ate, no steaks in near future..
After some treatment with oil the pan was ready for action. The result was definitely delicious. The problem was then that I did not check the amount of meat we ate, no steaks in near future..
GWT in Practice reviewed
October 28, 2008
Available on Java User Group Scotland website, GWT in Practice.
Stack Overflow Joy
October 22, 2008
The first time I saw something about Stack Overflow was while I was reading Joel on Software. Couple days ago I finally created my account there and started using it. So far my impression has been very positive.
Stack Overflow is basically just a question-answer site for software developers. But because of its active user mass good questions are replied rapidly and bad ones are moderated. Users receive more privileges the more they are writing good questions and answers.
What is a good question or answer then? That is up to other users who can vote, edit or close your entry.
Stack Overflow is basically just a question-answer site for software developers. But because of its active user mass good questions are replied rapidly and bad ones are moderated. Users receive more privileges the more they are writing good questions and answers.
What is a good question or answer then? That is up to other users who can vote, edit or close your entry.
A wee bit longer tour
October 19, 2008
This time we took the same coastal path as last time but we continued to Burntisland. After compulsory sandwich break we headed up to Dunearn Hill. The ascend was slow but the view was worth of it. The way back to Kirkcaldy was then downhill with high speed coasting and I nearly bit the dust after veering off the road in tight turn. Dora did not have any problems at that turn so I definitely need to upgrade my bicycle... Some photos from there are visible on my flickr page
View Larger Map
View Larger Map
Biking again!
October 12, 2008
On Saturday we did some shopping and bought a cheap mountain bike for Dora. Now we both have bikes and today we headed out to check some local paths. Our first route was the Fife coastal path from Kirkcaldy to Kinghorn. The trail wasn't too demanding but it was still great fun and weather was nice as well.
I hope she will get hooked on more adventurous biking after she gains more trail experience and gets more confident with the bike. However, this could cause that the current cheap bike will be too modest in no time. And then the vicious cycle of bike upgrading begins...
I hope she will get hooked on more adventurous biking after she gains more trail experience and gets more confident with the bike. However, this could cause that the current cheap bike will be too modest in no time. And then the vicious cycle of bike upgrading begins...
The other side of my life
October 10, 2008Staying home
October 09, 2008
Nasty flu or something caught me and I got fever on Tuesday afternoon so I left from work a bit earlier - around 4 pm. I also wanted to avoid overcrowded trains because there was a strike going on and train services were limited later in the afternoon. Despite my earlier traveling time the train was full and there were no seats available. Combination of hot and packed train with raising fever forced me to ask a young guy to give up his seat. After I sat down I received unexpected act of kindness as a young woman sitting opposite of me offered some HSBC sponsored bottle water which I gratefully drank. Maybe she knew that I have an account there.
Anyways, I am feeling somewhat better now but I decided to stay home also today. One difference between Hungarian and UK system is that one does not need an official paper from a doctor for a one day sick leave. Actually, in my current workplace in Scotland the limit is something like five days before any official paper. I am pretty sure this is very much work place dependent - I could imagine that cashier in Lidl does not have such possibility.
I don't have very comprehensive idea how well health care works here but at least getting registering to a new GP in Kirkcaldy turned out to be a bit more complicated than I expected. In Edinburgh I simply walked in to the closest GP reception and I got assigned to that one. Here in Kirkcaldy the closest one has their books closed so they could not assign us there directly. Instead, we had to fill a lottery coupon and return it to NHS via post. We are expected to receive our assignment within couple weeks - hopefully that reception wont be on the other side of the town.
Anyways, I am feeling somewhat better now but I decided to stay home also today. One difference between Hungarian and UK system is that one does not need an official paper from a doctor for a one day sick leave. Actually, in my current workplace in Scotland the limit is something like five days before any official paper. I am pretty sure this is very much work place dependent - I could imagine that cashier in Lidl does not have such possibility.
I don't have very comprehensive idea how well health care works here but at least getting registering to a new GP in Kirkcaldy turned out to be a bit more complicated than I expected. In Edinburgh I simply walked in to the closest GP reception and I got assigned to that one. Here in Kirkcaldy the closest one has their books closed so they could not assign us there directly. Instead, we had to fill a lottery coupon and return it to NHS via post. We are expected to receive our assignment within couple weeks - hopefully that reception wont be on the other side of the town.
Another book to be reviewed - GWT in Practice
October 02, 2008
Yesterday I hosted Java User Group Scotland - JUGS meeting at my workplace for the second time. This meeting was about JBoss Seam and there was a presentation by Ashish Kulkarni. It was pretty useful as I did not know much about Seam before.
I was also looking forward to receive a review copy of GWT in Practice by Robert T. Cooper and Charlie E. Collins. I have been using GWT for a couple months and it is definitely a fascinating piece of software. It will be interesting to see how this book brings up some new approaches or tricks. Eventually the review will be online under JUGS website's book review section.
Actually, GWT is not the only new technology I have been lucky enough to use at work. We are using agile approach in a new project and therefore our database schemas are under constant change. H2 is a Java database engine written by Thomas Mueller and it allows us to have disposable in-memory database which gets populated by a migration process fed by a legacy database. The H2 project is also very active and bugs are fixed pretty quickly.
I was also looking forward to receive a review copy of GWT in Practice by Robert T. Cooper and Charlie E. Collins. I have been using GWT for a couple months and it is definitely a fascinating piece of software. It will be interesting to see how this book brings up some new approaches or tricks. Eventually the review will be online under JUGS website's book review section.
Actually, GWT is not the only new technology I have been lucky enough to use at work. We are using agile approach in a new project and therefore our database schemas are under constant change. H2 is a Java database engine written by Thomas Mueller and it allows us to have disposable in-memory database which gets populated by a migration process fed by a legacy database. The H2 project is also very active and bugs are fixed pretty quickly.
Benefits of having student in the house
September 27, 2008
Couple days ago we received a delivery containing 20" 2.4 GHz iMac, printer and iPod Nano. Nice difference compared to old 12" 1.5 GHz PowerBook. But the nicest thing was the higher education student discount and special promotions for the printer and iPod - sweet.
Advices for relocating to UK - Flat hunting
September 21, 2008
Finding a decent flat is matter of luck or good preparation. Unfortunately, there are dodgy landlords, horrible flats and difficult neighbours. I listed couple advices for UK flat hunting:
Reserve time for flat hunting. Prepare to stay in B&B for a week or two instead of rushing to sign contract for the first flat you happen to visit.
Get a clear idea how much you can pay and what you should get with that. Some areas are cheaper but there are usually reasons for that. Remember to check the council tax for the flat.
Visit several flats. Do not worry about wasting agencies' time, they get paid for that. Ask questions but be prepared to meet totally clueless agents.
Check the background of the rental agency. Ask your colleagues and check Internet forums.
Consider private landlords instead of agencies. Generally, private landlords might offer lower rent.
Get everything written. Lease contract, meter readings, inventory list and receipt of the deposit. Take photos of the flat and make sure you capture existing damages.
Ask about current gas and electricity suppliers. A flat without previous utility bills should be avoided. Opening a new supply takes a lot of time and it isn't recommend for people with weak heart.
Older flats have single glazing and carpets everywhere - even in the bathroom. This means higher gas bill during colder months. Carpets can cause problems for allergic people.
Reserve time for flat hunting. Prepare to stay in B&B for a week or two instead of rushing to sign contract for the first flat you happen to visit.
Get a clear idea how much you can pay and what you should get with that. Some areas are cheaper but there are usually reasons for that. Remember to check the council tax for the flat.
Visit several flats. Do not worry about wasting agencies' time, they get paid for that. Ask questions but be prepared to meet totally clueless agents.
Check the background of the rental agency. Ask your colleagues and check Internet forums.
Consider private landlords instead of agencies. Generally, private landlords might offer lower rent.
Get everything written. Lease contract, meter readings, inventory list and receipt of the deposit. Take photos of the flat and make sure you capture existing damages.
Ask about current gas and electricity suppliers. A flat without previous utility bills should be avoided. Opening a new supply takes a lot of time and it isn't recommend for people with weak heart.
Older flats have single glazing and carpets everywhere - even in the bathroom. This means higher gas bill during colder months. Carpets can cause problems for allergic people.
Living in Kirkcaldy
September 19, 2008
Holiday is gone now and the first week in Kirkcaldy is almost over. Commuting to Edinburgh has been quite smooth and the walking distance to stations is not too long. The downside of living in Kirkcaldy is the cost of the season ticket.
The two weeks in Finland were great. We spent most of the time in my parent's summer cottage without any schedule. The trip back to civilization was the name giving ceremony for my new nephew and godson. Walking in the forest was relaxing and I managed to hunt a rabbit without a dog. Unfortunately birds were way too fast so there was no chance to bring any to kitchen.
Returning back to working seven hours a day after two weeks took some time. I even managed to forget maven command line mantra for deploying one of my main projects. But tweaking some last minute changes in to a live project and a client meeting brought me back to reality fast.
The two weeks in Finland were great. We spent most of the time in my parent's summer cottage without any schedule. The trip back to civilization was the name giving ceremony for my new nephew and godson. Walking in the forest was relaxing and I managed to hunt a rabbit without a dog. Unfortunately birds were way too fast so there was no chance to bring any to kitchen.
Returning back to working seven hours a day after two weeks took some time. I even managed to forget maven command line mantra for deploying one of my main projects. But tweaking some last minute changes in to a live project and a client meeting brought me back to reality fast.
Scenic route
August 25, 2008
We survived. I was a bit nervous about driving in the UK but it went pretty well. Dóra did very well as a navigator and she had to tell me to drive on left side instead of right side only once. No accidents caused and close calls do not matter.
Moving itself was nothing special, just a matter of elbow grease. It was pretty straightforward this time as we moved between furnished flats in the same country. No overweight fees nor pulling suitcases through the city happened this time.
On the way back we drove along Fife coastal path (road A921) which took us through many small towns like Kinghorn and Burntisland. The downside was that the road was rather narrow and there was usually just a stone wall or thick bushes next to the road shoulder. For some reason the car rental upgraded the van from small VW Caddy to bigger Ford Transit for free. This was nice but it caused me more headache on those tight bends on the narrow road. But that is just matter of practice.

Moving itself was nothing special, just a matter of elbow grease. It was pretty straightforward this time as we moved between furnished flats in the same country. No overweight fees nor pulling suitcases through the city happened this time.
On the way back we drove along Fife coastal path (road A921) which took us through many small towns like Kinghorn and Burntisland. The downside was that the road was rather narrow and there was usually just a stone wall or thick bushes next to the road shoulder. For some reason the car rental upgraded the van from small VW Caddy to bigger Ford Transit for free. This was nice but it caused me more headache on those tight bends on the narrow road. But that is just matter of practice.

Moving day
August 23, 2008
Tomorrow we will load a small van with our belongings and drive to Kirkcaldy. Yep, it is time to move again. I will keep working in Edinburgh but Dóra's studies start in Dundee so this location is a bit more reasonable. We'll see how life in Kirkcaldy looks like...