summaryrefslogtreecommitdiff
path: root/uitest
AgeCommit message (Collapse)Author
2019-03-11weld SvxMenuConfigPage/SvxToolbarConfigPageCaolán McNamara
Change-Id: I166ac6c0be8461ea38db711796d1e14fc5b78998 Reviewed-on: https://gerrit.libreoffice.org/68889 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2019-01-16eliminate some noise from uitest failureNoel Grandin
re-arrange the logic so that when create_doc_in_start_center fails, we only get one backtrace instead of two. Change-Id: I736b56da8cfb11e8ef17b8422a19eafd70e3cd6f Reviewed-on: https://gerrit.libreoffice.org/66415 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2019-01-14uitest: fail early in case a test file would be ignoredMiklos Vajna
So the mistake I did in commit 457acbfa304ac8bda0755c9ca8f1e1e22e490ac8 (UITest_writer_tests: split this into 4 parts, 2018-07-03) does not happen again. Change-Id: Ia28ed1fe9909d9c46ebe95d3a1926b0dced46140 Reviewed-on: https://gerrit.libreoffice.org/66180 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2018-11-07map GtkTreeView to SvTreeViewBox now it is in vclCaolán McNamara
Change-Id: I8ab8421354a296cb6382f28fd3bd40372e0665df Reviewed-on: https://gerrit.libreoffice.org/62908 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-10-31uitest: add demo showing how to access the calc input windowMarkus Mohrhard
Change-Id: I5e1fc327a785e892e1c2f526cce8c58fe1ab928c Reviewed-on: https://gerrit.libreoffice.org/62413 Tested-by: Jenkins Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2018-09-28make the loginterpreter executableMarkus Mohrhard
Change-Id: I9dcb562f9309c75a2d1719f1ad4fe6b5a4c23385
2018-09-27uitest: add the ModelessDialogVisible event to the execute_blocked_actionMarkus Mohrhard
Change-Id: I5496bf0bcce442c60d2ecd4207734d0e8b17935b Reviewed-on: https://gerrit.libreoffice.org/61026 Tested-by: Jenkins Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2018-09-27uitest: make it easier to log the received events for dialog creationMarkus Mohrhard
Change-Id: I1dc3041408c3f9fa9ce6023d7c668bc5baa65b4e Reviewed-on: https://gerrit.libreoffice.org/61025 Tested-by: Jenkins Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2018-08-27uitest interpreter: some improvementsSaurav Chirania
Change-Id: I7b768694ba5a82f7273fd7641fae5c3fc84233a6 Reviewed-on: https://gerrit.libreoffice.org/58340 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Jenkins
2018-07-28uitest: support parameters when sending UNO commandsSaurav Chirania
This patch introduces a new function to send parameters with UNO commands in UI Tests and adds a test which uses the function to change the color of text in writer. Change-Id: Ic687872ab826b50360e1bd042d9668a9f6ddbf63 Reviewed-on: https://gerrit.libreoffice.org/57857 Tested-by: Jenkins Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2018-07-10uitests - error if UITEST_TEST_NAME not set to anything usefulNoel Grandin
so the next poor sod who doesn't understand the instructions doesn't waste time with the wrong way of specifying the tests Change-Id: I9759c7f792ec80d660f70f79dc6e2589d44e360f Reviewed-on: https://gerrit.libreoffice.org/57177 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-07-06uitest interpreter: support opening existing documentSaurav Chirania
In addition, I have imported the mkPropertyValues function which seems to be necessary in almost all test files. Change-Id: Iee44651aaa05fc2ef5da1d7e0f9281f76819d3e4 Reviewed-on: https://gerrit.libreoffice.org/56850 Tested-by: Jenkins Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2018-07-06uitest interpreter: handle when parent is empty stringSaurav Chirania
Change-Id: I439e2679ce46872f34e095b7f05fa19d404d2c00 Reviewed-on: https://gerrit.libreoffice.org/56887 Tested-by: Jenkins Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2018-07-02uitest interpreter: add support for starting appsSaurav Chirania
Change-Id: Iaab98515d2046aaff1e3da4f80de192ebc01a9eb Reviewed-on: https://gerrit.libreoffice.org/56789 Tested-by: Jenkins Reviewed-by: Saurav Chirania <saurav.chir@gmail.com>
2018-07-02uitest interpreter: let's use argparse to parse argumentsSaurav Chirania
Reasons to do this- 1) We will add more arguments in future, handling them manually will be time consuming. 2) Argparse generates a useful help message automatically. Change-Id: I7ce8cc2746f7774c4fa7cd5b173da637e10a770b Reviewed-on: https://gerrit.libreoffice.org/56777 Tested-by: Jenkins Reviewed-by: Saurav Chirania <saurav.chir@gmail.com>
2018-07-01uitest interpreter: add more featuresSaurav Chirania
1) Support UNO commands 2) Support closing dialog using buttons 3) Correct keyword for modless dialog 4) Introduce "Redundant Couple" for couples from which only 1 statement can generate the log. Change-Id: I3541fea6a0b72de2c03626476b8abb43a7324dab Reviewed-on: https://gerrit.libreoffice.org/56776 Tested-by: Jenkins Reviewed-by: Saurav Chirania <saurav.chir@gmail.com>
2018-06-24uitest: interpreter for log filesSaurav Chirania
this file interprets the following grammar: <keyword> <object_description> [<parameters>] where keyword describes about the UIObject the user interacts with object_description tells the ID, parent, etc. of the UIObject and parameters are the parameters of the action user performs in a format directly readable by mkPropertyValues keyword examples - ModalDialogExecuted, ButtonUIObject parameter examples - {"TEXT":"A"}, {"POS": 1}, etc. Line-by-line, this interpreter tries to convert given log into python code. An example can be found at- "https://pastebin.com/raw/KQi7Y6ie" Change-Id: Iade4388b16094a94df1893f9925605bee51b164f Reviewed-on: https://gerrit.libreoffice.org/56120 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2018-06-20Add UI test for the Customize dialogMuhammet Kara
Change-Id: I00109ef54ec7cfc1f4976794daa92ded3cd6ce4b Reviewed-on: https://gerrit.libreoffice.org/53119 Tested-by: Jenkins Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2018-05-09Typos in change 53934heiko tietze
Change-Id: I7d2dd64beb70d44113c3c548ff6e13ff1d766614 Reviewed-on: https://gerrit.libreoffice.org/54017 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Heiko Tietze <tietze.heiko@gmail.com>
2018-05-09tdf#114006 - New default set of gradient presetsheiko tietze
New set of gradients incl. l10n and ui test Change-Id: Iee303a39ad721b5a4e8b9adb78ee5a82227b84f4 Reviewed-on: https://gerrit.libreoffice.org/53934 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: andreas_kainz <kainz.a@gmail.com>
2018-04-03Create temp copies of test docs in Python/UITestsStephan Bergmann
...where necessary, so the tests will succeed if SRCDIR is a read-only tree. Change-Id: Iea4c52d5982d3eba079088ef1670ff557ce30c3f Reviewed-on: https://gerrit.libreoffice.org/52122 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-03-07uitest: add demo showing how to select different sheetMarkus Mohrhard
Change-Id: I1ddc8e9855832df7176d768e73d062e7f601a62c Reviewed-on: https://gerrit.libreoffice.org/50854 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2018-02-21Revert "uitest: add timeout for blocking actions"Stephan Bergmann
This reverts commit fb4d5885f3c8d00ae528ddf57b2abaa4aabfbcf3: "For one, as Michael already responded, many builds (local, Gerrit/Jenkins, other tinderboxes) now fail UITest_writerperfect_epubexport with what looks like random 'raise DialogNotClosedException()'. Gut feeling is that it's way more than used to fail UITest_writerperfect_epubexport with a deadlock." (<https://lists.freedesktop.org/archives/libreoffice/2018-February/079494.html> "Re: UITest_writerperfect_epubexport hang (only sometimes)") For example, <https://gerrit.libreoffice.org/#/c/50070/> "tdf#115853: save current custom property when adding line" Jenkins linux_clang_dbgutil_64 now failed twice in a row with what looks like random "raise DialogNotClosedException()" failures in UITest_writerperfect_epubexport. And for another: "As long as its unclear what the underlying problem is, what benefit does it have to add a timeout failure path in the test? Without the added timeout, a local failed test will be ready to be inspected (and moggi now gave suggestions what exactly to inspect in another mail in this thread). And failed tests on the tinderboxes will eventually time out either way." (<https://lists.freedesktop.org/archives/libreoffice/2018-February/079491.html> "Re: UITest_writerperfect_epubexport hang (only sometimes)") Change-Id: I36db7526b68a1cf6be596aa82c57095e4067c150 Reviewed-on: https://gerrit.libreoffice.org/50080 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-02-18uitest: add timeout for blocking actionsMarkus Mohrhard
Change-Id: I796d4ea0034ddae0427418f0d53a00c3dfa66871 Reviewed-on: https://gerrit.libreoffice.org/49939 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2018-02-18tdf#114817 new bitmap presets for Area Fillandreas kainz
Change-Id: Icc48efc2f6c085ccf0754620dc1cbf5132a7f824 Reviewed-on: https://gerrit.libreoffice.org/49551 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Heiko Tietze <tietze.heiko@gmail.com>
2018-02-06uitest: improve conditional test suppression to limit by class and by functionMiklos Vajna
Example: make UITest_writerperfect_epubexport UITEST_TEST_NAME="epubexport.EPUBExportTest.testUIComponent" Change-Id: I7960a71574d8d3d9cb06399813c7370700579c3d Reviewed-on: https://gerrit.libreoffice.org/49246 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-02-05tdf#107501 automatize EN-8 manual test, related tdf#84810Saurav Chirania
This test is to check that paste special combined with some options and link is ok. Change-Id: Ifffca8033b195d64d310d9d063ee95bbc8e8ad5d Reviewed-on: https://gerrit.libreoffice.org/49164 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2018-02-02uitest for tdf#114724 headings outline tracking in NavigatorJim Raykowski
Change-Id: I4390c3d33d69ddd93880545f58d0ef81469c960d Reviewed-on: https://gerrit.libreoffice.org/47865 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2018-01-08uitest: add a shared helper method for selecting textMarkus Mohrhard
Change-Id: I15d059ea51ec1e7f0923dab5326a9bb8433e664c Reviewed-on: https://gerrit.libreoffice.org/47550 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2018-01-08uitest: add demo showing how to select text in EditMarkus Mohrhard
Change-Id: I8abb09e7e7b22934648bf0f295155a85da151cf8 Reviewed-on: https://gerrit.libreoffice.org/47549 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-11-25fix uitest/writer_tests/data/3pages.odtRene Engelhard
This in uitest/writer_tests/goToPage.py is supposed to be a uitest for "go to page 2 and 3" but uses hardoded enters until page flips over. Looks overly flaky to me. Replaced by proper page breaks Change-Id: I8c0ea5809bd24d4122cfd956fcd048af97c01480
2017-11-24uitest - writer Go to page dialogZdeněk Crhonek
Change-Id: I3088bb4b802b533db46dc3ab1d9d2fd241aa1fb0 Reviewed-on: https://gerrit.libreoffice.org/45009 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-11-21tdf#112650 Disable 'background settings for all pages'heiko tietze
Code removed to set images as background Change-Id: I3bad649b503420e2561483fbce1775e4aebdd3a3 Reviewed-on: https://gerrit.libreoffice.org/45001 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Yousuf Philips <philipz85@hotmail.com> Tested-by: Yousuf Philips <philipz85@hotmail.com> Reviewed-by: Heiko Tietze <tietze.heiko@googlemail.com>
2017-10-13don't assume concrete spelling substitutionsDavid Tardon
E.g., on my F-27 with system hunspell 1.5.4, the substitutions are dogg -> dodgy catt -> cat frogg -> frog which causes the test to fail... Change-Id: I6d192fcc74629c2f3b9d4780576499c47de96b26
2017-10-02solenv: support gb_UITest_DEBUGRUN for ui testsMiklos Vajna
This is similar to gb_JunitTest_DEBUGRUN, i.e. allows running soffice in gdb, and then connecting to that soffice from the test, instead of starting an own one. Change-Id: I023d6b0ede146837666c946cb865feb9046e5a94 Reviewed-on: https://gerrit.libreoffice.org/42756 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-08-08Fix UITest_writer_demo with --enable-ext-languagetoolStephan Bergmann
...which would insert requests to fix duplicate "frog frog" and capitalize "frog" at the start of a paragraph, confusing test_tdf46852 Change-Id: I76704af9e2e87ffdb3093ae68f0949b67ef9bf9b
2017-08-05Fix typosAndrea Gelmini
Change-Id: Ib7f43bf17ab8b9fb9d961a908d7620b50826a975 Reviewed-on: https://gerrit.libreoffice.org/40688 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
2017-07-31uitest: wait longer for the blocking action eventMarkus Mohrhard
Blocking actions are normal actions plus a modal dialog. So we need to wait quite some time before considering the action as failed. Change-Id: I76360b15f54abb1f957a1cddf5314359dfae2d25
2017-07-23uitest: wait twice as long for blocking actionsMarkus Mohrhard
Change-Id: Ib54a12e9bce3f0be9b31c57550d01754323832c6
2017-07-23uitest: handle the case without dictionaries in the UI testsMarkus Mohrhard
Change-Id: Icc63deeb182f0c380780332793a3af1f7a51577b
2017-07-20tdf#46852 fix spellcheck continue at beginningLuke Deller
When a spellcheck reaches the end of the document, it is supposed to be able to continue from the beginning of the document to the point at which the spellcheck was started. This was not working in the case where the word at the starting position was replaced due to a spelling correction, which causes the starting position to be lost. Fix this situation by recording the position immediately *before* the spellcheck starting position, so that it will not be affected by a spelling correction *at* the starting position. Change-Id: I9483fd5937dc1e235f6f9639d4856fe15e3d47a6 Reviewed-on: https://gerrit.libreoffice.org/40123 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-06-20Propagate failure out from css.ui.test.XUITest::executeCommand/DialogStephan Bergmann
Change-Id: Id7bd2d6f35f45d9957facf56d66cfc57a1e0ef6a Reviewed-on: https://gerrit.libreoffice.org/39002 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-06-20MAX_WAIT turns out to be too smallStephan Bergmann
...at least for my ASan+UBSan build, causing spurious 'make check' failures Change-Id: I6871e6fbc41790de1b38b1b7757b93d349154f47
2017-06-15uitest: Test text directionXisco Fauli
Change-Id: I66943e432eadedaf4a1bc362861ea8be67b076c3 Reviewed-on: https://gerrit.libreoffice.org/38839 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2017-06-15uitest: test page orientationXisco Fauli
Change-Id: I265730664cf7dfb1d4a105023ae1e3b4c1fca4f5 Reviewed-on: https://gerrit.libreoffice.org/38838 Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org> Tested-by: Jenkins <ci@libreoffice.org>
2017-06-15uitest: Using dimensions in assert isn't a good idea...Xisco Fauli
... as they're normally not equal across platforms and machines At least, check the paper format we choose Change-Id: I7f1047157f3b6135c2a037b9cc783889d17d3072 Reviewed-on: https://gerrit.libreoffice.org/38785 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2017-06-14uitest: Add test for insertPageHeader and tdf#107427Xisco Fauli
Change-Id: I8dd7c1a802b021392f25e92d25d9122082f17722 Reviewed-on: https://gerrit.libreoffice.org/38770 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2017-06-14disable UI test that does exact comparisonMarkus Mohrhard
Change-Id: I3e66a0574f6833fcd45a95a336fc07b523c0011c
2017-06-13uitest: Check default paper formatsXisco Fauli
Change-Id: Iaf889339f6a757fa5a3e992fb4438df842ea76eb Reviewed-on: https://gerrit.libreoffice.org/38738 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2017-06-13uitest: Use subtest hereXisco Fauli
Change-Id: I0e54b950412b4130bb4155d93af2ccafb03d2950 Reviewed-on: https://gerrit.libreoffice.org/38744 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>