summaryrefslogtreecommitdiff
path: root/uitest
AgeCommit message (Collapse)Author
2022-11-15tdf#132293 remove unused imports from uitestBogdan B
Change-Id: I5943ec84a0b5ed6f44af9e3f972626813987a1cb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142615 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-10-17tdf#132293 remove unused imports and variablesRakielle
I used pyflakes to check for any unused imports and variables in python scripts under sc, sw, uitest directories, and then removed the unused imports and variables Change-Id: I0690c9366087dc602ee8ea169bc1c9063033fef6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141421 Tested-by: Jenkins Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-09-26Use Markdown instead of reStructuredTextHossein
Use Markdown markup instead of reStructuredText for uitest/packaging/README.rst Change from reStructuredText to Markdown in setup.py is done according to this guide: Making a PyPI-friendly README https://packaging.python.org/en/latest/guides/making-a-pypi-friendly-readme/ Change-Id: I12cbde53518d7ceadec034827d8cb00380df1547 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138555 Tested-by: Jenkins Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2022-09-05tdf#97361 replace getCellByPosition with access by subscriptChenxiong Qi
Signed-off-by: Chenxiong Qi <qcxhome@gmail.com> Change-Id: I50d6e29c34e3cf72cdf0afc9f118fafc3c144eaf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139141 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-08-26tdf#150489: Drop Elements docking windowMike Kaganski
and make uno:ElementsDockingWindow open the respective sidebar panel. Change-Id: I9736d6804c579b83404636d5e327c49c2fdeb914 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138458 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2022-06-13uitest: sc: reset values in paste special dialogXisco Fauli
in preparation for https://gerrit.libreoffice.org/c/core/+/135110 Change-Id: I0bfa8ddd9b814239a0e284b1b219cf760ee34826 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135733 Tested-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-06-02Use IconView in SmElementsControlMike Kaganski
Allows to send individual images over the wire in lok case, instead of sending full canvas at every scroll operation. The control's horizontal and vertical modes (when it's docked to a vertical or a horizontal parent window side) are now identical. Some TODOs: * Re-implement a11y - that needs to be implemented on IconView level; * Make sure that sub-pixel positioning is not used when creating the elements icons (makes elements look a bit slim on Windows); * Maybe restore mouse hover indication; in non-GTK case, a call to m_xIconView->SetHoverSelection would suffice in SalInstanceIconView. Change-Id: Idbc35f4e38e2b49fd0848a96da557fa2c1a1f6e1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134761 Tested-by: Mike Kaganski <mike.kaganski@collabora.com> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2022-05-17Improve version checkMike Kaganski
... to not break on e.g. 4.0 Change-Id: I5b93f6138a5ca85891d2d60beca098b6bcfc15d1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134435 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2022-05-17use exec_module on newer Python (>3.3) to avoid DeprecationWarningNoel Grandin
Change-Id: I7d0624f63e5d123d5013c14aa0f23355cd42dd0e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134466 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-03-14tdf#128610: math: add UItestXisco Fauli
Change-Id: I9fe1a349a73790e7fa1c503112a27f76d238c0c1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131538 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-03-10tdf#140386: math: Add UItestXisco Fauli
Change-Id: I7347619ce190778ca12e5bb56c23600efad3af95 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131311 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-03-10uitest: math: at least execute the test on linuxXisco Fauli
besides, fix it and remove duplicated tests Change-Id: I15c6696c6cdd1c7e03647e105d8caf268555018a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131310 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-03-07tdf#147755: math: Add UItestXisco Fauli
Change-Id: I778f5f309495ee3806ed15dfb753bad2683f360d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131117 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-02-28uitest: fix sporadic UITest_impress_demo failuresXisco Fauli
Revert 9158d2d2f19cf7bccba12d2ad4cb340e882b51cc < blind fix for UITest_impress_demo failed > and 99d2ee15ad6fae7073a53f7df8868300328a36e7 < blind fix for UITest_impress_demo failures > Instead of asserting the shapes' properties directly, Use the Position and Size dialog Change-Id: Ie9aec0dbd1f1fc2ccab0993b428c8ac17938b3b5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130724 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-02-25uitest: introduce wait_until_file_is_availableXisco Fauli
For export - import tests See https://gerrit.libreoffice.org/c/core/+/124654/5/sw/qa/uitest/writer_tests6/edit_file_properties_before_saving.py#91 Change-Id: I3c2537a43cc69067355f18162d6463e268420090 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130530 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-02-25uitest: unify code and use while True everywhereXisco Fauli
No need for MAX_WAIT anymore Change-Id: Ia063068bd7c47f79d8991922086c22250c01f77d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130527 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-02-25uitest: remove debug optionXisco Fauli
it does nothing Change-Id: I6fa67aa42b1de6199cbb49100624826f5b3b77d8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130524 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-02-24uitest: try harder to close the dialog when it fails ...Xisco Fauli
... and close_button is empty This was introduced in 2021-06-29 15:35:55 - ff641dc9e4d2aff1d1cbe4425cd9c03a2edc847e < uitest: try harder to close the dialog when it fails... > and later reverted in 2021-07-02 20:41:50 - 4f8748fc973acdb67790ff048a247717afa9b9c7 < Revert "uitest: try harder to close the dialog when it fails..." > Reintroduce it again and also fix the problem why it was reverted. Without this fix, it will hang when an assert is triggered inside a dialog when close_button is empty Change-Id: If643caea61139f69f72c9b429aaad5b9d7d78c72 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130506 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-02-19uilogger: improve language in commentsIlmari Lauhakangas
Change-Id: I8406bdf375cf83d504e45a5c8f27ce2ceb1f9c51 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130190 Tested-by: Jenkins Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2022-02-19uilogger: make vertical tab handling more robustIlmari Lauhakangas
For example hyperlink dialog does not have numeric ids for tabs. Now the rule matches both integers and "common identifiers" as per https://textx.github.io/textX/stable/grammar/#textx-base-types Parent argument was removed as it does not seem to be used and it was empty in the case of the hyperlink dialog, causing the DSL parser to fail. More work is needed as self.xUITest.getTopFocusWindow() in a hyperlink dialog opening test does not contain the child "tabcontrol" and thus it errors out. Change-Id: I1637f7300884881ee4d869e8f04700e56935f2d7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130111 Tested-by: Jenkins Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2022-02-03ignore ~ backup files when searching for .py uitest filesLuboš Luňák
Change-Id: I9b476336349b67d3d9bb149d4ad4824740797eb0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129370 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2021-12-30tdf#95217: sc: simplify testXisco Fauli
Rechecking again, I found out that the encoding problem described in tdf#95217 was actually fixed by the same commit that fixed tdf#146048 ( 3392f567be8d52804b187b0bced47204ef38fa3c < tdf#146048: detect UTF-16 without BOM > ) This commit partially reverts d7fb6b22cf7e66eb2594001cc42c6bff8b5a49e2 < tdf#95217, tdf#142600: sc: Add UItest > since we don't have to create any http server to reproduce the issue Change-Id: I2f0177f8450f77de5df756354d48505193a6ba3c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127742 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-12-30tdf#95217, tdf#142600: sc: Add UItestXisco Fauli
for that, launch an http server in a separate thread Change-Id: I9d78c9a4349620a9de31b3963f2a31ff1d354f86 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127592 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-12-23work around off-by-ones on i386 in uicheck uitests...Rene Engelhard
<@x1sc0> _rene__, I guess we could use assertAlmostEqual with delta=1 there, but maybe once we add it, the next assert also fails for you? Change-Id: Ic64641ccdf9ca721997b4a842b646cf4b9e30f16 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121641 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-by: René Engelhard <rene@debian.org> Tested-by: René Engelhard <rene@debian.org> Tested-by: Jenkins
2021-12-15uitest: simplify codeXisco Fauli
Change-Id: Id3355be0e763217a4915b53d22220c30536415e4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126852 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-12-02uilogger: Adapt code to the new syntax of uitestsXisco Fauli
also fix the license header Change-Id: Icc759c695f192e1768210f66bff57a936df5fc4a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126219 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-12-01uitest: fix license headersXisco Fauli
Change-Id: I6b1a2808af9e6bb4d3240a83798c3c5958ef38e4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126183 Tested-by: Jenkins Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2021-12-01tdf#132293 removed some unused imports from uitest4k5h1t
Change-Id: I491b08dd8af69083a13c4dc00223314a6203e2d3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126160 Tested-by: Jenkins Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2021-11-27blind fix for UITest_impress_demo failuresNoel Grandin
Change-Id: Ia26c5a15fa4487c68cf6d4bc2aee41a3ded7f6a0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125941 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-11-09uitest: pos must be of type strXisco Fauli
Change-Id: Iea469066b11abefd889143d11f86c4cdcb5e03ab Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124923 Tested-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-11-04blind fix for UITest_impress_demo failedXisco Fauli
Change-Id: I66dcc0d260585e5f44410a16bc25a32d8d373ae0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124715 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-11-04tdf#119206: sw: Add UItestXisco Fauli
Change-Id: Iaf0e3be8a43eaaa4abb1efff9bc844ff38602d77 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124654 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-10-25uitest: execute setActiveFrame in load_file firstXisco Fauli
In 4839b7ca3b5a730edf90ebebc749db145efec098 < Fix UITests that use File Open dialog to load documents > the order of execution of load_file method was changed, making the code after the yield keyword to be executed after the test code is run, which is not what the original code did. We need to execute that code before running the test code, specially setActiveFrame Change-Id: I4ba436cbdf4fe2261589527f8d38a916d47b94aa Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124154 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-09-13uitest: combine execute_modeless_dialog_through_command methodsXisco Fauli
Change-Id: Idada1927f6b8b55133e1ff8c776a987699df1dc4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122012 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-09-13uitest: guard the remaining execute_modeless_dialog_through_commandXisco Fauli
Change-Id: I239fe94cc8983e679c82aa43d74d8099b13e73b6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122011 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-09-13uitest: guard execute_modeless_dialog_through_command in sdXisco Fauli
Change-Id: I4d67318af30b00182253de5f6ccf9cafd7664ee1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121911 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-09-08uitest: sc: factor out common codeXisco Fauli
Change-Id: Iaba3b9633eac26516bbb4bb0b6baadb4c6772fa6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121808 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-07-02Revert "uitest: try harder to close the dialog when it fails..."Xisco Fauli
This reverts commit ff641dc9e4d2aff1d1cbe4425cd9c03a2edc847e. Reason for revert: This patch is wrong, when close_button is set, the exceptions will be caught here so the test won't fail Change-Id: Id884abe70ab5602f914742e91bb2ed644c23b041 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118303 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-06-30uitest: combine create_doc_in_start_center methodsXisco Fauli
Change-Id: I59ea0d0dbd203590e7cedec51d0481c953e5172b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118155 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-06-30uitest: guard the remaining create_doc_in_start_centerXisco Fauli
Mostly done by a script for motivation, see 89aaa17a0a4413f07da2bc5084b0164f15dc01ac < UITest: introduce guarded context managers > Change-Id: I2a6149b318d1fdaa36efe5d65af4c238827eaaf5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118154 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-06-30uitest: guard create_doc_in_start_center in sdXisco Fauli
Mostly done by a script for motivation, see 89aaa17a0a4413f07da2bc5084b0164f15dc01ac < UITest: introduce guarded context managers > Change-Id: I314f3e2245bf57538073499f60528a455cba1a91 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118138 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-06-29uitest: try harder to close the dialog when it fails...Xisco Fauli
... and close_button is None. Change-Id: I01318fd3eff5c9d8775443529ad1a7b18d537968 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118117 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-06-29uitest: combine execute_dialog_through_command methodsXisco Fauli
Change-Id: Iaa03d37a9ac3862b8cb08a81e37a611632433880 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118077 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-06-29uitest: guard remaining execute_dialog_through_commandXisco Fauli
Mostly done with a script for motivation, see 89aaa17a0a4413f07da2bc5084b0164f15dc01ac < UITest: introduce guarded context managers > Change-Id: Ib8e7c5f5e2c9b8a7756fe533ea4f30349dd68761 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118076 Tested-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-06-29uitest: guard execute_dialog_through_command in scXisco Fauli
Mostly done with a script for motivation, see 89aaa17a0a4413f07da2bc5084b0164f15dc01ac < UITest: introduce guarded context managers > Change-Id: Id49eb66ba2827a6e2d0a737e48726a1d1c49c814 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118029 Tested-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-06-29uitest: guard execute_dialog_through_command in sdXisco Fauli
Mostly done with a script for motivation, see 89aaa17a0a4413f07da2bc5084b0164f15dc01ac < UITest: introduce guarded context managers > Change-Id: I162dcf802474a27580cfbe9349d1a48d3a111c9e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117999 Tested-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-06-28uitest: log the active UITEST_TEST_NAMEJan-Marek Glogowski
From the original commit bff02d54960b55e16d5c1220719bb86dc1fdd205 ("uitests - error if UITEST_TEST_NAME not set to anything useful"), it doesn't look like logging the test_name_limit_found is needed. Change-Id: Ibe1e6a5d63a968b06c4c8e8b4979d5b8caf8f54c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118016 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de> Tested-by: Jenkins
2021-06-26uitest: introduce load_empty_fileXisco Fauli
to make sure the documents are closed in inverse order when different documents are used in the same test Change-Id: I97ff33f9f91423d06f4e74bba6fc6a5312b24a17 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117914 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-06-25uitest: raise exception if timeout is reachedXisco Fauli
Change-Id: Ibcde404456f5c71484d925c47eb2a0c20c601033 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117785 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-06-25uitest: guard execute_dialog_through_actionXisco Fauli
Mostly done with a script for motivation, see 89aaa17a0a4413f07da2bc5084b0164f15dc01ac < UITest: introduce guarded context managers > Change-Id: I8b0e4aa746f7973b1bd1343219820d8b2315cf19 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117703 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>