https://bugs.documentfoundation.org/show_bug.cgi?id=147628
Bug ID: 147628
Summary: UI logger: variable used in generated test before its
definition
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 178497
--> https://bugs.documentfoundation.org/attachment.cgi?id=178497&action=edit
Logger output
Command used to launch logging session:
PYTHONPATH=/home/user/libreoffice/instdir/program
URE_BOOTSTRAP=file:////home/user/libreoffice/instdir/program/fundamentalrc
LO_COLLECT_UIINFO="hyperlink_test_shortcut.log" SAL_USE_VCLPLUGIN=gen
/home/user/libreoffice/instdir/program/soffice
1. Press w to open Writer
2. Press Ctrl-K to open Hyperlink dialog
3. Cancel and quit
Command used to process the log file:
python /home/user/libreoffice/uitest/ui_logger_dsldsl_core.py
/home/user/libreoffice/instdir/uitest/hyperlink_test_shortcut.log
/home/user/libreoffice/sw/qa/uitest/hyperlink_test_shortcut.py
The generated test has on line 17:
open_recent = MainWindow.getChild("open_recent")
but the definition comes later on line 20:
MainWindow = self.xUITest.getTopFocusWindow()
Actually, these lines are not needed at all
open_recent = MainWindow.getChild("open_recent")
open_recent.executeAction("TYPE", mkPropertyValues({"TEXT": "w"}))
as this already gets us Writer:
with self.ui_test.create_doc_in_start_center("writer") as document:
The generated test also has indentation issues, but I will report this
separately.
--
You are receiving this mail because:
You are the assignee for the bug.