How to open two documents at same time in a unit test
Regina Henschel
rb.henschel at t-online.de
Sun Jul 13 23:22:11 UTC 2025
Hi Mike,
Mike Kaganski schrieb am 13.07.2025 um 20:14:
> On 7/13/2025 11:04 PM, Regina Henschel wrote:
>> for a unit test for https://gerrit.libreoffice.org/c/core/+/187802 I
>> need to have the source and the target document open at the same time.
>> How can I do that in a unit test?
>
>
> UnoApiTest has mxComponent2.
>
> You may assign to it using something like `mxComponent2 =
> loadFromDesktop(...)`. There are some samples of use of `mxComponent2`in
> sc and sw.
Ah. I had already found mxComponent2, but I didn't know that I can use
an assignment `mxComponent2=loadFromDesktop(...)`
>
> Hope this helps.
Yes, it works fine. Thank you.
Kind regards,
Regina
More information about the LibreOffice
mailing list