[Libreoffice-commits] core.git: uitest/calc_tests
Markus Mohrhard
markus.mohrhard at googlemail.com
Sun Mar 26 03:01:32 UTC 2017
uitest/calc_tests/autofilter.py | 27 +++++++++++----------------
1 file changed, 11 insertions(+), 16 deletions(-)
New commits:
commit aaea953b6e43ca5672b104308042419899a52c72
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Sun Mar 26 01:13:34 2017 +0100
uitest: add demo showing how to use auto filter popup
Change-Id: Id42c2856e4eee03dae374ea36d6dcba16419c70e
Reviewed-on: https://gerrit.libreoffice.org/35700
Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
diff --git a/uitest/calc_tests/autofilter.py b/uitest/calc_tests/autofilter.py
index fc5c1c897ef9..431043b02f03 100644
--- a/uitest/calc_tests/autofilter.py
+++ b/uitest/calc_tests/autofilter.py
@@ -31,23 +31,18 @@ class AutofilterTest(UITestCase):
doc = self.ui_test.load_file(get_url_for_data_file("autofilter.ods"))
xGridWin = self.xUITest.getTopFocusWindow().getChild("grid_window")
- xGridWin.executeAction("LAUNCH", mkPropertyValues({"AUTOFILTER": "", "COL": "1", "ROW": "1"}))
+ xGridWin.executeAction("LAUNCH", mkPropertyValues({"AUTOFILTER": "", "COL": "0", "ROW": "0"}))
+
+ xFloatWindow = self.xUITest.getFloatWindow()
+ xCheckListMenu = xFloatWindow.getChild("check_list_menu")
+
+ xTreeList = xCheckListMenu.getChild("check_list_box")
+ xFirstEntry = xTreeList.getChild("0")
+
+ xFirstEntry.executeAction("CLICK", tuple())
- time.sleep(3)
-
- print(xGridWin.getChildren())
- xCheckListMenu = xGridWin.getChild("check_list_menu")
- print("temp")
- print(xCheckListMenu)
- print(dir(xCheckListMenu))
- print("temp")
-
- json_string = xCheckListMenu.getHierarchy()
- print(json_string)
- json_content = json.loads(json_string)
- print(json_content)
- print(json.dumps(json_content, indent=4))
- time.sleep(10)
+ xOkBtn = xFloatWindow.getChild("ok")
+ xOkBtn.executeAction("CLICK", tuple())
self.ui_test.close_doc()
More information about the Libreoffice-commits
mailing list