summaryrefslogtreecommitdiffstats
path: root/uitest
Commit message (Collapse)AuthorAgeFilesLines
* uitest: Rename the "SET" to "TYPE" for Edit boxes + implement the real "SET".Jan Holesovsky2020-10-161-1/+1
| | | | | | | | | | | | To be consistent with the other controls: "TYPE" actually enters the characters one by one, while "SET" sets it as a whole. Also I believe Modify() should be called, not UpdateData()... Change-Id: I967dc270b1d92fe76107732a511cc3e70d3d65c0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104435 Tested-by: Andras Timar <andras.timar@collabora.com> Reviewed-by: Andras Timar <andras.timar@collabora.com>
* Add test_edit_target to AutoRedactDialog UITestMuhammet Kara2019-07-121-0/+70
| | | | | | | | | | Change-Id: I105ce2e5f4d72369b05f776624979c3e82950757 Reviewed-on: https://gerrit.libreoffice.org/75469 Tested-by: Jenkins Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com> (cherry picked from commit 0a3a24a27bd7ed6792ec49f16a10ea2a05f1402a) Reviewed-on: https://gerrit.libreoffice.org/75474 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
* Add UITest for AutoRedactDialogMuhammet Kara2019-07-121-0/+128
| | | | | | | | | | | | | | Includes: * test_open_AutoRedactDialog_writer() * test_add_target() Change-Id: Ia70f4cdf01f8a69aa42d0514eecc20d2a2ada530 Reviewed-on: https://gerrit.libreoffice.org/75429 Tested-by: Jenkins Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com> (cherry picked from commit 11b60ba223b3667eb4718e160c9c14072c07a5c7) Reviewed-on: https://gerrit.libreoffice.org/75466 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
* map GtkTreeView to SvTreeViewBox now it is in vclCaolán McNamara2018-11-071-1/+1
| | | | | | | | 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>
* uitest: add demo showing how to access the calc input windowMarkus Mohrhard2018-10-311-0/+33
| | | | | | | Change-Id: I5e1fc327a785e892e1c2f526cce8c58fe1ab928c Reviewed-on: https://gerrit.libreoffice.org/62413 Tested-by: Jenkins Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
* make the loginterpreter executableMarkus Mohrhard2018-09-281-1/+2
| | | | Change-Id: I9dcb562f9309c75a2d1719f1ad4fe6b5a4c23385
* uitest: add the ModelessDialogVisible event to the execute_blocked_actionMarkus Mohrhard2018-09-272-1/+4
| | | | | | | Change-Id: I5496bf0bcce442c60d2ecd4207734d0e8b17935b Reviewed-on: https://gerrit.libreoffice.org/61026 Tested-by: Jenkins Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
* uitest: make it easier to log the received events for dialog creationMarkus Mohrhard2018-09-271-6/+7
| | | | | | | Change-Id: I1dc3041408c3f9fa9ce6023d7c668bc5baa65b4e Reviewed-on: https://gerrit.libreoffice.org/61025 Tested-by: Jenkins Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
* uitest interpreter: some improvementsSaurav Chirania2018-08-271-5/+18
| | | | | | | Change-Id: I7b768694ba5a82f7273fd7641fae5c3fc84233a6 Reviewed-on: https://gerrit.libreoffice.org/58340 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Jenkins
* uitest: support parameters when sending UNO commandsSaurav Chirania2018-07-281-0/+24
| | | | | | | | | | | 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>
* uitests - error if UITEST_TEST_NAME not set to anything usefulNoel Grandin2018-07-101-2/+12
| | | | | | | | | | 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>
* uitest interpreter: support opening existing documentSaurav Chirania2018-07-061-0/+9
| | | | | | | | | | 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>
* uitest interpreter: handle when parent is empty stringSaurav Chirania2018-07-061-1/+3
| | | | | | | Change-Id: I439e2679ce46872f34e095b7f05fa19d404d2c00 Reviewed-on: https://gerrit.libreoffice.org/56887 Tested-by: Jenkins Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
* uitest interpreter: add support for starting appsSaurav Chirania2018-07-021-1/+16
| | | | | | | Change-Id: Iaab98515d2046aaff1e3da4f80de192ebc01a9eb Reviewed-on: https://gerrit.libreoffice.org/56789 Tested-by: Jenkins Reviewed-by: Saurav Chirania <saurav.chir@gmail.com>
* uitest interpreter: let's use argparse to parse argumentsSaurav Chirania2018-07-021-19/+12
| | | | | | | | | | | | 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>
* uitest interpreter: add more featuresSaurav Chirania2018-07-011-1/+21
| | | | | | | | | | | | | 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>
* uitest: interpreter for log filesSaurav Chirania2018-06-241-0/+156
| | | | | | | | | | | | | | | | | | | | | | 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>
* Add UI test for the Customize dialogMuhammet Kara2018-06-201-0/+56
| | | | | | | Change-Id: I00109ef54ec7cfc1f4976794daa92ded3cd6ce4b Reviewed-on: https://gerrit.libreoffice.org/53119 Tested-by: Jenkins Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
* Typos in change 53934heiko tietze2018-05-092-2/+2
| | | | | | | | 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>
* tdf#114006 - New default set of gradient presetsheiko tietze2018-05-092-5/+5
| | | | | | | | | 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>
* Create temp copies of test docs in Python/UITestsStephan Bergmann2018-04-034-4/+17
| | | | | | | | | ...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>
* uitest: add demo showing how to select different sheetMarkus Mohrhard2018-03-071-0/+17
| | | | | | | Change-Id: I1ddc8e9855832df7176d768e73d062e7f601a62c Reviewed-on: https://gerrit.libreoffice.org/50854 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
* Revert "uitest: add timeout for blocking actions"Stephan Bergmann2018-02-211-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* uitest: add timeout for blocking actionsMarkus Mohrhard2018-02-181-2/+6
| | | | | | | Change-Id: I796d4ea0034ddae0427418f0d53a00c3dfa66871 Reviewed-on: https://gerrit.libreoffice.org/49939 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
* tdf#114817 new bitmap presets for Area Fillandreas kainz2018-02-182-2/+2
| | | | | | | Change-Id: Icc48efc2f6c085ccf0754620dc1cbf5132a7f824 Reviewed-on: https://gerrit.libreoffice.org/49551 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Heiko Tietze <tietze.heiko@gmail.com>
* uitest: improve conditional test suppression to limit by class and by functionMiklos Vajna2018-02-061-2/+4
| | | | | | | | | | | 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>
* tdf#107501 automatize EN-8 manual test, related tdf#84810Saurav Chirania2018-02-051-0/+52
| | | | | | | | | | 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>
* uitest for tdf#114724 headings outline tracking in NavigatorJim Raykowski2018-02-022-0/+41
| | | | | | | Change-Id: I4390c3d33d69ddd93880545f58d0ef81469c960d Reviewed-on: https://gerrit.libreoffice.org/47865 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
* uitest: add a shared helper method for selecting textMarkus Mohrhard2018-01-082-2/+5
| | | | | | | Change-Id: I15d059ea51ec1e7f0923dab5326a9bb8433e664c Reviewed-on: https://gerrit.libreoffice.org/47550 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
* uitest: add demo showing how to select text in EditMarkus Mohrhard2018-01-081-1/+25
| | | | | | | Change-Id: I8abb09e7e7b22934648bf0f295155a85da151cf8 Reviewed-on: https://gerrit.libreoffice.org/47549 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
* fix uitest/writer_tests/data/3pages.odtRene Engelhard2017-11-251-0/+0
| | | | | | | | 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
* uitest - writer Go to page dialogZdeněk Crhonek2017-11-242-0/+40
| | | | | | | Change-Id: I3088bb4b802b533db46dc3ab1d9d2fd241aa1fb0 Reviewed-on: https://gerrit.libreoffice.org/45009 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
* tdf#112650 Disable 'background settings for all pages'heiko tietze2017-11-211-10/+0
| | | | | | | | | | | 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>
* don't assume concrete spelling substitutionsDavid Tardon2017-10-131-9/+11
| | | | | | | | | | | | 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
* solenv: support gb_UITest_DEBUGRUN for ui testsMiklos Vajna2017-10-021-1/+1
| | | | | | | | | | | 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>
* Fix UITest_writer_demo with --enable-ext-languagetoolStephan Bergmann2017-08-081-1/+7
| | | | | | | ...which would insert requests to fix duplicate "frog frog" and capitalize "frog" at the start of a paragraph, confusing test_tdf46852 Change-Id: I76704af9e2e87ffdb3093ae68f0949b67ef9bf9b
* Fix typosAndrea Gelmini2017-08-051-1/+1
| | | | | | | Change-Id: Ib7f43bf17ab8b9fb9d961a908d7620b50826a975 Reviewed-on: https://gerrit.libreoffice.org/40688 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
* uitest: wait longer for the blocking action eventMarkus Mohrhard2017-07-311-2/+2
| | | | | | | 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
* uitest: wait twice as long for blocking actionsMarkus Mohrhard2017-07-231-1/+2
| | | | Change-Id: Ib54a12e9bce3f0be9b31c57550d01754323832c6
* uitest: handle the case without dictionaries in the UI testsMarkus Mohrhard2017-07-232-0/+47
| | | | Change-Id: Icc63deeb182f0c380780332793a3af1f7a51577b
* tdf#46852 fix spellcheck continue at beginningLuke Deller2017-07-202-3/+92
| | | | | | | | | | | | | | | | | | | 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>
* Propagate failure out from css.ui.test.XUITest::executeCommand/DialogStephan Bergmann2017-06-201-3/+6
| | | | | | | Change-Id: Id7bd2d6f35f45d9957facf56d66cfc57a1e0ef6a Reviewed-on: https://gerrit.libreoffice.org/39002 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
* MAX_WAIT turns out to be too smallStephan Bergmann2017-06-201-1/+1
| | | | | | ...at least for my ASan+UBSan build, causing spurious 'make check' failures Change-Id: I6871e6fbc41790de1b38b1b7757b93d349154f47
* uitest: Test text directionXisco Fauli2017-06-151-0/+26
| | | | | | | Change-Id: I66943e432eadedaf4a1bc362861ea8be67b076c3 Reviewed-on: https://gerrit.libreoffice.org/38839 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
* uitest: test page orientationXisco Fauli2017-06-151-4/+31
| | | | | | | Change-Id: I265730664cf7dfb1d4a105023ae1e3b4c1fca4f5 Reviewed-on: https://gerrit.libreoffice.org/38838 Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org> Tested-by: Jenkins <ci@libreoffice.org>
* uitest: Using dimensions in assert isn't a good idea...Xisco Fauli2017-06-151-17/+10
| | | | | | | | | | ... 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>
* uitest: Add test for insertPageHeader and tdf#107427Xisco Fauli2017-06-141-0/+72
| | | | | | | Change-Id: I8dd7c1a802b021392f25e92d25d9122082f17722 Reviewed-on: https://gerrit.libreoffice.org/38770 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
* disable UI test that does exact comparisonMarkus Mohrhard2017-06-141-0/+3
| | | | Change-Id: I3e66a0574f6833fcd45a95a336fc07b523c0011c
* uitest: Check default paper formatsXisco Fauli2017-06-131-25/+58
| | | | | | | Change-Id: Iaf889339f6a757fa5a3e992fb4438df842ea76eb Reviewed-on: https://gerrit.libreoffice.org/38738 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
* uitest: Use subtest hereXisco Fauli2017-06-131-6/+7
| | | | | | | Change-Id: I0e54b950412b4130bb4155d93af2ccafb03d2950 Reviewed-on: https://gerrit.libreoffice.org/38744 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>