Revision: 3842
Author: jprantan
Date: Wed Aug 18 04:56:14 2010
Log: Added tests for continue in teardown when syntax error occurs. Issue 615.
http://code.google.com/p/robotframework/source/detail?r=3842

Modified:
 /trunk/atest/robot/running/errors_in_test_teardown.txt
 /trunk/atest/testdata/running/errors_in_test_teardown.txt

=======================================
--- /trunk/atest/robot/running/errors_in_test_teardown.txt Wed Aug 18 04:03:11 2010 +++ /trunk/atest/robot/running/errors_in_test_teardown.txt Wed Aug 18 04:56:14 2010
@@ -28,6 +28,10 @@
     ${tc} =  Check Test Case  ${TESTNAME}
     Should Be True  len(${tc.teardown.kws}) == 3

+Syntax Error in For Loop in Teardown
+    ${tc} =  Check Test Case  ${TESTNAME}
+    Should Be True  len(${tc.teardown.kws}) == 2
+
 Fatal Error In Teardown
     ${tc} =  Check Test Case  ${TESTNAME}
     Should Be True  len(${tc.teardown.kws}) == 1
=======================================
--- /trunk/atest/testdata/running/errors_in_test_teardown.txt Wed Aug 18 04:03:11 2010 +++ /trunk/atest/testdata/running/errors_in_test_teardown.txt Wed Aug 18 04:56:14 2010
@@ -52,6 +52,16 @@
     No Operation
     [teardown]  Syntax Error

+Syntax Error in For Loop in Teardown
+    [documentation]  FAIL Teardown failed:\nSeveral failures occurred:\n\n
+    ...  1) Non-existing variable '${non existing variable}'.\n\n
+    ...  2) This should be executed\n\n
+    ...  3) Non-existing variable '${non existing variable}'.\n\n
+    ...  4) This should be executed\n\n
+    ...  Also teardown of the parent suite failed.
+    No Operation
+    [teardown]  Syntax Errors In For Loop
+
 Fatal Error In Teardown
     [documentation]  FAIL Teardown failed:\n
     ...  FatalCatastrophyException\n\n
@@ -89,6 +99,12 @@
     Keyword Missing
     Log  This Should Be Executed

+Syntax Errors In For Loop
+    :FOR  ${i}  IN RANGE  2
+    \  Log  ${non existing variable}
+    \  Fail  This should be executed
+       Log  This should be executed
+
 Fatal Error
     Exit On Failure
     Fail  This Should Not Be Executed

Reply via email to