]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix SQUISH tests
authorspo <sergey.pokhodenko@opencascade.com>
Thu, 26 Nov 2015 12:35:29 +0000 (15:35 +0300)
committerdbv <dbv@opencascade.com>
Tue, 8 Dec 2015 08:45:27 +0000 (11:45 +0300)
test.squish/suite_FEATURE_PARAMETERS/tst_903/test.py
test.squish/suite_FEATURE_PARAMETERS/tst_903/verificationPoints/VP_APPLY_GREY [new file with mode: 0644]

index 84f3620724e6449c4c32256c9b7d67cb1c60942f..72d36e3392bd80ce88e2c6b2759da5cd86c120aa 100644 (file)
@@ -19,10 +19,10 @@ def main():
     test.compare(str(findObject(":Parameter_QFrame").toolTip), "Model_FeatureValidator: Attribute \"expression\" is not initialized.")
     #[step] Check that name tooltip is: Errors:\nvariable - Parameters_VariableValidator: Incorrect variable name.
     waitFor("object.exists(':Parameter_QLineEdit')", 20000)
-    test.compare(str(findObject(":Parameter_QLineEdit").toolTip), "Errors:\nvariable - Parameters_VariableValidator: Incorrect variable name.")
+    test.compare(str(findObject(":Parameter_QLineEdit").toolTip), 'Errors:\nvariable - Parameters_VariableValidator: Attribute "variable" value is empty.')
     #[step] Check that expression tooltip is: Errors:\nexpression - Parameters_ExpressionValidator: Expression is empty.
     waitFor("object.exists(':Parameter_ExpressionEditor')", 20000)
-    test.compare(str(findObject(":Parameter_ExpressionEditor").toolTip), "Errors:\nexpression - Parameters_ExpressionValidator: Expression is empty.")
+    test.compare(str(findObject(":Parameter_ExpressionEditor").toolTip), 'Errors:\nexpression - Parameters_ExpressionValidator: Attribute "expression" is not initialized.')
 
     #[step] Enter variable name 'a'    
     type(waitForObject(":Parameter_QLineEdit"), "a")
@@ -34,16 +34,16 @@ def main():
     
     #[step] Check that expression tooltip is: Errors:\nexpression - Parameters_ExpressionValidator: name 'b' is not defined
     waitFor("object.exists(':Parameter_ExpressionEditor')", 20000)
-    test.compare(str(findObject(":Parameter_ExpressionEditor").toolTip), "Errors:\nexpression - Parameters_ExpressionValidator: name 'b' is not defined")
+    test.compare(str(findObject(":Parameter_ExpressionEditor").toolTip), "Errors:\nexpression - Parameters_ExpressionValidator: Result is empty.")
     #[step] Check that result message is: Error: unexpected EOF while parsing (<string>, line 0)
     waitFor("object.exists(':Parameter.Result_QLabel')", 20000)
     test.compare(str(findObject(":Parameter.Result_QLabel").text), "Error: name 'b' is not defined")
 
     #[step] Check that feature ToolTip is: expression - Parameters_ExpressionValidator: name 'b' is not defined
     waitFor("object.exists(':Parameter_QFrame')", 20000)
-    test.compare(str(findObject(":Parameter_QFrame").toolTip), "expression - Parameters_ExpressionValidator: name 'b' is not defined")
+    test.compare(str(findObject(":Parameter_QFrame").toolTip), "expression - Parameters_ExpressionValidator: Result is empty.")
 
-    #[step] Check that apply button is red [vp VP_APPLY_RED]
-    test.vp("VP_APPLY_RED")
+    #[step] Check that apply button is grey [vp VP_APPLY_GREY]
+    test.vp("VP_APPLY_GREY")
 
     close_application()
diff --git a/test.squish/suite_FEATURE_PARAMETERS/tst_903/verificationPoints/VP_APPLY_GREY b/test.squish/suite_FEATURE_PARAMETERS/tst_903/verificationPoints/VP_APPLY_GREY
new file mode 100644 (file)
index 0000000..05b3830
--- /dev/null
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<VerificationPoint type="Screenshot" version="4">
+<Description/>
+<Verification object=":Parameter.property_panel_ok_QToolButton" type="PNG">iVBORw0KGgoAAAANSUhEUgAAABcAAAAWCAYAAAArdgcFAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAeFJREFUOI3V1c2PGXEcx/H3GJRiUyJWL2ZkxzqMC+r/v3ST7qFbYVPJqtL10BLsJDMMmaceJAQVm8Wh39tk5veazy/f34Mw+D3wuFD5LgVfHPefMtjzPBqNBqJPJHebw+fbznpS8sf6I57nIfgE7j7f7b1/Mz6bz3jRXojH40SjUWzHPh/+8PWBbDYLwHw25yp2dR681+0Ri8UQRRGAbrdLsVQ8ji+XSyzLOgi7rsvTjydSqRQAw+GQG+Vmr5mws1pqtRqGYWDbNrIsk8lk9gZUq1WkjASA4zgYukGxuJ96L/lkMkGWZRRFodftMZ1Otz7WdZ3FYkE4HAag3W5T+lQ6OMst3C/68dzVaSBnZeq1OqZpblJ/26TWdZ34hziR95HX4eVymdbP1vpZURTuv9zjOA6tVotEIoHgEwDo9/qoBfUgDCDsHlzj8Zhms4kkrRJalsXzr2dc1yV3m1vB/T6SJK2beqj2tn8ymWQ+mzP8M+Q6fU0gECD9MU0wGFz/zHbsozAcWOcZKUPwXRBN0wCIRCIEAgEAOp0O5VL5KHwQB1BVFcMwMOebhmqaRjq9mcWbcYBKpcJgMMA0TSzLYjQakc/nXwXDPxq6W67r0vjewFyaFNQCoVDofPgp9f9ec38BgXXGishDpjEAAAAASUVORK5CYII=<Mask/>
+</Verification>
+</VerificationPoint>