diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-03-27 00:08:04 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-03-27 00:13:33 +0200 |
commit | ff387f848d1695535ad33de6eef2577bcd91c9d0 (patch) | |
tree | 5f3fb72d7fa03cc7b11246ba95f4e5725c204d01 /sc | |
parent | 5ad636acc61eabd8123bea5b203e2c49a80f9ce3 (diff) |
improve the test by introducing sub tests
Change-Id: I414da64f55348973a8f60c7518d26a835385125d
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/uitest/conditional_format/tdf105466.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sc/qa/uitest/conditional_format/tdf105466.py b/sc/qa/uitest/conditional_format/tdf105466.py index e1cfd2d0a27e..fb0a872702b9 100644 --- a/sc/qa/uitest/conditional_format/tdf105466.py +++ b/sc/qa/uitest/conditional_format/tdf105466.py @@ -17,9 +17,10 @@ class tdf105466(UITestCase): self.ui_test.execute_modeless_dialog_through_command(".uno:ConditionalFormatDialog") for i in range(0,4): - xCondFormatDlg = self.xUITest.getTopFocusWindow() - xTypeLstBox = xCondFormatDlg.getChild("type") - xTypeLstBox.executeAction("SELECT", mkPropertyValues({"POS": str(i)})) + with self.subTest(i = i): + xCondFormatDlg = self.xUITest.getTopFocusWindow() + xTypeLstBox = xCondFormatDlg.getChild("type") + xTypeLstBox.executeAction("SELECT", mkPropertyValues({"POS": str(i)})) xCondFormatDlg = self.xUITest.getTopFocusWindow() xOkBtn = xCondFormatDlg.getChild("ok") |