summaryrefslogtreecommitdiff
path: root/uitest/loginterpreter.py
AgeCommit message (Collapse)AuthorFilesLines
2018-09-28make the loginterpreter executableMarkus Mohrhard1-1/+2
Change-Id: I9dcb562f9309c75a2d1719f1ad4fe6b5a4c23385
2018-08-27uitest interpreter: some improvementsSaurav Chirania1-5/+18
Change-Id: I7b768694ba5a82f7273fd7641fae5c3fc84233a6 Reviewed-on: https://gerrit.libreoffice.org/58340 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Jenkins
2018-07-06uitest interpreter: support opening existing documentSaurav Chirania1-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>
2018-07-06uitest interpreter: handle when parent is empty stringSaurav Chirania1-1/+3
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 Chirania1-1/+16
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 Chirania1-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>
2018-07-01uitest interpreter: add more featuresSaurav Chirania1-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>
2018-06-24uitest: interpreter for log filesSaurav Chirania1-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>