[Libreoffice-commits] core.git: uitest/calc_tests
Markus Mohrhard
markus.mohrhard at googlemail.com
Sun Mar 26 02:58:44 UTC 2017
uitest/calc_tests/autofilter.py | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
New commits:
commit b3ebb8942115ef0d3fa3840f2056eac9a3bbe23a
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Sun Mar 26 01:19:00 2017 +0100
uitest: add demo showing how to interact with autofilter popup
Change-Id: Icda3c00a3a8c593a8f3129662c7688be000e3c7e
Reviewed-on: https://gerrit.libreoffice.org/35694
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 82a2023fea75..fc5c1c897ef9 100644
--- a/uitest/calc_tests/autofilter.py
+++ b/uitest/calc_tests/autofilter.py
@@ -27,4 +27,28 @@ class AutofilterTest(UITestCase):
self.ui_test.close_doc()
+ def test_hierarchy(self):
+ 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"}))
+
+ 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)
+
+ self.ui_test.close_doc()
+
# vim: set shiftwidth=4 softtabstop=4 expandtab:
More information about the Libreoffice-commits
mailing list