From 9c1ef57e84765cd93329f3b40b116b803f3d43b7 Mon Sep 17 00:00:00 2001 From: spo Date: Tue, 1 Sep 2015 17:44:44 +0300 Subject: [PATCH] Annotate suite_ISSUES/tst_818 --- test.squish/suite_ISSUES/tst_818/test.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test.squish/suite_ISSUES/tst_818/test.py b/test.squish/suite_ISSUES/tst_818/test.py index 24bda7798..9268a5f40 100644 --- a/test.squish/suite_ISSUES/tst_818/test.py +++ b/test.squish/suite_ISSUES/tst_818/test.py @@ -4,10 +4,13 @@ def main(): startApplication("linux_run.sh") set_defaults() + #[step] Create parameter 'a = 100' parameter_create("a", "100") + #[step] Create sketch with line (0,0) - (a, 0) sketch_create(help_points("XY_plane"), lambda: line_create((0, 0), ("a", 0))) + #[step] Activate context menu for parameter 'a' and click 'Delete' waitForObjectItem(":Object browser_XGUI_DataTree", "Parameters (1)") clickItem(":Object browser_XGUI_DataTree", "Parameters (1)", -10, 10, 0, Qt.LeftButton) waitForObjectItem(":Object browser_XGUI_DataTree", "Parameters (1).a = 100") @@ -16,7 +19,9 @@ def main(): activateItem(waitForObjectItem(":_QMenu", "Delete")) + #[check] Message box with "Selected features are used in the following features: SketchLine_1. These features will be deleted.\nAlso these features will be deleted: Sketch_1.\nWould you like to continue?" should appear waitFor("object.exists(':Delete features.Label_QLabel')", 20000) test.compare(str(findObject(":Delete features.Label_QLabel").text), "Selected features are used in the following features: SketchLine_1. These features will be deleted.\nAlso these features will be deleted: Sketch_1.\nWould you like to continue?") + #[step] Click 'Yes' and close application clickButton(waitForObject(":Delete features.Yes_QPushButton")) -- 2.39.2