]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Annotate suite_ISSUES/tst_818
authorspo <sergey.pokhodenko@opencascade.com>
Tue, 1 Sep 2015 14:44:44 +0000 (17:44 +0300)
committerspo <sergey.pokhodenko@opencascade.com>
Tue, 1 Sep 2015 14:44:44 +0000 (17:44 +0300)
test.squish/suite_ISSUES/tst_818/test.py

index 24bda779811171db2d545c8c7768bd08ef9ba38c..9268a5f401a945f27aed021eab84d37f98851994 100644 (file)
@@ -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"))