diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-06-26 03:03:52 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-06-26 03:28:09 +0200 |
commit | 65979ca6ebf341a4733b2755d099e365e6dd0fa0 (patch) | |
tree | 634ad89fb2676c0b138b8840171a8181a25a2ea1 /uitest/demo_ui | |
parent | 901aa845b7b7fe0e0f2ed483d3b8e7b7ffd8b894 (diff) |
uitest: add a way to have sleeps in some test runs
Now adding a -d or --debug to the command line options will enable the
sleeps in the uitest.debug part. This makes it much easier to debug a
test in the visual mode.
Only remaining part is now to add a test runner into the build system
that makes use of that mode.
Change-Id: I03d55b10f06dd12a63a8d87c135967901bef0fba
Diffstat (limited to 'uitest/demo_ui')
-rw-r--r-- | uitest/demo_ui/char_dialog.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/uitest/demo_ui/char_dialog.py b/uitest/demo_ui/char_dialog.py index 903b2b199ff7..06c17bb67cb1 100644 --- a/uitest/demo_ui/char_dialog.py +++ b/uitest/demo_ui/char_dialog.py @@ -10,7 +10,7 @@ from uitest_helper import UITest from helper import mkPropertyValues from uitest.framework import UITestCase -import time +from uitest.debug import sleep class CharDialogText(UITestCase): @@ -21,13 +21,13 @@ class CharDialogText(UITestCase): xCharDialog = self.xUITest.getTopFocusWindow() print(xCharDialog.getChildren()) - time.sleep(5) + sleep(5) xCharSet = xCharDialog.getChild("showcharset") xCharSet.executeAction("SELECT", mkPropertyValues({"COLUMN": "2", "ROW": "2"})) - time.sleep(5) + sleep(5) xCancelBtn = xCharDialog.getChild("cancel") xCancelBtn.executeAction("CLICK", tuple()) |