diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-05-22 01:43:16 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-06-18 17:02:36 +0200 |
commit | a259b9935990ec7c1fd804c0ff9f0a8b6e9044ec (patch) | |
tree | 7660e63e5811dc66e232ded128e3e6fb76472017 /uitest | |
parent | 313265c26df651d57d59fa4527baf6752f6b2f2d (diff) |
uitest: start with work on impress demos
Change-Id: I8407fe37f8906e21abc1033d6adf44f31cad1572
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/impress_tests/start.py | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/uitest/impress_tests/start.py b/uitest/impress_tests/start.py new file mode 100644 index 000000000000..0c5ef2a10c09 --- /dev/null +++ b/uitest/impress_tests/start.py @@ -0,0 +1,34 @@ +# -*- Mode: python; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# + +from uitest_helper import UITest, get_state_as_dict + +from helper import mkPropertyValues + +import time + +try: + import pyuno + import uno + import unohelper +except ImportError: + print("pyuno not found: try to set PYTHONPATH and URE_BOOTSTRAP variables") + print("PYTHONPATH=/installation/opt/program") + print("URE_BOOTSTRAP=file:///installation/opt/program/fundamentalrc") + raise + +def start_impress(xContext): + xUITest = xContext.ServiceManager.createInstanceWithContext( + "org.libreoffice.uitest.UITest", xContext) + + ui_test = UITest(xUITest, xContext) + + ui_test.create_doc_in_start_center("impress") + + ui_test.close_doc() + +# vim:set shiftwidth=4 softtabstop=4 expandtab: */ |