https://bugs.documentfoundation.org/show_bug.cgi?id=147630
Bug ID: 147630
Summary: UI logger can't handle Hyperlink dialog as it does not
contain child "tabcontrol"
Product: QA Tools
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: General
Assignee: [email protected]
Reporter: [email protected]
Created attachment 178499
--> https://bugs.documentfoundation.org/attachment.cgi?id=178499&action=edit
Python UI test file
Bash script executed inside libreoffice directory:
export PYTHONPATH=/home/user/libreoffice/instdir/program/
export PYTHONPATH=$PYTHONPATH:/home/user/libreoffice/unotest/source/python/
export
URE_BOOTSTRAP=file:///home/user/libreoffice/instdir/program/fundamentalrc
export TestUserDir=file:///tmp
export TDOC=/home/user/libreoffice/sw/qa/uitest/data
export SAL_USE_VCLPLUGIN=gen
export LC_ALL=C
rm -rf /tmp/libreoffice/4
SRCDIR="${SRCDIR:-$(pwd)}"
python3 "$SRCDIR"/uitest/test_main.py --debug
--soffice=path:"$SRCDIR"/instdir/program/soffice
--userdir=file:///tmp/libreoffice/4
--file="$SRCDIR"/sw/qa/uitest/hyperlink_test_shortcut_cleaned.py
Error after the test opens Hyperlink dialog:
======================================================================
ERROR: test_function (hyperlink_test_shortcut_cleaned.TestClass)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/user/libreoffice/sw/qa/uitest/hyperlink_test_shortcut_cleaned.py", line
23, in test_function
tabcontrol = MainWindow.getChild("tabcontrol")
uno.com.sun.star.uno.RuntimeException: Could not find child with id: tabcontrol
at /home/user/libreoffice/vcl/source/uitest/uiobject.cxx:467
self.xUITest.getTopFocusWindow() in a hyperlink dialog opening test does not
contain the child "tabcontrol" and thus the test errors out.
Relevant code paths:
WindowUIObject::get_child in vcl/source/uitest/uiobject.cxx
UITest::getFocusTopWindow in vcl/source/uitest/uitest.cxx
UITestUnoObj::getTopFocusWindow in vcl/source/uitest/uno/uitest_uno.cxx calls
UITest::getFocusTopWindow
Keep in mind the subtle naming differences FocusTop vs. TopFocus.
--
You are receiving this mail because:
You are the assignee for the bug.