<p dir="ltr">Hey Lionel,</p>
<p dir="ltr">I'm until September in vacation so i can only give you some General advice. </p>
<p dir="ltr">Most of the time loading fails because of a wrong path or missing component files. I suppose you checked the first so you might need a dbgutil build that prints information about failed loading of component files for uno interfaces.</p>

<p dir="ltr">The changes to the existing unit tests are fine.</p>
<p dir="ltr">Regards,<br>
Markus</p>
<div class="gmail_quote">On Aug 3, 2013 10:36 AM, "Lionel Elie Mamane" <<a href="mailto:lionel@mamane.lu">lionel@mamane.lu</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks for these pointers. I think I mostly got it, but it fails for<br>
me, and not at the place I expected it to.<br>
<br>
Could you please take a look at branch private/lmamane/basetest ?<br>
<br>
It contains:<br>
<br>
 commit d965888eb4a0be4c0bdd33fb0b401546de48af0b<br>
 Author: Lionel Elie Mamane <<a href="mailto:lionel@mamane.lu">lionel@mamane.lu</a>><br>
 Date:   Sat Aug 3 10:50:14 2013 +0200<br>
<br>
    proposed changes to other unittests<br>
<br>
    Change-Id: I64769fee917c5d8c6450a19ad53fdf795e280c98<br>
<br>
Just things I found weird in existing tests I took inspiration of, but<br>
before pushing to master, want a quick check by you.<br>
<br>
Then it contains:<br>
<br>
 commit bbcc93b3ad2eec0a717b5c59053519cc668cb27b<br>
 Author: Lionel Elie Mamane <<a href="mailto:lionel@mamane.lu">lionel@mamane.lu</a>><br>
 Date:   Sat Aug 3 10:49:41 2013 +0200<br>
<br>
    first stab at unittest for fdo#67685<br>
<br>
    Change-Id: I44500717109a026d7c71e6494daacbea1f224263<br>
<br>
Which is the unittest I wanted to add, but it does not work. It fails<br>
at:<br>
<br>
Test name: DialogSaveTest::test<br>
assertion failed<br>
- Expression: xComponent.is()<br>
- loading failed:<br>
file:///home/master/src/libreoffice/workdirs/master/dbaccess/<br>
qa/extras/testdocuments/testDialogSave.odb<br>
<br>
Dunno what wrong. Thanks in advance for your help.<br>
<br>
<br>
On Sat, Aug 03, 2013 at 02:35:49AM +0200, Markus Mohrhard wrote:<br>
> Hey Lionel,<br>
><br>
> So you basically have two options. We already have a test concept where we<br>
> open a file and execute a basic macro in it. You can find an example for it<br>
> in sc/qa/extras/macros-test.cxx<br>
><br>
> The other more flexible option is that you open a document and call the uno<br>
> calls yourself from c++. The advantage of the second option is that it<br>
> allows to add additional assertions and easier debugging but it takes a bit<br>
> more code.<br>
><br>
> Regards,<br>
> Markus<br>
> On Aug 2, 2013 5:59 PM, "Lionel Elie Mamane" <<a href="mailto:lionel@mamane.lu">lionel@mamane.lu</a>> wrote:<br>
><br>
> > I'd appreciate some help in writing a unittest (subsequenttest?) for<br>
> > <a href="https://bugs.freedesktop.org/67685" target="_blank">https://bugs.freedesktop.org/67685</a><br>
> ><br>
> > It is the second time such a bug crops up, I'd like to prevent it.<br>
> ><br>
> > Basically, we "just" need to open an .odb file, run a Basic macro (we<br>
> > can set it to autorun on document load), then save the file, and<br>
> > inspect the result.<br>
> ><br>
> > Thanks in advance!<br>
> ><br>
> > --<br>
> > Lionel<br>
</blockquote></div>