[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: advice on test after deployment of RCP applications?

Thanks Stefan,

I'm going to try and solve this as it's quite necessary for producing RCP
applications that are built and tested regularly in an automatic way. I
suppose there must be some way of maybe re-using some of the eclipse.releng
release engineering code, but there's not much documentation and I don't
want extra complication for the build side of things.

Otherwise it may be necessary to write a special RCP app that does exactly
what eclipse does for launching plug-in tests and handle the running and
testing of the newly built application. Another possibility I can imagine is
maybe launching eclipse in a headless mode and finding a way to trigger a
launch of a plug-in test run configuration from a file on disk.

None of these options seem very simple or even particularly attractive, so
if someone has a better way or some field experience in this domain... maybe
they could kindly enlighten us!

Cheers,

Robbie Jameson

"Stefan Ukena" <7ukena@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:ck5sr5$bb$1@xxxxxxxxxxxxxx
> Hi Robbie,
>
> I can see why you want to do this but besides maybe the obvious jdb I
> would have no idea how to go about this in a reasonable way.
>
> Anyone else?
>
> Hopefully future relaeses will make the differences disappear between
> self-hosted and deployed RCP-apps.
>
> Stefan
>
> Robbie Jameson wrote:
> > Hi Stefan,
> >
> > Many thanks for your reply.
> >
> > I mean how do you test an RCP application once some ant build scripts
have
> > built it and it is deployed somewhere entirely outside of the Eclipse
IDE.
> >
> > If I am inside the IDE, I can run a plug-in test that will launch the
RCP
> > application for me and hand over control to the junit tests that will
play
> > about with it. I don't know how to reproduce this (for example in an ant
> > script) when I'm outside of the IDE, the application is stand-alone, and
> > there's no GUI and no Eclipse to help me set up this kind of special
launch.
> >
> > Any suggestions are welcome!
> >
> > Robbie.
> >
> > "Stefan Ukena" <7ukena@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> > news:ck5o97$oa0$1@xxxxxxxxxxxxxx
> >
> >>Hi Robbie,
> >>
> >>Robbie Jameson wrote:
> >>
> >>>Could anyone give me some advise on how to test an RCP application
after
> >
> > it
> >
> >>>has been deployed?
> >>
> >>I'm not sure if understand you correctly: do you mean how to test an
> >>actually deployed application or how to test your own plugin-classes as
> >>if they were deployed (i. e. using a bunch of mock-objects)?
> >>
> >>Stefan
> >
> >
> >