Look for
The Humble Dialog Box
Michael Feathers
Object Mentor, Inc.
HTH
Niki Spahiev
Look for
The Humble Dialog Box
Michael Feathers
Object Mentor, Inc.
HTH
Niki Spahiev
Not exactly what I was looking for but thanks! The main website contains
a lot of things that I have looked for, especially about Test Driven
Development.
What I am looking for is an automated testing framework for wxWindows
apps. I'm planning on making one and I want to find out if someone else
has done this before. I need it to test my refactored projects.
Features it should have are:
1. Read from a (macro) file the specific wxEvents to simulate.
2. Feed this file to the test framework, which will in turn send
wxEvents to the application being tested.
Sort of a macro recorder turned inside out.
Niki Spahiev <niki@vintech.bg> wrote:
Look for
The Humble Dialog Box
Michael Feathers
Object Mentor, Inc.objectmentor.com
--
_nimrod_a_abing_
PGP Public Key here:
http://abingfamily.net/~nimrod/nimrod_at_abingfamily_dot_net.asc
Key expires 2004-06-03
Nimrod A. Abing wrote:
Look for
The Humble Dialog Box
Michael Feathers
Object Mentor, Inc.objectmentor.com
Not exactly what I was looking for but thanks! The main website contains
a lot of things that I have looked for, especially about Test Driven
Development.What I am looking for is an automated testing framework for wxWindows
apps. I'm planning on making one and I want to find out if someone else
has done this before. I need it to test my refactored projects.Features it should have are:
1. Read from a (macro) file the specific wxEvents to simulate.
2. Feed this file to the test framework, which will in turn send
wxEvents to the application being tested.
I think that what you're looking for is impossible to do in a cross-platform way. There is no way for wxWindows to generate the lowest level of wxEvents -- key and mouse events, etc. The wxWindows controls are native OS controls, and need those events to be generated inside the OS. In order to do this, you'd need to have some program that will interact with the OS on a very low level. I know that there are utilities that can do this on Windows, and I presume that there's utilities for X11/GTK that'll do much the same thing, but you won't be able to find a cross-platform solution.
Jeff Shannon
Technician/Programmer
Credit International
Niki Spahiev <niki@vintech.bg> wrote:
Nimrod A. Abing wrote:
Features it should have are:
1. Read from a (macro) file the specific wxEvents to simulate.
2. Feed this file to the test framework, which will in turn send
wxEvents to the application being tested.Sort of a macro recorder turned inside out.
The problem is that this won't work as you expect it to. Your event handlers will get the events, but the events will *not* be turned into native platform messages/events/callbacks/whatever and be passed on to the native widgets. So IOW, you can simulate the effect of say a 'k' key down event coming to your handlers, but there is no way to automatically turn that into a WM_KEY_DOWN message and send it on to the the native text control.
For a tool like this to work you would have to be able to send the platform specific events to the native widgets and then let them be caught and turned into wxEvents and sent to your handlers as if they happened normally.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
I saw this coming thanks for confirming my suspicions. I was starting
to work on the testing framework and I was wondering why the wxEvents
weren't being received by the widgets. And as Jeff Shannon pointed out,
it would be really hard to find a cross platform solution to do this.
Time spent on working on a solution would be better spent on testing my
refactored projects manually.
Thanks again.
Robin Dunn <robin@alldunn.com> wrote:
Nimrod A. Abing wrote:
>Features it should have are:
>
>1. Read from a (macro) file the specific wxEvents to simulate.
>2. Feed this file to the test framework, which will in turn send
> wxEvents to the application being tested.
>
>Sort of a macro recorder turned inside out.The problem is that this won't work as you expect it to. Your event
handlers will get the events, but the events will *not* be turned into
native platform messages/events/callbacks/whatever and be passed on to
the native widgets. So IOW, you can simulate the effect of say a 'k'
key down event coming to your handlers, but there is no way to
automatically turn that into a WM_KEY_DOWN message and send it on to the
the native text control.For a tool like this to work you would have to be able to send the
platform specific events to the native widgets and then let them be
caught and turned into wxEvents and sent to your handlers as if they
happened normally.
--
_nimrod_a_abing_
PGP Public Key here:
http://abingfamily.net/~nimrod/nimrod_at_abingfamily_dot_net.asc
Key expires 2004-06-03