Gabor Szabo wrote:

  Hi,

I am trying to add unit tests that will run the application opening its windows
and then send all kinds of events.

Reading the testing code in Wx I got to the point where the application runs
and I can set a timer to do something later but I could not yet figure out how
can I send an arbitrary keystroke ?

  You can't reliably do it from inside wxWidgets; you could
create a wxKeyEvent and send it through ->ProcessEvent, but this
only tests the wxWidgets part of the program, all system side effects
will not happen (still, it might be better than nothing).

  http://sourceforge.net/projects/wxguitest/

it's C++-only; when I looked at it it seemed interesting, but
I never got round trying it.

Mattia

Reply via email to