Mocking OpenOffice in python?

PaoloB pibizza at gmail.com
Wed Mar 14 10:11:01 EDT 2007


On 14 Mar, 14:48, Carsten Haese <cars... at uniqsys.com> wrote:
> On Wed, 2007-03-14 at 01:39 -0700, PaoloB wrote:
> > Hi everyone,
>
> > during our development, we need to write some unit tests that interact
> > with OpenOffice through pyUno.
>
> > Is there anyone who has got any experience on it? As OpenOffice is
> > quite a large beast, and interaction is rather complex, I would like
> > to know if there is someone who is willing to share experience (and,
> > possibly, code).
>
> I have some experience with pyuno, but your question is very open-ended.
> It would be helpful if you asked specific questions or gave more
> background on what kind of interaction you're trying to achieve.
>
> The generic answer to your request for code examples is that there's a
> tutorial with example code athttp://udk.openoffice.org/python/python-bridge.html, and then there's
> the API documentation athttp://api.openoffice.org/DevelopersGuide/DevelopersGuide.html.
>
> -Carsten

Hi Carsten,

basically, our project (PAFlow) is an application for producing
documents in public administrations.

We create templates using OpenOffice, that are filled automatically
using data from the application itself.

Now, interacting with OpenOffice is slow, and our tests get a lot of
time to be executed automatically.

We are trying to mock OpenOffice, so that we can run our tests without
using a true OpenOffice for our tests, except when we express test the
filling of data and production of document.

Ciao

PaoloB





More information about the Python-list mailing list