From: spo Date: Tue, 1 Sep 2015 14:44:44 +0000 (+0300) Subject: Annotate suite_ISSUES/tst_818 X-Git-Tag: V_1.4.0_beta4~163 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9c1ef57e84765cd93329f3b40b116b803f3d43b7;p=modules%2Fshaper.git Annotate suite_ISSUES/tst_818 --- 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"))