Revision: 3261
Author: janne.t.harkonen
Date: Tue May 11 05:53:38 2010
Log: Tests for error handling with FOR IN RANGE
http://code.google.com/p/robotframework/source/detail?r=3261

Modified:
 /trunk/atest/robot/core/for.txt
 /trunk/atest/testdata/core/for.txt

=======================================
--- /trunk/atest/robot/core/for.txt     Mon Apr 12 05:17:10 2010
+++ /trunk/atest/robot/core/for.txt     Tue May 11 05:53:38 2010
@@ -239,6 +239,9 @@

 For In Range With Non-Existing Variables In Arguments
     Check Test Case  For In Range With Non-Existing Variables In Arguments
+
+For In Range With None As Range
+    Check Test Case  ${TESTNAME}

 *** Keywords ***
 Should Be For Keyword
=======================================
--- /trunk/atest/testdata/core/for.txt  Thu Mar 25 06:07:30 2010
+++ /trunk/atest/testdata/core/for.txt  Tue May 11 05:53:38 2010
@@ -262,7 +262,7 @@
     \  Fail  Not executed

 For In Range With Non Number Arguments
- [Documentation] FAIL FOR IN RANGE expected integer arguments, got string instead. + [Documentation] FAIL Converting argument of FOR IN RANGE failed: ValueError: invalid literal for int() with base 10: 'not a number'
     :FOR  ${i}  IN RANGE  not a number
     \  Fail  Not executed

@@ -276,6 +276,11 @@
     :FOR  ${i}  IN RANGE  @{non-existing}
     \  Fail  Not executed

+For In Range With None As Range
+ [Documentation] FAIL Converting argument of FOR IN RANGE failed: TypeError: int() argument must be a string or a number, not 'NoneType'
+    :FOR  ${i}  IN RANGE  ${NONE}
+    \  Fail  Not executed
+
 *** Keywords ***
 My UK
     No Operation

Reply via email to