Revision: 3136
Author: janne.t.harkonen
Date: Tue May 4 03:16:54 2010
Log: Added tests for log messages of return values in case of continuable
failures
http://code.google.com/p/robotframework/source/detail?r=3136
Modified:
/trunk/atest/robot/running/continue_on_failure.txt
/trunk/atest/testdata/running/continue_on_failure.txt
=======================================
--- /trunk/atest/robot/running/continue_on_failure.txt Tue May 4 01:04:56
2010
+++ /trunk/atest/robot/running/continue_on_failure.txt Tue May 4 03:16:54
2010
@@ -38,6 +38,12 @@
Continue when setting variables
${tc}= Check Test Case ${TESTNAME}
+ Check Log Message ${tc.kws[0].msgs[1]} \${ret} = None
+ Check Log Message ${tc.kws[2].msgs[1]} \${r1} = None
+ Check Log Message ${tc.kws[2].msgs[2]} \${r2} = None
+ Check Log Message ${tc.kws[2].msgs[3]} \${r3} = None
+ Check Log Message ${tc.kws[4].msgs[1]} \...@{list} = [ ]
+ Should Be True len(${tc.kws[6].msgs}) == 1
Continue in test setup
${tc}= Check Test Case ${TESTNAME}
=======================================
--- /trunk/atest/testdata/running/continue_on_failure.txt Tue May 4
01:04:56 2010
+++ /trunk/atest/testdata/running/continue_on_failure.txt Tue May 4
03:16:54 2010
@@ -54,13 +54,14 @@
Log This should not be executed
Continue when setting variables
- [Documentation] FAIL Error 1: ${ERROR LINE}Error 2: ${ERROR
LINE}Error 3: ${ERROR LINE WITH TEARDOWN}
+ [Documentation] FAIL Error 1: ${ERROR LINE}Error 2: ${ERROR
LINE}Error 3: ${ERROR LINE}Error 4: No jokes\n\n${TEARDOWN ERROR}
${ret}= Raise Continuable Failure
Should Be Equal ${ret} ${None}
${r1} ${r2} ${r3}= Raise Continuable Failure
Should Be True ${r1} == ${r2} == ${r3} == None
@{list}= Raise Continuable Failure
Should Be True @{list} == []
+ ${notset} = Fail No jokes
Continue in test setup
[Documentation] FAIL Setup failed:\n${ERROR LINE WITH TEARDOWN}