Re: Passing Form Objects Via Remoting
From: Allen Anderson (allen_at_sparkysystems.com)
Date: 04/13/04
- Next message: Nick Grape: "Re: Custom object passed to a remote object method - SecurityException"
- Previous message: Sunny: "Re: Passing Form Objects Via Remoting"
- In reply to: John Bowman: "Re: Passing Form Objects Via Remoting"
- Next in thread: Sunny: "Re: Passing Form Objects Via Remoting"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 13 Apr 2004 11:41:04 -0600
you've just posted the first good reason I've ever heard to remote a
form. heh. That's actually a good idea. We do XP programming here
as well so we do tons of units tests and although we don't currently
do a lot of UI testing in that, remoting the form would be a great way
to do it.
wrapping the collection and making that serializable is indeed a bit
of a kludgy way to go. If I were you I would add my test routines to
the form and region them off. As a general rule in remoting, you
should try not to move things across remoting unless you have to.
Best to try and do what you need in the methods of the remoted object.
On Tue, 13 Apr 2004 12:30:36 -0500, "John Bowman" <<Remove this before
reply> john.bowman@thermo.com> wrote:
>Allen,
>
>Thanks for the response. Your points are well taken. I did manage to make it
>work in the test app by creating a serializable wrapper object that contains
>a reference to the form in question and a serializable custom collection
>object, where the collection is really a collection of references to the
>control objects on the form. Admittedly not very clean/desirable and
>redundant... but possible none the less. The reason I'm looking into this is
>that on the surface, it would seem a potential mechanism (if it were more
>staightforward and clean) for automating the UI testing of an application.
>Basically, if you can pass accross the main UI form object into the driver
>program, then you can completely control the application externally. Test
>cases can be created and executed..., changing the UI later is easier to
>update in the test cases, etc. Unit testing is one thing and is important,
>but UI testing also inherently tests the system as a whole. Just probing for
>possible alternatives at this point. Thanks again nfor the info.
>
>John
>
- Next message: Nick Grape: "Re: Custom object passed to a remote object method - SecurityException"
- Previous message: Sunny: "Re: Passing Form Objects Via Remoting"
- In reply to: John Bowman: "Re: Passing Form Objects Via Remoting"
- Next in thread: Sunny: "Re: Passing Form Objects Via Remoting"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|