Revision: 3867
Author: pekka.klarck
Date: Mon Aug 23 06:02:33 2010
Log: moved suite setup/teardown to higher level suite because the monster suite commandline.txt is going to be split
http://code.google.com/p/robotframework/source/detail?r=3867

Added:
 /trunk/atest/robot/cli/rebot/__init__.txt
 /trunk/atest/robot/cli/rebot/rebot_resource.txt
Modified:
 /trunk/atest/robot/cli/rebot/commandline.txt

=======================================
--- /dev/null
+++ /trunk/atest/robot/cli/rebot/__init__.txt   Mon Aug 23 06:02:33 2010
@@ -0,0 +1,4 @@
+***Settings***
+Suite Setup     Run tests to create input file for Rebot
+Suite Teardown  Remove temporary files
+Resource  rebot_resource.txt
=======================================
--- /dev/null
+++ /trunk/atest/robot/cli/rebot/rebot_resource.txt     Mon Aug 23 06:02:33 2010
@@ -0,0 +1,29 @@
+*** Settings ***
+Resource  ../runner/cli_resource.txt
+
+*** Variables ***
+${TEST FILE}      misc${/}normal.html
+${PASSFAIL FILE}  misc${/}pass_and_fail.html
+${MYOUTDIR}       ${TEMPDIR}${/}robot-test-145435
+${MYINPUT}        ${TEMPDIR}${/}robot-test-145435.xml
+${M_211_211} 2 critical tests, 1 passed, 1 failed\n 2 tests total, 1 passed, 1 failed +${M_110_211} 1 critical test, 1 passed, 0 failed\n 2 tests total, 1 passed, 1 failed +${M_101_211} 1 critical test, 0 passed, 1 failed\n 2 tests total, 1 passed, 1 failed +${M_000_211} 0 critical tests, 0 passed, 0 failed\n 2 tests total, 1 passed, 1 failed
+${USAGE_TIP}      \n\nTry --help for usage information.
+
+
+*** Keywords ***
+
+Run tests to create input file for Rebot
+    Run Tests Without Processing Output  --loglevel TRACE  ${TESTFILE}
+    Move File  ${OUTFILE}  ${MYINPUT}
+    Create Directory  ${MYOUTDIR}
+
+Remove temporary files
+    Remove Directory  ${MYOUTDIR}  recursively
+    Remove File  ${MYINPUT}
+
+Rebot And Process Output
+    [Arguments]  ${arguments}=${EMPTY}  ${input}=${MYINPUT}
+    Run Rebot  --outputdir ${MYOUTDIR} ${arguments}  ${input}
=======================================
--- /trunk/atest/robot/cli/rebot/commandline.txt        Mon Aug 23 05:24:51 2010
+++ /trunk/atest/robot/cli/rebot/commandline.txt        Mon Aug 23 06:02:33 2010
@@ -1,7 +1,5 @@
 *** Settings ***
Documentation Testing Rebot's command line functionality. Functionality tested elsewere:\n - filtering by tags/names\n - combining outputs\n - creating correct html (incl. --xxxtitle options)
-Suite Setup     My Setup
-Suite Teardown  Remove Temps
 Test Setup      Empty Directory  ${MYOUTDIR}
 Force Tags      regression  pybot  jybot
 Resource        atest_resource.txt

Reply via email to