Wednesday, September 22, 2010

Test Automation, “Paper Toss” and my wife

Few days ago I download game called “Paper Toss” to my android (HTC desire), I have a tendency for addictions and this game started to be one.

scene.1283783516852

It’s very simple all you have to do is throw the paper ball to the basket. You have to take into consideration the wind strength and direction.

The problem started when my wife started to play the game. I’m very competitive and soon enough she will take the lead.

My advantage in this case is that I’m a geek. I’m using SeeTest from Experitest to test automation of Flex applications, but it do the job for Android games as well.

After ~30 minutes and few lines of code I wrote a robot that play the game for me with 0 errors.

This is how the code looks like:

image

This is how the project repository look like:

image

I played it until it score 62 (so it will not look to suspicious). Now she torture herself trying to beat me.

image

Maybe tomorrow I will let her know (and maybe I won’t…).