[Libreoffice-qa] Converting a Python UI test into a cppunit test

Michael Stahl mst at libreoffice.org
Thu Jul 16 17:43:04 UTC 2020

[oops, resending because i'm too dumb for email]

On 16.07.20 18:55, Ilmari Lauhakangas wrote:
> I created execute.sh for running the Python UI test:
> export PYTHONPATH=/home/tonttu/libreoffice/instdir/program/
> export 
> URE_BOOTSTRAP=file:///home/tonttu/libreoffice/instdir/program/fundamentalrc
> export SAL_USE_VCLPLUGIN=gen
> rm -rf /tmp/libreoffice/4
> SRCDIR="${SRCDIR:-$(pwd)}"
> python "$SRCDIR"/uitest/test_main.py --debug 
> --soffice=path:"$SRCDIR"/instdir/program/soffice 
> --userdir=file:///tmp/libreoffice/4 
> --file="$SRCDIR"/sw/qa/uitest/writer_tests7/tdf127652.py
> I ran execute.sh while in the core directory and confirmed that the UI 
> test failed.

why so complicated, try:

(cd sw && make -srj8 UITest_writer_tests7 

More information about the Libreoffice-qa mailing list