Revision: 2881
Author: pekka.klarck
Date: Thu Apr  8 13:37:45 2010
Log: verify that invalid option errors shown exactly once - there was a test with this functionality in monitor test suite and it can now be removed
http://code.google.com/p/robotframework/source/detail?r=2881

Modified:
 /trunk/atest/robot/cli/runner/invalid_usage.txt

=======================================
--- /trunk/atest/robot/cli/runner/invalid_usage.txt     Thu Apr  8 12:38:17 2010
+++ /trunk/atest/robot/cli/runner/invalid_usage.txt     Thu Apr  8 13:37:45 2010
@@ -21,9 +21,9 @@

 Invalid Option Values
Run Tests --splitoutputs not_int --suitestatlevel not_int --tagstatlink less_than_3x_: ${TESTFILE} - Check Stderr Contains Option '--suitestatlevel' expected integer value but got 'not_int'. Default value used instead.\n - Check Stderr Contains Option '--splitoutputs' expected integer value but got 'not_int'. Default value used instead.\n - Check Stderr Contains Invalid format for option '--tagstatlink'. Expected 'tag:link:title' but got 'less_than_3x_:'.\n + Stderr Should Contain Once Option '--suitestatlevel' expected integer value but got 'not_int'. Default value used instead.\n + Stderr Should Contain Once Option '--splitoutputs' expected integer value but got 'not_int'. Default value used instead.\n + Stderr Should Contain Once Invalid format for option '--tagstatlink'. Expected 'tag:link:title' but got 'less_than_3x_:'.\n
     Should Be Equal  ${SUITE.status}  PASS


@@ -34,3 +34,7 @@
     ${rc}  ${output} =  Run And Return RC and Output  ${ROBOT} ${options}
     Should Be Equal As Integers  ${rc}  252
Should Match Regexp ${output} ^\\[ .*ERROR.* \\] ${exp error}${USAGETIP}$
+
+Stderr Should Contain Once  [Arguments]  ${msg}
+    ${stderr} =  Get Stderr
+    Should Contain X Times  ${stderr}  ${msg}  1


--
Subscription settings: 
http://groups.google.com/group/robotframework-commit/subscribe?hl=en

Reply via email to