<p dir="ltr">Hey Lionel,</p>
<p dir="ltr">So you basically have two options. We already have a test concept where we open a file and execute a basic macro in it. You can find an example for it in sc/qa/extras/macros-test.cxx</p>
<p dir="ltr">The other more flexible option is that you open a document and call the uno calls yourself from c++. The advantage of the second option is that it allows to add additional assertions and easier debugging but it takes a bit more code.</p>

<p dir="ltr">Regards,<br>
Markus</p>
<div class="gmail_quote">On Aug 2, 2013 5:59 PM, "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">
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>
_______________________________________________<br>
LibreOffice mailing list<br>
<a href="mailto:LibreOffice@lists.freedesktop.org">LibreOffice@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/libreoffice" target="_blank">http://lists.freedesktop.org/mailman/listinfo/libreoffice</a><br>
</blockquote></div>