Communicating with running process / acceptance-testing GUI apps

Hi list,

Does anyone have a method for interacting with a running Ruby
process? Specifically, I want to launch a Ruby app using a wxruby
GUI, and then somehow drive it from cucumber. I tried non-Ruby
solutions like Mac applescript GUI scripting to no avail.

Google produced a lot of info on irb and gdb, but I can’t see how (if
it’s even possible) to extend those techniques to what I’m attempting.

The only thing that seemed promising was wx-nobbie, a gem that can
test wxruby apps, but it runs all tests against the same instance of
the app, which does not work for me.

Thanks!

Sean

On Sat, Mar 6, 2010 at 8:22 AM, Sean DeNigris [email protected]
wrote:

The only thing that seemed promising was wx-nobbie, a gem that can
test wxruby apps, but it runs all tests against the same instance of
the app, which does not work for me.

Do you mean you want to test the GUI component of it? I don’t know
anything firsthand about that, but I just noticed a book at Border’s
called _ Scripted GUI Testing with Ruby_.

http://www.amazon.com/Scripted-Testing-Ruby-Pragmatic-Programmers/dp/1934356182/ref=sr_1_1?ie=UTF8&s=books&qid=1268018319&sr=8-1

Do you mean you want to test the GUI component of it?
Well, I want to drive the app through the GUI, but not simulating
clicks and keys. Something like being able to call methods on my
controllers or maybe fake gui events. The key is to be able to
interact with the objects in a running process.

I don’t know anything firsthand about that, but I just noticed a book at Border’s
called _ Scripted GUI Testing with Ruby_.
I read the book. It was good, but the strategy on Mac was Applescript
GUI which only works on accessible components (e.g. Cocoa). I’m
testing wxruby, which doesn’t seem to respond.

Thanks.

Sean

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs