On Thu, 2 Oct 2008, _why wrote:
> On Fri, Oct 03, 2008 at 12:39:41AM +0900, Satoshi Asakawa wrote: > > - Make it possible to start a Shoes app from Ruby. (Without having to type > > "Shoes my_app.rb"; just "ruby my_app.rb") As long as that is not possible, > > you can't really startup a Shoes app from the inside of a unit test. (You > > could call a Shoes app with the backticks, but then you wouldn't have a > > reference to the app object, I think.) > > > > How about this idea? Is it possible or impossible? > > Yes, it's possible. Someone could write a fake Shoes library that > pretends to have all the same methods. > > I'm really not against testing libraries at all. I just have no > idea how it would work. Can shoes get hold of the mouse? I'm thinking of something like AutoIT. http://www.autoitscript.com/autoit3/ but it would be nice to be able to do it within shoes. Shoes "knows" where the buttons are, and I can imagine it moving the cursor around or just sticking events of the correct flavour into its own event queue. But since I've not looked at how to do that, this might be the same as saying "all you need is a long ladder, some people to hold it steady, then you wait till it's night and climb up to the moon." There's something equally cunning inside Watir though, so I not be quite so far of the mark. So failing that, maybe AutoIT, being free, is an acceptable answer. Hugh
